1 { lib, stdenv, fetchzip, cmake, tbb, python3, ispc }:
3 stdenv.mkDerivation rec {
4 pname = "openimagedenoise";
7 # The release tarballs include pretrained weights, which would otherwise need to be fetched with git-lfs
9 url = "https://github.com/OpenImageDenoise/oidn/releases/download/v${version}/oidn-${version}.src.tar.gz";
10 sha256 = "sha256-i73w/Vkr5TPLB1ulPbPU4OVGwdNlky1brfarueD7akE=";
13 nativeBuildInputs = [ cmake python3 ispc ];
14 buildInputs = [ tbb ];
18 "-DTBB_INCLUDE_DIR=${tbb.dev}/include"
22 homepage = "https://openimagedenoise.github.io";
23 description = "High-Performance Denoising Library for Ray Tracing";
24 license = licenses.asl20;
25 maintainers = [ maintainers.leshainc ];
26 platforms = platforms.unix;
27 changelog = "https://github.com/OpenImageDenoise/oidn/blob/v${version}/CHANGELOG.md";