forked from mirrors/nixpkgs
terminal-notifier: add package
This commit is contained in:
parent
334a186340
commit
5a73cda9b5
26
pkgs/applications/misc/terminal-notifier/default.nix
Normal file
26
pkgs/applications/misc/terminal-notifier/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue