depot/third_party/nixpkgs/pkgs/development/libraries/openimagedenoise/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

23 lines
776 B
Nix

{ stdenv, fetchzip, cmake, tbb, python, ispc }:
stdenv.mkDerivation rec {
pname = "openimagedenoise";
version = "1.2.2";
# 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 = "0wyaarjxkzlvljmpnr7qm06ma2wl1aik3z664gwpzhizswygk6yp";
};
nativeBuildInputs = [ cmake python ispc ];
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;
};
}