perlPackages.DBDOracle: fix darwin build

This commit is contained in:
Florian Klink 2019-08-22 12:32:32 +02:00
parent 47c60b3823
commit 472f3254a8

View file

@ -1,4 +1,4 @@
{ fetchurl, buildPerlPackage, DBI, TestNoWarnings, oracle-instantclient }:
{ stdenv, fetchurl, buildPerlPackage, DBI, TestNoWarnings, oracle-instantclient }:
buildPerlPackage {
pname = "DBD-Oracle";
@ -13,4 +13,8 @@ buildPerlPackage {
buildInputs = [ TestNoWarnings oracle-instantclient ] ;
propagatedBuildInputs = [ DBI ];
postBuild = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -add_rpath "${oracle-instantclient.lib}/lib" blib/arch/auto/DBD/Oracle/Oracle.bundle
'';
}