3
0
Fork 0
forked from mirrors/nixpkgs

z3: Add output for Java bindings (*.jar and *.so)

This commit is contained in:
Lorenz Leutgeb 2020-10-29 19:03:13 +01:00 committed by Sandro Jäckel
parent 772406c2a4
commit 7306864977
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -57,9 +57,14 @@ stdenv.mkDerivation rec {
mkdir -p $python/lib mkdir -p $python/lib
mv $lib/lib/python* $python/lib/ mv $lib/lib/python* $python/lib/
ln -sf $lib/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary} $python/${python.sitePackages}/z3/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary} ln -sf $lib/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary} $python/${python.sitePackages}/z3/lib/libz3${stdenv.hostPlatform.extensions.sharedLibrary}
'' + optionalString javaBindings ''
mkdir -p $java/share/java
mv com.microsoft.z3.jar $java/share/java
moveToOutput "lib/libz3java.${stdenv.hostPlatform.extensions.sharedLibrary}" "$java"
''; '';
outputs = [ "out" "lib" "dev" "python" ] outputs = [ "out" "lib" "dev" "python" ]
++ optional javaBindings "java"
++ optional ocamlBindings "ocaml"; ++ optional ocamlBindings "ocaml";
meta = with lib; { meta = with lib; {