Skip to content

Commit 9f208a0

Browse files
authored
cliqr: add nix-update-script hook, switch to finalAttr (#388781)
2 parents 4b6d361 + f361bde commit 9f208a0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pkgs/by-name/cl/cliqr/package.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
lib,
33
buildGoModule,
44
fetchFromGitHub,
5+
nix-update-script,
56
}:
67

7-
buildGoModule rec {
8+
buildGoModule (finalAttrs: {
89
pname = "cliqr";
910
version = "0.1.26";
1011

1112
src = fetchFromGitHub {
1213
owner = "paepckehh";
1314
repo = "cliqr";
14-
tag = "v${version}";
15+
tag = "v${finalAttrs.version}";
1516
hash = "sha256-JM5sWVby8dSFz2YtNXgU9z5fc6EI5nnxmpQN/71kdjI=";
1617
};
1718

@@ -22,12 +23,14 @@ buildGoModule rec {
2223
"-w"
2324
];
2425

26+
passthru.updateScript = nix-update-script { };
27+
2528
meta = {
26-
changelog = "https://github.com/paepckehh/cliqr/releases/tag/v${version}";
29+
changelog = "https://github.com/paepckehh/cliqr/releases/tag/v${finalAttrs.version}";
2730
homepage = "https://paepcke.de/cliqr";
2831
description = "Transfer, share data & secrets via console qr codes";
2932
license = lib.licenses.bsd3;
3033
mainProgram = "cliqr";
3134
maintainers = with lib.maintainers; [ paepcke ];
3235
};
33-
}
36+
})

0 commit comments

Comments
 (0)