lol

cargo: use fetchFromGitHub

+7 -6
+5 -4
pkgs/development/compilers/rust/cargo.nix
··· 1 - { stdenv, fetchgit, file, curl, pkgconfig, python, openssl, cmake, zlib 1 + { stdenv, fetchFromGitHub, file, curl, pkgconfig, python, openssl, cmake, zlib 2 2 , makeWrapper, libiconv, cacert, rustPlatform, rustc, libgit2 3 3 , version, srcSha, depsSha256 4 4 , patches ? []}: ··· 7 7 name = "cargo-${version}"; 8 8 inherit version; 9 9 10 - src = fetchgit { 11 - url = "https://github.com/rust-lang/cargo"; 12 - rev = version; 10 + src = fetchFromGitHub { 11 + owner = "rust-lang"; 12 + repo = "cargo"; 13 + rev = version; 13 14 sha256 = srcSha; 14 15 }; 15 16
+2 -2
pkgs/development/compilers/rust/default.nix
··· 29 29 30 30 cargo = callPackage ./cargo.nix rec { 31 31 version = "0.21.1"; 32 - srcSha = "a64iywv1l3v87b0pznf5kkzxigd6w19myv9d7ka4c65zgrk9n9px"; 33 - depsSha256 = "amrgd8ib48vxxbhkvsqqq4p19sc6b74x3cd8p6lhhlm6plrajrvm"; 32 + srcSha = "1nz7sz7rzc6i1c0nzf6kmnmaq1l3hgrg19s589q7k309r6m7p7f7"; 33 + depsSha256 = "0pzfn1zjgklr0fw9zi9sxrwr08q3wcvdl9ybxrk3ld7ps5h9wmsi"; 34 34 35 35 inherit rustc; # the rustc that will be wrapped by cargo 36 36 inherit rustPlatform; # used to build cargo