From 67c0d5b95c33b3eacdc320234eb32ee635f26d31 Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Sat, 23 Jan 2021 13:28:36 +0100 Subject: [PATCH] spdlog_1: add support for pkgsStatic --- pkgs/development/libraries/spdlog/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/spdlog/default.nix b/pkgs/development/libraries/spdlog/default.nix index 1bd73990443e..ac74b74ccf1e 100644 --- a/pkgs/development/libraries/spdlog/default.nix +++ b/pkgs/development/libraries/spdlog/default.nix @@ -17,7 +17,8 @@ let buildInputs = [ fmt ]; cmakeFlags = [ - "-DSPDLOG_BUILD_SHARED=ON" + "-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" + "-DSPDLOG_BUILD_STATIC=${if stdenv.hostPlatform.isStatic then "ON" else "OFF"}" "-DSPDLOG_BUILD_EXAMPLE=OFF" "-DSPDLOG_BUILD_BENCH=OFF" "-DSPDLOG_BUILD_TESTS=ON"