From 09665fee2b72ccdd100ca8fc169ba649b15339d0 Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 7 Feb 2019 22:19:26 +0000 Subject: [PATCH 1/5] buildEnv: allowSubstitutes = false trivial derivation --- pkgs/build-support/buildenv/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index 41a1e67ef428..337963106b44 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -63,6 +63,7 @@ runCommand name priority = drv.meta.priority or 5; }) paths); preferLocalBuild = true; + allowSubstitutes = false; # XXX: The size is somewhat arbitrary passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else null; } From 18e5db37bfa3c5ed31ed0e943cca66927c38a431 Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 7 Feb 2019 22:20:42 +0000 Subject: [PATCH 2/5] substituteAll: allowSubstitutes = false; trivial derivation --- pkgs/build-support/substitute/substitute-all.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/substitute/substitute-all.nix b/pkgs/build-support/substitute/substitute-all.nix index 7fd46f95f998..57b160bbe901 100644 --- a/pkgs/build-support/substitute/substitute-all.nix +++ b/pkgs/build-support/substitute/substitute-all.nix @@ -8,4 +8,5 @@ stdenvNoCC.mkDerivation ({ builder = ./substitute-all.sh; inherit (args) src; preferLocalBuild = true; + allowSubstitutes = false; } // args) From 5c28152a95cda27cac12048811ec3986aa578c63 Mon Sep 17 00:00:00 2001 From: volth Date: Fri, 8 Feb 2019 00:22:51 +0000 Subject: [PATCH 3/5] substituteAllFiles: allowSubstitutes = false trivial builder --- pkgs/build-support/substitute-files/substitute-all-files.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/substitute-files/substitute-all-files.nix b/pkgs/build-support/substitute-files/substitute-all-files.nix index aa600a76650c..66feb695c418 100644 --- a/pkgs/build-support/substitute-files/substitute-all-files.nix +++ b/pkgs/build-support/substitute-files/substitute-all-files.nix @@ -22,4 +22,5 @@ stdenv.mkDerivation ({ eval "$postInstall" ''; preferLocalBuild = true; + allowSubstitutes = false; } // args) From 98e2820f593082b654a34f6de18851518001a503 Mon Sep 17 00:00:00 2001 From: volth Date: Fri, 8 Feb 2019 00:24:14 +0000 Subject: [PATCH 4/5] makeFontsCache: allowSubstitutes = false trivial builder --- pkgs/development/libraries/fontconfig/make-fonts-cache.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix index 1c88235b9257..2ee0af8cfc13 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix +++ b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix @@ -4,6 +4,7 @@ runCommand "fc-cache" rec { buildInputs = [ fontconfig.bin ]; preferLocalBuild = true; + allowSubstitutes = false; passAsFile = [ "fontDirs" ]; fontDirs = '' From c706233f2e722aba83b7379b173341dd2afa27ce Mon Sep 17 00:00:00 2001 From: volth Date: Fri, 8 Feb 2019 00:27:40 +0000 Subject: [PATCH 5/5] buildFHSEnv: allowSubstitutes = false trivial builder --- pkgs/build-support/build-fhs-userenv/env.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/build-fhs-userenv/env.nix b/pkgs/build-support/build-fhs-userenv/env.nix index 23568f51b23e..c0f741b62886 100644 --- a/pkgs/build-support/build-fhs-userenv/env.nix +++ b/pkgs/build-support/build-fhs-userenv/env.nix @@ -196,4 +196,5 @@ in stdenv.mkDerivation { ${if isMultiBuild then extraBuildCommandsMulti else ""} ''; preferLocalBuild = true; + allowSubstitutes = false; }