git.iko.soy/typeable/nixpkgs
on master help sign in
rustc: Use fetchzip in src attr instead of fetchurl

Otherwise, `RUST_SRC_PATH` in `racerRust` will point to an invalid path (such as `/nix/store/xxx-rustc-1.0.0.tar.gz/src`, where `rustc-1.0.0.tar.gz` is a real tarball file).

commit4e4d01af81f627fe7ea3221ccd0e2d9a7f4b94e6 authorRicardo M. Correia <rcorreia@wizy.org> dateWed 27 May 2015, 01:18 (12 years ago) parentdda255f
2 files changed+4−4
pkgs/development/compilers/rustc/1.0.0.nix+1−1 pkgs/development/compilers/rustc/makeRustcDerivation.nix+3−3
pkgs/development/compilers/rustc/1.0.0.nix+1−1
@@ -2,7 +2,7 @@
22callPackage ./makeRustcDerivation.nix {
33 shortVersion = "1.0.0";
44 isRelease = true;
5− srcSha = "1fjyk5xhg9dx85d1kkjmb1jai7awvdmzcjf2fdmi2pdjyzacn163";
5+ srcSha = "14brziw91d3r88fa1kvpvhap5ws4z8h2mas7h6k9lpsc2zl9blak";
66 snapshotHashLinux686 = "1ef82402ed16f5a6d2f87a9a62eaa83170e249ec";
77 snapshotHashLinux64 = "ef2154372e97a3cb687897d027fd51c8f2c5f349";
88 snapshotHashDarwin686 = "0310b1a970f2da7e61770fd14dbbbdca3b518234";
pkgs/development/compilers/rustc/makeRustcDerivation.nix+3−3
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, fetchgit, which, file, perl, curl, python27, makeWrapper
2−, tzdata, git, valgrind, procps, coreutils
1+{ stdenv, fetchurl, fetchgit, fetchzip, which, file, perl, curl, python27
2+, makeWrapper, tzdata, git, valgrind, procps, coreutils
33
44, shortVersion, isRelease
55, srcSha, srcRev ? ""
@@ -85,7 +85,7 @@ stdenv.mkDerivation {
8585 inherit meta;
8686
8787 src = if isRelease then
88− fetchurl {
88+ fetchzip {
8989 url = "http://static.rust-lang.org/dist/rustc-${version}-src.tar.gz";
9090 sha256 = srcSha;
9191 }