Unverified Commit 258889fd authored by Defelo's avatar Defelo
Browse files

radicle-httpd: use finalAttrs pattern

parent 8280bbec
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -10,22 +10,24 @@
  stdenv,
  xdg-utils,
}:
rustPlatform.buildRustPackage rec {

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "radicle-httpd";
  version = "0.20.0";
  env.RADICLE_VERSION = version;

  env.RADICLE_VERSION = finalAttrs.version;

  # You must update the radicle-explorer source hash when changing this.
  src = fetchFromRadicle {
    seed = "seed.radicle.xyz";
    repo = "z4V1sjrXqjvFdnCUbxPFqd5p4DtH5";
    node = "z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    sparseCheckout = [ "radicle-httpd" ];
    hash = "sha256-9rJH4ECqOJ9wnYxCbEFHXo3PlhbPdeOnF+Pf1MzX25c=";
  };

  sourceRoot = "${src.name}/radicle-httpd";
  sourceRoot = "${finalAttrs.src.name}/radicle-httpd";

  cargoHash = "sha256-1GWWtrSYzTXUAgjeWaxyOuDqTDuTMWleug8SmxTHXbI=";

@@ -79,4 +81,4 @@ rustPlatform.buildRustPackage rec {
    ];
    mainProgram = "radicle-httpd";
  };
}
})