From 64fd41961e038d171179063174fda182a89099dc Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Mon, 19 Feb 2024 14:12:48 +0000 Subject: [PATCH] nix: add radicle-full To allow Nix users to install radicle with all tools and helpers. --- flake.nix | 12 ++++++++++++ radicle-httpd/Cargo.toml | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/flake.nix b/flake.nix index 1799c18e..de864168 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/radicle-httpd/Cargo.toml b/radicle-httpd/Cargo.toml index 0dba5bf6..39939f7c 100644 --- a/radicle-httpd/Cargo.toml +++ b/radicle-httpd/Cargo.toml @@ -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"] }