Skip to content

Commit b84bfe6

Browse files
committed
bluetuith: use finalAttrs
Signed-off-by: Paul Meyer <[email protected]>
1 parent 7f20d5e commit b84bfe6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkgs/by-name/bl/bluetuith/package.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
nix-update-script,
66
}:
77

8-
buildGoModule rec {
8+
buildGoModule (finalAttrs: {
99
pname = "bluetuith";
1010
version = "0.2.3";
1111

1212
src = fetchFromGitHub {
1313
owner = "darkhz";
14-
repo = pname;
15-
rev = "v${version}";
14+
repo = "bluetuith";
15+
tag = "v${finalAttrs.version}";
1616
hash = "sha256-yXH/koNT4ec/SOZhSU01iPNAfD1MdMjM2+wNmjXWsrk=";
1717
};
1818

@@ -23,7 +23,7 @@ buildGoModule rec {
2323
ldflags = [
2424
"-s"
2525
"-w"
26-
"-X github.com/darkhz/bluetuith/cmd.Version=${version}@nixpkgs"
26+
"-X github.com/darkhz/bluetuith/cmd.Version=${finalAttrs.version}@nixpkgs"
2727
];
2828

2929
passthru.updateScript = nix-update-script { };
@@ -47,4 +47,4 @@ buildGoModule rec {
4747
katexochen
4848
];
4949
};
50-
}
50+
})

0 commit comments

Comments
 (0)