Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
nix: add radicle-full
Fintan Halpenny committed 2 years ago
commit 64fd41961e038d171179063174fda182a89099dc
parent e1affc2da62417af41111b4af714cdeff49bc185
2 files changed +20 -0
modified 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;
modified 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"] }