Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
901 B
Nix
38 lines
901 B
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
bpp-core,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bpp-seq";
|
|
|
|
inherit (bpp-core) version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BioPP";
|
|
repo = "bpp-seq";
|
|
rev = "v${version}";
|
|
sha256 = "1mc09g8jswzsa4wgrfv59jxn15ys3q8s0227p1j838wkphlwn2qk";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ bpp-core ];
|
|
|
|
postFixup = ''
|
|
substituteInPlace $out/lib/cmake/bpp-seq/bpp-seq-targets.cmake \
|
|
--replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
|
|
'';
|
|
# prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
|
|
# of form /nix/store/.../nix/store/.../include,
|
|
# probably due to relative vs absolute path issue
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
meta = bpp-core.meta // {
|
|
homepage = "https://github.com/BioPP/bpp-seq";
|
|
changelog = "https://github.com/BioPP/bpp-seq/blob/master/ChangeLog";
|
|
};
|
|
}
|