3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/openimagedenoise/default.nix
2021-08-17 10:38:58 -07:00

25 lines
865 B
Nix

{ lib, stdenv, fetchzip, cmake, tbb, python3, ispc }:
stdenv.mkDerivation rec {
pname = "openimagedenoise";
version = "1.4.1";
# 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-TQ7cL0/6pnSTuW21DESA5I3S/C1BHStrWK9yaPoim6E=";
};
nativeBuildInputs = [ cmake python3 ispc ];
buildInputs = [ 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";
};
}