From 6c9c59067b1927f37f02a23d2cbe776d8cb6c1fc Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Sun, 17 Apr 2016 01:09:24 +0200 Subject: [PATCH] gradle: fix attribute name for gcc libs path. PR #14326 fixed gradle so that its native code library could find libstdc++.so.6, but this fix is inoperative now, because this library is in `"${stdenv.cc.cc.lib}/lib"` now, rather than `"${stdenv.cc.cc}/lib"`. --- pkgs/development/tools/build-managers/gradle/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/build-managers/gradle/default.nix b/pkgs/development/tools/build-managers/gradle/default.nix index 96477e55d26a..730d42073759 100644 --- a/pkgs/development/tools/build-managers/gradle/default.nix +++ b/pkgs/development/tools/build-managers/gradle/default.nix @@ -22,7 +22,7 @@ rec { mkdir patching pushd patching jar xf $out/lib/gradle/lib/native-platform-linux-${arch}-0.10.jar - patchelf --set-rpath "${stdenv.cc.cc}/lib:${stdenv.cc.cc}/lib64" net/rubygrapefruit/platform/linux-${arch}/libnative-platform.so + patchelf --set-rpath "${stdenv.cc.cc.lib}/lib:${stdenv.cc.cc.lib}/lib64" net/rubygrapefruit/platform/linux-${arch}/libnative-platform.so jar cf native-platform-linux-${arch}-0.10.jar . mv native-platform-linux-${arch}-0.10.jar $out/lib/gradle/lib/ popd