From 6a66e91d212f98698d9c108182970640421c9a93 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 19 Jan 2024 08:12:45 +0100 Subject: [PATCH] nanoflann: rewrite cmakeFlags --- pkgs/development/libraries/nanoflann/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/nanoflann/default.nix b/pkgs/development/libraries/nanoflann/default.nix index 614d6a5b8e9f..b740e83f4c25 100644 --- a/pkgs/development/libraries/nanoflann/default.nix +++ b/pkgs/development/libraries/nanoflann/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; cmakeFlags = [ - "-DBUILD_EXAMPLES=${if buildExamples then "ON" else "OFF"}" + (lib.cmakeBool "BUILD_EXAMPLES" buildExamples) ]; doCheck = true;