nixpkgs/pkgs/development/libraries/openimagedenoise/default.nix

24 lines
775 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, cmake, tbb, python3, ispc }:
2020-03-16 17:15:53 +00:00
stdenv.mkDerivation rec {
pname = "openimagedenoise";
version = "1.3.0";
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";
sha256 = "sha256-ls0F2D5pC+wqhQn1Zh8m8Q/KoK7rAkhKatTY9k+letQ=";
2020-03-16 17:15:53 +00:00
};
nativeBuildInputs = [ cmake python3 ispc ];
2020-03-16 17:15:53 +00:00
buildInputs = [ tbb ];
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;
};
}