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";
|
|
|
|
};
|
|
|
|
|
2016-05-04 12:08:35 +02:00
|
|
|
dontBuild = true;
|
2015-01-26 02:39:46 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -r terminal-notifier.app $out/Applications
|
2015-08-27 02:05:29 +02:00
|
|
|
cat >$out/bin/terminal-notifier <<EOF
|
|
|
|
cd $out/Applications/terminal-notifier.app
|
2015-11-16 22:29:13 +01:00
|
|
|
exec ./Contents/MacOS/terminal-notifier "\$@"
|
2015-08-27 02:05:29 +02:00
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/terminal-notifier
|
2015-01-26 02:39:46 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.darwin;
|
2015-01-26 02:39:46 +01:00
|
|
|
};
|
|
|
|
}
|