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