Skip to content

Commit

Permalink
oracle-instantclient: prefix LD_LIBRARY_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
flokli committed May 17, 2018
1 parent 0f4269b commit ccb4558
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/oracle-instantclient/default.nix
@@ -1,4 +1,4 @@
{ stdenv, requireFile, glibc, patchelf, rpmextract, libaio, odbcSupport ? false, unixODBC }:
{ stdenv, requireFile, glibc, patchelf, rpmextract, libaio, makeWrapper, odbcSupport ? false, unixODBC }:

assert odbcSupport -> unixODBC != null;

Expand Down Expand Up @@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
buildInputs = [ glibc ] ++
optional odbcSupport unixODBC;

nativeBuildInputs = [ rpmextract patchelf ];
nativeBuildInputs = [ rpmextract patchelf makeWrapper ];

buildCommand = ''
mkdir -p "${name}"
Expand Down Expand Up @@ -70,6 +70,7 @@ in stdenv.mkDerivation rec {
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--force-rpath --set-rpath "$out/lib:${libaio}/lib" \
$exe
wrapProgram $exe --prefix LD_LIBRARY_PATH ":" $out/lib
done
'';

Expand Down

0 comments on commit ccb4558

Please sign in to comment.