1 { lib, stdenv, fetchFromGitHub, cmake, expat, nifticlib, zlib }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2020-07-07";
7 src = fetchFromGitHub {
8 owner = "NIFTI-Imaging";
10 rev = "5eae81ba1e87ef3553df3b6ba585f12dc81a0030";
11 sha256 = "0gcab06gm0irjnlrkpszzd4wr8z0fi7gx8f7966gywdp2jlxzw19";
14 cmakeFlags = [ "-DUSE_SYSTEM_NIFTI=ON" "-DDOWNLOAD_TEST_DATA=OFF" ];
16 nativeBuildInputs = [ cmake ];
17 buildInputs = [ expat nifticlib zlib ];
19 # without the test data, this is only a few basic tests
20 doCheck = !stdenv.isDarwin;
23 ctest -LE 'NEEDS_DATA'
28 homepage = "https://www.nitrc.org/projects/gifti";
29 description = "Medical imaging geometry format C API";
30 maintainers = with maintainers; [ bcdarwin ];
31 platforms = platforms.unix;
32 license = licenses.publicDomain;