2007-11-05 09:32:20 +01:00
|
|
|
args : with args;
|
2008-12-15 13:10:42 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-11-05 09:32:20 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://releases.compiz-fusion.org/0.6.0/compiz-manager-0.6.0.tar.bz2;
|
|
|
|
sha256 = "0bjl0kwzl4mc9nw2id8z5q5ikgm8c5zrknn9nm851if005479q3v";
|
|
|
|
};
|
|
|
|
buildInputs = (import ../general-dependencies.nix args) ++
|
|
|
|
[bcop ccsm xvinfo glxinfo xdpyinfo ];
|
|
|
|
shellReplacements = ["compiz-manager" [
|
|
|
|
"COMPIZ_BIN_PATH" "${compiz}/bin/"
|
|
|
|
"PLUGIN_PATH" "/var/run/current-system/sw/share/compiz-plugins/compiz/"
|
|
|
|
"GLXINFO" "${glxinfo}/bin/glxinfo"
|
|
|
|
"KWIN" "/var/run/current-system/sws/bin/kwin"
|
|
|
|
"METACITY" "/var/run/current-system/sws/bin/metacity"
|
|
|
|
"COMPIZ_NAME" "compiz"
|
|
|
|
"FALLBACKWM" "'\''\"\${KWIN}\"'\''"
|
|
|
|
"WHITELIST" "nvidia intel ati radeon i810 i830 i915"
|
|
|
|
"INDIRECT" "yes"
|
|
|
|
"XORG_DRIVER_PATH" "/nix/store/.*"
|
|
|
|
]];
|
2008-12-15 13:10:42 +01:00
|
|
|
};
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-11-05 09:32:20 +01:00
|
|
|
let
|
|
|
|
install = FullDepEntry ("
|
|
|
|
sed -e '/Checking for texture_from_pixmap:/areturn 0' -i compiz-manager
|
|
|
|
sed -e '/Checking for non power of two support: /areturn 0' -i compiz-manager
|
|
|
|
sed -e '/^\s*$/aPATH=\$PATH:${xvinfo}/bin:${xdpyinfo}/bin' -i compiz-manager
|
|
|
|
|
|
|
|
ensureDir \$out/bin
|
|
|
|
cp compiz-manager \$out/bin
|
|
|
|
")
|
|
|
|
[minInit doUnpack defEnsureDir];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "compiz-manager-"+args.version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-18 13:36:56 +01:00
|
|
|
(textClosure localDefs [doUnpack doReplaceScripts install doPropagate doForceShare]);
|
2007-11-05 09:32:20 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Compiz Launch Manager
|
|
|
|
";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-11-05 09:32:20 +01:00
|
|
|
};
|
|
|
|
}
|