xrootd: use fixed-point style mkDerivation

Make passthru.tests follow finalPackage
This commit is contained in:
Yueh-Shun Li
2023-03-20 20:41:17 +00:00
parent 7d70d35787
commit 9471e69240
+4 -4
View File
@@ -22,14 +22,14 @@
, externalEtc ? "/etc"
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xrootd";
version = "5.5.2";
src = fetchFromGitHub {
owner = "xrootd";
repo = "xrootd";
rev = "v${version}";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-2zVCOcjL8TUbo38Dx7W8431ziouzuAdCfogsIMSOOmQ=";
};
@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "out" "dev" "man" ];
passthru.tests = lib.optionalAttrs stdenv.hostPlatform.isLinux {
test-runner = callPackage ./test-runner.nix { };
test-runner = callPackage ./test-runner.nix { xrootd = finalAttrs.finalPackage; };
};
nativeBuildInputs = [
@@ -100,4 +100,4 @@ stdenv.mkDerivation rec {
platforms = platforms.all;
maintainers = with maintainers; [ ShamrockLee ];
};
}
})