anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / development / libraries / simpleitk / default.nix
blobc17064729f96182404e5a38bd5a48325122897c4
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , swig
6 , lua
7 , elastix
8 , itk
9 }:
11 stdenv.mkDerivation (finalAttrs: {
12   pname = "simpleitk";
13   version = "2.4.0";
15   src = fetchFromGitHub {
16     owner = "SimpleITK";
17     repo = "SimpleITK";
18     rev = "refs/tags/v${finalAttrs.version}";
19     hash = "sha256-/FV5NAM9DJ54Vg6/5yn9DCybry+a8lS3fQ3HWLOeOTA=";
20   };
22   nativeBuildInputs = [
23     cmake
24     swig
25   ];
26   buildInputs = [
27     elastix
28     lua
29     itk
30   ];
32   # 2.0.0: linker error building examples
33   cmakeFlags = [
34     "-DBUILD_EXAMPLES=OFF"
35     "-DBUILD_SHARED_LIBS=OFF"
36     "-DSimpleITK_USE_ELASTIX=ON"
37   ];
39   meta = with lib; {
40     homepage = "https://www.simpleitk.org";
41     description = "Simplified interface to ITK";
42     changelog = "https://github.com/SimpleITK/SimpleITK/releases/tag/v${finalAttrs.version}";
43     maintainers = with maintainers; [ bcdarwin ];
44     platforms = platforms.linux;
45     license = licenses.asl20;
46   };