nixpkgs/pkgs/development/libraries/openexr/default.nix

42 lines
915 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildPackages
, fetchFromGitHub
, zlib
, ilmbase
, fetchpatch
, cmake
}:
stdenv.mkDerivation rec {
pname = "openexr";
version = "2.5.3";
outputs = [ "bin" "dev" "out" "doc" ];
2015-02-19 02:02:05 +00:00
2020-04-26 22:29:17 +01:00
src = fetchFromGitHub {
owner = "AcademySoftwareFoundation";
repo = "openexr";
rev = "v${version}";
sha256 = "xyYdRrwAYdnRZmErIK0tZspguqtrXvixO5+6nMDoOh8=";
};
2015-02-19 02:02:05 +00:00
patches = [
# Fix pkg-config paths
(fetchpatch {
url = "https://github.com/AcademySoftwareFoundation/openexr/commit/6442fb71a86c09fb0a8118b6dbd93bcec4883a3c.patch";
sha256 = "bwD5WTKPT4DjOJDnPXIvT5hJJkH0b71Vo7qupWO9nPA=";
})
];
2015-03-31 06:27:36 +01:00
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ ilmbase zlib ];
meta = with lib; {
description = "A high dynamic-range (HDR) image file format";
homepage = "https://www.openexr.com/";
2015-02-19 02:02:05 +00:00
license = licenses.bsd3;
platforms = platforms.all;
};
}