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