2021-04-03 15:48:11 +00:00
|
|
|
{ lib, stdenv, fetchzip, cmake, tbb, python3, ispc }:
|
2020-03-16 17:15:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openimagedenoise";
|
2021-12-07 19:39:41 +00:00
|
|
|
version = "1.4.2";
|
2020-03-16 17:15:53 +00:00
|
|
|
|
2020-06-21 15:39:57 +00:00
|
|
|
# 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";
|
2021-12-07 19:39:41 +00:00
|
|
|
sha256 = "sha256-+7o7b64ORCLn8z0KbnUKhlgPs9mlyDCUiNKJEbusGxw=";
|
2020-03-16 17:15:53 +00:00
|
|
|
};
|
|
|
|
|
2021-04-03 15:48:11 +00:00
|
|
|
nativeBuildInputs = [ cmake python3 ispc ];
|
2020-03-16 17:15:53 +00:00
|
|
|
buildInputs = [ tbb ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-03-16 17:15:53 +00:00
|
|
|
homepage = "https://openimagedenoise.github.io";
|
|
|
|
description = "High-Performance Denoising Library for Ray Tracing";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.leshainc ];
|
|
|
|
platforms = platforms.unix;
|
2021-06-07 10:53:08 +00:00
|
|
|
changelog = "https://github.com/OpenImageDenoise/oidn/blob/v${version}/CHANGELOG.md";
|
2020-03-16 17:15:53 +00:00
|
|
|
};
|
|
|
|
}
|