567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
49 lines
933 B
Nix
49 lines
933 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
swig,
|
|
lua,
|
|
elastix,
|
|
itk,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "simpleitk";
|
|
version = "2.5.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SimpleITK";
|
|
repo = "SimpleITK";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-lHpoYGrL7HHOLcYdMKsAPhh7g0hLVsgkRxk1fsmvAzQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
swig
|
|
];
|
|
buildInputs = [
|
|
elastix
|
|
lua
|
|
itk
|
|
];
|
|
|
|
# 2.0.0: linker error building examples
|
|
cmakeFlags = [
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
"-DBUILD_SHARED_LIBS=OFF"
|
|
"-DSimpleITK_USE_ELASTIX=ON"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://www.simpleitk.org";
|
|
description = "Simplified interface to ITK";
|
|
changelog = "https://github.com/SimpleITK/SimpleITK/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.asl20;
|
|
};
|
|
})
|