nixpkgs/pkgs/development/libraries/simpleitk/default.nix

28 lines
719 B
Nix
Raw Normal View History

2020-09-23 18:51:15 +00:00
{ stdenv, fetchFromGitHub, cmake, swig, lua, itk }:
stdenv.mkDerivation rec {
pname = "simpleitk";
2020-09-23 18:51:15 +00:00
version = "2.0.0";
src = fetchFromGitHub {
owner = "SimpleITK";
repo = "SimpleITK";
rev = "v${version}";
2020-09-23 18:51:15 +00:00
sha256 = "1nf3cl3ywqg04446xhkb97kcashrgibsihxn2sqrs81i9d0rw5kn";
};
2020-09-23 18:51:15 +00:00
nativeBuildInputs = [ cmake swig ];
buildInputs = [ lua itk ];
2020-09-23 18:51:15 +00:00
# 2.0.0: linker error building examples
cmakeFlags = [ "-DBUILD_EXAMPLES=OFF" "-DBUILD_SHARED_LIBS=ON" ];
meta = with stdenv.lib; {
2020-09-23 18:51:15 +00:00
homepage = "https://www.simpleitk.org";
description = "Simplified interface to ITK";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.linux;
license = licenses.asl20;
};
}