haskell-jni: fix path to missing libjvm

libjvm.so is in a non-standard location and the build needs help finding it.
Closes https://github.com/NixOS/nixpkgs/issues/20669.
This commit is contained in:
Peter Simons 2016-12-01 19:52:16 +01:00
parent 880ae3fd1e
commit a571edecd0

View File

@ -76,6 +76,14 @@ self: super: {
'';
});
# jni needs help finding libjvm.so because it's in a weird location.
jni = overrideCabal super.jni (drv: {
preConfigure = ''
local libdir=( "${pkgs.jdk}/lib/openjdk/jre/lib/"*"/server" )
configureFlags+=" --extra-lib-dir=''${libdir[0]}"
'';
});
# The package doesn't know about the AL include hierarchy.
# https://github.com/phaazon/al/issues/1
al = appendConfigureFlag super.al "--extra-include-dirs=${pkgs.openal}/include/AL";