terminal-notifier: add package

+31 -4
+26
pkgs/applications/misc/terminal-notifier/default.nix
···
··· 1 + { stdenv, lib, fetchzip }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "terminal-notifier-${version}"; 5 + 6 + version = "1.5.0"; 7 + 8 + src = fetchzip { 9 + url = "https://github.com/alloy/terminal-notifier/releases/download/${version}/terminal-notifier-${version}.zip"; 10 + sha256 = "09x7vl0kddivqq3pyrk6sg1f0sv5l7nj0bmblq222zk3b09bgg8p"; 11 + }; 12 + 13 + buildPhase = "true"; 14 + 15 + installPhase = '' 16 + mkdir -p $out/Applications 17 + mkdir -p $out/bin 18 + cp -r terminal-notifier.app $out/Applications 19 + ln -s $out/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier $out/bin/terminal-notifier 20 + ''; 21 + 22 + meta = with lib; { 23 + maintainers = with maintainers; [ cstrahan ]; 24 + platforms = with platforms; darwin; 25 + }; 26 + }
+2
pkgs/top-level/all-packages.nix
··· 11183 11184 telepathy_idle = callPackage ../applications/networking/instant-messengers/telepathy/idle {}; 11185 11186 terminator = callPackage ../applications/misc/terminator { 11187 vte = gnome.vte.override { pythonSupport = true; }; 11188 inherit (pythonPackages) notify;
··· 11183 11184 telepathy_idle = callPackage ../applications/networking/instant-messengers/telepathy/idle {}; 11185 11186 + terminal-notifier = callPackage ../applications/misc/terminal-notifier {}; 11187 + 11188 terminator = callPackage ../applications/misc/terminator { 11189 vte = gnome.vte.override { pythonSupport = true; }; 11190 inherit (pythonPackages) notify;
+3 -4
pkgs/top-level/python-packages.nix
··· 13203 13204 propagatedBuildInputs = with self; [ dateutil ]; 13205 13206 - # TODO: rubyPackages doesn't exist 13207 - #preInstall = stdenv.lib.optionalString stdenv.isDarwin '' 13208 - # sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.rubyPackages.terminal_notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py 13209 - #''; 13210 13211 meta = with stdenv.lib; { 13212 description = "Python Wrapper for Mac OS 10.8 Notification Center";
··· 13203 13204 propagatedBuildInputs = with self; [ dateutil ]; 13205 13206 + preInstall = stdenv.lib.optionalString stdenv.isDarwin '' 13207 + sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.terminal-notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py 13208 + ''; 13209 13210 meta = with stdenv.lib; { 13211 description = "Python Wrapper for Mac OS 10.8 Notification Center";