gitopper: refactor
this shouldn't create any rebuilds
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user