cargo: use fetchFromGitHub
This commit is contained in:
parent
7bd191df6a
commit
d170c2cead
@ -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
|
, makeWrapper, libiconv, cacert, rustPlatform, rustc, libgit2
|
||||||
, version, srcSha, depsSha256
|
, version, srcSha, depsSha256
|
||||||
, patches ? []}:
|
, patches ? []}:
|
||||||
@ -7,9 +7,10 @@ rustPlatform.buildRustPackage rec {
|
|||||||
name = "cargo-${version}";
|
name = "cargo-${version}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/rust-lang/cargo";
|
owner = "rust-lang";
|
||||||
rev = version;
|
repo = "cargo";
|
||||||
|
rev = version;
|
||||||
sha256 = srcSha;
|
sha256 = srcSha;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ rec {
|
|||||||
|
|
||||||
cargo = callPackage ./cargo.nix rec {
|
cargo = callPackage ./cargo.nix rec {
|
||||||
version = "0.21.1";
|
version = "0.21.1";
|
||||||
srcSha = "a64iywv1l3v87b0pznf5kkzxigd6w19myv9d7ka4c65zgrk9n9px";
|
srcSha = "1nz7sz7rzc6i1c0nzf6kmnmaq1l3hgrg19s589q7k309r6m7p7f7";
|
||||||
depsSha256 = "amrgd8ib48vxxbhkvsqqq4p19sc6b74x3cd8p6lhhlm6plrajrvm";
|
depsSha256 = "0pzfn1zjgklr0fw9zi9sxrwr08q3wcvdl9ybxrk3ld7ps5h9wmsi";
|
||||||
|
|
||||||
inherit rustc; # the rustc that will be wrapped by cargo
|
inherit rustc; # the rustc that will be wrapped by cargo
|
||||||
inherit rustPlatform; # used to build cargo
|
inherit rustPlatform; # used to build cargo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user