summary refs log tree commit diff
path: root/pkgs/development/libraries/spdlog
diff options
context:
space:
mode:
authorDrew Risinger <drewrisinger@users.noreply.github.com>2020-10-14 15:32:17 -0400
committerDrew Risinger <drewrisinger@users.noreply.github.com>2020-11-30 20:49:13 -0500
commitc19f3623a2453a8a7c810a875e09dea08ef42f97 (patch)
tree562c09b10bd3e58494d99342a231326f309cfe6a /pkgs/development/libraries/spdlog
parentd7de691b1ba369e12936d7250d4269f2cb8c7a05 (diff)
spdlog: build shared library
Diffstat (limited to 'pkgs/development/libraries/spdlog')
-rw-r--r--pkgs/development/libraries/spdlog/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/spdlog/default.nix b/pkgs/development/libraries/spdlog/default.nix
index 0638ec47c5516..2022ec7caaa5f 100644
--- a/pkgs/development/libraries/spdlog/default.nix
+++ b/pkgs/development/libraries/spdlog/default.nix
@@ -16,6 +16,7 @@ let
       nativeBuildInputs = [ cmake ];
 
       cmakeFlags = [
+        "-DSPDLOG_BUILD_SHARED=ON"
         "-DSPDLOG_BUILD_EXAMPLE=OFF"
         "-DSPDLOG_BUILD_BENCH=OFF"
         "-DSPDLOG_BUILD_TESTS=ON"
@@ -29,6 +30,7 @@ let
       '';
 
       doCheck = true;
+      preCheck = "export LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH";
 
       meta = with stdenv.lib; {
         description    = "Very fast, header only, C++ logging library";