@@ -0,0 +1,24 @@
1+{ stdenv, lib, fetchurl, cmake, eigen, zlib }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "niftyseg";
5+ version = "1.0";
6+ name = "${pname}-${version}";
7+ src = fetchurl {
8+ url = "https://github.com/KCL-BMEIS/NiftySeg/archive/v${version}.tar.gz";
9+ sha256 = "11q6yldsxp3k6gfp94c0xhcan2y3finzv8lzizmrc79yps3wjkn0";
10+ };
11+
12+ nativeBuildInputs = [ cmake ];
13+ buildInputs = [ eigen zlib ];
14+ enableParallelBuilding = true;
15+
16+ meta = with stdenv.lib; {
17+ homepage = http://cmictig.cs.ucl.ac.uk/research/software/software-nifty/niftyseg;
18+ description = "Software for medical image segmentation, bias field correction, and cortical thickness calculation";
19+ maintainers = with maintainers; [ bcdarwin ];
20+ platforms = platforms.linux;
21+ license = licenses.bsd3;
22+ };
23+
24+}