nixpkgs/pkgs/applications/window-managers/openbox/default.nix

34 lines
1.0 KiB
Nix
Raw Normal View History

2013-05-13 06:33:31 +04:00
{ stdenv, fetchurl, pkgconfig
, libxml2, libXinerama, libXcursor, libXau, libXrandr
, imlib2, pango, libstartup_notification, makeWrapper}:
stdenv.mkDerivation rec {
2013-11-19 07:44:22 +04:00
name = "openbox-3.5.2";
2013-05-13 06:33:31 +04:00
buildInputs = [
pkgconfig libxml2
libXinerama libXcursor libXau libXrandr
imlib2 pango libstartup_notification
makeWrapper
2013-05-13 06:33:31 +04:00
];
src = fetchurl {
2013-05-13 06:33:31 +04:00
url = "http://openbox.org/dist/openbox/${name}.tar.gz";
2013-11-19 07:44:22 +04:00
sha256 = "0cxgb334zj6aszwiki9g10i56sm18i7w1kw52vdnwgzq27pv93qj";
};
# 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"
'';
meta = {
description = "X window manager for non-desktop embedded systems";
homepage = http://openbox.org/;
license = "GPLv2+";
};
}