build-fhs-*: prefer local build

This commit is contained in:
Nikolay Amiantov 2015-02-05 20:39:01 +03:00
parent 627f8178b8
commit 3500978b8f
3 changed files with 5 additions and 2 deletions

View File

@ -11,7 +11,8 @@ let
name = env.pname;
in stdenv.mkDerivation {
name = "${name}-chrootenv";
name = "${name}-chrootenv";
preferLocalBuild = true;
buildCommand = ''
mkdir -p $out/bin
cd $out/bin

View File

@ -170,6 +170,7 @@ in nixpkgs.stdenv.mkDerivation {
cd $out
${if isMultiBuild then extraBuildCommandsMulti else ""}
'';
preferLocalBuild = true;
passthru = {
pname = name;
};

View File

@ -15,8 +15,9 @@ let
};
in stdenv.mkDerivation {
name = "${name}-userenv";
name = "${name}-userenv";
buildInputs = [ ruby ];
preferLocalBuild = true;
buildCommand = ''
mkdir -p $out/bin
cat > $out/bin/${name} <<EOF