rustup: 2017-10-29 -> 1.11.0
This commit is contained in:
parent
4166691813
commit
156dc76030
1 changed files with 8 additions and 8 deletions
|
@ -4,15 +4,15 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "rustup-${version}";
|
name = "rustup-${version}";
|
||||||
version = "2017-10-29";
|
version = "1.11.0";
|
||||||
|
|
||||||
cargoSha256 = "1xwxv8y9xjgdmm92ldrn9m9fml2zb5h7qqm7dhw63j6psb3ajqrw";
|
cargoSha256 = "1r9mnj3x9sn16hi1r09gl5q0cnsa2g6kbjw2g115858i2a9k6hkr";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rust-lang-nursery";
|
owner = "rust-lang-nursery";
|
||||||
repo = "rustup.rs";
|
repo = "rustup.rs";
|
||||||
rev = "13c8092507bf646f3ef6a621fe2c5a68212e800f";
|
rev = version;
|
||||||
sha256 = "1qd01rjk9qpfzgqs35f5nxrcf00kmf76zwmgj3yzdig9zymjwndg";
|
sha256 = "05rbgkz4fk6c1x6bpmpx108bg2qcrf6vv3yfz378s7bmr3l319iz";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
@ -35,23 +35,23 @@ rustPlatform.buildRustPackage rec {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
pushd $out/bin
|
pushd $out/bin
|
||||||
mv rustup-init rustup
|
mv rustup-init rustup
|
||||||
for link in cargo rustc rustdoc rust-gdb rust-lldb; do
|
for link in cargo rustc rustdoc rust-gdb rust-lldb rls rustfmt cargo-fmt; do
|
||||||
ln -s rustup $link
|
ln -s rustup $link
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# tries to create .rustup
|
# tries to create .rustup
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
mkdir -p "$out/share/"{bash-completion/completions,fish/completions,zsh/site-functions}
|
mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
|
||||||
$out/bin/rustup completions bash > "$out/share/bash-completion/completions/rustup"
|
$out/bin/rustup completions bash > "$out/share/bash-completion/completions/rustup"
|
||||||
$out/bin/rustup completions fish > "$out/share/fish/completions/rustup.fish"
|
$out/bin/rustup completions fish > "$out/share/fish/vendor_completions.d/rustup.fish"
|
||||||
$out/bin/rustup completions zsh > "$out/share/zsh/site-functions/_rustup"
|
$out/bin/rustup completions zsh > "$out/share/zsh/site-functions/_rustup"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The Rust toolchain installer";
|
description = "The Rust toolchain installer";
|
||||||
homepage = https://www.rustup.rs/;
|
homepage = https://www.rustup.rs/;
|
||||||
license = licenses.mit;
|
license = with licenses; [ asl20 /* or */ mit ];
|
||||||
maintainers = [ maintainers.mic92 ];
|
maintainers = [ maintainers.mic92 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue