1 { lib, stdenv, fetchFromGitHub, cmake, zlib }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "NIFTI-Imaging";
11 sha256 = "0hamm6nvbjdjjd5md4jahzvn5559frigxaiybnjkh59ckxwb1hy4";
14 cmakeFlags = [ "-DDOWNLOAD_TEST_DATA=OFF" ];
16 nativeBuildInputs = [ cmake ];
17 buildInputs = [ zlib ];
21 ctest -LE 'NEEDS_DATA'
27 homepage = "https://nifti-imaging.github.io";
28 description = "Medical imaging format C API";
29 maintainers = with maintainers; [ bcdarwin ];
30 platforms = platforms.unix;
31 license = licenses.publicDomain;