summary refs log tree commit diff
path: root/pkgs/development/libraries/science/biology/nifticlib/default.nix
blob: 19e5644b9930325ea83a1442a0e52834f3c2ad41 (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
26
{ stdenv, fetchurl, cmake, zlib }:

stdenv.mkDerivation rec {
  pname    = "nifticlib";
  pversion = "2.0.0";
  name  = "${pname}-${pversion}";

  src = fetchurl {
    url    = "mirror://sourceforge/project/niftilib/${pname}/${pname}_2_0_0/${name}.tar.gz";
    sha256 = "123z9bwzgin5y8gi5ni8j217k7n683whjsvg0lrpii9flgk8isd3";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ zlib ];

  checkPhase = "ctest";
  doCheck = false; # fails 7 out of 293 tests

  meta = with stdenv.lib; {
    homepage = https://sourceforge.net/projects/niftilib;
    description = "Medical imaging format C API";
    maintainers = with maintainers; [ bcdarwin ];
    platforms = platforms.linux;
    license = licenses.publicDomain;
  };
}