odpic: 3.1.0 -> 3.2.1

This commit is contained in:
Florian Klink 2019-08-20 00:17:13 +02:00
parent eb0fecf294
commit c79d9e17d6

View File

@ -1,12 +1,19 @@
{ stdenv, fetchurl, fixDarwinDylibNames, oracle-instantclient, libaio }:
{ stdenv, fetchFromGitHub, fixDarwinDylibNames, oracle-instantclient, libaio }:
stdenv.mkDerivation rec {
name = "odpic-${version}";
version = "3.1.0";
let
version = "3.2.1";
libPath = stdenv.lib.makeLibraryPath [ oracle-instantclient.lib ];
src = fetchurl {
url = "https://github.com/oracle/odpi/archive/v${version}.tar.gz";
sha256 = "0m6g7lbvfir4amf2cnap9wz9fmqrihqpihd84igrd7fp076894c0";
in stdenv.mkDerivation {
inherit version;
pname = "odpic";
src = fetchFromGitHub {
owner = "oracle";
repo = "odpi";
rev = "v${version}";
sha256 = "1f9gznc7h73cgx32p55rkhzla6l7l9dg53ilwh6zdgdqlp7n018i";
};
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin [ fixDarwinDylibNames ];
@ -14,9 +21,6 @@ stdenv.mkDerivation rec {
buildInputs = [ oracle-instantclient ]
++ stdenv.lib.optionals stdenv.isLinux [ libaio ];
libPath = stdenv.lib.makeLibraryPath
[ oracle-instantclient.lib ];
dontPatchELF = true;
makeFlags = [ "PREFIX=$(out)" "CC=cc" "LD=cc"];