Files
nixpkgs/pkgs/by-name/bp/bpp-seq/package.nix
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

38 lines
932 B
Nix

{
stdenv,
fetchFromGitHub,
cmake,
bpp-core,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "bpp-seq";
inherit (bpp-core) version postPatch;
src = fetchFromGitHub {
owner = "BioPP";
repo = "bpp-seq";
rev = "v${finalAttrs.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";
};
})