mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
a58e93bd78
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/simpleitk/versions. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - found 1.1.0 with grep in /nix/store/926vcv62wgj9nyj4z4yw6hxi64yaqha8-simpleitk-1.1.0 - directory tree listing: https://gist.github.com/fc471fd5a722b3d1303143f4ca87457d - du listing: https://gist.github.com/6f050e82917acd9dc266df3c2c3cb81b
30 lines
824 B
Nix
30 lines
824 B
Nix
{ stdenv, fetchurl, cmake, git, swig, lua, itk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "simpleitk";
|
|
version = "1.1.0";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://sourceforge.net/projects/${pname}/files/SimpleITK/${version}/Source/SimpleITK-${version}.tar.gz";
|
|
sha256 = "01y8s73mw4yabqir2f8qp5zc1c0y6szi18rr4zwgsxz62g4drzgm";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake git swig ];
|
|
buildInputs = [ lua itk ];
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_CXX_FLAGS='-Wno-attributes'" ];
|
|
|
|
checkPhase = "ctest";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.simpleitk.org;
|
|
description = "Simplified interface to ITK";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
platforms = platforms.unix;
|
|
license = licenses.asl20;
|
|
};
|
|
}
|