1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00: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"
{
propagatedBuildInputs = [ home-manager ];
preferLocalBuild = true;
allowSubstitutes = false;
shellHook = ''
echo
echo "Creating initial Home Manager generation..."

View file

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

View file

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