3
0
Fork 0
forked from mirrors/nixpkgs

terminal-notifier: add package

This commit is contained in:
Charles Strahan 2015-01-25 20:39:46 -05:00
parent 334a186340
commit 5a73cda9b5
3 changed files with 31 additions and 4 deletions

View file

@ -0,0 +1,26 @@
{ 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;
};
}

View file

@ -11183,6 +11183,8 @@ let
telepathy_idle = callPackage ../applications/networking/instant-messengers/telepathy/idle {}; telepathy_idle = callPackage ../applications/networking/instant-messengers/telepathy/idle {};
terminal-notifier = callPackage ../applications/misc/terminal-notifier {};
terminator = callPackage ../applications/misc/terminator { terminator = callPackage ../applications/misc/terminator {
vte = gnome.vte.override { pythonSupport = true; }; vte = gnome.vte.override { pythonSupport = true; };
inherit (pythonPackages) notify; inherit (pythonPackages) notify;

View file

@ -13203,10 +13203,9 @@ let
propagatedBuildInputs = with self; [ dateutil ]; propagatedBuildInputs = with self; [ dateutil ];
# TODO: rubyPackages doesn't exist preInstall = stdenv.lib.optionalString stdenv.isDarwin ''
#preInstall = stdenv.lib.optionalString stdenv.isDarwin '' sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.terminal-notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py
# sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.rubyPackages.terminal_notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py '';
#'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Python Wrapper for Mac OS 10.8 Notification Center"; description = "Python Wrapper for Mac OS 10.8 Notification Center";