mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
28 lines
763 B
Nix
28 lines
763 B
Nix
{ stdenv, fetchurl, cmake, zlib, netcdf, hdf5 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
_name = "libminc";
|
|
name = "${_name}-2.3.00";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/BIC-MNI/${_name}/archive/${_name}-2-3-00.tar.gz";
|
|
sha256 = "04ngqx4wkssxs9qqcgq2bvfs1cldcycmpcx587wy3b3m6lwf004c";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ zlib netcdf hdf5 ];
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
|
|
"-DLIBMINC_MINC1_SUPPORT=ON" ];
|
|
|
|
checkPhase = "ctest";
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/BIC-MNI/libminc;
|
|
description = "Medical imaging library based on HDF5";
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|