mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
f509255ff7
It appears that the autotools based build isn't supported on Darwin. Just use the stdenv-builtin cmake build everywhere, as it works just fine and is simpler.
35 lines
724 B
Nix
35 lines
724 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPackages
|
|
, fetchFromGitHub
|
|
, zlib
|
|
, ilmbase
|
|
, fetchpatch
|
|
, cmake
|
|
, libtool
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "openexr";
|
|
version = "2.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AcademySoftwareFoundation";
|
|
repo = "openexr";
|
|
rev = "v${version}";
|
|
sha256 = "020gyl8zv83ag6gbcchmqiyx9rh2jca7j8n52zx1gk4rck7kwc01";
|
|
};
|
|
|
|
outputs = [ "bin" "dev" "out" "doc" ];
|
|
nativeBuildInputs = [ cmake libtool ];
|
|
propagatedBuildInputs = [ ilmbase zlib ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A high dynamic-range (HDR) image file format";
|
|
homepage = "https://www.openexr.com/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|