forked from mirrors/nixpkgs
distcc: Adding a derivation that prepares a masquerade for distccd
This commit is contained in:
parent
3e57886620
commit
ea5f15813c
29
pkgs/development/tools/misc/distcc/masq.nix
Normal file
29
pkgs/development/tools/misc/distcc/masq.nix
Normal 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
|
||||
'';
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue