bppsuite: fix build (#450255)

This commit is contained in:
Yohann Boniface
2025-10-09 15:50:05 +00:00
committed by GitHub
5 changed files with 15 additions and 6 deletions

View File

@@ -24,11 +24,16 @@ stdenv.mkDerivation rec {
}) })
]; ];
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
'cmake_minimum_required (VERSION 2.8.11)' 'cmake_minimum_required (VERSION 4.1)'
'';
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
postFixup = '' postFixup = ''
substituteInPlace $out/lib/cmake/bpp-core/bpp-core-targets.cmake \ substituteInPlace $out/lib/cmake/bpp-core/bpp-core-targets.cmake \
--replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX' --replace-fail 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
''; '';
# prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES # prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
# of form /nix/store/.../nix/store/.../include, # of form /nix/store/.../nix/store/.../include,

View File

@@ -9,7 +9,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bpp-phyl"; pname = "bpp-phyl";
inherit (bpp-core) version; inherit (bpp-core) version postPatch;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BioPP"; owner = "BioPP";

View File

@@ -9,7 +9,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bpp-popgen"; pname = "bpp-popgen";
inherit (bpp-core) version; inherit (bpp-core) version postPatch;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BioPP"; owner = "BioPP";

View File

@@ -8,7 +8,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bpp-seq"; pname = "bpp-seq";
inherit (bpp-core) version; inherit (bpp-core) version postPatch;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BioPP"; owner = "BioPP";

View File

@@ -2,6 +2,7 @@
stdenv, stdenv,
fetchFromGitHub, fetchFromGitHub,
cmake, cmake,
texinfo,
bpp-core, bpp-core,
bpp-seq, bpp-seq,
bpp-phyl, bpp-phyl,
@@ -11,7 +12,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bppsuite"; pname = "bppsuite";
inherit (bpp-core) version; inherit (bpp-core) version postPatch;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BioPP"; owner = "BioPP";
@@ -20,7 +21,10 @@ stdenv.mkDerivation rec {
sha256 = "1wdwcgczqbc3m116vakvi0129wm3acln3cfc7ivqnalwvi6lrpds"; sha256 = "1wdwcgczqbc3m116vakvi0129wm3acln3cfc7ivqnalwvi6lrpds";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [
cmake
texinfo
];
buildInputs = [ buildInputs = [
bpp-core bpp-core
bpp-seq bpp-seq