nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, cmake, git, swig, lua, itk, tcl, tk }:
2
3stdenv.mkDerivation rec {
4 pname = "simpleitk";
5 version = "1.2.4";
6
7 src = fetchFromGitHub {
8 owner = "SimpleITK";
9 repo = "SimpleITK";
10 rev = "v${version}";
11 sha256 = "0dvf2407z9n6lczm0l5vzcvpw6r6z1wzrs2gk3dqjrgynq6952qr";
12 };
13
14 nativeBuildInputs = [ cmake git swig ];
15 buildInputs = [ lua itk ];
16
17 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
18
19 enableParallelBuilding = true;
20
21 meta = with stdenv.lib; {
22 homepage = http://www.simpleitk.org;
23 description = "Simplified interface to ITK";
24 maintainers = with maintainers; [ bcdarwin ];
25 platforms = platforms.linux;
26 license = licenses.asl20;
27 };
28}