@@ -2,7 +2,6 @@
22, llvm, jemalloc, ncurses, darwin, binutils, rustPlatform, git, cmake, curl
33
44, isRelease ? false
5−, needsCmake ? false
65, shortVersion
76, forceBundledLLVM ? false
87, srcSha, srcRev
@@ -81,7 +80,7 @@ stdenv.mkDerivation {
8180
8281 # Fix the configure script to not require curl as we won't use it
8382 sed -i configure \
84− -e '/probe_need CFG_CURLORWGET/d'
83+ -e '/probe_need CFG_CURL curl/d'
8584
8685 # Fix the use of jemalloc prefixes which our jemalloc doesn't have
8786 # TODO: reenable if we can figure out how to get our jemalloc to work
@@ -92,7 +91,7 @@ stdenv.mkDerivation {
9291 rm -vr src/test/run-make/linker-output-non-utf8/
9392
9493 # Useful debugging parameter
95− #export VERBOSE=1
94+ # export VERBOSE=1
9695 '';
9796
9897 preConfigure = ''
@@ -101,14 +100,12 @@ stdenv.mkDerivation {
101100 configureFlagsArray+=("--infodir=$out/share/info")
102101 '';
103102
104− # New -beta and -unstable unfortunately need cmake for compiling
105− # llvm-rt but don't use it for the normal build. This disables cmake
106− # in Nix.
107− dontUseCmakeConfigure = needsCmake;
103+ # rustc unfortunately need cmake for compiling llvm-rt but doesn't
104+ # use it for the normal build. This disables cmake in Nix.
105+ dontUseCmakeConfigure = true;
108106
109107 # ps is needed for one of the test cases
110− nativeBuildInputs = [ file python2 procps rustPlatform.rust.rustc git ]
111− ++ stdenv.lib.optional needsCmake [ cmake curl ];
108+ nativeBuildInputs = [ file python2 procps rustPlatform.rust.rustc git cmake ];
112109
113110 buildInputs = [ ncurses ] ++ targetToolchains
114111 ++ optional (!forceBundledLLVM) llvmShared;