nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 34 lines 922 B view raw
1{ stdenv, runtimeShell, lib, fetchzip }: 2 3stdenv.mkDerivation rec { 4 pname = "terminal-notifier"; 5 6 version = "2.0.0"; 7 8 src = fetchzip { 9 url = "https://github.com/alloy/terminal-notifier/releases/download/${version}/terminal-notifier-${version}.zip"; 10 sha256 = "0gi54v92hi1fkryxlz3k5s5d8h0s66cc57ds0vbm1m1qk3z4xhb0"; 11 stripRoot = false; 12 }; 13 14 dontBuild = true; 15 16 installPhase = '' 17 mkdir -p $out/Applications 18 mkdir -p $out/bin 19 cp -r terminal-notifier.app $out/Applications 20 cat >$out/bin/terminal-notifier <<EOF 21 #!${runtimeShell} 22 cd $out/Applications/terminal-notifier.app 23 exec ./Contents/MacOS/terminal-notifier "\$@" 24 EOF 25 chmod +x $out/bin/terminal-notifier 26 ''; 27 28 meta = with lib; { 29 maintainers = with maintainers; [ cstrahan ]; 30 homepage = "https://github.com/julienXX/terminal-notifier"; 31 license = licenses.mit; 32 platforms = platforms.darwin; 33 }; 34}