Only patch alex for ghc881
commit4ea67e42c41800034159f134c547780bac0f2a78
authorLuc Tielen <luc.tielen@kabisa.nl>
dateMon 16 Sep 2019, 22:11 (7 years ago)
parentb554479
pkgs/development/haskell-modules/configuration-common.nix+1−1
@@ -1005,7 +1005,7 @@ self: super: {
10051005 spdx = dontCheck super.spdx;
10061006
10071007 # The test suite does not know how to find the 'alex' binary.
1008− alex = overrideCabal (appendPatch super.alex ./patches/alex-3.2.4-ghc8.8.x.patch) (drv: {
1008+ alex = overrideCabal super.alex (drv: {
10091009 testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which];
10101010 preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
10111011 });
pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix+7
@@ -161,4 +161,11 @@ self: super: {
161161 });
162162 tls = self.tls_1_5_1;
163163 vault = dontHaddock super.vault;
164+
165+ # The test suite does not know how to find the 'alex' binary.
166+ # TODO remove patch when alex gets a newer release than 3.2.4
167+ alex = overrideCabal (appendPatch super.alex ./patches/alex-3.2.4-ghc8.8.x.patch) (drv: {
168+ testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which];
169+ preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
170+ });
164171}