Unverified Commit 4aa5395f authored by Vincent Laporte's avatar Vincent Laporte
Browse files

bppsuite: fix build

parent 0bdbdb39
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -24,11 +24,16 @@ stdenv.mkDerivation rec {
    })
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt --replace-fail \
      'cmake_minimum_required (VERSION 2.8.11)' 'cmake_minimum_required (VERSION 4.1)'
  '';

  nativeBuildInputs = [ cmake ];

  postFixup = ''
    substituteInPlace $out/lib/cmake/bpp-core/bpp-core-targets.cmake  \
      --replace 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
      --replace-fail 'set(_IMPORT_PREFIX' '#set(_IMPORT_PREFIX'
  '';
  # prevents cmake from exporting incorrect INTERFACE_INCLUDE_DIRECTORIES
  # of form /nix/store/.../nix/store/.../include,
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
stdenv.mkDerivation rec {
  pname = "bpp-phyl";

  inherit (bpp-core) version;
  inherit (bpp-core) version postPatch;

  src = fetchFromGitHub {
    owner = "BioPP";
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
stdenv.mkDerivation rec {
  pname = "bpp-popgen";

  inherit (bpp-core) version;
  inherit (bpp-core) version postPatch;

  src = fetchFromGitHub {
    owner = "BioPP";
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
stdenv.mkDerivation rec {
  pname = "bpp-seq";

  inherit (bpp-core) version;
  inherit (bpp-core) version postPatch;

  src = fetchFromGitHub {
    owner = "BioPP";
+6 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  stdenv,
  fetchFromGitHub,
  cmake,
  texinfo,
  bpp-core,
  bpp-seq,
  bpp-phyl,
@@ -11,7 +12,7 @@
stdenv.mkDerivation rec {
  pname = "bppsuite";

  inherit (bpp-core) version;
  inherit (bpp-core) version postPatch;

  src = fetchFromGitHub {
    owner = "BioPP";
@@ -20,7 +21,10 @@ stdenv.mkDerivation rec {
    sha256 = "1wdwcgczqbc3m116vakvi0129wm3acln3cfc7ivqnalwvi6lrpds";
  };

  nativeBuildInputs = [ cmake ];
  nativeBuildInputs = [
    cmake
    texinfo
  ];
  buildInputs = [
    bpp-core
    bpp-seq