nixpkgs-suyu/pkgs/applications/misc/terminal-notifier/default.nix

27 lines
714 B
Nix
Raw Normal View History

2015-01-26 02:39:46 +01:00
{ stdenv, lib, fetchzip }:
stdenv.mkDerivation rec {
name = "terminal-notifier-${version}";
version = "1.5.0";
src = fetchzip {
url = "https://github.com/alloy/terminal-notifier/releases/download/${version}/terminal-notifier-${version}.zip";
sha256 = "09x7vl0kddivqq3pyrk6sg1f0sv5l7nj0bmblq222zk3b09bgg8p";
};
buildPhase = "true";
installPhase = ''
mkdir -p $out/Applications
mkdir -p $out/bin
cp -r terminal-notifier.app $out/Applications
ln -s $out/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier $out/bin/terminal-notifier
'';
meta = with lib; {
maintainers = with maintainers; [ cstrahan ];
platforms = with platforms; darwin;
};
}