2018-06-01 10:30:55 +02:00
|
|
|
{ stdenv, fetchurl, libaio, oracle-instantclient }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "odpic-${version}";
|
2018-06-07 17:25:49 +02:00
|
|
|
version = "2.4.0";
|
2018-06-01 10:30:55 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/oracle/odpi/archive/v${version}.tar.gz";
|
2018-06-07 17:25:49 +02:00
|
|
|
sha256 = "1z793mg8hmy067xhllip7ca84xy07ca1cqilnr35mbvhmydp03zz";
|
2018-06-01 10:30:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libaio oracle-instantclient ];
|
|
|
|
|
|
|
|
libPath = stdenv.lib.makeLibraryPath
|
|
|
|
[ oracle-instantclient ];
|
|
|
|
|
|
|
|
dontPatchELF = true;
|
2018-06-07 17:25:49 +02:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2018-06-01 10:30:55 +02:00
|
|
|
|
2018-06-07 17:25:49 +02:00
|
|
|
postFixup = ''
|
|
|
|
patchelf --set-rpath "${libPath}" $out/lib/libodpic${stdenv.hostPlatform.extensions.sharedLibrary}
|
2018-06-01 10:30:55 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Oracle ODPI-C library";
|
|
|
|
homepage = "https://oracle.github.io/odpi/";
|
|
|
|
maintainers = with maintainers; [ mkazulak ];
|
2018-06-04 23:33:06 +02:00
|
|
|
license = licenses.asl20;
|
2018-06-01 10:30:55 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|