summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorDavid Virgilio <drvirgilio@gmail.com>2013-12-15 21:29:42 -0600
committerMoritz Ulrich <moritz@tarn-vedra.de>2013-12-17 12:05:42 +0000
commit84b09e26e5bc4567f8bdf6ee8c8410adf139311a (patch)
tree072be2acc00d2862985cba85fd1ebf50453aa5fd /pkgs/applications/window-managers
parent010273bf1ec2080d292076a2aae35056a6d7881d (diff)
downloadnixlib-84b09e26e5bc4567f8bdf6ee8c8410adf139311a.tar
nixlib-84b09e26e5bc4567f8bdf6ee8c8410adf139311a.tar.gz
nixlib-84b09e26e5bc4567f8bdf6ee8c8410adf139311a.tar.bz2
nixlib-84b09e26e5bc4567f8bdf6ee8c8410adf139311a.tar.lz
nixlib-84b09e26e5bc4567f8bdf6ee8c8410adf139311a.tar.xz
nixlib-84b09e26e5bc4567f8bdf6ee8c8410adf139311a.tar.zst
nixlib-84b09e26e5bc4567f8bdf6ee8c8410adf139311a.zip
dzen2: new package
"Dzen is a general purpose messaging, notification and menuing program for X11. It was designed to be fast, tiny and scriptable in any language." -- https://github.com/robm/dzen
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/dzen2/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/dzen2/default.nix b/pkgs/applications/window-managers/dzen2/default.nix
new file mode 100644
index 000000000000..b3e970e90be0
--- /dev/null
+++ b/pkgs/applications/window-managers/dzen2/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, pkgconfig, libX11, libXft, libXinerama, libXpm }:
+
+stdenv.mkDerivation rec {
+  name = "dzen2-0.9.5";
+
+  buildInputs = [ pkgconfig libX11 libXft libXinerama libXpm ];
+
+  src = fetchurl {
+    url = "https://github.com/robm/dzen/tarball/master/dzen2-0.9.5git.tar.gz";
+    sha256 = "d4f7943cd39dc23fd825eb684b49dc3484860fa8443d30b06ee38af72a53b556";
+  };
+
+  patchPhase = ''
+    CFLAGS=" -Wall -Os ''${INCS} -DVERSION=\"''${VERSION}\" -DDZEN_XINERAMA -DDZEN_XPM -DDZEN_XFT `pkg-config --cflags xft`"
+    LIBS=" -L/usr/lib -lc -lXft -lXpm -lXinerama -lX11"
+    echo "CFLAGS=$CFLAGS" >>config.mk
+    echo "LIBS=$LIBS" >>config.mk
+    echo "LDFLAGS=$LIBS" >>config.mk
+    substituteInPlace config.mk --replace /usr/local "$out"
+    substituteInPlace gadgets/config.mk --replace /usr/local "$out"
+  '';
+
+  buildPhase = ''
+    mkdir -p $out/bin $out/man/man1
+    make clean install
+    cd gadgets
+    make clean install
+  '';
+
+  meta = {
+    homepage = https://github.com/robm/dzen;
+    license = stdenv.lib.licenses.mit;
+    description = "X notification utility";
+    platforms = stdenv.lib.platforms.linux;
+  };
+}