aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/simpleitk
diff options
context:
space:
mode:
authorBen Darwin <bcdarwin@gmail.com>2018-05-09 13:50:01 -0700
committerMatthew Justin Bauer <mjbauer95@gmail.com>2018-05-09 15:50:01 -0500
commit1e50e178ae2268ab0fd655a80d9d0c0db0aa62a5 (patch)
treea08e23110aeebfab3f1fa14c1ad8f27816c6dedf /pkgs/development/libraries/simpleitk
parent8a98cf97e92cecba4feda766f4b7ac36cd82f8ea (diff)
simpleitk: init at 1.1.0 (note this only builds the C++ libs, not the Python/Lua/... bindings) (#27451)
* conglomerate: init at 2017-09-10 * simpleitk: init at 1.1.0 (note this only builds the C++ libs, not the Python/Lua/... bindings)
Diffstat (limited to 'pkgs/development/libraries/simpleitk')
-rw-r--r--pkgs/development/libraries/simpleitk/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/libraries/simpleitk/default.nix b/pkgs/development/libraries/simpleitk/default.nix
new file mode 100644
index 000000000000..4802683079d1
--- /dev/null
+++ b/pkgs/development/libraries/simpleitk/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, cmake, git, swig, lua, itk }:
+
+stdenv.mkDerivation rec {
+ pname = "simpleitk";
+ version = "1.0.0";
+ name = "${pname}-${version}";
+
+ src = fetchurl {
+ url = "https://sourceforge.net/projects/${pname}/files/SimpleITK/${version}/Source/SimpleITK-${version}.tar.gz";
+ sha256 = "0554j0zp314zhs8isfg31fi6gvsl7xq3xjyyxkx1b1mjkn5qx673";
+ };
+
+ nativeBuildInputs = [ cmake git swig ];
+ buildInputs = [ lua itk ];
+
+ cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
+
+ checkPhase = "ctest";
+
+ enableParallelBuilding = true;
+
+ meta = with stdenv.lib; {
+ homepage = http://www.simpleitk.org;
+ description = "Simplified interface to ITK";
+ maintainers = with maintainers; [ bcdarwin ];
+ platforms = platforms.unix;
+ license = licenses.asl20;
+ };
+}