Unverified Commit f52a9f9e authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #277813 from bcdarwin/update-libminc

libminc: 2.4.05 -> 2.4.06
parents 8efaea80 ebb66921
Loading
Loading
Loading
Loading
+15 −11
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, cmake, zlib, netcdf, nifticlib, hdf5 }:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname   = "libminc";
  version = "2.4.05";

  owner = "BIC-MNI";
  version = "2.4.06";

  src = fetchFromGitHub {
    inherit owner;
    repo   = pname;
    rev    = "aa08255f0856e70fb001c5f9ee1f4e5a8c12d47d";  # new release, but no git tag
    sha256 = "XMTO6/HkyrrQ0s5DzJLCmmWheye2DGMnpDbcGdP6J+A=";
    owner = "BIC-MNI";
    repo = "libminc";
    rev = "refs/tags/release-${finalAttrs.version}";
    hash = "sha256-HTt3y0AFM9pkEkWPb9cDmvUz4iBQWfpX7wLF9Vlg8hc=";
  };

  postPatch = ''
@@ -18,8 +16,14 @@ stdenv.mkDerivation rec {
  '';

  nativeBuildInputs = [ cmake ];
  buildInputs = [ zlib nifticlib ];
  propagatedBuildInputs = [ netcdf hdf5 ];
  buildInputs = [
    zlib
    nifticlib
  ];
  propagatedBuildInputs = [
    netcdf
    hdf5
  ];

  cmakeFlags = [
    "-DLIBMINC_MINC1_SUPPORT=ON"
@@ -41,4 +45,4 @@ stdenv.mkDerivation rec {
    platforms = platforms.unix;
    license = licenses.free;
  };
}
})