summary refs log tree commit diff
path: root/pkgs/applications/misc/wmname
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-11-17 12:57:25 +0100
committerPeter Simons <simons@cryp.to>2012-11-17 12:57:25 +0100
commitf9ec7d36ce6feb58116a66be39d85722bba1713e (patch)
treee1e902731c42810b17ad37696f43450d1fd70bff /pkgs/applications/misc/wmname
parent07cf52ea9db23ead7d5bb25d2e12fc148747e895 (diff)
downloadnixpkgs-f9ec7d36ce6feb58116a66be39d85722bba1713e.tar
nixpkgs-f9ec7d36ce6feb58116a66be39d85722bba1713e.tar.gz
nixpkgs-f9ec7d36ce6feb58116a66be39d85722bba1713e.tar.bz2
nixpkgs-f9ec7d36ce6feb58116a66be39d85722bba1713e.tar.lz
nixpkgs-f9ec7d36ce6feb58116a66be39d85722bba1713e.tar.xz
nixpkgs-f9ec7d36ce6feb58116a66be39d85722bba1713e.tar.zst
nixpkgs-f9ec7d36ce6feb58116a66be39d85722bba1713e.zip
wmname: add version 0.1
Run "wmname LG3D" to fix Java GUIs running in the ratpoison window manager.
This probably applies to other tiling window managers, too.
Diffstat (limited to 'pkgs/applications/misc/wmname')
-rw-r--r--pkgs/applications/misc/wmname/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/misc/wmname/default.nix b/pkgs/applications/misc/wmname/default.nix
new file mode 100644
index 00000000000..417d4a5ae68
--- /dev/null
+++ b/pkgs/applications/misc/wmname/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl, libX11 }:
+
+stdenv.mkDerivation rec {
+  name = "wmname-0.1";
+
+  src = fetchurl {
+    url = "http://dl.suckless.org/tools/${name}.tar.gz";
+    sha256 = "559ad188b2913167dcbb37ecfbb7ed474a7ec4bbcb0129d8d5d08cb9208d02c5";
+  };
+
+  buildInputs = [ libX11 ];
+
+  preConfigure = [ ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'' ];
+
+  meta = {
+      description = "Prints or set the window manager name property of the root window";
+      homepage = "http://tools.suckless.org/wmname";
+      license = "MIT";
+  };
+}