alex: which needs to be a tool dep so it's a nativeBuildInput

Also pull it from `buildPackages`, as that is where nativeBuildInputs
come from.
This commit is contained in:
John Ericson
2018-07-02 15:52:22 -04:00
committed by Matthew Bauer
parent 242ca11b03
commit d2f6f527f4
2 changed files with 4 additions and 4 deletions
@@ -9,7 +9,7 @@
#
# See comment at the top of configuration-nix.nix for more information about this
# distinction.
{ pkgs, haskellLib }:
{ buildPackages, pkgs, haskellLib }:
with haskellLib;
@@ -1036,7 +1036,7 @@ self: super: {
# The test suite does not know how to find the 'alex' binary.
alex = overrideCabal super.alex (drv: {
testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which];
testToolDepends = (drv.testSystemDepends or []) ++ [ buildPackages.which ];
preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
});