nixpkgs/pkgs/development/compilers/osl/default.nix
R. RyanTM da0a2dcaa2 osl: 1.10.6 -> 1.10.7
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/openshadinglanguage/versions
2019-10-23 15:54:52 +02:00

40 lines
1.3 KiB
Nix

{ clangStdenv, stdenv, fetchFromGitHub, cmake, zlib, openexr,
openimageio, llvm, boost165, flex, bison, partio, pugixml,
utillinux, python
}:
let boost_static = boost165.override { enableStatic = true; };
in clangStdenv.mkDerivation rec {
# In theory this could use GCC + Clang rather than just Clang,
# but https://github.com/NixOS/nixpkgs/issues/29877 stops this
name = "openshadinglanguage-${version}";
version = "1.10.7";
src = fetchFromGitHub {
owner = "imageworks";
repo = "OpenShadingLanguage";
rev = "Release-1.10.7";
sha256 = "15grach34grp8x65sq8xzs2s6nfzjhn4blpfnaicw46jdi4c2w59";
};
cmakeFlags = [ "-DUSE_BOOST_WAVE=ON" "-DENABLERTTI=ON" ];
enableParallelBuilding = true;
preConfigure = '' patchShebangs src/liboslexec/serialize-bc.bash '';
buildInputs = [
cmake zlib openexr openimageio llvm
boost_static flex bison partio pugixml
utillinux # needed just for hexdump
python # CMake doesn't check this?
];
# TODO: How important is partio? CMake doesn't seem to find it
meta = with stdenv.lib; {
description = "Advanced shading language for production GI renderers";
homepage = http://opensource.imageworks.com/?p=osl;
maintainers = with maintainers; [ hodapp ];
license = licenses.bsd3;
platforms = platforms.linux;
};
}