tparse: refactor

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-07 09:49:09 +01:00
parent 4bd43e3bc1
commit 6cbb84b95d
+5 -7
View File
@@ -3,17 +3,15 @@
buildGoModule,
fetchFromGitHub,
}:
let
buildGoModule (finalAttrs: {
pname = "tparse";
version = "0.18.0";
in
buildGoModule {
inherit pname version;
src = fetchFromGitHub {
owner = "mfridman";
repo = "tparse";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-oJApKmdo8uvnm6npXpzcKBRRkZ901AH1kZqGuoLdB3U=";
};
@@ -22,7 +20,7 @@ buildGoModule {
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.version=${finalAttrs.version}"
];
meta = {
@@ -32,4 +30,4 @@ buildGoModule {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ obreitwi ];
};
}
})