rust: 1.22.1 -> 1.24.0

This commit is contained in:
Jörg Thalheim
2018-02-20 09:59:26 +00:00
committed by GitHub
parent e46553bc72
commit f61e8d98ff
7 changed files with 64 additions and 64 deletions
+8 -12
View File
@@ -1,7 +1,8 @@
{ stdenv, fetchFromGitHub, file, curl, pkgconfig, python, openssl, cmake, zlib
, makeWrapper, libiconv, cacert, rustPlatform, rustc, libgit2, darwin
, version, srcSha, cargoSha256
, patches ? [] }:
, version
, patches ? []
, src }:
let
inherit (darwin.apple_sdk.frameworks) CoreFoundation;
@@ -9,17 +10,12 @@ in
rustPlatform.buildRustPackage rec {
name = "cargo-${version}";
inherit version;
inherit version src patches;
src = fetchFromGitHub {
owner = "rust-lang";
repo = "cargo";
rev = version;
sha256 = srcSha;
};
inherit cargoSha256;
inherit patches;
# the rust source tarball already has all the dependencies vendored, no need to fetch them again
cargoVendorDir = "src/vendor";
preBuild = "cd src; pushd tools/cargo";
postBuild = "popd";
passthru.rustc = rustc;