git.iko.soy/typeable/nixpkgs
on master help sign in
noti: init at 3.1.0
commitf1c30cf77227c2f1964921fa26a2675dd671ff93 authorstites <sam@stites.io> dateFri 7 Sep 2018, 10:27 (8 years ago) parent82f9808
2 files changed+40
pkgs/tools/misc/noti/default.nix+38 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/noti/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "noti-${version}";
5+ version = "3.1.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "variadico";
9+ repo = "noti";
10+ rev = "${version}";
11+ sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823";
12+ };
13+
14+ goPackagePath = "github.com/variadico/noti";
15+
16+ preBuild = ''
17+ buildFlagsArray+=("-ldflags" "-X ${goPackagePath}/internal/command.Version=${version}")
18+ '';
19+
20+ postInstall = ''
21+ mkdir -p $out/share/man/man{1,5}/
22+ cp $src/docs/man/noti.1 $out/share/man/man1/
23+ cp $src/docs/man/noti.yaml.5 $out/share/man/man5/
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Monitor a process and trigger a notification.";
28+ longDescription = ''
29+ Monitor a process and trigger a notification.
30+
31+ 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.
32+ '';
33+ homepage = https://github.com/variadico/noti;
34+ license = licenses.mit;
35+ maintainers = [ maintainers.stites ];
36+ platforms = platforms.all;
37+ };
38+}
pkgs/top-level/all-packages.nix+2
@@ -1462,6 +1462,8 @@ with pkgs;
14621462
14631463 noteshrink = callPackage ../tools/misc/noteshrink { };
14641464
1465+ noti = callPackage ../tools/misc/noti { };
1466+
14651467 nrsc5 = callPackage ../applications/misc/nrsc5 { };
14661468
14671469 nwipe = callPackage ../tools/security/nwipe { };