haskell-arbtt: add build products into $PATH for the check phase

Fixes https://github.com/NixOS/nixpkgs/pull/57585.
This commit is contained in:
Peter Simons
2019-03-17 09:43:14 +01:00
parent 4708d3f84b
commit 7c04e3eb75
3 changed files with 5 additions and 5 deletions
@@ -1027,6 +1027,11 @@ self: super: {
testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which];
preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
});
arbtt = overrideCabal super.arbtt (drv: {
preCheck = ''
for n in $PWD/dist/build/*; do PATH+=":$n"; done
'';
});
# This package refers to the wrong library (itself in fact!)
vulkan = super.vulkan.override { vulkan = pkgs.vulkan-loader; };
@@ -1156,8 +1161,6 @@ self: super: {
xmonad-extras = doJailbreak super.xmonad-extras;
arbtt = doJailbreak super.arbtt;
# https://github.com/danfran/cabal-macosx/issues/13
cabal-macosx = dontCheck super.cabal-macosx;