depot/third_party/nixpkgs/pkgs/development/libraries/simpleitk/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

29 lines
758 B
Nix

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