2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchzip, cmake, tbb, python, ispc }:
|
2020-03-16 17:15:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openimagedenoise";
|
2020-07-12 11:09:18 +01:00
|
|
|
version = "1.2.2";
|
2020-03-16 17:15:53 +00:00
|
|
|
|
2020-06-21 16:39:57 +01: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";
|
2020-07-12 11:09:18 +01:00
|
|
|
sha256 = "0wyaarjxkzlvljmpnr7qm06ma2wl1aik3z664gwpzhizswygk6yp";
|
2020-03-16 17:15:53 +00:00
|
|
|
};
|
|
|
|
|
2020-06-21 16:39:57 +01:00
|
|
|
nativeBuildInputs = [ cmake python 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;
|
|
|
|
};
|
|
|
|
}
|