nix: add radicle-full

To allow Nix users to install radicle with all tools and helpers.
This commit is contained in:
Fintan Halpenny 2024-02-19 14:12:48 +00:00 committed by cloudhead
parent e1affc2da6
commit 64fd41961e
No known key found for this signature in database
2 changed files with 20 additions and 0 deletions

View File

@ -164,6 +164,13 @@
packages = {
default = radicle;
radicle-full = pkgs.buildEnv {
name = "radicle-full";
paths = with self.packages.${system}; [
default
radicle-httpd
];
};
radicle-remote-helper = craneLib.buildPackage (commonArgs
// {
inherit (craneLib.crateNameFromCargoToml {cargoToml = ./radicle-remote-helper/Cargo.toml;});
@ -198,6 +205,11 @@
drv = radicle;
};
apps.radicle-full = flake-utils.lib.mkApp {
name = "rad";
drv = self.packages.${system}.radicle-full;
};
apps.rad = flake-utils.lib.mkApp {
name = "rad";
drv = self.packages.${system}.radicle-cli;

View File

@ -14,6 +14,14 @@ logfmt = [
"tracing-subscriber/env-filter"
]
[[bin]]
name = "radicle-httpd"
path = "src/main.rs"
[[bin]]
name = "rad-web"
path = "src/bin/rad-web.rs"
[dependencies]
anyhow = { version = "1" }
axum = { version = "0.7.2", default-features = false, features = ["json", "query", "tokio", "http1"] }