{"id":20496385,"url":"https://github.com/sciencefidelity/rhea","last_synced_at":"2025-10-15T08:02:37.653Z","repository":{"id":252693116,"uuid":"841147937","full_name":"sciencefidelity/rhea","owner":"sciencefidelity","description":"A Rust project generator for Nix.","archived":false,"fork":false,"pushed_at":"2024-10-15T16:19:26.000Z","size":65,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T06:17:39.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sciencefidelity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T19:24:45.000Z","updated_at":"2024-10-15T16:19:30.000Z","dependencies_parsed_at":"2024-11-13T03:15:25.364Z","dependency_job_id":null,"html_url":"https://github.com/sciencefidelity/rhea","commit_stats":null,"previous_names":["sciencefidelity/rnix","sciencefidelity/rhea"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciencefidelity%2Frhea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciencefidelity%2Frhea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciencefidelity%2Frhea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciencefidelity%2Frhea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sciencefidelity","download_url":"https://codeload.github.com/sciencefidelity/rhea/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242078576,"owners_count":20068569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T18:06:57.383Z","updated_at":"2025-10-15T08:02:37.603Z","avatar_url":"https://github.com/sciencefidelity.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rhea\n\nA simple project generator for Rust in a nix environment.\n\nTo use it add it to your flake inputs:\n\n```nix\n# flake.nix\n{\n    inputs = {\n        rhea.url = \"github:sciencefidelity/rhea\";\n    }\n}\n```\n\nNow you can add it to your home packages:\n\n```nix\n# home.nix\n{ inputs, pkgs, ... };\n\n{\n    home.packages = [\n        inputs.rhea.packages.${pkgs.system}.default\n    ];\n}\n```\n\nNow the `rhea` command is available for your user and is a basic replacement for `cargo new`:\n\n```bash\n# make a binary project called foo-bar\nrhea foo-bar\n# this also works\nrhea foo-bar --bin\n# make a library project instead\nrhea foo-bar --lib\n# now have fun developing with Nix...\ncd foo-bar\ndirenv allow\ncargo run\nnix build\n```\n\n## Motivation\n\nSomething like this probably exists somewhere on the internet. It was pretty easy to write a quick Rust app to do it. In a Nix environment we don't have packages for building software installed globally. Instead each directory contains a `shell.nix` or a `flake.nix` that defines the build system for the package. The `cargo` command is not available globally, we can do `nix run nixpkgs#cargo init foo-bar`, to get the cargo command temporarily to init a new package, but that doesn't give us a flake, and other basics that we need for a package built with nix flake.\n\nThis is currently heavily opinionated. It adds strict lints, and options to make smaller packages to `Cargo.toml`. It assumes you are using `direnv` with `nix-direnv` to run to nix shell automatically in the directory. And it has my GitHub config hard coded in `Cargo.toml`. In time I'll extend it with CLI options. For now it works great for my use case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsciencefidelity%2Frhea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsciencefidelity%2Frhea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsciencefidelity%2Frhea/lists"}