2013-05-13 03:33:31 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, libxml2, libXinerama, libXcursor, libXau, libXrandr
|
2014-03-23 09:49:09 +00:00
|
|
|
, imlib2, pango, libstartup_notification, makeWrapper}:
|
2010-11-28 10:07:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-11-19 03:44:22 +00:00
|
|
|
name = "openbox-3.5.2";
|
2010-11-28 10:07:49 +00:00
|
|
|
|
2013-05-13 03:33:31 +01:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig libxml2
|
|
|
|
libXinerama libXcursor libXau libXrandr
|
|
|
|
imlib2 pango libstartup_notification
|
2014-03-23 09:49:09 +00:00
|
|
|
makeWrapper
|
2013-05-13 03:33:31 +01:00
|
|
|
];
|
2010-11-28 10:07:49 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-13 03:33:31 +01:00
|
|
|
url = "http://openbox.org/dist/openbox/${name}.tar.gz";
|
2013-11-19 03:44:22 +00:00
|
|
|
sha256 = "0cxgb334zj6aszwiki9g10i56sm18i7w1kw52vdnwgzq27pv93qj";
|
2010-11-28 10:07:49 +00:00
|
|
|
};
|
|
|
|
|
2014-03-23 09:49:09 +00:00
|
|
|
# Openbox needs XDG_DATA_DIRS set or it can't find its default theme
|
|
|
|
postInstall = ''
|
|
|
|
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 10:07:49 +00:00
|
|
|
meta = {
|
|
|
|
description = "X window manager for non-desktop embedded systems";
|
|
|
|
homepage = http://openbox.org/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-11-28 10:07:49 +00:00
|
|
|
};
|
|
|
|
}
|