diff --git a/pkgs/tools/misc/noti/default.nix b/pkgs/tools/misc/noti/default.nix index ac3ff7a59b70..bebe77faaa7d 100644 --- a/pkgs/tools/misc/noti/default.nix +++ b/pkgs/tools/misc/noti/default.nix @@ -2,31 +2,21 @@ , lib , buildGoModule , fetchFromGitHub -, fetchurl , Cocoa , installShellFiles }: buildGoModule rec { pname = "noti"; - version = "3.5.0"; + version = "3.6.0"; src = fetchFromGitHub { owner = "variadico"; repo = "noti"; rev = version; - sha256 = "12r9wawwl6x0rfv1kahwkamfa0pjq24z60az9pn9nsi2z1rrlwkd"; + sha256 = "sha256-FhVpw6PJcm0aYQBlN7AUjOkJgCzleOHXIXumSegtxfA="; }; - patches = [ - # update golang.org/x/sys to fix building on aarch64-darwin - # using fetchurl because fetchpatch breaks the patch - (fetchurl { - url = "https://github.com/variadico/noti/commit/a90bccfdb2e6a0adc2e92f9a4e7be64133832ba9.patch"; - sha256 = "sha256-vSAwuAR9absMSFqGOlzmRZoOGC/jpkmh8CMCVjeleUo="; - }) - ]; - vendorSha256 = null; nativeBuildInputs = [ installShellFiles ]; @@ -39,8 +29,12 @@ buildGoModule rec { "-X github.com/variadico/noti/internal/command.Version=${version}" ]; + preCheck = '' + export PATH=$out/bin:$PATH + ''; + postInstall = '' - installManPage docs/man/* + installManPage docs/man/dist/* ''; meta = with lib; { @@ -48,7 +42,8 @@ buildGoModule rec { longDescription = '' Monitor a process and trigger a notification. - Never sit and wait for some long-running process to finish. Noti can alert you when it's done. You can receive messages on your computer or phone. + Never sit and wait for some long-running process to finish. Noti can alert + you when it's done. You can receive messages on your computer or phone. ''; homepage = "https://github.com/variadico/noti"; license = licenses.mit;