nco: switch to fetchFromGitHub

+5 -3
+5 -3
pkgs/development/libraries/nco/default.nix
··· 1 - { lib, stdenv, fetchzip, netcdf, netcdfcxx4, gsl, udunits, antlr2, which, curl, flex, coreutils }: 1 + { lib, stdenv, fetchFromGitHub, netcdf, netcdfcxx4, gsl, udunits, antlr2, which, curl, flex, coreutils }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "nco"; 5 5 version = "5.0.3"; 6 6 7 - src = fetchzip { 8 - url = "https://github.com/nco/nco/archive/${version}.tar.gz"; 7 + src = fetchFromGitHub { 8 + owner = "nco"; 9 + repo = "nco"; 10 + rev = "${version}"; 9 11 sha256 = "sha256-KrFRBlD3z/sjKIvxmE0s/xCILQmESecilnlUGzDDICw="; 10 12 }; 11 13