From da982a60cc18366bc8e90c5629ab683ba67983f4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 7 Apr 2019 00:45:02 +0800 Subject: [PATCH] rustc: add libxml2 dep --- compilers/rust/rustc.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compilers/rust/rustc.nix b/compilers/rust/rustc.nix index 1b18997..c9cf135 100644 --- a/compilers/rust/rustc.nix +++ b/compilers/rust/rustc.nix @@ -1,7 +1,7 @@ { stdenv, targetPackages , fetchurl, fetchgit, fetchzip, file, python2, tzdata, ps -, llvm, jemalloc, ncurses, darwin, rustPlatform, git, cmake, curl -, which, libffi, gdb, zlib +, llvm, ncurses, darwin, rustPlatform, git, cmake, curl +, which, libffi, gdb, zlib, libxml2 , version , src , configureFlags ? [] @@ -53,7 +53,6 @@ stdenv.mkDerivation { configureFlags = configureFlags ++ [ "--enable-local-rust" "--local-rust-root=${rustPlatform.rust.rustc}" "--enable-rpath" ] ++ [ "--enable-vendor" ] - # ++ [ "--jemalloc-root=${jemalloc}/lib" ++ [ "--default-linker=${targetPackages.stdenv.cc}/bin/cc" ] ++ optional (targets != []) "--target=${target}" ++ [ "--llvm-root=${llvm}" ] ; @@ -119,7 +118,7 @@ stdenv.mkDerivation { # Only needed for the debuginfo tests ++ optional (!stdenv.isDarwin) gdb; - buildInputs = [ ncurses zlib ] ++ targetToolchains + buildInputs = [ ncurses zlib libxml2 ] ++ targetToolchains ++ optional stdenv.isDarwin Security; outputs = [ "out" "man" "doc" ];