about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/ilmbase/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/ilmbase/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/ilmbase/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/ilmbase/default.nix b/nixpkgs/pkgs/development/libraries/ilmbase/default.nix
new file mode 100644
index 000000000000..98370f52e183
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/ilmbase/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchurl, buildPackages, automake, autoconf, libtool, which }:
+
+stdenv.mkDerivation rec {
+  name = "ilmbase-${version}";
+  version = "2.3.0";
+
+  src = fetchurl {
+    url = "https://github.com/openexr/openexr/releases/download/v${version}/${name}.tar.gz";
+    sha256 = "0qiq5bqq9rxhqjiym2k36sx4vq8adgrz6xf6qwizi9bqm78phsa5";
+  };
+
+  outputs = [ "out" "dev" ];
+
+  preConfigure = ''
+    patchShebangs ./bootstrap
+    ./bootstrap
+  '';
+
+  depsBuildBuild = [ buildPackages.stdenv.cc ];
+  nativeBuildInputs = [ automake autoconf libtool which ];
+
+  NIX_CFLAGS_LINK = [ "-pthread" ];
+
+  patches = [ ./bootstrap.patch ./cross.patch ];
+
+  # fails 1 out of 1 tests with
+  # "lt-ImathTest: testBoxAlgo.cpp:892: void {anonymous}::boxMatrixTransform(): Assertion `b21 == b2' failed"
+  # at least on i686. spooky!
+  doCheck = stdenv.isx86_64;
+
+  meta = with stdenv.lib; {
+    homepage = http://www.openexr.com/;
+    license = licenses.bsd3;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ wkennington ];
+  };
+}