1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 00:39:45 +01:00

Avoid substitution for some derivations

In particular, don't bother attempting to do substitution of the home
files and home generation derivations since these rarely, if ever,
could be substituted.

Fixes #330
This commit is contained in:
Robert Helgesson 2018-07-31 21:05:36 +02:00
parent 39213a1847
commit 99c900946d
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 8 additions and 0 deletions

View file

@ -4,6 +4,8 @@ pkgs.runCommand
"home-manager-install" "home-manager-install"
{ {
propagatedBuildInputs = [ home-manager ]; propagatedBuildInputs = [ home-manager ];
preferLocalBuild = true;
allowSubstitutes = false;
shellHook = '' shellHook = ''
echo echo
echo "Creating initial Home Manager generation..." echo "Creating initial Home Manager generation..."

View file

@ -220,6 +220,9 @@ in
nativeBuildInputs = [ pkgs.xlibs.lndir ]; nativeBuildInputs = [ pkgs.xlibs.lndir ];
preferLocalBuild = true;
allowSubstitutes = false;
# Symlink directories and files that have the right execute bit. # Symlink directories and files that have the right execute bit.
# Copy files that need their execute bit changed. # Copy files that need their execute bit changed.
buildCommand = '' buildCommand = ''

View file

@ -349,6 +349,9 @@ in
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation {
name = "home-manager-generation"; name = "home-manager-generation";
preferLocalBuild = true;
allowSubstitutes = false;
buildCommand = '' buildCommand = ''
mkdir -p $out mkdir -p $out