2019-08-13 17:48:02 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, git, swig, lua, itk, tcl, tk }:
|
2018-05-09 21:50:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 17:48:02 +01:00
|
|
|
pname = "simpleitk";
|
2019-11-03 04:03:03 +00:00
|
|
|
version = "1.2.3";
|
2018-05-09 21:50:01 +01:00
|
|
|
|
2019-08-13 17:48:02 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SimpleITK";
|
|
|
|
repo = "SimpleITK";
|
|
|
|
rev = "v${version}";
|
2019-11-03 04:03:03 +00:00
|
|
|
sha256 = "0nmsq0qx4jmrrhrc6bfm11wwvyszvfgl45xizw69yra3cv9pgmm6";
|
2018-05-09 21:50:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake git swig ];
|
|
|
|
buildInputs = [ lua itk ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.simpleitk.org;
|
|
|
|
description = "Simplified interface to ITK";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
2019-08-13 17:48:02 +01:00
|
|
|
platforms = platforms.linux;
|
2018-05-09 21:50:01 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|