nix: use the matching weeder

weeder needs to be compiled with the same GHC that we build postgrest
with.

Before this change, we were relying on the fact that we happened
to set ${compiler} to the same ghc8107 as used by nixpkgs for
haskellPackages, now we explicitly take it from the correct
haskell package set.
This commit is contained in:
Robert Vollmert
2022-06-07 21:36:38 +02:00
committed by Robert
parent 4c8c3ccfb2
commit a9035bba2f
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -149,6 +149,7 @@ rec {
inherit postgrest devCabalOptions withTools;
ghc = pkgs.haskell.compiler."${compiler}";
inherit (pkgs.haskell.packages."${compiler}") hpc-codecov;
inherit (pkgs.haskell.packages."${compiler}") weeder;
};
withTools =
+2 -2
View File
@@ -5,12 +5,12 @@
, ghc
, glibcLocales
, gnugrep
, haskellPackages
, hpc-codecov
, jq
, postgrest
, python3
, runtimeShell
, weeder
, withTools
, yq
}:
@@ -137,7 +137,7 @@ let
(
trap 'echo Found dead code: Check file list above.' ERR ;
${haskellPackages.weeder}/bin/weeder --config=./test/weeder.dhall
${weeder}/bin/weeder --config=./test/weeder.dhall
)
# collect all tests