2017-09-20 22:02:49 +01:00
|
|
|
{ stdenv, fetchurl, cmake, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nifticlib";
|
|
|
|
pversion = "2.0.0";
|
|
|
|
name = "${pname}-${pversion}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-21 09:10:12 +01:00
|
|
|
url = "mirror://sourceforge/project/niftilib/${pname}/${pname}_2_0_0/${name}.tar.gz";
|
|
|
|
sha256 = "123z9bwzgin5y8gi5ni8j217k7n683whjsvg0lrpii9flgk8isd3";
|
2017-09-20 22:02:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2018-08-09 16:27:01 +01:00
|
|
|
doCheck = false; # fails 7 out of 293 tests
|
2017-09-20 22:02:49 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/niftilib";
|
2017-09-20 22:02:49 +01:00
|
|
|
description = "Medical imaging format C API";
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
2019-11-15 02:25:10 +00:00
|
|
|
platforms = platforms.unix;
|
2017-09-20 22:02:49 +01:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
};
|
|
|
|
}
|