2007-11-03 11:32:21 +00:00
|
|
|
args : with args;
|
|
|
|
with builderDefs {
|
|
|
|
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 = [
|
|
|
|
pkgconfig libXrender xextproto gtk libwnck GConf libgnome
|
|
|
|
libgnomeui metacity gnomegtk glib pango libglade libgtkhtml
|
|
|
|
gtkhtml libgnomecanvas libgnomeprint libgnomeprintui gnomepanel
|
2007-11-05 08:32:20 +00:00
|
|
|
librsvg fuse
|
2007-11-03 11:32:21 +00:00
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libpng libXcomposite libXfixes libXdamage libXrandr libXinerama
|
|
|
|
libICE libSM startupnotification mesa GConf perl perlXMLParser libxslt
|
2007-11-05 08:32:20 +00:00
|
|
|
dbus dbus_glib
|
2007-11-03 11:32:21 +00:00
|
|
|
];
|
|
|
|
configureFlags = ["--enable-gtk" "--enable-fuse"
|
2007-11-05 08:32:20 +00:00
|
|
|
"--enable-annotate" "--enable-librsvg"] ++
|
|
|
|
(if args ? extraConfigureFlags then args.extraConfigureFlags else []);
|
|
|
|
patches = [ ./glx-patch-0.6.2.patch ];
|
2007-11-03 11:32:21 +00:00
|
|
|
} null; /* null is a terminator for sumArgs */
|
|
|
|
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 08:32:20 +00:00
|
|
|
ensureDir \$out/share/compiz-plugins/
|
|
|
|
ln -sfv \$out/lib/compiz \$out/share/compiz-plugins/
|
|
|
|
") [minInit doMakeInstall defEnsureDir];
|
2007-11-03 11:32:21 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation
|
|
|
|
rec {
|
|
|
|
name = "compiz-0.6.2";
|
|
|
|
builder = writeScript (name + "-builder")
|
2007-11-05 08:32:20 +00:00
|
|
|
(textClosure [doPatch doConfigure doMakeInstall doForceShare postAll]);
|
2007-11-03 11:32:21 +00:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Compiz window manager
|
|
|
|
";
|
|
|
|
};
|
|
|
|
}
|