cargo: use fetchFromGitHub

This commit is contained in:
zimbatm
2017-10-23 00:30:46 +01:00
parent 7bd191df6a
commit d170c2cead
2 changed files with 7 additions and 6 deletions
+5 -4
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchgit, file, curl, pkgconfig, python, openssl, cmake, zlib
{ stdenv, fetchFromGitHub, file, curl, pkgconfig, python, openssl, cmake, zlib
, makeWrapper, libiconv, cacert, rustPlatform, rustc, libgit2
, version, srcSha, depsSha256
, patches ? []}:
@@ -7,9 +7,10 @@ rustPlatform.buildRustPackage rec {
name = "cargo-${version}";
inherit version;
src = fetchgit {
url = "https://github.com/rust-lang/cargo";
rev = version;
src = fetchFromGitHub {
owner = "rust-lang";
repo = "cargo";
rev = version;
sha256 = srcSha;
};