7 , staticBuild ? stdenv.hostPlatform.isStatic
14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 hash = "sha256-F7khXbMilbh5b+eKnzcB0fPPWQqUHqAYPWJb83OnUKQ=";
25 nativeBuildInputs = [ cmake ];
26 # Required to build tests, even if they aren't executed
27 buildInputs = [ catch2_3 ];
28 propagatedBuildInputs = [ fmt ];
31 "-DSPDLOG_BUILD_SHARED=${if staticBuild then "OFF" else "ON"}"
32 "-DSPDLOG_BUILD_STATIC=${if staticBuild then "ON" else "OFF"}"
33 "-DSPDLOG_BUILD_EXAMPLE=OFF"
34 "-DSPDLOG_BUILD_BENCH=OFF"
35 "-DSPDLOG_BUILD_TESTS=ON"
36 "-DSPDLOG_FMT_EXTERNAL=ON"
39 outputs = [ "out" "doc" "dev" ] ;
42 mkdir -p $out/share/doc/spdlog
43 cp -rv ../example $out/share/doc/spdlog
53 description = "Very fast, header only, C++ logging library";
54 homepage = "https://github.com/gabime/spdlog";
55 license = licenses.mit;
56 maintainers = with maintainers; [ obadz ];
57 platforms = platforms.all;