gitopper: refactor

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-07 09:48:42 +01:00
parent 1cf973f1c3
commit c8d7c8b99b
+5 -7
View File
@@ -5,21 +5,19 @@
git,
makeWrapper,
}:
let
buildGoModule (finalAttrs: {
pname = "gitopper";
version = "0.0.20";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "miekg";
repo = "gitopper";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-y0gzoXSIQDQ6TMVsAijPaN0sRqFEtTKyd297YxXAukM=";
};
ldflags = [ "-X main.Version=${version}" ];
ldflags = [ "-X main.Version=${finalAttrs.version}" ];
vendorHash = "sha256-b9lLOGk0h0kaWuZb142V8ojfpstRhzC9q2kSu0q7r7I=";
@@ -51,4 +49,4 @@ buildGoModule {
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
mainProgram = "gitopper";
};
}
})