about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/make-package-set.nix
diff options
context:
space:
mode:
authorGuillaume Bouchard <guillaume.bouchard@tweag.io>2018-11-06 15:17:07 +0100
committerProfpatsch <mail@profpatsch.de>2018-11-22 16:24:13 +0100
commit62882d8cd2498d4591ece59a455b700a9600ad0c (patch)
tree86134f3e3091919d5e0b00ec1ae4880b677d8d4b /pkgs/development/haskell-modules/make-package-set.nix
parent73d70463624c1c9bc373e8c8106cef91bb2a1121 (diff)
downloadnixlib-62882d8cd2498d4591ece59a455b700a9600ad0c.tar
nixlib-62882d8cd2498d4591ece59a455b700a9600ad0c.tar.gz
nixlib-62882d8cd2498d4591ece59a455b700a9600ad0c.tar.bz2
nixlib-62882d8cd2498d4591ece59a455b700a9600ad0c.tar.lz
nixlib-62882d8cd2498d4591ece59a455b700a9600ad0c.tar.xz
nixlib-62882d8cd2498d4591ece59a455b700a9600ad0c.tar.zst
nixlib-62882d8cd2498d4591ece59a455b700a9600ad0c.zip
haskellSrc2nix: disallow substitutes
Fix #49818. See the bug for more details.

The work done by haskellSrc2nix is usually lightweight, but needs to
be done each time a cabal file change. This triggers unexpected
network activity for a cache query which results most of the time on a
cache miss.

By disabling substitutes we:

- avoid the, mostly useless, binary cache query
- avoid unexpected network failure when users change a cabal file and
  try to rebuild without connectivity.
Diffstat (limited to 'pkgs/development/haskell-modules/make-package-set.nix')
-rw-r--r--pkgs/development/haskell-modules/make-package-set.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix
index 5803e2946bff..e36933a81944 100644
--- a/pkgs/development/haskell-modules/make-package-set.nix
+++ b/pkgs/development/haskell-modules/make-package-set.nix
@@ -125,6 +125,7 @@ let
       name = "cabal2nix-${name}";
       nativeBuildInputs = [ pkgs.buildPackages.cabal2nix ];
       preferLocalBuild = true;
+      allowSubstitutes = false;
       phases = ["installPhase"];
       LANG = "en_US.UTF-8";
       LOCALE_ARCHIVE = pkgs.lib.optionalString (buildPlatform.libc == "glibc") "${buildPackages.glibcLocales}/lib/locale/locale-archive";