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 14 }; 15 15 16 16 nativeBuildInputs = [ cmake ]; 17 - buildInputs = [ fmt ]; 17 + # spdlog <1.3 uses a bundled version of fmt 18 + propagatedBuildInputs = lib.optional (lib.versionAtLeast version "1.3") fmt; 18 19 19 20 cmakeFlags = [ 20 21 "-DSPDLOG_BUILD_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" ··· 25 26 "-DSPDLOG_FMT_EXTERNAL=ON" 26 27 ]; 27 28 28 - outputs = [ "out" "doc" ]; 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"; 29 32 30 33 postInstall = '' 31 34 mkdir -p $out/share/doc/spdlog