cliqr: add nix-update script hook, switch to finalAttrs
This commit is contained in:
@@ -2,16 +2,17 @@
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "cliqr";
|
||||
version = "0.1.26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "paepckehh";
|
||||
repo = "cliqr";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-JM5sWVby8dSFz2YtNXgU9z5fc6EI5nnxmpQN/71kdjI=";
|
||||
};
|
||||
|
||||
@@ -22,12 +23,14 @@ buildGoModule rec {
|
||||
"-w"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/paepckehh/cliqr/releases/tag/v${version}";
|
||||
changelog = "https://github.com/paepckehh/cliqr/releases/tag/v${finalAttrs.version}";
|
||||
homepage = "https://paepcke.de/cliqr";
|
||||
description = "Transfer, share data & secrets via console qr codes";
|
||||
license = lib.licenses.bsd3;
|
||||
mainProgram = "cliqr";
|
||||
maintainers = with lib.maintainers; [ paepcke ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user