From c49c384e202fce876c2aa73f479c168d7fa63a24 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Wed, 11 Nov 2015 17:51:50 -0500 Subject: [PATCH] libminc: init at 2.3.00 --- .../development/libraries/libminc/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/libraries/libminc/default.nix diff --git a/pkgs/development/libraries/libminc/default.nix b/pkgs/development/libraries/libminc/default.nix new file mode 100644 index 000000000000..217ce20c6cfb --- /dev/null +++ b/pkgs/development/libraries/libminc/default.nix @@ -0,0 +1,27 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dd7d2b607808..c7af2126a864 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7668,6 +7668,8 @@ let libmilter = callPackage ../development/libraries/libmilter { }; + libminc = callPackage ../development/libraries/libminc { }; + libmkv = callPackage ../development/libraries/libmkv { }; libmms = callPackage ../development/libraries/libmms { };