ghc881 - alex: simplify override

This commit is contained in:
Luc Tielen 2019-09-17 11:02:47 +02:00 committed by Peter Simons
parent 5ea256fe5f
commit de051787bf

View File

@ -158,13 +158,9 @@ self: super: {
tls = self.tls_1_5_1; tls = self.tls_1_5_1;
vault = dontHaddock super.vault; vault = dontHaddock super.vault;
# The test suite does not know how to find the 'alex' binary.
# TODO dont fetch patch if https://github.com/simonmar/alex/issues/140 is resolved # TODO dont fetch patch if https://github.com/simonmar/alex/issues/140 is resolved
alex = overrideCabal (appendPatch super.alex (pkgs.fetchpatch { alex = appendPatch super.alex (pkgs.fetchpatch {
url = "https://github.com/simonmar/alex/commit/deaae6eddef5186bfd0e42e2c3ced39e26afa4d6.patch"; url = "https://github.com/simonmar/alex/commit/deaae6eddef5186bfd0e42e2c3ced39e26afa4d6.patch";
sha256 = "1v40gmnw4lqyk271wngdwz8whpfdhmza58srbkka8icwwwrck3l5"; sha256 = "1v40gmnw4lqyk271wngdwz8whpfdhmza58srbkka8icwwwrck3l5";
})) (drv: {
testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which];
preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
}); });
} }