mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
bluetuith: use finalAttrs
Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
parent
7f20d5e29a
commit
b84bfe699a
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue