diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2019-12-11 22:27:12 +0100 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2019-12-11 22:35:44 +0100 |
commit | 50b2ef28f72a824efc0dde96094133fc07a36433 (patch) | |
tree | 5e9217617b1580a14a9f1af288ee2fa54b18f2df /pkgs/build-support/rust/build-rust-crate/build-crate.nix | |
parent | 0aac0e8d2c9c129bf1ed868bdc735b738b17b44e (diff) | |
download | nixpkgs-50b2ef28f72a824efc0dde96094133fc07a36433.tar nixpkgs-50b2ef28f72a824efc0dde96094133fc07a36433.tar.gz nixpkgs-50b2ef28f72a824efc0dde96094133fc07a36433.tar.bz2 nixpkgs-50b2ef28f72a824efc0dde96094133fc07a36433.tar.lz nixpkgs-50b2ef28f72a824efc0dde96094133fc07a36433.tar.xz nixpkgs-50b2ef28f72a824efc0dde96094133fc07a36433.tar.zst nixpkgs-50b2ef28f72a824efc0dde96094133fc07a36433.zip |
buildRustCrate: move the color loggign & remove some runtime checks
The expression is already long and confusing enough without the color stuff sprinkled in. Moving it to a dedicated file makes sense. I switched a bit of the color support code to pure Nix since there wasn't much point in doing that in bash while we can just do it in Nix.
Diffstat (limited to 'pkgs/build-support/rust/build-rust-crate/build-crate.nix')
-rw-r--r-- | pkgs/build-support/rust/build-rust-crate/build-crate.nix | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/pkgs/build-support/rust/build-rust-crate/build-crate.nix b/pkgs/build-support/rust/build-rust-crate/build-crate.nix index 2cac9df9166..c3880a1fc87 100644 --- a/pkgs/build-support/rust/build-rust-crate/build-crate.nix +++ b/pkgs/build-support/rust/build-rust-crate/build-crate.nix @@ -15,16 +15,6 @@ rustcMeta = "-C metadata=${metadata} -C extra-filename=-${metadata}"; in '' runHook preBuild - norm="" - bold="" - green="" - boldgreen="" - if [[ "${colors}" == "always" ]]; then - norm="$(printf '\033[0m')" #returns to "normal" - bold="$(printf '\033[0;1m')" #set bold - green="$(printf '\033[0;32m')" #set green - boldgreen="$(printf '\033[0;1;32m')" #set bold, and set green. - fi ${echo_build_heading colors} ${noisily colors verbose} |