@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
28 gtk2 glib fontconfig freetype unixODBC alsaLib
28 gtk2 glib fontconfig freetype unixODBC alsaLib
31− rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.gcc.gcc}/lib64";
31+ rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.cc.cc}/lib64";
33 unpackPhase = ''
33 unpackPhase = ''
34 sh $src --keep --noexec
34 sh $src --keep --noexec
@@ -40,10 +40,10 @@ stdenv.mkDerivation rec {
41 buildPhase = ''
41 buildPhase = ''
42 find . -type f -executable -exec patchelf \
42 find . -type f -executable -exec patchelf \
43− --set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
43+ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
44 '{}' \; || true
44 '{}' \; || true
45 find . -type f -exec patchelf \
45 find . -type f -exec patchelf \
46− --set-rpath $rpath:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \
46+ --set-rpath $rpath:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64:$(cat $NIX_CC/nix-support/orig-cc)/lib \
47 --force-rpath \
47 --force-rpath \
48 '{}' \; || true
48 '{}' \; || true