mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
31 lines
766 B
Nix
31 lines
766 B
Nix
{stdenv, fetchurl, cmake, libX11, libuuid, xz}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "itk-4.0.0";
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/itk/InsightToolkit-4.0.0.tar.xz;
|
|
sha256 = "05z49sw612cbyiaghcsda0xylrkf06jh81ql79si5632w1hpgbd9";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_TESTING=OFF"
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
"-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 = stdenv.lib.licenses.asl20;
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|