mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
commit
14f5528b74
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user