base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / bp / bpp-seq / package.nix
blob0699c5316835a2e36af1e6d3bca69f3359ee1932
1 { stdenv, fetchFromGitHub, cmake, bpp-core }:
3 stdenv.mkDerivation rec {
4   pname = "bpp-seq";
6   inherit (bpp-core) version;
8   src = fetchFromGitHub {
9     owner = "BioPP";
10     repo = pname;
11     rev = "v${version}";
12     sha256 = "1mc09g8jswzsa4wgrfv59jxn15ys3q8s0227p1j838wkphlwn2qk";
13   };
15   nativeBuildInputs = [ cmake ];
16   buildInputs = [ bpp-core ];
18   postFixup = ''
19     substituteInPlace $out/lib/cmake/${pname}/${pname}-targets.cmake  \
20       --replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
21   '';
22   # prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
23   # of form /nix/store/.../nix/store/.../include,
24   # probably due to relative vs absolute path issue
26   doCheck = !stdenv.hostPlatform.isDarwin;
28   meta = bpp-core.meta // {
29     homepage = "https://github.com/BioPP/bpp-seq";
30     changelog = "https://github.com/BioPP/bpp-seq/blob/master/ChangeLog";
31   };