spdlog: propagate fmt

fmt is needed by the CMake config script.
master
Ben Wolsieffer 2021-01-23 19:57:41 -05:00
parent 4e07176ad7
commit 03ef0aae0a
1 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,8 @@ let
};
nativeBuildInputs = [ cmake ];
buildInputs = [ fmt ];
# spdlog <1.3 uses a bundled version of fmt
propagatedBuildInputs = lib.optional (lib.versionAtLeast version "1.3") fmt;
cmakeFlags = [
"-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
@ -25,7 +26,9 @@ let
"-DSPDLOG_FMT_EXTERNAL=ON"
];
outputs = [ "out" "doc" ];
outputs = [ "out" "doc" ]
# spdlog <1.4 is header only, no need to split libraries and headers
++ lib.optional (lib.versionAtLeast version "1.4") "dev";
postInstall = ''
mkdir -p $out/share/doc/spdlog