Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / openimagedenoise / default.nix
blob532ee7a095718d20bf30598394a9aad5c4df9c81
1 { lib, stdenv, fetchzip, cmake, tbb, python3, ispc }:
3 stdenv.mkDerivation rec {
4   pname = "openimagedenoise";
5   version = "1.4.3";
7   # The release tarballs include pretrained weights, which would otherwise need to be fetched with git-lfs
8   src = fetchzip {
9     url = "https://github.com/OpenImageDenoise/oidn/releases/download/v${version}/oidn-${version}.src.tar.gz";
10     sha256 = "sha256-i73w/Vkr5TPLB1ulPbPU4OVGwdNlky1brfarueD7akE=";
11   };
13   nativeBuildInputs = [ cmake python3 ispc ];
14   buildInputs = [ tbb ];
16   cmakeFlags = [
17     "-DTBB_ROOT=${tbb}"
18     "-DTBB_INCLUDE_DIR=${tbb.dev}/include"
19   ];
21   meta = with lib; {
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";
28   };