lol

Merge pull request #110730 from lopsided98/spdlog-fmt-propagate

spdlog: propagate fmt

authored by

Jörg Thalheim and committed by
GitHub
3285bc82 8ac455d7

+5 -2
+5 -2
pkgs/development/libraries/spdlog/default.nix
··· 14 }; 15 16 nativeBuildInputs = [ cmake ]; 17 - buildInputs = [ fmt ]; 18 19 cmakeFlags = [ 20 "-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" ··· 25 "-DSPDLOG_FMT_EXTERNAL=ON" 26 ]; 27 28 - outputs = [ "out" "doc" ]; 29 30 postInstall = '' 31 mkdir -p $out/share/doc/spdlog
··· 14 }; 15 16 nativeBuildInputs = [ cmake ]; 17 + # spdlog <1.3 uses a bundled version of fmt 18 + propagatedBuildInputs = lib.optional (lib.versionAtLeast version "1.3") fmt; 19 20 cmakeFlags = [ 21 "-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" ··· 26 "-DSPDLOG_FMT_EXTERNAL=ON" 27 ]; 28 29 + outputs = [ "out" "doc" ] 30 + # spdlog <1.4 is header only, no need to split libraries and headers 31 + ++ lib.optional (lib.versionAtLeast version "1.4") "dev"; 32 33 postInstall = '' 34 mkdir -p $out/share/doc/spdlog