Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, openexr, boost, jemalloc, c-blosc, ilmbase, tbb }: 2 3stdenv.mkDerivation rec 4{ 5 pname = "openvdb"; 6 version = "10.0.1"; 7 8 outputs = [ "out" "dev" ]; 9 10 src = fetchFromGitHub { 11 owner = "AcademySoftwareFoundation"; 12 repo = "openvdb"; 13 rev = "v${version}"; 14 sha256 = "sha256-kaf5gpGYVWinmnRwR/IafE1SJcwmP2psfe/UZdtH1Og="; 15 }; 16 17 nativeBuildInputs = [ cmake ]; 18 19 buildInputs = [ openexr boost tbb jemalloc c-blosc ilmbase ]; 20 21 cmakeFlags = [ "-DOPENVDB_CORE_STATIC=OFF" ]; 22 23 postFixup = '' 24 substituteInPlace $dev/lib/cmake/OpenVDB/FindOpenVDB.cmake \ 25 --replace \''${OPENVDB_LIBRARYDIR} $out/lib \ 26 --replace \''${OPENVDB_INCLUDEDIR} $dev/include 27 ''; 28 29 meta = with lib; { 30 description = "An open framework for voxel"; 31 homepage = "https://www.openvdb.org"; 32 maintainers = [ maintainers.guibou ]; 33 platforms = platforms.unix; 34 license = licenses.mpl20; 35 }; 36}