Skip to content

Commit

Permalink
Merge pull request #118419 from erictapen/openimagedenoise-1.3.0
Browse files Browse the repository at this point in the history
openimagedenoise: 1.2.2 -> 1.3.0
  • Loading branch information
SuperSandro2000 authored Apr 12, 2021
2 parents b4a849d + 0e31f60 commit 8312d97
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
23 changes: 23 additions & 0 deletions pkgs/development/libraries/openimagedenoise/1_2_x.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ lib, stdenv, fetchzip, cmake, tbb, python3, 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 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;
};
}
8 changes: 4 additions & 4 deletions pkgs/development/libraries/openimagedenoise/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ lib, stdenv, fetchzip, cmake, tbb, python, ispc }:
{ lib, stdenv, fetchzip, cmake, tbb, python3, ispc }:

stdenv.mkDerivation rec {
pname = "openimagedenoise";
version = "1.2.2";
version = "1.3.0";

# 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";
sha256 = "sha256-ls0F2D5pC+wqhQn1Zh8m8Q/KoK7rAkhKatTY9k+letQ=";
};

nativeBuildInputs = [ cmake python ispc ];
nativeBuildInputs = [ cmake python3 ispc ];
buildInputs = [ tbb ];

meta = with lib; {
Expand Down
6 changes: 5 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6388,7 +6388,9 @@ in

lzip = callPackage ../tools/compression/lzip { };

luxcorerender = callPackage ../tools/graphics/luxcorerender { };
luxcorerender = callPackage ../tools/graphics/luxcorerender {
openimagedenoise = openimagedenoise_1_2_x;
};

xz = callPackage ../tools/compression/xz { };

Expand Down Expand Up @@ -7091,6 +7093,8 @@ in

openimagedenoise = callPackage ../development/libraries/openimagedenoise { };

openimagedenoise_1_2_x = callPackage ../development/libraries/openimagedenoise/1_2_x.nix { };

openmvg = callPackage ../applications/science/misc/openmvg { };

openmvs = callPackage ../applications/science/misc/openmvs { };
Expand Down

0 comments on commit 8312d97

Please sign in to comment.