3
0
Fork 0
forked from mirrors/nixpkgs

distcc: Adding a derivation that prepares a masquerade for distccd

This commit is contained in:
Lluís Batlle i Rossell 2012-12-22 20:01:05 +01:00
parent 3e57886620
commit ea5f15813c
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ stdenv, gccRaw }:
stdenv.mkDerivation {
name = "distcc-masq-${gccRaw.name}";
phases = [ "installPhase" ];
installPhase = ''
ensureDir $out/bin
bin=${gccRaw}/bin
shopt -s nullglob
if [ -f $bin/gcc ]; then
ln -s $bin/gcc $out/bin
else
for a in $bin/*-g++; do
ln -s $bin/*-gcc $out/bin/gcc
done
fi
if [ -f $bin/g++ ]; then
ln -s $bin/g++ $out/bin
else
for a in $bin/*-g++; do
ln -sf $bin/*-g++ $out/bin/g++
done
fi
'';
}

View file

@ -3092,6 +3092,10 @@ let
wrapGCC (distcc.links extraConfig)) {};
distccStdenv = lowPrio (overrideGCC stdenv distccWrapper);
distccMasquerade = callPackage ../development/tools/misc/distcc/masq.nix {
gccRaw = gcc.gcc;
};
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
inherit python pil makeWrapper;
};