nixpkgs/pkgs/development/libraries/libminc/default.nix

32 lines
827 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, zlib, netcdf, hdf5 }:
2015-11-11 22:51:50 +00:00
stdenv.mkDerivation rec {
name = "${pname}-2.3.00";
pname = "libminc";
2015-11-11 22:51:50 +00:00
src = fetchFromGitHub {
owner = "BIC-MNI";
repo = pname;
rev = builtins.replaceStrings [ "." ] [ "-" ] name;
sha256 = "1gv1rq1q1brhglll2256cm6sns77ph6fvgbzk3ihkzq46y07yi9s";
2015-11-11 22:51:50 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib netcdf hdf5 ];
cmakeFlags = [ "-DBUILD_TESTING=${if doCheck then "ON" else "OFF"}"
"-DLIBMINC_MINC1_SUPPORT=ON" ];
checkPhase = "ctest";
doCheck = true;
enableParallelBuilding = true;
2015-11-11 22:51:50 +00:00
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;
};
}