mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
aa239e96b4
Changing the source from sourceforge to github.
29 lines
741 B
Nix
29 lines
741 B
Nix
{ stdenv, fetchFromGitHub, cmake, git, swig, lua, itk, tcl, tk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "simpleitk";
|
|
version = "1.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SimpleITK";
|
|
repo = "SimpleITK";
|
|
rev = "v${version}";
|
|
sha256 = "1cgq9cxxplv6bkm2zfvcc0lgyh5zw1hbry30k1429n9737wnadaw";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake git swig ];
|
|
buildInputs = [ lua itk ];
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.simpleitk.org;
|
|
description = "Simplified interface to ITK";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
platforms = platforms.linux;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|