From c111b4bf8092e8e6cda9a62e834aa492fa9c0e03 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 2 Apr 2018 20:00:43 +0200 Subject: [PATCH] haskell-alex: fix broken test suite --- pkgs/development/haskell-modules/configuration-common.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index b820a36a1d57..6b4c56ab6c5f 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1017,4 +1017,10 @@ self: super: { # was fixed in spdx master (4288df6e4b7840eb94d825dcd446b42fef25ef56) spdx = dontCheck super.spdx; + # The test suite does not know how to find the 'alex' binary. + alex = overrideCabal super.alex (drv: { + testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which]; + preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"''; + }); + }