diff options
author | Chris Hodapp <hodapp87@gmail.com> | 2018-06-20 14:42:10 -0400 |
---|---|---|
committer | Chris Hodapp <hodapp87@gmail.com> | 2018-06-21 16:18:13 -0400 |
commit | 3b880f55b5776b339310fddc6344b4cdc48e6871 (patch) | |
tree | 65e5da69f38c4374dfb6e2c0a0569cef52b44efb /pkgs/development/compilers | |
parent | d401db429047b9bc0340373198e8d542cb11a93f (diff) | |
download | nixlib-3b880f55b5776b339310fddc6344b4cdc48e6871.tar nixlib-3b880f55b5776b339310fddc6344b4cdc48e6871.tar.gz nixlib-3b880f55b5776b339310fddc6344b4cdc48e6871.tar.bz2 nixlib-3b880f55b5776b339310fddc6344b4cdc48e6871.tar.lz nixlib-3b880f55b5776b339310fddc6344b4cdc48e6871.tar.xz nixlib-3b880f55b5776b339310fddc6344b4cdc48e6871.tar.zst nixlib-3b880f55b5776b339310fddc6344b4cdc48e6871.zip |
appleseed: init at 1.9.0-beta, osl: init at 1.9.9, seexpr: init at 2.11
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/osl/default.nix | 39 | ||||
-rw-r--r-- | pkgs/development/compilers/seexpr/default.nix | 23 |
2 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/development/compilers/osl/default.nix b/pkgs/development/compilers/osl/default.nix new file mode 100644 index 000000000000..65d8110646f8 --- /dev/null +++ b/pkgs/development/compilers/osl/default.nix @@ -0,0 +1,39 @@ +{ 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.9.9"; + + src = fetchFromGitHub { + owner = "imageworks"; + repo = "OpenShadingLanguage"; + rev = "Release-1.9.9"; + sha256 = "1w6wbz013nirzsiw11c9dpdkcwlfncs5va8q583pdw0q2pfkj5dn"; + }; + + 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; + }; +} diff --git a/pkgs/development/compilers/seexpr/default.nix b/pkgs/development/compilers/seexpr/default.nix new file mode 100644 index 000000000000..2760d6ad5d03 --- /dev/null +++ b/pkgs/development/compilers/seexpr/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, cmake, libpng, zlib, qt4, +bison, flex, mesa_glu, pythonPackages +}: + +stdenv.mkDerivation rec { + name = "seexpr-${version}"; + version = "2.11"; + src = fetchFromGitHub { + owner = "wdas"; + repo = "SeExpr"; + rev = "v2.11"; + sha256 = "0a44k56jf6dl36fwgg4zpc252wq5lf9cblg74mp73k82hxw439l4"; + }; + + buildInputs = [ cmake mesa_glu libpng zlib qt4 pythonPackages.pyqt4 bison flex ]; + meta = with stdenv.lib; { + description = "Embeddable expression evaluation engine from Disney Animation"; + homepage = https://www.disneyanimation.com/technology/seexpr.html; + maintainers = with maintainers; [ hodapp ]; + license = licenses.asl20; + platforms = platforms.linux; + }; +} |