Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
851 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
itk,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "elastix";
version = "5.2.0";
src = fetchFromGitHub {
owner = "SuperElastix";
repo = "elastix";
tag = finalAttrs.version;
hash = "sha256-edUMj8sjku8EVYaktteIDS+ouaN3kg+CXQCeSWKlLDI=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ itk ];
doCheck = !stdenv.hostPlatform.isDarwin; # usual dynamic linker issues
meta = with lib; {
homepage = "https://elastix.dev";
description = "Image registration toolkit based on ITK";
changelog = "https://github.com/SuperElastix/elastix/releases/tag/${finalAttrs.version}";
maintainers = with maintainers; [ bcdarwin ];
mainProgram = "elastix";
platforms = platforms.x86_64; # libitkpng linker issues with ITK 5.1
license = licenses.asl20;
};
})