2019-08-15 11:44:19 +02:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub
|
|
|
|
, Cocoa ? null }:
|
2018-09-07 16:27:27 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 11:44:19 +02:00
|
|
|
pname = "noti";
|
2020-09-07 06:20:00 +02:00
|
|
|
version = "3.5.0";
|
2018-09-07 16:27:27 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "variadico";
|
|
|
|
repo = "noti";
|
2019-08-15 11:44:19 +02:00
|
|
|
rev = version;
|
2020-09-07 06:20:00 +02:00
|
|
|
sha256 = "12r9wawwl6x0rfv1kahwkamfa0pjq24z60az9pn9nsi2z1rrlwkd";
|
2018-09-07 16:27:27 +02:00
|
|
|
};
|
|
|
|
|
2019-08-15 11:44:19 +02:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Cocoa;
|
2018-09-19 03:13:46 +02:00
|
|
|
|
2018-09-07 16:27:27 +02:00
|
|
|
goPackagePath = "github.com/variadico/noti";
|
|
|
|
|
2021-08-21 10:23:50 +02:00
|
|
|
ldflags = [
|
|
|
|
"-X ${goPackagePath}/internal/command.Version=${version}"
|
|
|
|
];
|
2018-09-07 16:27:27 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
2019-08-15 11:44:19 +02:00
|
|
|
install -Dm444 -t $out/share/man/man1 $src/docs/man/*.1
|
|
|
|
install -Dm444 -t $out/share/man/man5 $src/docs/man/*.5
|
2018-09-07 16:27:27 +02:00
|
|
|
'';
|
|
|
|
|
2019-08-15 11:44:19 +02:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Monitor a process and trigger a notification";
|
2018-09-07 16:27:27 +02:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/variadico/noti";
|
2018-09-07 16:27:27 +02:00
|
|
|
license = licenses.mit;
|
2019-10-03 02:01:00 +02:00
|
|
|
maintainers = with maintainers; [ stites marsam ];
|
2018-09-07 16:27:27 +02:00
|
|
|
};
|
|
|
|
}
|