linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / science / biology / bpp-phyl / default.nix
blob8ff6ad433fb51b52acfa0e65a61f101ad4aaa950
1 { stdenv, fetchFromGitHub, cmake, bpp-core, bpp-seq }:
3 stdenv.mkDerivation rec {
4   pname = "bpp-phyl";
6   inherit (bpp-core) version;
8   src = fetchFromGitHub {
9     owner = "BioPP";
10     repo = pname;
11     rev = "v${version}";
12     sha256 = "192zks6wyk903n06c2lbsscdhkjnfwms8p7jblsmk3lvjhdipb20";
13   };
15   nativeBuildInputs = [ cmake ];
16   buildInputs = [ bpp-core bpp-seq ];
18   preCheck = ''
19     export LD_LIBRARY_PATH=$(pwd)/src
20   '';
22   postFixup = ''
23     substituteInPlace $out/lib/cmake/${pname}/${pname}-targets.cmake  \
24       --replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
25   '';
27   doCheck = !stdenv.isDarwin;
29   meta = bpp-core.meta // {
30     changelog = "https://github.com/BioPP/bpp-phyl/blob/master/ChangeLog";
31   };