2020-06-15 15:56:04 +00:00
|
|
|
{ stdenv, fetchzip, cmake, tbb, python, ispc }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openimagedenoise";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "1.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-06-15 15:56:04 +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";
|
|
|
|
sha256 = "1f8s69ixv7nsdap9hc2njli2x75zmlrfq8cy79772gz83kph8s25";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
nativeBuildInputs = [ cmake python ispc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ tbb ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://openimagedenoise.github.io";
|
|
|
|
description = "High-Performance Denoising Library for Ray Tracing";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.leshainc ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|