mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 15:47:28 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
37 lines
978 B
Nix
37 lines
978 B
Nix
{ stdenv, fetchurl, buildPackages, automake, autoconf, libtool, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ilmbase";
|
|
version = "2.3.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/openexr/openexr/releases/download/v${version}/${pname}-${version}.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 = https://www.openexr.com/;
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|