depot/third_party/nixpkgs/pkgs/development/libraries/simpleitk/default.nix
Default email 7cbac10661 Project import generated by Copybara.
GitOrigin-RevId: a371c1071161104d329f6a85d922fd92b7cbab63
2020-11-12 09:05:59 +00:00

27 lines
719 B
Nix

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