From 52de9e82066750a7032657e6483c39622221c82f Mon Sep 17 00:00:00 2001 From: Maciej Kazulak Date: Fri, 1 Jun 2018 10:30:55 +0200 Subject: [PATCH] odpic: init at 2.3.2 --- maintainers/maintainer-list.nix | 5 +++ pkgs/development/libraries/odpic/default.nix | 36 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 pkgs/development/libraries/odpic/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 50185280c5a5..a22a1d6d5d13 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2516,6 +2516,11 @@ github = "MikePlayle"; name = "Mike Playle"; }; + mkazulak = { + email = "kazulakm@gmail.com"; + github = "mulderr"; + name = "Maciej Kazulak"; + }; mkg = { email = "mkg@vt.edu"; github = "mkgvt"; diff --git a/pkgs/development/libraries/odpic/default.nix b/pkgs/development/libraries/odpic/default.nix new file mode 100644 index 000000000000..dc7faee93725 --- /dev/null +++ b/pkgs/development/libraries/odpic/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, libaio, oracle-instantclient }: + +stdenv.mkDerivation rec { + name = "odpic-${version}"; + version = "2.3.2"; + + src = fetchurl { + url = "https://github.com/oracle/odpi/archive/v${version}.tar.gz"; + sha256 = "0a52vqy3c27hmcia4x4vhs6z0ha27xkw7fvfa17f7kxs5w84ll07"; + }; + + buildInputs = [ libaio oracle-instantclient ]; + + libPath = stdenv.lib.makeLibraryPath + [ oracle-instantclient ]; + + dontPatchELF = true; + installPhase = '' + mkdir -p $out/lib + mkdir $out/include + + cp lib/* $out/lib/ + cp include/* $out/include/ + + patchelf --set-rpath "${libPath}" $out/lib/libodpic.so + ''; + + meta = with stdenv.lib; { + description = "Oracle ODPI-C library"; + homepage = "https://oracle.github.io/odpi/"; + maintainers = with maintainers; [ mkazulak ]; + licence = licenses.asl20; + platforms = [ "x86_64-linux" ]; + hydraPlatforms = []; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d7c718fe8780..4b3110113674 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4125,6 +4125,8 @@ with pkgs; odpdown = callPackage ../tools/typesetting/odpdown { }; + odpic = callPackage ../development/libraries/odpic { }; + odt2txt = callPackage ../tools/text/odt2txt { }; offlineimap = callPackage ../tools/networking/offlineimap { };