Skip to content

Commit ccd8e0e

Browse files
committed
build(nix): Fix weeder
1 parent 1e15f8d commit ccd8e0e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,18 +169,19 @@
169169

170170
shell.tools = {
171171
cabal = "latest";
172-
hlint = "latest";
173172
fourmolu = "latest";
174-
weeder = "latest";
175173
haskell-language-server = {
176174
src = nixpkgs.haskell-nix.sources."hls-2.9";
177175
};
176+
} // lib.optionalAttrs (config.compiler-nix-name == "ghc966") {
177+
weeder = "latest";
178178
};
179179
# Now we use pkgsBuildBuild, to make sure that even in the cross
180180
# compilation setting, we don't run into issues where we pick tools
181181
# for the target.
182182
shell.buildInputs = with nixpkgs.pkgsBuildBuild; [
183183
gitAndTools.git
184+
hlint
184185
];
185186
shell.withHoogle = true;
186187
shell.crossPlatforms = _: [];

0 commit comments

Comments
 (0)