ghcide: unbreak

This commit is contained in:
Domen Kožar 2019-10-14 22:03:39 +02:00 committed by Peter Simons
parent 3ca15e5fe1
commit 7a71069309
2 changed files with 8 additions and 1 deletions

View File

@ -6940,7 +6940,6 @@ broken-packages:
- ls-usb
- lscabal
- LslPlus
- lsp-test
- lsystem
- ltext
- ltk

View File

@ -444,6 +444,14 @@ self: super: builtins.intersectAttrs super {
[ pkgs.darwin.apple_sdk.frameworks.OpenCL ];
});
# depends on 'hie' executable
lsp-test = dontCheck super.lsp-test;
# tests depend on executable
ghcide = overrideCabal super.ghcide (drv: {
preCheck = ''export PATH="$PWD/dist/build/ghcide:$PATH"'';
});
# GLUT uses `dlopen` to link to freeglut, so we need to set the RUNPATH correctly for
# it to find `libglut.so` from the nix store. We do this by patching GLUT.cabal to pkg-config
# depend on freeglut, which provides GHC to necessary information to generate a correct RPATH.