about summary refs log tree commit diff
path: root/pkgs/applications/science/biology/EZminc
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2017-09-26 18:08:14 -0400
committerBen Darwin <bcdarwin@gmail.com>2018-04-09 18:07:15 -0400
commitde2f36982bd22053d0686dbec6aa8a7fe5fddfcb (patch)
tree7e113e51e5385d28bddcf4ad16ff8e20feda3d5a /pkgs/applications/science/biology/EZminc
parentc9db4cabc8e5e630a5fc9e3533c3954370907139 (diff)
downloadnixlib-de2f36982bd22053d0686dbec6aa8a7fe5fddfcb.tar
nixlib-de2f36982bd22053d0686dbec6aa8a7fe5fddfcb.tar.gz
nixlib-de2f36982bd22053d0686dbec6aa8a7fe5fddfcb.tar.bz2
nixlib-de2f36982bd22053d0686dbec6aa8a7fe5fddfcb.tar.lz
nixlib-de2f36982bd22053d0686dbec6aa8a7fe5fddfcb.tar.xz
nixlib-de2f36982bd22053d0686dbec6aa8a7fe5fddfcb.tar.zst
nixlib-de2f36982bd22053d0686dbec6aa8a7fe5fddfcb.zip
ezminc: init at 2017-08-29
Diffstat (limited to 'pkgs/applications/science/biology/EZminc')
-rw-r--r--pkgs/applications/science/biology/EZminc/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/science/biology/EZminc/default.nix b/pkgs/applications/science/biology/EZminc/default.nix
new file mode 100644
index 000000000000..20d88eb3aafb
--- /dev/null
+++ b/pkgs/applications/science/biology/EZminc/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, cmake, libminc, bicpl, itk, fftwFloat, gsl }:
+
+stdenv.mkDerivation rec { pname = "EZminc";
+  name  = "${pname}-2017-08-29";
+
+  src = fetchFromGitHub {
+    owner  = "BIC-MNI";
+    repo   = pname;
+    rev    = "4e017236cb6e7f6e07507446b18b759c584b6fc3";
+    sha256 = "1pg06x42pgsg7zy7dz9wf6ajakkm2n8by64lg9z64qi8qqy82b8v";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ itk libminc bicpl fftwFloat gsl ];
+
+  cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/"
+                 "-DEZMINC_BUILD_TOOLS=TRUE"
+                 "-DEZMINC_BUILD_MRFSEG=TRUE"
+                 "-DEZMINC_BUILD_DD=TRUE" ];
+
+  checkPhase = "ctest --output-on-failure ../tests/";  # but ctest doesn't find the tests ...
+
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    homepage = "https://github.com/BIC-MNI/${pname}";
+    description = "Collection of Perl and shell scripts for processing MINC files";
+    maintainers = with maintainers; [ bcdarwin ];
+    platforms = platforms.unix;
+    license = licenses.free;
+  };
+}