15abe62244
With nixfmt-rfc-style. Also use cmakeFeature to build cmake args.
42 lines
1022 B
Nix
42 lines
1022 B
Nix
{
|
|
cmake,
|
|
fetchzip,
|
|
ispc,
|
|
lib,
|
|
python3,
|
|
stdenv,
|
|
tbb,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "openimagedenoise";
|
|
version = "1.4.3";
|
|
|
|
# The release tarballs include pretrained weights, which would otherwise need to be fetched with git-lfs
|
|
src = fetchzip {
|
|
url = "https://github.com/OpenImageDenoise/oidn/releases/download/v${version}/oidn-${version}.src.tar.gz";
|
|
sha256 = "sha256-i73w/Vkr5TPLB1ulPbPU4OVGwdNlky1brfarueD7akE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
python3
|
|
ispc
|
|
];
|
|
buildInputs = [ tbb ];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeFeature "TBB_INCLUDE_DIR" "${tbb.dev}/include")
|
|
(lib.cmakeFeature "TBB_ROOT" "${tbb}")
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://openimagedenoise.github.io";
|
|
description = "High-Performance Denoising Library for Ray Tracing";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.leshainc ];
|
|
platforms = platforms.unix;
|
|
changelog = "https://github.com/OpenImageDenoise/oidn/blob/v${version}/CHANGELOG.md";
|
|
};
|
|
}
|