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, nix-update-script,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "bluetuith"; pname = "bluetuith";
version = "0.2.3"; version = "0.2.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "darkhz"; owner = "darkhz";
repo = pname; repo = "bluetuith";
rev = "v${version}"; tag = "v${finalAttrs.version}";
hash = "sha256-yXH/koNT4ec/SOZhSU01iPNAfD1MdMjM2+wNmjXWsrk="; hash = "sha256-yXH/koNT4ec/SOZhSU01iPNAfD1MdMjM2+wNmjXWsrk=";
}; };
@ -23,7 +23,7 @@ buildGoModule rec {
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-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 { }; passthru.updateScript = nix-update-script { };
@ -47,4 +47,4 @@ buildGoModule rec {
katexochen katexochen
]; ];
}; };
} })