2013-05-13 04:33:31 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, libxml2, libXinerama, libXcursor, libXau, libXrandr
|
2015-08-03 16:12:27 +02:00
|
|
|
, imlib2, pango, libstartup_notification, makeWrapper }:
|
2010-11-28 11:07:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-11-19 04:44:22 +01:00
|
|
|
name = "openbox-3.5.2";
|
2010-11-28 11:07:49 +01:00
|
|
|
|
2013-05-13 04:33:31 +02:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig libxml2
|
|
|
|
libXinerama libXcursor libXau libXrandr
|
2015-08-03 16:12:27 +02:00
|
|
|
libstartup_notification makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pango imlib2
|
2013-05-13 04:33:31 +02:00
|
|
|
];
|
2010-11-28 11:07:49 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-13 04:33:31 +02:00
|
|
|
url = "http://openbox.org/dist/openbox/${name}.tar.gz";
|
2013-11-19 04:44:22 +01:00
|
|
|
sha256 = "0cxgb334zj6aszwiki9g10i56sm18i7w1kw52vdnwgzq27pv93qj";
|
2010-11-28 11:07:49 +01:00
|
|
|
};
|
|
|
|
|
2014-09-15 13:40:41 +02:00
|
|
|
setlayoutSrc = fetchurl {
|
|
|
|
url = "http://openbox.org/dist/tools/setlayout.c";
|
|
|
|
sha256 = "1ci9lq4qqhl31yz1jwwjiawah0f7x0vx44ap8baw7r6rdi00pyiv";
|
|
|
|
};
|
|
|
|
|
|
|
|
postBuild = "gcc -O2 -o setlayout $(pkg-config --cflags --libs x11) $setlayoutSrc";
|
|
|
|
|
2014-03-23 10:49:09 +01:00
|
|
|
# Openbox needs XDG_DATA_DIRS set or it can't find its default theme
|
|
|
|
postInstall = ''
|
2014-09-15 13:40:41 +02:00
|
|
|
cp -a setlayout "$out"/bin
|
2014-03-23 10:49:09 +01:00
|
|
|
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"
|
|
|
|
wrapProgram "$out/bin/openbox-kde-session" --prefix XDG_DATA_DIRS : "$out/share"
|
|
|
|
'';
|
|
|
|
|
2010-11-28 11:07:49 +01:00
|
|
|
meta = {
|
|
|
|
description = "X window manager for non-desktop embedded systems";
|
|
|
|
homepage = http://openbox.org/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-11-28 11:07:49 +01:00
|
|
|
};
|
|
|
|
}
|