netcdfcxx4: use fetchzip

Github archives are not stable over time so
fetchzip should be used instead of fetchurl
This commit is contained in:
Renaud 2019-10-18 18:21:45 +02:00 committed by Luke Granger-Brown
parent 370300758a
commit 56858c2b92

View file

@ -1,11 +1,11 @@
{ lib, stdenv, fetchurl, netcdf, hdf5, curl }:
{ lib, stdenv, fetchzip, netcdf, hdf5, curl }:
stdenv.mkDerivation rec {
pname = "netcdf-cxx4";
version = "4.3.1";
src = fetchurl {
src = fetchzip {
url = "https://github.com/Unidata/netcdf-cxx4/archive/v${version}.tar.gz";
sha256 = "1p4fjxxbrc0ra8kbs13d33p5zaqa4a6j1wavamr2f73cq0p3vzp3";
sha256 = "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr";
};
buildInputs = [ netcdf hdf5 curl ];