From ed5cbbbc44c83e3891f907342aace7c13134f59b Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Mon, 30 Apr 2018 23:35:12 -0500 Subject: [PATCH] foundationdb: install the java client library Signed-off-by: Austin Seipp --- nixos/modules/services/databases/foundationdb.xml | 1 - pkgs/servers/foundationdb/default.nix | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/databases/foundationdb.xml b/nixos/modules/services/databases/foundationdb.xml index 2a0e3c76c9d8..0a96203e0551 100644 --- a/nixos/modules/services/databases/foundationdb.xml +++ b/nixos/modules/services/databases/foundationdb.xml @@ -254,7 +254,6 @@ only undergone fairly basic testing of all the available functionality. Python bindings are not currently installed. Ruby bindings are not currently installed. - Java bindings are not currently installed. Go bindings are not currently installed. diff --git a/pkgs/servers/foundationdb/default.nix b/pkgs/servers/foundationdb/default.nix index 95326b4c1c6c..3397c2ba386e 100644 --- a/pkgs/servers/foundationdb/default.nix +++ b/pkgs/servers/foundationdb/default.nix @@ -64,18 +64,22 @@ in stdenv.mkDerivation rec { ''; enableParallelBuilding = true; - makeFlags = [ "all" "fdb_c" "KVRELEASE=1" ]; + makeFlags = [ "all" "fdb_c" "fdb_java" "KVRELEASE=1" ]; configurePhase = ":"; installPhase = '' - mkdir -vp $out/{bin,libexec/plugins} $lib/lib $dev/include/foundationdb + mkdir -vp $out/{bin,libexec/plugins} $lib/{lib,share/java} $dev/include/foundationdb cp -v ./lib/libfdb_c.so $lib/lib + cp -v ./lib/libfdb_java.so $lib/lib + cp -v ./lib/libFDBLibTLS.so $out/libexec/plugins/FDBLibTLS.so cp -v ./bindings/c/foundationdb/fdb_c.h $dev/include/foundationdb cp -v ./bindings/c/foundationdb/fdb_c_options.g.h $dev/include/foundationdb + cp -v ./bindings/java/foundationdb-client.jar $lib/share/java + for x in fdbbackup fdbcli fdbserver fdbmonitor; do cp -v "./bin/$x" $out/bin; done