Skip to content

Commit a40ec45

Browse files
authored
optinix: enable autoupdate (#383244)
2 parents 8a4c3dd + 4ba2c1d commit a40ec45

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkgs/by-name/op/optinix/package.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
fetchFromGitLab,
44
buildGoModule,
55
installShellFiles,
6+
nix-update-script,
67
}:
78
buildGoModule rec {
89
pname = "optinix";
@@ -11,7 +12,7 @@ buildGoModule rec {
1112
src = fetchFromGitLab {
1213
owner = "hmajid2301";
1314
repo = "optinix";
14-
rev = "v${version}";
15+
tag = "v${version}";
1516
hash = "sha256-OuzLTygfJj1ILT0lAcBC28vU5YLuq0ErZHsLHoQNWBA=";
1617
};
1718

@@ -31,11 +32,16 @@ buildGoModule rec {
3132
--zsh <($out/bin/optinix completion zsh)
3233
'';
3334

35+
passthru.updateScript = nix-update-script { };
36+
3437
meta = {
3538
description = "Tool for searching options in Nix";
3639
homepage = "https://gitlab.com/hmajid2301/optinix";
3740
license = lib.licenses.mit;
38-
maintainers = with lib.maintainers; [ hmajid2301 ];
41+
maintainers = with lib.maintainers; [
42+
hmajid2301
43+
brianmcgillion
44+
];
3945
changelog = "https://gitlab.com/hmajid2301/optinix/-/releases/v${version}";
4046
mainProgram = "optinix";
4147
};

0 commit comments

Comments
 (0)