Merge pull request #46111 from stites/noti

noti: init at 3.1.0
This commit is contained in:
Sarah Brofeldt 2018-09-07 16:35:18 +02:00 committed by GitHub
commit 4ae70b7771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View File

@ -3893,6 +3893,11 @@
github = "StillerHarpo";
name = "Florian Engel";
};
stites = {
email = "sam@stites.io";
github = "stites";
name = "Sam Stites";
};
stumoss = {
email = "samoss@gmail.com";
github = "stumoss";

View File

@ -0,0 +1,38 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "noti-${version}";
version = "3.1.0";
src = fetchFromGitHub {
owner = "variadico";
repo = "noti";
rev = "${version}";
sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823";
};
goPackagePath = "github.com/variadico/noti";
preBuild = ''
buildFlagsArray+=("-ldflags" "-X ${goPackagePath}/internal/command.Version=${version}")
'';
postInstall = ''
mkdir -p $out/share/man/man{1,5}/
cp $src/docs/man/noti.1 $out/share/man/man1/
cp $src/docs/man/noti.yaml.5 $out/share/man/man5/
'';
meta = with stdenv.lib; {
description = "Monitor a process and trigger a notification.";
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.
'';
homepage = https://github.com/variadico/noti;
license = licenses.mit;
maintainers = [ maintainers.stites ];
platforms = platforms.all;
};
}

View File

@ -1462,6 +1462,8 @@ with pkgs;
noteshrink = callPackage ../tools/misc/noteshrink { };
noti = callPackage ../tools/misc/noti { };
nrsc5 = callPackage ../applications/misc/nrsc5 { };
nwipe = callPackage ../tools/security/nwipe { };