1 { stdenv, fetchFromGitHub, cmake, bpp-core }:
3 stdenv.mkDerivation rec {
6 inherit (bpp-core) version;
8 src = fetchFromGitHub {
12 sha256 = "1mc09g8jswzsa4wgrfv59jxn15ys3q8s0227p1j838wkphlwn2qk";
15 nativeBuildInputs = [ cmake ];
16 buildInputs = [ bpp-core ];
19 substituteInPlace $out/lib/cmake/${pname}/${pname}-targets.cmake \
20 --replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
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";