Check `ghc-pkg` works before we trust its results (#1069)
commite5ab3910e772c0b9210575e8182789c18e07a7b9
authorHamish Mackenzie <Hamish.Mackenzie@iohk.io>
dateThu 18 Mar 2021, 19:54 (6 years ago)
parent041435e
overlays/bootstrap.nix+5−1
@@ -1,6 +1,10 @@
11final: prev:
22let
3− installDeps = targetPrefix: ''
3+ installDeps = targetPrefix:
4+ # First checks that ghc-pkg runs first with `--version` as failures in the `for` and
5+ # `if` statements will be masked.
6+ ''
7+ $out/bin/${targetPrefix}ghc-pkg --version
48 for P in $($out/bin/${targetPrefix}ghc-pkg list --simple-output | sed 's/-[0-9][0-9.]*//g'); do
59 mkdir -p $out/exactDeps/$P
610 touch $out/exactDeps/$P/configure-flags