summary refs log tree commit diff
path: root/pkgs/development/libraries/science/biology/elastix/default.nix
blob: 7b9e6b24d4186a4d7c4e04c77cc042204c1dd191 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, cmake, itk, python }:

stdenv.mkDerivation rec {
  pname    = "elastix";
  pversion = "4.9.0";
  name  = "${pname}-${pversion}";

  src = fetchurl {
    url    = "https://github.com/SuperElastix/${pname}/archive/${pversion}.tar.gz";
    sha256 = "02pbln36nq98xxfyqwlxg7b6gmigdq4fgfqr9mym1qn58aj04shg";
  };

  nativeBuildInputs = [ cmake python ];
  buildInputs = [ itk ];

  checkPhase = "ctest";

  meta = with stdenv.lib; {
    homepage = http://elastix.isi.uu.nl/;
    description = "Image registration toolkit based on ITK";
    maintainers = with maintainers; [ bcdarwin ];
    platforms = platforms.linux;
    license = licenses.asl20;
  };
}