Skip to content

Commit

Permalink
noti: use installShellFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Sep 9, 2019
1 parent 59d65e2 commit 12d9d73
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pkgs/tools/misc/noti/default.nix
@@ -1,4 +1,4 @@
{ stdenv, lib, buildGoPackage, fetchFromGitHub
{ stdenv, lib, buildGoPackage, fetchFromGitHub, installShellFiles
, Cocoa ? null }:

buildGoPackage rec {
Expand All @@ -13,6 +13,9 @@ buildGoPackage rec {
};

buildInputs = lib.optional stdenv.isDarwin Cocoa;

nativeBuildInputs = [ installShellFiles ];

# TODO: Remove this when we update apple_sdk
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-fno-objc-arc";

Expand All @@ -23,8 +26,7 @@ buildGoPackage rec {
'';

postInstall = ''
install -Dm444 -t $out/share/man/man1 $src/docs/man/*.1
install -Dm444 -t $out/share/man/man5 $src/docs/man/*.5
installManPage $src/docs/man/*.{1,5}
'';

meta = with lib; {
Expand All @@ -34,9 +36,9 @@ buildGoPackage rec {
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;
homepage = "https://github.com/variadico/noti";
license = licenses.mit;
maintainers = with maintainers; [ stites ];
maintainers = with maintainers; [ stites peterhoeg ];
platforms = platforms.all;
};
}

0 comments on commit 12d9d73

Please sign in to comment.