summary refs log tree commit diff
path: root/pkgs/applications/window-managers/openbox
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2014-09-15 08:40:41 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2014-09-15 08:40:41 -0300
commit69446d14613a46ede5a966b018bc6de70faf930c (patch)
tree8ed494c80af98b07d6d337c1889cc91df7f7fe5c /pkgs/applications/window-managers/openbox
parent63f6cc0f7b33dc47e63bcbbba8bdd383cad59d18 (diff)
downloadnixpkgs-69446d14613a46ede5a966b018bc6de70faf930c.tar
nixpkgs-69446d14613a46ede5a966b018bc6de70faf930c.tar.gz
nixpkgs-69446d14613a46ede5a966b018bc6de70faf930c.tar.bz2
nixpkgs-69446d14613a46ede5a966b018bc6de70faf930c.tar.lz
nixpkgs-69446d14613a46ede5a966b018bc6de70faf930c.tar.xz
nixpkgs-69446d14613a46ede5a966b018bc6de70faf930c.tar.zst
nixpkgs-69446d14613a46ede5a966b018bc6de70faf930c.zip
openbox window manager: add tool to set desktop layout
Diffstat (limited to 'pkgs/applications/window-managers/openbox')
-rw-r--r--pkgs/applications/window-managers/openbox/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/openbox/default.nix b/pkgs/applications/window-managers/openbox/default.nix
index fad5b8010ea..2756525b2b0 100644
--- a/pkgs/applications/window-managers/openbox/default.nix
+++ b/pkgs/applications/window-managers/openbox/default.nix
@@ -17,8 +17,16 @@ stdenv.mkDerivation rec {
     sha256 = "0cxgb334zj6aszwiki9g10i56sm18i7w1kw52vdnwgzq27pv93qj";
   };
 
+  setlayoutSrc = fetchurl {
+    url = "http://openbox.org/dist/tools/setlayout.c";
+    sha256 = "1ci9lq4qqhl31yz1jwwjiawah0f7x0vx44ap8baw7r6rdi00pyiv";
+  };
+
+  postBuild = "gcc -O2 -o setlayout $(pkg-config --cflags --libs x11) $setlayoutSrc";
+
   # Openbox needs XDG_DATA_DIRS set or it can't find its default theme
   postInstall = ''
+    cp -a setlayout "$out"/bin
     wrapProgram "$out/bin/openbox" --prefix XDG_DATA_DIRS : "$out/share"
     wrapProgram "$out/bin/openbox-session" --prefix XDG_DATA_DIRS : "$out/share"
     wrapProgram "$out/bin/openbox-gnome-session" --prefix XDG_DATA_DIRS : "$out/share"