1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub { owner = "BioPP";
10 sha256 = "0ma2cl677l7s0n5sffh66cy9lxp5wycm50f121g8rx85p95vkgwv";
13 nativeBuildInputs = [ cmake ];
16 export LD_LIBRARY_PATH=$(pwd)/src
20 substituteInPlace $out/lib/cmake/bpp-core/bpp-core-targets.cmake \
21 --replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
23 # prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
24 # of form /nix/store/.../nix/store/.../include,
25 # probably due to relative vs absolute path issue
27 doCheck = !stdenv.isDarwin;
30 homepage = "http://biopp.univ-montp2.fr/wiki/index.php/Main_Page";
31 changelog = "https://github.com/BioPP/bpp-core/blob/master/ChangeLog";
32 description = "C++ bioinformatics libraries and tools";
33 maintainers = with maintainers; [ bcdarwin ];
34 license = licenses.cecill20;