nixpkgs/pkgs/development/libraries/itk/default.nix

30 lines
847 B
Nix
Raw Normal View History

2014-03-15 02:28:49 +04:00
{stdenv, fetchurl, cmake, libX11, libuuid, xz, sharedLibs ? false}:
stdenv.mkDerivation rec {
2014-03-15 02:28:49 +04:00
name = "itk${stdenv.lib.optionalString sharedLibs ''-shared''}-4.0.0";
src = fetchurl {
url = mirror://sourceforge/itk/InsightToolkit-4.0.0.tar.xz;
sha256 = "05z49sw612cbyiaghcsda0xylrkf06jh81ql79si5632w1hpgbd9";
};
2014-03-15 02:28:49 +04:00
cmakeFlags = [ "-DBUILD_TESTING=OFF" "-DBUILD_EXAMPLES=OFF" ]
++ stdenv.lib.optional sharedLibs [
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_CXX_FLAGS=-fPIC"
];
enableParallelBuilding = true;
nativeBuildInputs = [ cmake xz ];
buildInputs = [ libX11 libuuid ];
meta = {
description = "Insight Segmentation and Registration Toolkit";
homepage = http://www.itk.org/;
license = "BSD";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}