From 4c305b73b6de2e453d7c2e7e410f287837e7aa17 Mon Sep 17 00:00:00 2001 From: Matthew Glazar Date: Fri, 3 May 2019 12:29:37 -0700 Subject: [PATCH] microsoft_gsl: use fetchFromGitHub fetchFromGitHub has friendlier ways to download sources. Use it instead of fetchgit for microsoft_gsl. --- pkgs/development/libraries/microsoft_gsl/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/microsoft_gsl/default.nix b/pkgs/development/libraries/microsoft_gsl/default.nix index 0902c6b37c8..b63de43fd9b 100644 --- a/pkgs/development/libraries/microsoft_gsl/default.nix +++ b/pkgs/development/libraries/microsoft_gsl/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, catch, cmake +{ stdenv, fetchFromGitHub, catch, cmake }: let @@ -8,8 +8,9 @@ stdenv.mkDerivation rec { name = "microsoft_gsl-${version}"; version = "2.0.0"; - src = fetchgit { - url = "https://github.com/Microsoft/GSL.git"; + src = fetchFromGitHub { + owner = "Microsoft"; + repo = "GSL"; rev = "v${version}"; sha256 = "1kxfca9ik934nkzyn34ingkyvwpc09li81cg1yc6vqcrdw51l4ri"; };