1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/itk/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, cmake, libX11, libuuid, xz, vtk }:
stdenv.mkDerivation rec {
name = "itk-4.11.0";
src = fetchurl {
url = mirror://sourceforge/itk/InsightToolkit-4.11.0.tar.xz;
sha256 = "0axvyds0gads5914g0m70z5q16gzghr0rk0hy3qjpf1k9bkxvcq6";
};
# Clang 4 dislikes signed comparisons of pointers against integers. Should no longer be
# necessary once we get past ITK 4.11.
patches = [ (fetchpatch {
url = "https://github.com/InsightSoftwareConsortium/ITK/commit/d1407a55910ad9c232f3d241833cfd2e59024946.patch";
sha256 = "0h851afkv23fwgkibjss30fkbz4nkfg6rmmm4pfvkwpml23gzz7s";
}) ];
cmakeFlags = [
"-DBUILD_TESTING=OFF"
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_SHARED_LIBS=ON"
2017-03-02 01:55:42 +00:00
"-DModule_ITKIOMINC=ON"
"-DModule_ITKVtkGlue=ON"
"-DModule_ITKReview=ON"
2014-03-14 22:28:49 +00:00
];
enableParallelBuilding = true;
nativeBuildInputs = [ cmake xz ];
2017-03-02 01:55:42 +00:00
buildInputs = [ libX11 libuuid vtk ];
meta = {
description = "Insight Segmentation and Registration Toolkit";
homepage = http://www.itk.org/;
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [viric];
2017-03-15 12:41:20 +00:00
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}