linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / science / biology / bpp-core / default.nix
blobd1eb096e08e61204e3784d860d7154a6a70494c1
1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "bpp-core";
5   version = "2.4.1";
7   src = fetchFromGitHub { owner = "BioPP";
8     repo = pname;
9     rev = "v${version}";
10     sha256 = "0ma2cl677l7s0n5sffh66cy9lxp5wycm50f121g8rx85p95vkgwv";
11   };
13   nativeBuildInputs = [ cmake ];
15   preCheck = ''
16     export LD_LIBRARY_PATH=$(pwd)/src
17   '';
19   postFixup = ''
20     substituteInPlace $out/lib/cmake/bpp-core/bpp-core-targets.cmake  \
21       --replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
22   '';
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;
29   meta = with lib; {
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;
35   };