Merge pull request #66680 from peterhoeg/u/noti

noti: 3.1.0 -> 3.2.0
This commit is contained in:
Peter Hoeg 2019-08-16 10:06:59 +08:00 committed by GitHub
commit 14f5528b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,20 @@
{ stdenv, buildGoPackage, fetchFromGitHub, Cocoa }:
{ stdenv, lib, buildGoPackage, fetchFromGitHub
, Cocoa ? null }:
buildGoPackage rec {
name = "noti-${version}";
version = "3.1.0";
pname = "noti";
version = "3.2.0";
src = fetchFromGitHub {
owner = "variadico";
repo = "noti";
rev = "${version}";
sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823";
rev = version;
sha256 = "1lw1wmw2m83m0s5znb4gliywjpg74qrhrj6rwpcb5p352c4vbwxs";
};
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
buildInputs = lib.optional stdenv.isDarwin Cocoa;
# TODO: Remove this when we update apple_sdk
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isDarwin [ "-fno-objc-arc" ];
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-fno-objc-arc";
goPackagePath = "github.com/variadico/noti";
@ -22,12 +23,11 @@ buildGoPackage rec {
'';
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/
install -Dm444 -t $out/share/man/man1 $src/docs/man/*.1
install -Dm444 -t $out/share/man/man5 $src/docs/man/*.5
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Monitor a process and trigger a notification.";
longDescription = ''
Monitor a process and trigger a notification.
@ -36,7 +36,7 @@ buildGoPackage rec {
'';
homepage = https://github.com/variadico/noti;
license = licenses.mit;
maintainers = [ maintainers.stites ];
maintainers = with maintainers; [ stites ];
platforms = platforms.all;
};
}