openimagedenoise: Formatting

With nixfmt-rfc-style. Also use cmakeFeature to build cmake args.
This commit is contained in:
Andrew Marshall 2024-03-26 18:36:11 -04:00
parent 44d0940ea5
commit 15abe62244
1 changed files with 16 additions and 4 deletions

View File

@ -1,4 +1,12 @@
{ lib, stdenv, fetchzip, cmake, tbb, python3, ispc }:
{
cmake,
fetchzip,
ispc,
lib,
python3,
stdenv,
tbb,
}:
stdenv.mkDerivation rec {
pname = "openimagedenoise";
@ -10,12 +18,16 @@ stdenv.mkDerivation rec {
sha256 = "sha256-i73w/Vkr5TPLB1ulPbPU4OVGwdNlky1brfarueD7akE=";
};
nativeBuildInputs = [ cmake python3 ispc ];
nativeBuildInputs = [
cmake
python3
ispc
];
buildInputs = [ tbb ];
cmakeFlags = [
"-DTBB_ROOT=${tbb}"
"-DTBB_INCLUDE_DIR=${tbb.dev}/include"
(lib.cmakeFeature "TBB_INCLUDE_DIR" "${tbb.dev}/include")
(lib.cmakeFeature "TBB_ROOT" "${tbb}")
];
meta = with lib; {