3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/science/biology/nifticlib/default.nix
2021-01-21 19:11:02 -08:00

34 lines
767 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, zlib }:
stdenv.mkDerivation rec {
pname = "nifticlib";
version = "3.0.1";
src = fetchFromGitHub {
owner = "NIFTI-Imaging";
repo = "nifti_clib";
rev = "v${version}";
sha256 = "0hamm6nvbjdjjd5md4jahzvn5559frigxaiybnjkh59ckxwb1hy4";
};
cmakeFlags = [ "-DDOWNLOAD_TEST_DATA=OFF" ];
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
checkPhase = ''
runHook preCheck
ctest -LE 'NEEDS_DATA'
runHook postCheck
'';
doCheck = true;
meta = with lib; {
homepage = "https://nifti-imaging.github.io";
description = "Medical imaging format C API";
maintainers = with maintainers; [ bcdarwin ];
platforms = platforms.unix;
license = licenses.publicDomain;
};
}