alp: migrate to finalAttrs

This commit is contained in:
Guy Chronister
2026-02-12 08:28:06 -06:00
parent fff81a529d
commit 1e7fc0d8b1
+6 -6
View File
@@ -6,19 +6,19 @@
alp,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "alp";
version = "1.1.18";
src = fetchFromGitHub {
owner = "gernotfeichter";
repo = "alp";
tag = version;
tag = finalAttrs.version;
hash = "sha256-tE8qKNXLKvFcnDULVkJJ/EJyEsvATCk/3YFkZCmpHSo=";
};
vendorHash = "sha256-AHPVhtm6La7HWuxJfpxTsS5wFTUZUJoVyebLGYhNKTg=";
sourceRoot = "${src.name}/linux";
sourceRoot = "${finalAttrs.src.name}/linux";
# Executing Go commands directly in checkPhase and buildPhase below,
# because the default testsuite runs all go tests, some of which require docker.
@@ -40,9 +40,9 @@ buildGoModule rec {
'';
passthru.tests = {
test-version = runCommand "${pname}-test" { } ''
test-version = runCommand "alp-test" { } ''
${alp}/bin/alp version > $out
cat $out | grep '${version}'
cat $out | grep '${finalAttrs.version}'
'';
};
@@ -53,4 +53,4 @@ buildGoModule rec {
mainProgram = "alp";
maintainers = with lib.maintainers; [ gernotfeichter ];
};
}
})