From c7367bb9a29202ff11ccdc0d25c23d24a88d8865 Mon Sep 17 00:00:00 2001 From: Jacky Nguyen Date: Sat, 14 Oct 2023 16:40:44 -0400 Subject: [PATCH] Still build java binding in Linux --- nix/7.x/linux.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nix/7.x/linux.nix b/nix/7.x/linux.nix index 6d7b0f1..3909c5f 100644 --- a/nix/7.x/linux.nix +++ b/nix/7.x/linux.nix @@ -6,6 +6,7 @@ , cmake , ninja , unzip +, openjdk11 , mono , rsync , python3 @@ -16,6 +17,7 @@ , lz4 , jemalloc , glibc +, removeReferencesTo , version ? "7.1.41" , sha256 ? "sha256-r6/TQiuVn/2AL70oGbhH8IwF9I6lqXkkUuFybaOpDVI=" }: @@ -49,6 +51,7 @@ stdenv.mkDerivation { cmake ninja unzip + openjdk11 mono rsync python3 @@ -60,6 +63,7 @@ stdenv.mkDerivation { lz4.dev jemalloc gcc11 + removeReferencesTo ]; GIT_EXECUTABLE = git; @@ -88,6 +92,10 @@ stdenv.mkDerivation { mv $out/lib $lib mv $out/bindings $bindings + + remove-references-to -t ${gcc11.cc} $lib/libfdb_java.so + remove-references-to -t ${glibc.dev} $lib/libfdb_java.so + remove-references-to -t ${openjdk11} $lib/libfdb_java.so ''; dontPatchShebangs = true;