aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2019-01-17 11:47:32 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2019-06-17 07:26:00 +0200
commit394bee72dbebfa4519cedcee6d32aae5453ef178 (patch)
treeca10bd522b4d7152351266af2b8f86eba65543f7 /pkgs/applications/science
parentd5cd7dd29c7980b26177ba0d63e9d8a98f52c72d (diff)
ants: fix build with gcc8
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/biology/ants/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/science/biology/ants/default.nix b/pkgs/applications/science/biology/ants/default.nix
index d1a990a5eb2..834d2497e8d 100644
--- a/pkgs/applications/science/biology/ants/default.nix
+++ b/pkgs/applications/science/biology/ants/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, cmake, makeWrapper, itk, vtk }:
+{ stdenv, fetchFromGitHub, fetchpatch, cmake, makeWrapper, itk, vtk }:
stdenv.mkDerivation rec {
_name = "ANTs";
@@ -12,6 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "1hrdwv3m9xh3yf7l0rm2ggxc2xzckfb8srs88g485ibfszx7i03q";
};
+ patches = [
+ # Fix build with gcc8
+ (fetchpatch {
+ url = "https://github.com/ANTsX/ANTs/commit/89af9b2694715bf8204993e032fa132f80cf37bd.patch";
+ sha256 = "1glkrwa1jmxxbmzihycxr576azjqby31jwpj165qc54c91pn0ams";
+ })
+ ];
+
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ itk vtk ];