netcdf-fortran: switch to fetchFromGitHub
This commit is contained in:
parent
6a66defae0
commit
ac38bd869e
@ -1,11 +1,13 @@
|
||||
{ lib, stdenv, fetchurl, netcdf, hdf5, curl, gfortran }:
|
||||
{ lib, stdenv, fetchFromGitHub, netcdf, hdf5, curl, gfortran }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "netcdf-fortran";
|
||||
version = "4.4.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Unidata/netcdf-fortran/archive/v${version}.tar.gz";
|
||||
sha256 = "00qwg4v250yg8kxp68srrnvfbfim241fnlm071p9ila2mihk8r01";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Unidata";
|
||||
repo = "netcdf-fortran";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-nC93NcA4VJbrqaLwyhjP10j/t6rQSYcAzKBxclpZVe0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gfortran ];
|
||||
|
Loading…
Reference in New Issue
Block a user