about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2017-07-15 20:15:44 +0200
committerGitHub <noreply@github.com>2017-07-15 20:15:44 +0200
commit063e81145d67c3e0233491e4f16c9ad78a53d34b (patch)
tree6642c551c2cca83f8744d4f26319f99113aaf0fe /pkgs/development
parent681f866e22756a8a24cdec5ee57d8a0245d0df4b (diff)
parentb21805d972bd86668490c88cdaa79829921a723b (diff)
Merge pull request #26036 from bcdarwin/elastix
elastix: init at 4.8
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/science/biology/elastix/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/libraries/science/biology/elastix/default.nix b/pkgs/development/libraries/science/biology/elastix/default.nix
new file mode 100644
index 0000000000000..55647713e6eeb
--- /dev/null
+++ b/pkgs/development/libraries/science/biology/elastix/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchFromGitHub, cmake, itk, python }:
+
+stdenv.mkDerivation rec {
+  _name    = "elastix";
+  _version = "4.8";
+  name  = "${_name}-${_version}";
+
+  src = fetchFromGitHub {
+    owner  = "SuperElastix";
+    repo   = "elastix";
+    rev    = "ef057ff89233822b26b04b31c3c043af57d5deff";
+    sha256 = "0gm3a8dgqww50h6zld9ighjk92wlpybpimjwfz4s5h82vdjsvxrm";
+  };
+
+  nativeBuildInputs = [ cmake python ];
+  buildInputs = [ itk ];
+
+  cmakeFlags = [ "-DUSE_KNNGraphAlphaMutualInformationMetric=OFF" ];
+
+  checkPhase = "ctest";
+
+  meta = with stdenv.lib; {
+    homepage = http://elastix.isi.uu.nl/;
+    description = "Image registration toolkit based on ITK";
+    maintainers = with maintainers; [ bcdarwin ];
+    platforms = platforms.unix;
+    license = licenses.asl20;
+  };
+}