jj: use finalAttrs

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
Paul Meyer
2025-04-11 13:01:53 +02:00
parent 99a227638d
commit 51af7d609d
+4 -4
View File
@@ -8,14 +8,14 @@
runCommand,
jj,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "jj";
version = "1.9.2";
src = fetchFromGitHub {
owner = "tidwall";
repo = "jj";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-Yijap5ZghTBe1ahkQgjjxuo++SriJWXgRqrNXIVQ0os=";
};
@@ -28,7 +28,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.version=${finalAttrs.version}"
];
passthru = {
@@ -71,4 +71,4 @@ buildGoModule rec {
mainProgram = "jj";
maintainers = with maintainers; [ katexochen ];
};
}
})