Use fetchFromGitHub instead of fetchurl

This commit is contained in:
John Wiegley 2022-08-08 12:30:26 -07:00 committed by whonore
parent d9b3d77448
commit 11458e36d7

View File

@ -178,9 +178,11 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
pname = "Dafny";
version = "3.7.3";
src = fetchurl {
url = "https://github.com/Microsoft/dafny/archive/v${version}.tar.gz";
sha256 = "0w9g8smx54pvg1y5zs90awv9plgyz5nkrnqbzi9m6dymhybblvx5";
src = fetchFromGitHub {
owner = "Microsoft";
repo = "dafny";
rev = "v${version}";
sha256 = "1knv6zvpq0bnngmlwkcqgjpdkqsgbiihs6a0cycb8ssn18s4ippr";
};
preBuild = ''