bluetuith: use finalAttrs

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
Paul Meyer 2025-04-11 13:03:30 +02:00
parent 7f20d5e29a
commit b84bfe699a

View file

@ -5,14 +5,14 @@
nix-update-script,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "bluetuith";
version = "0.2.3";
src = fetchFromGitHub {
owner = "darkhz";
repo = pname;
rev = "v${version}";
repo = "bluetuith";
tag = "v${finalAttrs.version}";
hash = "sha256-yXH/koNT4ec/SOZhSU01iPNAfD1MdMjM2+wNmjXWsrk=";
};
@ -23,7 +23,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X github.com/darkhz/bluetuith/cmd.Version=${version}@nixpkgs"
"-X github.com/darkhz/bluetuith/cmd.Version=${finalAttrs.version}@nixpkgs"
];
passthru.updateScript = nix-update-script { };
@ -47,4 +47,4 @@ buildGoModule rec {
katexochen
];
};
}
})