about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-12 01:51:59 +0100
committerGitHub <noreply@github.com>2023-12-12 01:51:59 +0100
commit9a67c36f6d276654df0b9afb32e34273f2f81367 (patch)
tree3f66e9108827900407ba793edf3bca0e0c713dbe /pkgs/applications/science
parentf4a98e5a3e007a3bae683a85e50798bb82ef6699 (diff)
parent3ce2a25e504a72e727e6bdf845655344e55ee4a6 (diff)
downloadnixlib-9a67c36f6d276654df0b9afb32e34273f2f81367.tar
nixlib-9a67c36f6d276654df0b9afb32e34273f2f81367.tar.gz
nixlib-9a67c36f6d276654df0b9afb32e34273f2f81367.tar.bz2
nixlib-9a67c36f6d276654df0b9afb32e34273f2f81367.tar.lz
nixlib-9a67c36f6d276654df0b9afb32e34273f2f81367.tar.xz
nixlib-9a67c36f6d276654df0b9afb32e34273f2f81367.tar.zst
nixlib-9a67c36f6d276654df0b9afb32e34273f2f81367.zip
Merge pull request #273382 from wegank/strelka-aarch64
strelka: add aarch64-linux support
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/biology/strelka/default.nix26
1 files changed, 23 insertions, 3 deletions
diff --git a/pkgs/applications/science/biology/strelka/default.nix b/pkgs/applications/science/biology/strelka/default.nix
index 9730601e4e7d..ad6c0d9e5a4c 100644
--- a/pkgs/applications/science/biology/strelka/default.nix
+++ b/pkgs/applications/science/biology/strelka/default.nix
@@ -1,4 +1,4 @@
-{lib, stdenv, fetchFromGitHub, cmake, zlib, python2}:
+{lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, zlib, python2}:
 
 stdenv.mkDerivation rec {
   pname = "strelka";
@@ -11,8 +11,28 @@ stdenv.mkDerivation rec {
     sha256 = "1nykbmim1124xh22nrhrsn8xgjb3s2y7akrdapn9sl1gdych4ppf";
   };
 
+  patches = [
+    # Pull pending fix for gcc-12:
+    #   https://github.com/Illumina/strelka/pull/204
+    (fetchpatch {
+      name = "limits.patch";
+      url = "https://github.com/Illumina/strelka/commit/98272cd345c6e4c672e6a5b7721204fcac0502d6.patch";
+      hash = "sha256-psBiuN32nvwZ+QX51JQjIdRhEE3k7PfwbkD10ckqvZk=";
+    })
+  ];
+
+  postPatch = ''
+    substituteInPlace src/cmake/boost.cmake \
+      --replace "1.58.0" "${boost.version}" \
+      --replace "Boost_USE_STATIC_LIBS ON" "Boost_USE_STATIC_LIBS OFF"
+  '';
+
   nativeBuildInputs = [ cmake ];
-  buildInputs = [ zlib python2 ];
+  buildInputs = [ boost zlib python2 ];
+
+  cmakeFlags = [
+    "-DCMAKE_CXX_STANDARD=14"
+  ];
 
   env.NIX_CFLAGS_COMPILE = toString [
     "-Wno-error=maybe-uninitialized"
@@ -37,7 +57,7 @@ stdenv.mkDerivation rec {
     license = licenses.gpl3;
     homepage = "https://github.com/Illumina/strelka";
     maintainers = with maintainers; [ jbedo ];
-    platforms = [ "x86_64-linux" ];
+    platforms = platforms.linux;
   };
 
 }