From c2d3d2434962af8b9f8628c2fe4ae0937d493109 Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Wed, 20 Mar 2013 21:19:43 +0100 Subject: [PATCH 1/2] Add dunst, a lightweight notification daemon. Signed-off-by: Moritz Ulrich --- pkgs/applications/misc/dunst/default.nix | 31 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/applications/misc/dunst/default.nix diff --git a/pkgs/applications/misc/dunst/default.nix b/pkgs/applications/misc/dunst/default.nix new file mode 100644 index 000000000000..466aa2071e9a --- /dev/null +++ b/pkgs/applications/misc/dunst/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, coreutils , unzip, which, pkgconfig , dbus +, freetype, xdg_utils , libXext, glib, pango , cairo, libX11 +, libxdg_basedir , libXScrnSaver, xproto, libXinerama , perl +}: + +stdenv.mkDerivation rec { + name = "dunst-0.5.0"; + version = "0.5.0"; + + src = fetchurl { + url = "https://github.com/knopwob/dunst/archive/v0.5.0.zip"; + sha256 = "08myzhpb1afffcfk3mpmc7gs9305x853b0553fxf3lkgksmg70a6"; + }; + + buildInputs = + [ coreutils unzip which pkgconfig dbus freetype + xdg_utils libXext glib pango cairo libX11 libxdg_basedir + libXScrnSaver xproto libXinerama perl]; + + buildPhase = '' + export VERSION=${version}; + export PREFIX=$out; + make dunst; + ''; + + meta = { + description = "lightweight and customizable notification daemon"; + homepage = http://www.knopwob.org/dunst/; + license = stdenv.lib.licenses.bsd3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0d3e4cca9a24..78cc5523066e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6772,6 +6772,8 @@ let inherit (xlibs) libX11; }; + dunst = callPackage ../applications/misc/dunst { }; + dvb_apps = callPackage ../applications/video/dvb-apps { }; dvdauthor = callPackage ../applications/video/dvdauthor { }; From c4ffd2cac967d716bef256e17800da542b24f7d6 Mon Sep 17 00:00:00 2001 From: Moritz Ulrich Date: Fri, 22 Mar 2013 13:00:49 +0100 Subject: [PATCH 2/2] dunst: Add meta.platforms. Signed-off-by: Moritz Ulrich --- pkgs/applications/misc/dunst/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/misc/dunst/default.nix b/pkgs/applications/misc/dunst/default.nix index 466aa2071e9a..457f20b4d441 100644 --- a/pkgs/applications/misc/dunst/default.nix +++ b/pkgs/applications/misc/dunst/default.nix @@ -27,5 +27,7 @@ stdenv.mkDerivation rec { description = "lightweight and customizable notification daemon"; homepage = http://www.knopwob.org/dunst/; license = stdenv.lib.licenses.bsd3; + # NOTE: 'unix' or even 'all' COULD work too, I'm not sure + platforms = stdenv.lib.platforms.linux; }; }