0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

spdlog: 1.15.0 -> 1.15.1 (#380837)

This commit is contained in:
Gaétan Lepage 2025-02-10 22:42:00 +01:00 committed by GitHub
commit a33d7712d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,25 +1,27 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, fmt
, catch2_3
, staticBuild ? stdenv.hostPlatform.isStatic
{
lib,
stdenv,
fetchFromGitHub,
cmake,
fmt,
catch2_3,
staticBuild ? stdenv.hostPlatform.isStatic,
# tests
, bear
, tiledb
# passthru
bear,
tiledb,
nix-update-script,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "spdlog";
version = "1.15.1";
src = fetchFromGitHub {
owner = "gabime";
repo = "spdlog";
rev = "v${version}";
hash = "sha256-4QZVCounDbtkP+58fejHGWjquWT3b03b9TNGs45dN7c=";
repo = "spdlog";
tag = "v${finalAttrs.version}";
hash = "sha256-4QZVCounDbtkP+58fejHGWjquWT3b03b9TNGs45dN7c=";
};
nativeBuildInputs = [ cmake ];
@ -28,15 +30,19 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ fmt ];
cmakeFlags = [
"-DSPDLOG_BUILD_SHARED=${if staticBuild then "OFF" else "ON"}"
"-DSPDLOG_BUILD_STATIC=${if staticBuild then "ON" else "OFF"}"
"-DSPDLOG_BUILD_EXAMPLE=OFF"
"-DSPDLOG_BUILD_BENCH=OFF"
"-DSPDLOG_BUILD_TESTS=ON"
"-DSPDLOG_FMT_EXTERNAL=ON"
(lib.cmakeBool "SPDLOG_BUILD_SHARED" (!staticBuild))
(lib.cmakeBool "SPDLOG_BUILD_STATIC" staticBuild)
(lib.cmakeBool "SPDLOG_BUILD_EXAMPLE" false)
(lib.cmakeBool "SPDLOG_BUILD_BENCH" false)
(lib.cmakeBool "SPDLOG_BUILD_TESTS" true)
(lib.cmakeBool "SPDLOG_FMT_EXTERNAL" true)
];
outputs = [ "out" "doc" "dev" ] ;
outputs = [
"out"
"doc"
"dev"
];
postInstall = ''
mkdir -p $out/share/doc/spdlog
@ -50,15 +56,19 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru.tests = {
inherit bear tiledb;
passthru = {
tests = {
inherit bear tiledb;
};
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Very fast, header only, C++ logging library";
homepage = "https://github.com/gabime/spdlog";
license = licenses.mit;
maintainers = with maintainers; [ obadz ];
platforms = platforms.all;
meta = {
description = "Very fast, header only, C++ logging library";
homepage = "https://github.com/gabime/spdlog";
changelog = "https://github.com/gabime/spdlog/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ obadz ];
platforms = lib.platforms.all;
};
}
})