mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
fcad0b0a5a
Some of these should be longDescriptions, but most others just shouldn't contain newlines. E.g. write description = "Bla"; and not description = '' Bla ''; This pollutes "nix-env -qa --description" output. svn path=/nixpkgs/trunk/; revision=14310
49 lines
1.6 KiB
Nix
49 lines
1.6 KiB
Nix
args : with args;
|
|
let localDefs = builderDefs.passthru.function {
|
|
src = /* put a fetchurl here */
|
|
fetchurl {
|
|
url = "http://releases.compiz-fusion.org/core/compiz-0.8.0.tar.gz";
|
|
sha256 = "0xhyilfz2cfbdwni774b54171addjqw7hda6j6snzxb1igny7iry";
|
|
};
|
|
buildInputs = [
|
|
pkgconfig gtk libwnck GConf libgnome
|
|
libgnomeui metacity gnomegtk glib pango libglade libgtkhtml
|
|
gtkhtml libgnomecanvas libgnomeprint libgnomeprintui gnomepanel
|
|
librsvg fuse gettext intltool
|
|
];
|
|
propagatedBuildInputs = [
|
|
libpng libXcomposite libXfixes libXdamage libXrandr libXinerama
|
|
libICE libSM startupnotification mesa GConf perl perlXMLParser libxslt
|
|
dbus.libs dbus_glib compositeproto fixesproto damageproto randrproto
|
|
xineramaproto renderproto kbproto xextproto libXrender xproto libX11
|
|
libxcb
|
|
];
|
|
configureFlags = ["--enable-gtk" "--enable-fuse"
|
|
"--enable-annotate" "--enable-librsvg"] ++
|
|
(if args ? extraConfigureFlags then args.extraConfigureFlags else []);
|
|
};
|
|
in with localDefs;
|
|
let
|
|
postAll = FullDepEntry ("
|
|
for i in $out/bin/*; do
|
|
patchelf --set-rpath /var/run/opengl-driver/lib:$(patchelf --print-rpath $i) $i
|
|
done
|
|
ensureDir \$out/share/compiz-plugins/
|
|
ln -sfv \$out/lib/compiz \$out/share/compiz-plugins/
|
|
") [minInit doMakeInstall defEnsureDir];
|
|
in
|
|
|
|
stdenv.mkDerivation
|
|
rec {
|
|
name = "compiz-0.8.0";
|
|
builder = writeScript (name + "-builder")
|
|
(textClosure localDefs [doPatch doConfigure doMakeInstall doPropagate
|
|
doForceShare postAll]);
|
|
inherit propagatedBuildInputs;
|
|
meta = {
|
|
description = "Compiz window manager";
|
|
inherit src;
|
|
};
|
|
}
|
|
|