bio-gappa: fix build with gcc15

This commit is contained in:
Xiangyan Sun
2026-04-10 16:08:45 -07:00
parent f97e195236
commit 38e335db8a
2 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/libs/CLI11/include/CLI/Validators.hpp b/libs/CLI11/include/CLI/Validators.hpp
index 536f8a6..3371905 100644
--- a/libs/CLI11/include/CLI/Validators.hpp
+++ b/libs/CLI11/include/CLI/Validators.hpp
@@ -18,6 +18,7 @@
// Could be swapped for filesystem in C++17
#include <sys/stat.h>
#include <sys/types.h>
+#include <cstdint>
namespace CLI {

View File

@@ -8,6 +8,7 @@
libz,
bzip2,
xz,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -34,8 +35,10 @@ stdenv.mkDerivation (finalAttrs: {
xz
];
# CMake 2.8.7 is deprecated and is no longer supported by CMake > 4
# https://github.com/NixOS/nixpkgs/issues/445447
patches = [
./fix-cstdint.patch
];
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"cmake_minimum_required (VERSION 2.8.7 FATAL_ERROR)" \
@@ -52,6 +55,9 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = !stdenv.hostPlatform.isDarwin; # skip on Darwin - missing /libz.1.dylib in sandbox
meta = {
homepage = "https://github.com/lczech/gappa";
description = "Toolkit for analyzing and visualizing phylogenetic (placement) data";