noti: 3.5.0 -> 3.6.0

https://github.com/variadico/noti/releases/tag/3.6.0
This commit is contained in:
Mario Rodas 2022-10-14 04:20:00 +00:00
parent 31d5678462
commit cb2bc52be5

View File

@ -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;