2007-11-03 12:32:21 +01:00
|
|
|
args : with args;
|
2008-01-23 19:11:03 +01:00
|
|
|
let localDefs = builderDefs {
|
2007-11-03 12:32:21 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://releases.compiz-fusion.org/compiz/0.6.2/compiz-0.6.2.tar.bz2;
|
|
|
|
sha256 = "0k58bkbyqx94ch7scvn3d26296ai9nddfb6lg8v3bhbi2zj4i2n5";
|
|
|
|
};
|
|
|
|
buildInputs = [
|
2007-12-08 02:10:32 +01:00
|
|
|
pkgconfig gtk libwnck GConf libgnome
|
2007-11-03 12:32:21 +01:00
|
|
|
libgnomeui metacity gnomegtk glib pango libglade libgtkhtml
|
|
|
|
gtkhtml libgnomecanvas libgnomeprint libgnomeprintui gnomepanel
|
2007-11-05 09:32:20 +01:00
|
|
|
librsvg fuse
|
2007-11-03 12:32:21 +01:00
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libpng libXcomposite libXfixes libXdamage libXrandr libXinerama
|
|
|
|
libICE libSM startupnotification mesa GConf perl perlXMLParser libxslt
|
2008-02-02 21:41:06 +01:00
|
|
|
dbus.libs dbus_glib compositeproto fixesproto damageproto randrproto
|
2007-12-08 02:10:32 +01:00
|
|
|
xineramaproto renderproto kbproto xextproto libXrender
|
2007-11-03 12:32:21 +01:00
|
|
|
];
|
|
|
|
configureFlags = ["--enable-gtk" "--enable-fuse"
|
2007-11-05 09:32:20 +01:00
|
|
|
"--enable-annotate" "--enable-librsvg"] ++
|
|
|
|
(if args ? extraConfigureFlags then args.extraConfigureFlags else []);
|
|
|
|
patches = [ ./glx-patch-0.6.2.patch ];
|
2007-11-03 12:32:21 +01:00
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-23 19:11:03 +01:00
|
|
|
in with localDefs;
|
2007-11-03 12:32:21 +01:00
|
|
|
let
|
|
|
|
postAll = FullDepEntry ("
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
patchelf --set-rpath /var/run/opengl-driver/lib:$(patchelf --print-rpath $i) $i
|
|
|
|
done
|
2007-11-05 09:32:20 +01:00
|
|
|
ensureDir \$out/share/compiz-plugins/
|
|
|
|
ln -sfv \$out/lib/compiz \$out/share/compiz-plugins/
|
|
|
|
") [minInit doMakeInstall defEnsureDir];
|
2007-11-03 12:32:21 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation
|
|
|
|
rec {
|
|
|
|
name = "compiz-0.6.2";
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-23 19:11:03 +01:00
|
|
|
(textClosure localDefs [doPatch doConfigure doMakeInstall doPropagate
|
2007-12-08 02:10:32 +01:00
|
|
|
doForceShare postAll]);
|
|
|
|
inherit propagatedBuildInputs;
|
2007-11-03 12:32:21 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Compiz window manager
|
|
|
|
";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-11-03 12:32:21 +01:00
|
|
|
};
|
|
|
|
}
|