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

View File

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