radicle-node: use finalAttrs pattern

This commit is contained in:
Defelo
2025-08-22 07:54:32 +02:00
parent 4e49fa427e
commit 26c854ff8e
+7 -5
View File
@@ -17,16 +17,16 @@
testers,
xdg-utils,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "radicle-node";
version = "1.3.0";
env.RADICLE_VERSION = version;
src = fetchFromRadicle {
seed = "seed.radicle.xyz";
repo = "z3gqcJUoA1n9HaHKufZs5FCSGazv5";
node = "z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-0gK+fM/YGGpxlcR1HQixbLK0/sv+HH29h6ajEP2w2pI=";
leaveDotGit = true;
postFetch = ''
@@ -38,6 +38,8 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-qLRFZXbVbsgMyXiljsb8lOBCDZKa17LcxWuPaUYSG70=";
env.RADICLE_VERSION = finalAttrs.version;
nativeBuildInputs = [
asciidoctor
installShellFiles
@@ -56,7 +58,7 @@ rustPlatform.buildRustPackage rec {
"--package=radicle-remote-helper"
];
cargoTestFlags = cargoBuildFlags;
cargoTestFlags = finalAttrs.cargoBuildFlags;
# tests regularly time out on aarch64
doCheck = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86;
@@ -166,4 +168,4 @@ rustPlatform.buildRustPackage rec {
];
mainProgram = "rad";
};
}
})