summary refs log tree commit diff
path: root/pkgs/development/libraries/science/biology
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2020-04-27 15:04:43 -0400
committerBen Darwin <bcdarwin@gmail.com>2020-05-05 00:08:04 -0400
commit5caa76705bd839fb6733f64740dec95d7b2fefc5 (patch)
tree6f3970658470d2fdf611d80ddd7be48193cbd219 /pkgs/development/libraries/science/biology
parent6f1430a8021274aa4ec4c7b52c3457e37574c094 (diff)
downloadnixpkgs-5caa76705bd839fb6733f64740dec95d7b2fefc5.tar
nixpkgs-5caa76705bd839fb6733f64740dec95d7b2fefc5.tar.gz
nixpkgs-5caa76705bd839fb6733f64740dec95d7b2fefc5.tar.bz2
nixpkgs-5caa76705bd839fb6733f64740dec95d7b2fefc5.tar.lz
nixpkgs-5caa76705bd839fb6733f64740dec95d7b2fefc5.tar.xz
nixpkgs-5caa76705bd839fb6733f64740dec95d7b2fefc5.tar.zst
nixpkgs-5caa76705bd839fb6733f64740dec95d7b2fefc5.zip
elastix: update for ITK 5.1.0
- fetch patches to build elastix 5.0 with ITK 5.1
- update 'platforms': builds on Darwin, fails on aarch64
Diffstat (limited to 'pkgs/development/libraries/science/biology')
-rw-r--r--pkgs/development/libraries/science/biology/elastix/default.nix20
1 files changed, 17 insertions, 3 deletions
diff --git a/pkgs/development/libraries/science/biology/elastix/default.nix b/pkgs/development/libraries/science/biology/elastix/default.nix
index e5565aae29b..4d98b12928f 100644
--- a/pkgs/development/libraries/science/biology/elastix/default.nix
+++ b/pkgs/development/libraries/science/biology/elastix/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, cmake, itk, python3 }:
+{ stdenv, fetchFromGitHub, fetchpatch, cmake, itk, python3 }:
 
 stdenv.mkDerivation rec {
   pname    = "elastix";
@@ -11,10 +11,24 @@ stdenv.mkDerivation rec {
     sha256 = "1zrl7rz4lwsx88b2shnl985f3a97lmp4ksbd437h9y0hfjq8l0lj";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "itk-5.1-compat.patch";
+      url = "https://github.com/SuperElastix/elastix/commit/402e9a26f22f805b8f2db00c00e59f75fa1783ad.patch";
+      sha256 = "1il6gc1lgy78i0w6gkkppr61nh6g0yjspbfk19hcz20778m5jhz9";
+    })
+    (fetchpatch {
+      name = "fix-osx-build.patch";
+      url = "https://github.com/SuperElastix/elastix/commit/52e1dc3928046f9fbb85d4b2ecd0d5175fa9695d.patch";
+      sha256 = "1hf7kgx1jv497pf0x5wj79sy1wncxcvhrkix9w086lcr8zwxvn9q";
+    })
+  ];
+
+
   nativeBuildInputs = [ cmake python3 ];
   buildInputs = [ itk ];
 
-  doCheck = true;
+  doCheck = !stdenv.isDarwin;  # usual dynamic linker issues
 
   preCheck = "
     export LD_LIBRARY_PATH=$(pwd)/bin
@@ -24,7 +38,7 @@ stdenv.mkDerivation rec {
     homepage = "http://elastix.isi.uu.nl/";
     description = "Image registration toolkit based on ITK";
     maintainers = with maintainers; [ bcdarwin ];
-    platforms = platforms.linux;
+    platforms = platforms.x86_64;  # libitkpng linker issues with ITK 5.1
     license = licenses.asl20;
   };
 }