2007-11-05 18:14:10 +01:00
|
|
|
args : with args;
|
2008-01-18 13:36:56 +01:00
|
|
|
let localDefs = builderDefs {
|
2007-11-05 18:14:10 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://releases.compiz-fusion.org/0.6.0/compiz-fusion-plugins-extra-0.6.0.tar.bz2;
|
|
|
|
sha256 = "1k8477x1f27qbwvgp5pws81i50kbihk8mcqxbjjqv9i7scvaddvy";
|
|
|
|
};
|
|
|
|
buildInputs = (import ../general-dependencies.nix args)++
|
|
|
|
[bcop libjpeg gettext pluginsMain];
|
|
|
|
configureFlags = [];
|
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-11-05 18:14:10 +01:00
|
|
|
let
|
|
|
|
sharePlugins = FullDepEntry ("
|
|
|
|
ensureDir \$out/share/compiz-plugins
|
|
|
|
ln -vsf \$out/lib/compiz \$out/share/compiz-plugins
|
|
|
|
") [minInit doMakeInstall defEnsureDir];
|
|
|
|
fixIncludes = FullDepEntry ("
|
|
|
|
sed -e 's@#include <text.h>@#include <compiz/text.h>@' -i src/group/group-internal.h;
|
|
|
|
sed -e 's@#include <text.h>@#include <compiz/text.h>@' -i src/scalefilter/scalefilter.c;
|
|
|
|
") [minInit doUnpack];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "compiz-fusion-plugins-extra-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-18 13:36:56 +01:00
|
|
|
(textClosure localDefs [fixIncludes doConfigure doMakeInstall sharePlugins doForceShare]);
|
2007-11-05 18:14:10 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Extra Compiz Fusion plugins.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
}
|