spdlog: 1.8.5 -> 1.9.2, fix build w/glibc-2.34

Failing Hydra build: https://hydra.nixos.org/build/155163350
This commit is contained in:
Maximilian Bosch
2022-02-27 10:25:40 +01:00
parent bcf8aeff3c
commit f8a7d99e54
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, fmt_8 }:
{ lib, stdenv, fetchFromGitHub, cmake, fmt_8, fetchpatch }:
let
generic = { version, sha256 }:
@@ -13,6 +13,14 @@ let
inherit sha256;
};
patches = [
# glibc 2.34 compat
(fetchpatch {
url = "https://github.com/gabime/spdlog/commit/d54b8e89c058f3cab2b32b3e9a2b49fd171d5895.patch";
sha256 = "sha256-pb7cREF90GXb5Mbs8xFLQ+eLo6Xum13/xYa8JUgJlbI=";
})
];
nativeBuildInputs = [ cmake ];
# spdlog <1.3 uses a bundled version of fmt
propagatedBuildInputs = lib.optional (lib.versionAtLeast version "1.3") fmt_8;