summary refs log tree commit diff
path: root/pkgs/applications/window-managers/wmii-hg
diff options
context:
space:
mode:
authorKovacsics Robert (NixOS-SSD2) <kovirobi@gmail.com>2015-09-01 12:36:03 +0100
committerRok Garbas <rok@garbas.si>2015-09-03 12:58:11 +0200
commitc0b710fc68352d672ff1c450010b35d9992154af (patch)
tree28004e1f5ca785af4c45ff466fea9582492765d2 /pkgs/applications/window-managers/wmii-hg
parentb02921d4ca7fd269694b483c01f42785dc17c349 (diff)
downloadnixpkgs-c0b710fc68352d672ff1c450010b35d9992154af.tar
nixpkgs-c0b710fc68352d672ff1c450010b35d9992154af.tar.gz
nixpkgs-c0b710fc68352d672ff1c450010b35d9992154af.tar.bz2
nixpkgs-c0b710fc68352d672ff1c450010b35d9992154af.tar.lz
nixpkgs-c0b710fc68352d672ff1c450010b35d9992154af.tar.xz
nixpkgs-c0b710fc68352d672ff1c450010b35d9992154af.tar.zst
nixpkgs-c0b710fc68352d672ff1c450010b35d9992154af.zip
wmii-hg: init at 2012-12-09
Diffstat (limited to 'pkgs/applications/window-managers/wmii-hg')
-rw-r--r--pkgs/applications/window-managers/wmii-hg/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/wmii-hg/default.nix b/pkgs/applications/window-managers/wmii-hg/default.nix
new file mode 100644
index 00000000000..a7d492a05dc
--- /dev/null
+++ b/pkgs/applications/window-managers/wmii-hg/default.nix
@@ -0,0 +1,45 @@
+{ stdenv, fetchhg, pkgconfig, libixp_hg, txt2tags, dash, python
+, libX11 , libXrender, libXext, libXinerama, libXrandr, libXft }:
+
+stdenv.mkDerivation rec {
+  rev = "2823";
+  version = "hg-2012-12-09";
+  name = "wmii-${version}";
+
+  src = fetchhg {
+    url = https://code.google.com/p/wmii/;
+    sha256 = "1wqw41jb2fhq902a04ixfzmx0lia1pawahm1ymyrs3is6mm32r51";
+    inherit rev;
+  };
+
+  # for dlopen-ing
+  patchPhase = ''
+    substituteInPlace lib/libstuff/x11/xft.c --replace "libXft.so" "${libXft}/lib/libXft.so"
+  '';
+
+  configurePhase = ''
+    for file in $(grep -lr '#!.*sh'); do
+      sed -i 's|#!.*sh|#!${dash}/bin/dash|' $file
+    done
+
+    cat <<EOF >> config.mk
+    PREFIX = $out
+    LIBIXP = ${libixp_hg}/lib/libixp.a
+    BINSH = ${dash}/bin/dash
+    EOF
+  '';
+
+  buildInputs = [ pkgconfig libixp_hg txt2tags dash python
+                  libX11 libXrender libXext libXinerama libXrandr libXft ];
+
+  # For some reason including mercurial in buildInputs did not help
+  makeFlags = "WMII_HGVERSION=hg${rev}";
+
+  meta = {
+    homepage = "https://code.google.com/p/wmii/";
+    description = "A small window manager controlled by a 9P filesystem";
+    maintainers = with stdenv.lib.maintainers; [ kovirobi ];
+    license = stdenv.lib.licenses.mit;
+    inherit version;
+  };
+}