mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 18:12:46 +00:00
netcdfcxx4: use fetchzip
Github archives are not stable over time so fetchzip should be used instead of fetchurl
This commit is contained in:
parent
370300758a
commit
56858c2b92
|
@ -1,11 +1,11 @@
|
||||||
{ lib, stdenv, fetchurl, netcdf, hdf5, curl }:
|
{ lib, stdenv, fetchzip, netcdf, hdf5, curl }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "netcdf-cxx4";
|
pname = "netcdf-cxx4";
|
||||||
version = "4.3.1";
|
version = "4.3.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchzip {
|
||||||
url = "https://github.com/Unidata/netcdf-cxx4/archive/v${version}.tar.gz";
|
url = "https://github.com/Unidata/netcdf-cxx4/archive/v${version}.tar.gz";
|
||||||
sha256 = "1p4fjxxbrc0ra8kbs13d33p5zaqa4a6j1wavamr2f73cq0p3vzp3";
|
sha256 = "05kydd5z9iil5iv4fp7l11cicda5n5lsg5sdmsmc55xpspnsg7hr";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ netcdf hdf5 curl ];
|
buildInputs = [ netcdf hdf5 curl ];
|
||||||
|
|
Loading…
Reference in a new issue