nifticlib: 2.0.0 -> 3.0.1

This commit is contained in:
Ben Darwin 2020-02-18 17:31:10 -05:00
parent f6a3e70c50
commit 98512f3eaa

View File

@ -1,22 +1,30 @@
{ stdenv, fetchurl, cmake, zlib }:
{ stdenv, fetchFromGitHub, cmake, zlib }:
stdenv.mkDerivation rec {
pname = "nifticlib";
pversion = "2.0.0";
name = "${pname}-${pversion}";
pname = "nifticlib";
version = "3.0.1";
src = fetchurl {
url = "mirror://sourceforge/project/niftilib/${pname}/${pname}_2_0_0/${name}.tar.gz";
sha256 = "123z9bwzgin5y8gi5ni8j217k7n683whjsvg0lrpii9flgk8isd3";
src = fetchFromGitHub {
owner = "NIFTI-Imaging";
repo = "nifti_clib";
rev = "v${version}";
sha256 = "0hamm6nvbjdjjd5md4jahzvn5559frigxaiybnjkh59ckxwb1hy4";
};
cmakeFlags = [ "-DDOWNLOAD_TEST_DATA=OFF" ];
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
doCheck = false; # fails 7 out of 293 tests
checkPhase = ''
runHook preCheck
ctest -LE 'NEEDS_DATA'
runHook postCheck
'';
doCheck = true;
meta = with stdenv.lib; {
homepage = "https://sourceforge.net/projects/niftilib";
homepage = "https://nifti-imaging.github.io";
description = "Medical imaging format C API";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;