Skip to content

Commit d57be05

Browse files
guylamar2006GaetanLepage
authored andcommitted
1 parent 21e5832 commit d57be05

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pkgs/by-name/no/noti/package.nix

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,27 @@
55
installShellFiles,
66
}:
77

8-
buildGoModule rec {
8+
buildGoModule (finalAttrs: rec {
99
pname = "noti";
10-
version = "3.7.0";
10+
version = "3.8.0";
1111

1212
src = fetchFromGitHub {
1313
owner = "variadico";
1414
repo = "noti";
15-
rev = version;
16-
hash = "sha256-8CHSbKOiWNYqKBU1kqQm5t02DJq0JfoIaPsU6Ylc46E=";
15+
tag = finalAttrs.version;
16+
hash = "sha256-FwOS4ifMiODIzKVQufLhkDYOcmXz9dAfWw+hM3rXT/Y=";
1717
};
1818

1919
vendorHash = null;
2020

2121
nativeBuildInputs = [ installShellFiles ];
2222

23+
subPackages = [ "cmd/noti" ];
24+
2325
ldflags = [
2426
"-s"
2527
"-w"
26-
"-X github.com/variadico/noti/internal/command.Version=${version}"
28+
"-X github.com/variadico/noti/internal/command.Version=${finalAttrs.version}"
2729
];
2830

2931
preCheck = ''
@@ -34,7 +36,7 @@ buildGoModule rec {
3436
installManPage docs/man/dist/*
3537
'';
3638

37-
meta = with lib; {
39+
meta = {
3840
description = "Monitor a process and trigger a notification";
3941
longDescription = ''
4042
Monitor a process and trigger a notification.
@@ -43,8 +45,8 @@ buildGoModule rec {
4345
you when it's done. You can receive messages on your computer or phone.
4446
'';
4547
homepage = "https://github.com/variadico/noti";
46-
license = licenses.mit;
47-
maintainers = with maintainers; [ stites ];
48+
license = lib.licenses.mit;
49+
maintainers = [ lib.maintainers.stites ];
4850
mainProgram = "noti";
4951
};
50-
}
52+
})

0 commit comments

Comments
 (0)