text:
rustc 1.49.0 install failed on macOS

Describe the bug
When I was installing rustc, it failed when installing component rust-docs.
   ...
   Compiling flate2 v1.0.16
   Compiling crossbeam-queue v0.2.3
   Compiling lzma-sys v0.1.16
   Compiling crossbeam-deque v0.7.3
   Compiling xz2 v0.1.6
   Compiling installer v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/rust-installer)
    Finished release [optimized] target(s) in 13.74s
        finished in 41.534 seconds
Install docs stage2 (Some(TargetSelection { triple: "x86_64-apple-darwin", file: None }))
install: creating uninstall script at /nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/uninstall.sh
install: installing component 'rust-docs'
cp: cannot create regular file '/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/doc/rust/html/std/keyword.Self.html': File exists
install: error: failed to copy directory. see logs at '/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/install.log'

command did not execute successfully: "sh" "/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/build/tmp/dist/rust-docs-1.49.0-x86_64-apple-darwin/install.sh" "--prefix=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0" "--sysconfdir=/etc" "--datadir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share" "--docdir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/doc/rust" "--bindir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/bin" "--libdir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib" "--mandir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/man" "--disable-ldconfig"
expected success, got: exit code: 1

failed to run: /private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/build/bootstrap/debug/bootstrap install --jobs 16
Build completed unsuccessfully in 0:01:13
make: *** [Makefile:56: install] Error 1
builder for '/nix/store/f14smyzwsrl2vyy5jymhj843n3f2xmr8-rustc-1.49.0.drv' failed with exit code 2
error: build of '/nix/store/f14smyzwsrl2vyy5jymhj843n3f2xmr8-rustc-1.49.0.drv' failed

The install log:
$ umask 022 && mkdir -p "/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib"
$ echo "3" > "/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/rust-installer-version"
install: creating uninstall script at /nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/uninstall.sh
$ cp /private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/build/tmp/dist/rust-docs-1.49.0-x86_64-apple-darwin/install.sh /nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/uninstall.sh
install: installing component 'rust-docs'
$ echo "rust-docs" >> "/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/components"
$ umask 022 && mkdir -p "/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/doc/rust"
install: copying directory /nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/doc/rust/html
$ cp -R /private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/build/tmp/dist/rust-docs-1.49.0-x86_64-apple-darwin/rust-docs/share/doc/rust/html /nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/doc/rust/html
install: error: failed to copy directory. see logs at '/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/install.log'

To Reproduce
Steps to reproduce the behavior:

nix-env -iA nixpkgs.rustc

Expected behavior
rustc installed
Screenshots

Additional context
Complete log.

installing 'rustc-1.49.0'
these derivations will be built:
  /nix/store/f14smyzwsrl2vyy5jymhj843n3f2xmr8-rustc-1.49.0.drv
building '/nix/store/f14smyzwsrl2vyy5jymhj843n3f2xmr8-rustc-1.49.0.drv'...
unpacking sources
unpacking source archive /nix/store/fli4fs5w59jp361yh03y8xwdvmy84cq9-rustc-1.49.0-src.tar.gz
source root is rustc-1.49.0-src
setting SOURCE_DATE_EPOCH to timestamp 1609212992 of file rustc-1.49.0-src/vendor/yaml-rust/tests/test_round_trip.rs
patching sources
patching script interpreter paths in src/etc
src/etc/dec2flt_table.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/4jf77mhzlwhk92rh32ba0qff0nc7vj3i-python3-3.8.7/bin/python3"
src/etc/generate-keyword-tests.py: interpreter directive changed from "/usr/bin/env python" to "/nix/store/4jf77mhzlwhk92rh32ba0qff0nc7vj3i-python3-3.8.7/bin/python"
src/etc/rust-gdbgui: interpreter directive changed from "/bin/sh" to "/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/sh"
src/etc/generate-deriving-span-tests.py: interpreter directive changed from "/usr/bin/env python" to "/nix/store/4jf77mhzlwhk92rh32ba0qff0nc7vj3i-python3-3.8.7/bin/python"
src/etc/cat-and-grep.sh: interpreter directive changed from "/bin/sh" to "/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/sh"
src/etc/rust-lldb: interpreter directive changed from "/bin/sh" to "/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/sh"
src/etc/indenter: interpreter directive changed from "/usr/bin/env python" to "/nix/store/4jf77mhzlwhk92rh32ba0qff0nc7vj3i-python3-3.8.7/bin/python"
src/etc/cpu-usage-over-time-plot.sh: interpreter directive changed from "/bin/bash" to "/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/bash"
src/etc/pre-commit.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/bash"
src/etc/installer/pkg/postinstall: interpreter directive changed from "/bin/sh" to "/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/sh"
src/etc/rust-gdb: interpreter directive changed from "/bin/sh" to "/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/sh"
configuring
configure flags: --prefix=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0 --release-channel=stable --set=build.rustc=/nix/store/bp5gi4ka2riqm2a4d54cfpwa83dh7wa0-rustc-bootstrap-1.48.0/bin/rustc --set=build.cargo=/nix/store/y9i4rjllhw01g6q3i5gqxahgqh4ak9hh-cargo-bootstrap-1.48.0/bin/cargo --enable-rpath --enable-vendor --build=x86_64-apple-darwin --host=x86_64-apple-darwin --target=x86_64-apple-darwin --set=target.x86_64-apple-darwin.cc=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/cc --set=target.x86_64-apple-darwin.cc=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/cc --set=target.x86_64-apple-darwin.cc=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/cc --set=target.x86_64-apple-darwin.linker=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/cc --set=target.x86_64-apple-darwin.linker=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/cc --set=target.x86_64-apple-darwin.linker=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/cc --set=target.x86_64-apple-darwin.cxx=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/c++ --set=target.x86_64-apple-darwin.cxx=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/c++ --set=target.x86_64-apple-darwin.cxx=/nix/store/q91k3dyqwx87irsp9wmsiz0s9gvd9qdl-clang-wrapper-5.0.2/bin/c++ --enable-llvm-link-shared --set=target.x86_64-apple-darwin.llvm-config=/nix/store/id709j6pmprkhc747g81v9kzyvcqk2zm-llvm-11.0.1/bin/llvm-config --set=target.x86_64-apple-darwin.llvm-config=/nix/store/id709j6pmprkhc747g81v9kzyvcqk2zm-llvm-11.0.1/bin/llvm-config --set=target.x86_64-apple-darwin.llvm-config=/nix/store/id709j6pmprkhc747g81v9kzyvcqk2zm-llvm-11.0.1/bin/llvm-config
configure: processing command line
configure:
configure: install.prefix       := /nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-ru ...
configure: rust.channel         := stable
configure: build.rustc          := /nix/store/bp5gi4ka2riqm2a4d54cfpwa83dh7wa0-ru ...
configure: build.cargo          := /nix/store/y9i4rjllhw01g6q3i5gqxahgqh4ak9hh-ca ...
configure: target.x86_64-apple-darwin.cc := /nix/store/q91k3dyqwx87irsp9wmsiz0s9g ...
configure: target.x86_64-apple-darwin.cc := /nix/store/q91k3dyqwx87irsp9wmsiz0s9g ...
configure: target.x86_64-apple-darwin.cc := /nix/store/q91k3dyqwx87irsp9wmsiz0s9g ...
configure: target.x86_64-apple-darwin.linker := /nix/store/q91k3dyqwx87irsp9wmsiz ...
configure: target.x86_64-apple-darwin.linker := /nix/store/q91k3dyqwx87irsp9wmsiz ...
configure: target.x86_64-apple-darwin.linker := /nix/store/q91k3dyqwx87irsp9wmsiz ...
configure: target.x86_64-apple-darwin.cxx := /nix/store/q91k3dyqwx87irsp9wmsiz0s9 ...
configure: target.x86_64-apple-darwin.cxx := /nix/store/q91k3dyqwx87irsp9wmsiz0s9 ...
configure: target.x86_64-apple-darwin.cxx := /nix/store/q91k3dyqwx87irsp9wmsiz0s9 ...
configure: target.x86_64-apple-darwin.llvm-config := /nix/store/id709j6pmprkhc747 ...
configure: target.x86_64-apple-darwin.llvm-config := /nix/store/id709j6pmprkhc747 ...
configure: target.x86_64-apple-darwin.llvm-config := /nix/store/id709j6pmprkhc747 ...
configure: rust.rpath           := True
configure: build.vendor         := True
configure: build.build          := x86_64-apple-darwin
configure: build.host           := ['x86_64-apple-darwin']
configure: build.target         := ['x86_64-apple-darwin']
configure: llvm.link-shared     := True
configure: build.configure-args := ['--prefix=/nix/store/qnqw3y9nraah583k03s9mxiv ...
configure:
configure: writing `config.toml` in current directory
configure:
configure: run `python /private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/x.py --help`
configure:
building
build flags: SHELL=/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/bash
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.38
   Compiling version_check v0.9.1
   Compiling autocfg v1.0.0
   Compiling memchr v2.3.3
   Compiling cfg-if v0.1.10
   Compiling libc v0.2.79
   Compiling lazy_static v1.4.0
   Compiling serde_derive v1.0.115
   Compiling serde v1.0.115
   Compiling log v0.4.11
   Compiling regex-syntax v0.6.18
   Compiling ryu v1.0.5
   Compiling serde_json v1.0.59
   Compiling same-file v1.0.6
   Compiling fnv v1.0.7
   Compiling bootstrap v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/bootstrap)
   Compiling cc v1.0.60
   Compiling unicode-width v0.1.8
   Compiling itoa v0.4.6
   Compiling build_helper v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/build_helper)
   Compiling opener v0.4.1
   Compiling walkdir v2.3.1
   Compiling thread_local v1.0.1
   Compiling getopts v0.2.21
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling crossbeam-utils v0.7.2
   Compiling num-traits v0.2.12
   Compiling aho-corasick v0.7.13
   Compiling bstr v0.2.13
   Compiling cmake v0.1.44
   Compiling num_cpus v1.13.0
   Compiling filetime v0.2.12
   Compiling time v0.1.43
   Compiling quote v1.0.7
   Compiling regex v1.3.9
   Compiling globset v0.4.5
   Compiling ignore v0.4.16
   Compiling merge_derive v0.1.0
   Compiling merge v0.1.0
   Compiling toml v0.5.7
    Finished dev [unoptimized + debuginfo] target(s) in 37.86s
Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
   Compiling cc v1.0.60
   Compiling core v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/core)
   Compiling libc v0.2.79
   Compiling std v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/std)
   Compiling compiler_builtins v0.1.36
   Compiling unwind v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/unwind)
   Compiling rustc-std-workspace-core v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/alloc)
   Compiling cfg-if v0.1.10
   Compiling adler v0.2.3
   Compiling rustc-demangle v0.1.18
   Compiling panic_abort v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/panic_abort)
   Compiling rustc-std-workspace-alloc v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-alloc)
   Compiling panic_unwind v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/panic_unwind)
   Compiling gimli v0.22.0
   Compiling object v0.20.0
   Compiling miniz_oxide v0.4.0
   Compiling hashbrown v0.9.0
   Compiling addr2line v0.13.0
   Compiling rustc-std-workspace-std v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-std)
   Compiling term v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/term)
   Compiling proc_macro v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/proc_macro)
   Compiling unicode-width v0.1.8
   Compiling getopts v0.2.21
   Compiling test v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/test)
    Finished release [optimized] target(s) in 44.62s
Copying stage0 std from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
   Compiling cfg-if v0.1.10
   Compiling autocfg v1.0.0
   Compiling libc v0.2.79
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling maybe-uninit v2.0.0
   Compiling syn v1.0.38
   Compiling scopeguard v1.1.0
   Compiling smallvec v1.4.2
   Compiling cc v1.0.60
   Compiling log v0.4.11
   Compiling version_check v0.9.1
   Compiling typenum v1.12.0
   Compiling getrandom v0.1.14
   Compiling hashbrown v0.9.0
   Compiling rustc-hash v1.1.0
   Compiling either v1.6.0
   Compiling bitflags v1.2.1
   Compiling rustc-rayon-core v0.3.0
   Compiling instant v0.1.6
   Compiling ppv-lite86 v0.2.8
   Compiling opaque-debug v0.3.0
   Compiling cpuid-bool v0.1.2
   Compiling arrayvec v0.5.1
   Compiling remove_dir_all v0.5.3
   Compiling rustc_graphviz v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_graphviz)
   Compiling stable_deref_trait v1.2.0
   Compiling unicode-width v0.1.8
   Compiling scoped-tls v1.0.0
   Compiling termcolor v1.1.0
   Compiling annotate-snippets v0.8.0
   Compiling rustc_fs_util v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_fs_util)
   Compiling datafrog v2.0.1
   Compiling semver-parser v0.7.0
   Compiling serde v1.0.115
   Compiling tinyvec v0.3.4
   Compiling memchr v2.3.3
   Compiling ryu v1.0.5
   Compiling byteorder v1.3.4
   Compiling regex-syntax v0.6.18
   Compiling serde_json v1.0.59
   Compiling itoa v0.4.6
   Compiling snap v1.0.1
   Compiling ansi_term v0.12.1
   Compiling fixedbitset v0.2.0
   Compiling build_helper v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/build_helper)
   Compiling punycode v0.4.1
   Compiling unicode-script v0.5.2
   Compiling rustc-demangle v0.1.18
   Compiling pathdiff v0.2.0
   Compiling rustc_error_codes v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_error_codes)
   Compiling lock_api v0.4.1
   Compiling lock_api v0.3.4
   Compiling tracing-core v0.1.17
   Compiling crossbeam-utils v0.6.6
   Compiling thread_local v1.0.1
   Compiling sharded-slab v0.0.9
   Compiling itertools v0.9.0
   Compiling rustc_arena v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_arena)
   Compiling getopts v0.2.21
   Compiling rustc_lexer v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_lexer)
   Compiling generic-array v0.14.4
   Compiling indexmap v1.6.0
   Compiling crossbeam-utils v0.7.2
   Compiling memoffset v0.5.5
   Compiling crossbeam-epoch v0.8.2
   Compiling num-traits v0.2.12
   Compiling num-integer v0.1.43
   Compiling semver v0.9.0
   Compiling unicode-normalization v0.1.13
   Compiling crossbeam-queue v0.1.2
   Compiling psm v0.1.11
   Compiling stacker v0.1.12
   Compiling rustc_llvm v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_llvm)
   Compiling smallvec v0.6.13
   Compiling rustc_version v0.2.3
   Compiling rustc_apfloat v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_apfloat)
   Compiling ena v0.14.0
   Compiling polonius-engine v0.12.1
   Compiling tracing-log v0.1.1
   Compiling num_cpus v1.13.0
   Compiling parking_lot_core v0.8.0
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling termize v0.1.1
   Compiling time v0.1.43
   Compiling memmap v0.7.0
   Compiling quote v1.0.7
   Compiling aho-corasick v0.7.13
   Compiling unicode-security v0.0.5
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling rand_core v0.5.1
   Compiling parking_lot v0.11.0
   Compiling rustc_serialize v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_serialize)
   Compiling petgraph v0.5.1
   Compiling regex-automata v0.1.9
   Compiling rand_chacha v0.2.2
   Compiling measureme v9.0.0
   Compiling crossbeam-deque v0.7.3
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling regex v1.3.9
   Compiling matchers v0.0.1
   Compiling rand v0.7.3
   Compiling md-5 v0.9.1
   Compiling sha-1 v0.9.1
   Compiling sha2 v0.9.1
   Compiling chrono v0.4.15
   Compiling rustc-rayon v0.3.0
   Compiling tempfile v3.1.0
   Compiling tracing-serde v0.1.2
   Compiling rls-span v0.5.2
   Compiling rls-data v0.19.0
   Compiling synstructure v0.12.4
   Compiling tracing-attributes v0.1.11
   Compiling rustc_macros v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_macros)
   Compiling chalk-derive v0.36.0
   Compiling chalk-ir v0.36.0
   Compiling tracing v0.1.19
   Compiling tracing-subscriber v0.2.13
   Compiling rustc_index v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_index)
   Compiling rustc_data_structures v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_data_structures)
   Compiling tracing-tree v0.1.6
   Compiling rustc_span v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_span)
   Compiling rustc_ast v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast)
   Compiling rustc_target v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_target)
   Compiling rustc_feature v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_feature)
   Compiling rustc_parse_format v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_parse_format)
   Compiling chalk-solve v0.36.0
   Compiling rustc_lint_defs v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_lint_defs)
   Compiling rustc_ast_pretty v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_hir)
   Compiling rustc_errors v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_errors)
   Compiling chalk-engine v0.36.0
   Compiling rustc_session v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_session)
   Compiling rustc_query_system v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_query_system)
   Compiling rustc_hir_pretty v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_hir_pretty)
   Compiling rustc_attr v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_attr)
   Compiling rustc_parse v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_parse)
   Compiling rustc_ast_lowering v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast_lowering)
   Compiling rustc_middle v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_middle)
   Compiling rustc_ast_passes v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast_passes)
   Compiling rustc_expand v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_expand)
   Compiling rustc_builtin_macros v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_builtin_macros)
   Compiling rustc_infer v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_infer)
   Compiling rustc_symbol_mangling v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_symbol_mangling)
   Compiling rustc_metadata v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_metadata)
   Compiling rustc_incremental v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_incremental)
   Compiling rustc_save_analysis v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_save_analysis)
   Compiling rustc_codegen_ssa v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_codegen_ssa)
   Compiling rustc_resolve v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_resolve)
   Compiling rustc_trait_selection v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_trait_selection)
   Compiling rustc_codegen_llvm v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_codegen_llvm)
   Compiling rustc_lint v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_lint)
   Compiling rustc_typeck v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_typeck)
   Compiling rustc_ty v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ty)
   Compiling rustc_traits v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_traits)
   Compiling rustc_mir_build v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_mir_build)
   Compiling rustc_mir v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_mir)
   Compiling rustc_passes v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_passes)
   Compiling rustc_plugin_impl v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_plugin_impl)
   Compiling rustc_privacy v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_privacy)
   Compiling rustc_interface v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_interface)
   Compiling rustc_driver v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_driver)
   Compiling rustc-main v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc)
    Finished release [optimized] target(s) in 8m 10s
Copying stage0 rustc from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage1 compiler (x86_64-apple-darwin)
Building stage1 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
   Compiling cc v1.0.60
   Compiling core v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/core)
   Compiling libc v0.2.79
   Compiling std v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/std)
   Compiling compiler_builtins v0.1.36
   Compiling unwind v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/unwind)
   Compiling rustc-std-workspace-core v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/alloc)
   Compiling cfg-if v0.1.10
   Compiling adler v0.2.3
   Compiling rustc-demangle v0.1.18
   Compiling panic_abort v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/panic_abort)
   Compiling rustc-std-workspace-alloc v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-alloc)
   Compiling panic_unwind v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/panic_unwind)
   Compiling gimli v0.22.0
   Compiling object v0.20.0
   Compiling miniz_oxide v0.4.0
   Compiling hashbrown v0.9.0
   Compiling addr2line v0.13.0
   Compiling rustc-std-workspace-std v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-std)
   Compiling proc_macro v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/proc_macro)
   Compiling term v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/term)
   Compiling unicode-width v0.1.8
   Compiling getopts v0.2.21
   Compiling test v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/test)
    Finished release [optimized] target(s) in 42.54s
Copying stage1 std from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage1 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
   Compiling autocfg v1.0.0
   Compiling cfg-if v0.1.10
   Compiling libc v0.2.79
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling scopeguard v1.1.0
   Compiling syn v1.0.38
   Compiling maybe-uninit v2.0.0
   Compiling smallvec v1.4.2
   Compiling log v0.4.11
   Compiling cc v1.0.60
   Compiling typenum v1.12.0
   Compiling version_check v0.9.1
   Compiling getrandom v0.1.14
   Compiling hashbrown v0.9.0
   Compiling either v1.6.0
   Compiling rustc-hash v1.1.0
   Compiling bitflags v1.2.1
   Compiling instant v0.1.6
   Compiling ppv-lite86 v0.2.8
   Compiling rustc-rayon-core v0.3.0
   Compiling opaque-debug v0.3.0
   Compiling arrayvec v0.5.1
   Compiling remove_dir_all v0.5.3
   Compiling cpuid-bool v0.1.2
   Compiling unicode-width v0.1.8
   Compiling stable_deref_trait v1.2.0
   Compiling rustc_graphviz v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_graphviz)
   Compiling scoped-tls v1.0.0
   Compiling termcolor v1.1.0
   Compiling annotate-snippets v0.8.0
   Compiling rustc_fs_util v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_fs_util)
   Compiling datafrog v2.0.1
   Compiling semver-parser v0.7.0
   Compiling serde v1.0.115
   Compiling memchr v2.3.3
   Compiling tinyvec v0.3.4
   Compiling ryu v1.0.5
   Compiling byteorder v1.3.4
   Compiling regex-syntax v0.6.18
   Compiling serde_json v1.0.59
   Compiling itoa v0.4.6
   Compiling snap v1.0.1
   Compiling ansi_term v0.12.1
   Compiling build_helper v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/build_helper)
   Compiling fixedbitset v0.2.0
   Compiling punycode v0.4.1
   Compiling unicode-script v0.5.2
   Compiling rustc-demangle v0.1.18
   Compiling pathdiff v0.2.0
   Compiling rustc_error_codes v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_error_codes)
   Compiling lock_api v0.4.1
   Compiling lock_api v0.3.4
   Compiling tracing-core v0.1.17
   Compiling crossbeam-utils v0.6.6
   Compiling thread_local v1.0.1
   Compiling sharded-slab v0.0.9
   Compiling itertools v0.9.0
   Compiling rustc_arena v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_arena)
   Compiling getopts v0.2.21
   Compiling rustc_lexer v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_lexer)
   Compiling generic-array v0.14.4
   Compiling indexmap v1.6.0
   Compiling memoffset v0.5.5
   Compiling crossbeam-utils v0.7.2
   Compiling crossbeam-epoch v0.8.2
   Compiling num-traits v0.2.12
   Compiling num-integer v0.1.43
   Compiling semver v0.9.0
   Compiling unicode-normalization v0.1.13
   Compiling crossbeam-queue v0.1.2
   Compiling psm v0.1.11
   Compiling stacker v0.1.12
   Compiling rustc_llvm v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_llvm)
   Compiling smallvec v0.6.13
   Compiling rustc_version v0.2.3
   Compiling rustc_apfloat v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_apfloat)
   Compiling ena v0.14.0
   Compiling polonius-engine v0.12.1
   Compiling tracing-log v0.1.1
   Compiling parking_lot_core v0.8.0
   Compiling num_cpus v1.13.0
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling termize v0.1.1
   Compiling time v0.1.43
   Compiling memmap v0.7.0
   Compiling quote v1.0.7
   Compiling aho-corasick v0.7.13
   Compiling unicode-security v0.0.5
   Compiling parking_lot_core v0.6.2
   Compiling parking_lot v0.9.0
   Compiling rand_core v0.5.1
   Compiling parking_lot v0.11.0
   Compiling rustc_serialize v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_serialize)
   Compiling petgraph v0.5.1
   Compiling regex-automata v0.1.9
   Compiling rand_chacha v0.2.2
   Compiling measureme v9.0.0
   Compiling crossbeam-deque v0.7.3
   Compiling regex v1.3.9
   Compiling block-buffer v0.9.0
   Compiling digest v0.9.0
   Compiling rand v0.7.3
   Compiling matchers v0.0.1
   Compiling md-5 v0.9.1
   Compiling sha-1 v0.9.1
   Compiling sha2 v0.9.1
   Compiling chrono v0.4.15
   Compiling rustc-rayon v0.3.0
   Compiling tempfile v3.1.0
   Compiling tracing-serde v0.1.2
   Compiling rls-span v0.5.2
   Compiling rls-data v0.19.0
   Compiling synstructure v0.12.4
   Compiling tracing-attributes v0.1.11
   Compiling rustc_macros v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_macros)
   Compiling chalk-derive v0.36.0
   Compiling chalk-ir v0.36.0
   Compiling tracing v0.1.19
   Compiling rustc_index v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_index)
   Compiling tracing-subscriber v0.2.13
   Compiling rustc_data_structures v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_data_structures)
   Compiling tracing-tree v0.1.6
   Compiling chalk-solve v0.36.0
   Compiling rustc_span v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_span)
   Compiling rustc_ast v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast)
   Compiling rustc_target v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_target)
   Compiling rustc_feature v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_feature)
   Compiling rustc_parse_format v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_parse_format)
   Compiling chalk-engine v0.36.0
   Compiling rustc_lint_defs v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_lint_defs)
   Compiling rustc_ast_pretty v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast_pretty)
   Compiling rustc_hir v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_hir)
   Compiling rustc_errors v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_errors)
   Compiling rustc_session v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_session)
   Compiling rustc_query_system v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_query_system)
   Compiling rustc_hir_pretty v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_hir_pretty)
   Compiling rustc_attr v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_attr)
   Compiling rustc_parse v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_parse)
   Compiling rustc_ast_lowering v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast_lowering)
   Compiling rustc_middle v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_middle)
   Compiling rustc_ast_passes v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ast_passes)
   Compiling rustc_expand v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_expand)
   Compiling rustc_builtin_macros v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_builtin_macros)
   Compiling rustc_infer v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_infer)
   Compiling rustc_symbol_mangling v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_symbol_mangling)
   Compiling rustc_incremental v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_incremental)
   Compiling rustc_metadata v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_metadata)
   Compiling rustc_save_analysis v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_save_analysis)
   Compiling rustc_codegen_ssa v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_codegen_ssa)
   Compiling rustc_resolve v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_resolve)
   Compiling rustc_trait_selection v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_trait_selection)
   Compiling rustc_codegen_llvm v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_codegen_llvm)
   Compiling rustc_typeck v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_typeck)
   Compiling rustc_lint v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_lint)
   Compiling rustc_mir v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_mir)
   Compiling rustc_ty v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_ty)
   Compiling rustc_traits v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_traits)
   Compiling rustc_mir_build v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_mir_build)
   Compiling rustc_passes v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_passes)
   Compiling rustc_privacy v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_privacy)
   Compiling rustc_plugin_impl v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_plugin_impl)
   Compiling rustc_interface v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_interface)
   Compiling rustc_driver v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc_driver)
   Compiling rustc-main v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/compiler/rustc)
    Finished release [optimized] target(s) in 7m 55s
Copying stage1 rustc from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage2 compiler (x86_64-apple-darwin)
Uplifting stage1 std (x86_64-apple-darwin -> x86_64-apple-darwin)
Copying stage2 std from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building rustdoc for stage2 (x86_64-apple-darwin)
   Compiling autocfg v1.0.0
   Compiling cfg-if v0.1.10
   Compiling libc v0.2.79
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.19
   Compiling getrandom v0.1.14
   Compiling maybe-uninit v2.0.0
   Compiling unicode-xid v0.2.1
   Compiling memchr v2.3.3
   Compiling syn v1.0.38
   Compiling version_check v0.9.1
   Compiling scopeguard v1.1.0
   Compiling serde_derive v1.0.115
   Compiling serde v1.0.115
   Compiling ppv-lite86 v0.2.8
   Compiling bitflags v1.2.1
   Compiling rustc-rayon-core v0.3.0
   Compiling ryu v1.0.5
   Compiling pulldown-cmark v0.8.0
   Compiling serde_json v1.0.59
   Compiling either v1.6.0
   Compiling itoa v0.4.6
   Compiling remove_dir_all v0.5.3
   Compiling macro-utils v0.1.3
   Compiling regex-syntax v0.6.18
   Compiling smallvec v1.4.2
   Compiling crossbeam-utils v0.6.6
   Compiling thread_local v1.0.1
   Compiling minifier v0.0.33
   Compiling itertools v0.9.0
   Compiling unicase v2.6.0
   Compiling crossbeam-utils v0.7.2
   Compiling memoffset v0.5.5
   Compiling crossbeam-epoch v0.8.2
   Compiling crossbeam-queue v0.1.2
   Compiling aho-corasick v0.7.13
   Compiling num_cpus v1.13.0
   Compiling quote v1.0.7
   Compiling rand_core v0.5.1
   Compiling rand_chacha v0.2.2
   Compiling crossbeam-deque v0.7.3
   Compiling rand v0.7.3
   Compiling rustc-rayon v0.3.0
   Compiling tempfile v3.1.0
   Compiling regex v1.3.9
   Compiling rustdoc v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/librustdoc)
   Compiling rustdoc-tool v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/rustdoc)
    Finished release [optimized] target(s) in 1m 08s
Build completed successfully in 0:19:20
    Finished dev [unoptimized + debuginfo] target(s) in 0.32s
Generating unstable book md files (x86_64-apple-darwin)
Building stage0 tool unstable-book-gen (x86_64-apple-darwin)
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.38
   Compiling serde_derive v1.0.115
   Compiling serde v1.0.115
   Compiling memchr v2.3.3
   Compiling ryu v1.0.5
   Compiling serde_json v1.0.59
   Compiling semver-parser v0.7.0
   Compiling autocfg v1.0.0
   Compiling itoa v0.4.6
   Compiling lazy_static v1.4.0
   Compiling regex-syntax v0.6.18
   Compiling same-file v1.0.6
   Compiling walkdir v2.3.1
   Compiling thread_local v1.0.1
   Compiling num-traits v0.2.12
   Compiling aho-corasick v0.7.13
   Compiling quote v1.0.7
   Compiling regex v1.3.9
   Compiling semver v0.10.0
   Compiling cargo_metadata v0.11.1
   Compiling tidy v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/tidy)
   Compiling unstable-book-gen v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/unstable-book-gen)
    Finished release [optimized] target(s) in 23.23s
Building stage0 tool rustbook (x86_64-apple-darwin)
   Compiling libc v0.2.79
   Compiling getrandom v0.1.14
   Compiling serde v1.0.115
   Compiling syn v1.0.38
   Compiling cfg-if v0.1.10
   Compiling ppv-lite86 v0.2.8
   Compiling siphasher v0.3.3
   Compiling log v0.4.11
   Compiling new_debug_unreachable v1.0.4
   Compiling itoa v0.4.6
   Compiling mac v0.1.1
   Compiling utf-8 v0.7.5
   Compiling precomputed-hash v0.1.1
   Compiling ucd-trie v0.1.3
   Compiling version_check v0.9.1
   Compiling maplit v1.0.2
   Compiling matches v0.1.8
   Compiling bitflags v1.2.1
   Compiling unicode-width v0.1.8
   Compiling tinyvec v0.3.4
   Compiling unicode-segmentation v1.6.0
   Compiling quick-error v1.2.3
   Compiling percent-encoding v2.1.0
   Compiling pulldown-cmark v0.7.2
   Compiling anyhow v1.0.34
   Compiling ansi_term v0.11.0
   Compiling quick-error v2.0.0
   Compiling strsim v0.8.0
   Compiling remove_dir_all v0.5.3
   Compiling strum v0.18.0
   Compiling vec_map v0.8.2
   Compiling termcolor v1.1.0
   Compiling shlex v0.1.1
   Compiling open v1.4.0
   Compiling ryu v1.0.5
   Compiling serde_json v1.0.59
   Compiling num-traits v0.2.12
   Compiling num-integer v0.1.43
   Compiling futf v0.1.4
   Compiling unicode-bidi v0.3.4
   Compiling textwrap v0.11.0
   Compiling getopts v0.2.21
   Compiling pest v2.1.3
   Compiling phf_shared v0.8.0
   Compiling humantime v1.3.0
   Compiling unicode-normalization v0.1.13
   Compiling unicase v2.6.0
   Compiling tendril v0.4.1
   Compiling heck v0.3.1
   Compiling phf v0.8.0
   Compiling time v0.1.43
   Compiling atty v0.2.14
   Compiling idna v0.2.0
   Compiling rand_core v0.5.1
   Compiling env_logger v0.7.1
   Compiling clap v2.33.3
   Compiling pest_meta v2.1.3
   Compiling rand_chacha v0.2.2
   Compiling rand_pcg v0.2.1
   Compiling rand v0.7.3
   Compiling url v2.1.1
   Compiling chrono v0.4.15
   Compiling tempfile v3.1.0
   Compiling phf_generator v0.8.0
   Compiling phf_codegen v0.8.0
   Compiling string_cache_codegen v0.5.1
   Compiling string_cache v0.8.0
   Compiling toml v0.5.7
   Compiling pest_generator v2.1.3
   Compiling serde_derive v1.0.115
   Compiling html5ever v0.25.1
   Compiling pest_derive v2.1.0
   Compiling strum_macros v0.18.0
   Compiling handlebars v3.4.0
   Compiling markup5ever v0.10.0
   Compiling elasticlunr-rs v2.3.9
   Compiling xml5ever v0.16.1
   Compiling markup5ever_rcdom v0.1.0
   Compiling ammonia v3.1.0
   Compiling mdbook v0.4.3
   Compiling rustbook v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/rustbook)
    Finished release [optimized] target(s) in 38.80s
Rustbook (x86_64-apple-darwin) - unstable-book
Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.31s
Copying stage0 std from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.43s
Copying stage0 rustc from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage1 compiler (x86_64-apple-darwin)
Building stage1 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.28s
Copying stage1 std from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage1 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.40s
Copying stage1 rustc from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage2 compiler (x86_64-apple-darwin)
Rustbook (x86_64-apple-darwin) - book
Rustbook (x86_64-apple-darwin) - book/first-edition
Rustbook (x86_64-apple-darwin) - book/second-edition
Rustbook (x86_64-apple-darwin) - book/2018-edition
Documenting standalone (x86_64-apple-darwin)
Building rustdoc for stage2 (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.28s
Documenting book redirect pages (x86_64-apple-darwin)
Documenting stage2 std (x86_64-apple-darwin)
Uplifting stage1 std (x86_64-apple-darwin -> x86_64-apple-darwin)
Copying stage2 std from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
 Documenting core v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/core)
    Finished release [optimized] target(s) in 11.42s
   Compiling cc v1.0.60
    Checking core v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/core)
   Compiling compiler_builtins v0.1.36
    Checking rustc-std-workspace-core v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-core)
 Documenting alloc v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/alloc)
    Finished release [optimized] target(s) in 18.73s
   Compiling libc v0.2.79
   Compiling std v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/std)
   Compiling unwind v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/unwind)
    Checking alloc v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/alloc)
    Checking cfg-if v0.1.10
    Checking adler v0.2.3
    Checking rustc-demangle v0.1.18
    Checking panic_abort v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/panic_abort)
    Checking rustc-std-workspace-alloc v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-alloc)
    Checking panic_unwind v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/panic_unwind)
    Checking gimli v0.22.0
    Checking object v0.20.0
    Checking miniz_oxide v0.4.0
    Checking hashbrown v0.9.0
    Checking addr2line v0.13.0
 Documenting std v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/std)
    Finished release [optimized] target(s) in 13.13s
   Compiling std v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/std)
 Documenting proc_macro v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/proc_macro)
    Finished release [optimized] target(s) in 5.22s
    Checking rustc-std-workspace-std v1.99.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/rustc-std-workspace-std)
    Checking proc_macro v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/proc_macro)
    Checking term v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/term)
    Checking unicode-width v0.1.8
    Checking getopts v0.2.21
 Documenting test v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/library/test)
    Finished release [optimized] target(s) in 2.86s
Documenting stage2 compiler (x86_64-apple-darwin)
        skipping - compiler/librustdoc docs disabled
Documenting stage2 rustdoc (x86_64-apple-darwin)
        skipping - compiler/librustdoc docs disabled
Documenting error index (x86_64-apple-darwin)
Building stage1 tool error_index_generator (x86_64-apple-darwin)
   Compiling same-file v1.0.6
   Compiling walkdir v2.3.1
   Compiling error_index_generator v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/error_index_generator)
    Finished release [optimized] target(s) in 4.04s
Rustbook (x86_64-apple-darwin) - nomicon
Rustbook (x86_64-apple-darwin) - reference
Rustbook (x86_64-apple-darwin) - rustdoc
Rustbook (x86_64-apple-darwin) - rust-by-example
Generating lint docs (x86_64-apple-darwin)
Building stage0 tool lint-docs (x86_64-apple-darwin)
   Compiling serde v1.0.115
   Compiling rand v0.7.3
   Compiling tempfile v3.1.0
   Compiling serde_json v1.0.59
   Compiling lint-docs v0.1.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/lint-docs)
    Finished release [optimized] target(s) in 8.89s
Rustbook (x86_64-apple-darwin) - rustc
Rustbook (x86_64-apple-darwin) - cargo
Rustbook (x86_64-apple-darwin) - embedded-book
Rustbook (x86_64-apple-darwin) - edition-guide
Build completed successfully in 0:02:39
installing
install flags: SHELL=/nix/store/rq1inyhyr4gddgc5gxdid38iwn7769d7-bash-4.4-p23/bin/bash install
    Finished dev [unoptimized + debuginfo] target(s) in 0.27s
Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.26s
Copying stage0 std from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.32s
Copying stage0 rustc from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage1 compiler (x86_64-apple-darwin)
Building stage1 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.26s
Copying stage1 std from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage1 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.31s
Copying stage1 rustc from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Assembling stage2 compiler (x86_64-apple-darwin)
Generating unstable book md files (x86_64-apple-darwin)
Building stage0 tool unstable-book-gen (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.25s
Building stage0 tool rustbook (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.28s
Rustbook (x86_64-apple-darwin) - unstable-book
Documenting standalone (x86_64-apple-darwin)
Building rustdoc for stage2 (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.27s
Documenting book redirect pages (x86_64-apple-darwin)
Documenting stage2 std (x86_64-apple-darwin)
Uplifting stage1 std (x86_64-apple-darwin -> x86_64-apple-darwin)
Copying stage2 std from stage1 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.46s
    Finished release [optimized] target(s) in 0.51s
    Finished release [optimized] target(s) in 0.50s
    Finished release [optimized] target(s) in 0.46s
    Finished release [optimized] target(s) in 0.47s
Documenting stage2 compiler (x86_64-apple-darwin)
        skipping - compiler/librustdoc docs disabled
Documenting stage2 rustdoc (x86_64-apple-darwin)
        skipping - compiler/librustdoc docs disabled
Documenting error index (x86_64-apple-darwin)
Building stage1 tool error_index_generator (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.27s
Generating lint docs (x86_64-apple-darwin)
Building stage0 tool lint-docs (x86_64-apple-darwin)
    Finished release [optimized] target(s) in 0.24s
Rustbook (x86_64-apple-darwin) - rustc
Dist docs (x86_64-apple-darwin)
Building stage0 tool fabricate (x86_64-apple-darwin)
   Compiling maybe-uninit v2.0.0
   Compiling scopeguard v1.1.0
   Compiling rayon-core v1.7.1
   Compiling cc v1.0.60
   Compiling pkg-config v0.3.18
   Compiling crc32fast v1.2.0
   Compiling adler v0.2.3
   Compiling either v1.6.0
   Compiling yaml-rust v0.3.5
   Compiling crossbeam-utils v0.7.2
   Compiling memoffset v0.5.5
   Compiling crossbeam-epoch v0.8.2
   Compiling rayon v1.3.1
   Compiling num_cpus v1.13.0
   Compiling xattr v0.2.2
   Compiling filetime v0.2.12
   Compiling miniz_oxide v0.4.0
   Compiling tar v0.4.29
   Compiling clap v2.33.3
   Compiling flate2 v1.0.16
   Compiling crossbeam-queue v0.2.3
   Compiling lzma-sys v0.1.16
   Compiling crossbeam-deque v0.7.3
   Compiling xz2 v0.1.6
   Compiling installer v0.0.0 (/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/src/tools/rust-installer)
    Finished release [optimized] target(s) in 13.74s
        finished in 41.534 seconds
Install docs stage2 (Some(TargetSelection { triple: "x86_64-apple-darwin", file: None }))
install: creating uninstall script at /nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/uninstall.sh
install: installing component 'rust-docs'
cp: cannot create regular file '/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/doc/rust/html/std/keyword.Self.html': File exists
install: error: failed to copy directory. see logs at '/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib/rustlib/install.log'

command did not execute successfully: "sh" "/private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/build/tmp/dist/rust-docs-1.49.0-x86_64-apple-darwin/install.sh" "--prefix=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0" "--sysconfdir=/etc" "--datadir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share" "--docdir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/doc/rust" "--bindir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/bin" "--libdir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/lib" "--mandir=/nix/store/qnqw3y9nraah583k03s9mxiv82g2xcgs-rustc-1.49.0/share/man" "--disable-ldconfig"
expected success, got: exit code: 1

failed to run: /private/tmp/nix-build-rustc-1.49.0.drv-0/rustc-1.49.0-src/build/bootstrap/debug/bootstrap install --jobs 16
Build completed unsuccessfully in 0:01:13
make: *** [Makefile:56: install] Error 1
builder for '/nix/store/f14smyzwsrl2vyy5jymhj843n3f2xmr8-rustc-1.49.0.drv' failed with exit code 2
error: build of '/nix/store/f14smyzwsrl2vyy5jymhj843n3f2xmr8-rustc-1.49.0.drv' failed

Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

system: "x86_64-darwin"
host os: Darwin 20.3.0, macOS 10.16
multi-user?: no
sandbox: no
version: nix-env (Nix) 2.3.10
channels(Nasy): "home-manager, nixpkgs-21.05pre270157.be864bbd676"
nixpkgs: /Users/Nasy/.nix-defexpr/channels/nixpkgs

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

I'm unable to replicate this. On my system
 nix-env -iA nixpkgs.rustc
installing 'rustc-1.49.0'
these paths will be fetched (180.50 MiB download, 1233.60 MiB unpacked):
  /nix/store/189i8cpfdr758nplhviw59qcp539q4l2-rustc-1.49.0
  /nix/store/62pzc9y2vb9vjkvwkxcldy069v33l1d6-llvm-11.0.1-lib
  /nix/store/d77sn5i46czmw4dff0giwdy2sbq9zyy4-rustc-1.49.0-doc
  /nix/store/rvjj233rx5dsm96j81rzdz57jr7rs46c-rustc-1.49.0-man
  /nix/store/vn46n80aq09grwhzxi5ag83p5a6hsv2l-llvm-11.0.1
  /nix/store/yirk5kdf4r5qrfgfknv8q23xjv8kbnjv-libc++abi-5.0.2
  /nix/store/zw5gpaacfvrlhkxlyh67m6qax8kcw22c-libc++-5.0.2
copying path '/nix/store/d77sn5i46czmw4dff0giwdy2sbq9zyy4-rustc-1.49.0-doc' from 'https://cache.nix
copying path '/nix/store/yirk5kdf4r5qrfgfknv8q23xjv8kbnjv-libc++abi-5.0.2' from 'https://cache.nixo
copying path '/nix/store/62pzc9y2vb9vjkvwkxcldy069v33l1d6-llvm-11.0.1-lib' from 'https://cache.nixo
copying path '/nix/store/zw5gpaacfvrlhkxlyh67m6qax8kcw22c-libc++-5.0.2' from 'https://cache.nixos.o
copying path '/nix/store/vn46n80aq09grwhzxi5ag83p5a6hsv2l-llvm-11.0.1' from 'https://cache.nixos.or
copying path '/nix/store/rvjj233rx5dsm96j81rzdz57jr7rs46c-rustc-1.49.0-man' from 'https://cache.nix
copying path '/nix/store/189i8cpfdr758nplhviw59qcp539q4l2-rustc-1.49.0' from 'https://cache.nixos.o
building '/nix/store/gh5bw8ginj06gy9ypxnaavckcp1gpv5z-user-environment.drv'...
created 418 symlinks in user environment

marek@MacBookPro λ ~
❯❯❯ uname -a
Darwin MacBookPro.local 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu

system: "x86_64-darwin"
host os: Darwin 19.6.0, macOS 10.15.6
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.3.10
channels(root): "nixpkgs-21.03pre265561.9d6fd2ba135"
channels(marek): "nixpkgs-21.05pre270240.82abb66345f"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs

@nasyxx Could you please try to run this?
$ nix-channel --update && nix-env -iA nixpkgs.rustc

Hi @turboMaCk, I tried to update the channel, but still not work.  Thanok you anyway!
Looks like there is something breaking the binary cache of the rustc on my mac.  I'm going to clean all about rust and reinstall it.

authors: nasyxx turboMaCk

repo: NixOS/nixpkgs


text:
wiki: Open issues:derivation styles

https://nixos.org/wiki/Open_issues:derivation_styles

Partially covered by http://nixos.org/nixpkgs/manual/#chap-conventions.

i guess it would be nice to expend "convetions" chapter with extra way how to write derivations.

source: gharchive/issue

authors: ericsagnes garbas

license: MIT

license_type: permissive

license_source: github-api


text:
Python 3.9 doesn't detect libraries installed using withPackages

Describe the bug
I install python libraries like described on nixos.wiki, so
with pkgs;
let
  my-python-packages = python-packages: with python-packages; [
    pandas
    requests
    # other python packages you want
  ];
  python-with-my-packages = python3.withPackages my-python-packages;
in ...

And when I use python38, it all works fine, and python can see those libraries. However, if I just use python3 (which is python 3.9 by default on unstable), python does not see those libraries and instead just gives an import error
>>> import requests
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'requests'

Steps To Reproduce
Steps to reproduce the behavior:

Install any python 3.9 libraries with python3.withPackages or python39.withPackages
Launch python 3.9
Try to import the installed library

Expected behavior
Python sees the library and imports it successfully
Additional context
When I try to install the same library with nix-shell -p python3Packages.requests, it all works fine, and python is able to detect it.
Notify maintainers
@FRidh
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.13.19, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.15`
 - channels(root): `"nixos-21.11pre319562.c21ba4f7bb4"`
 - channels(flexagoon): `"home-manager"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
    - python3
    - python39

Are you running the python from the python-with-my-packages derivation? It isn't clear from your reproduction steps.

Are you running the python from the python-with-my-packages derivation? It isn't clear from your reproduction steps.

Yes, I am

I couldn't reproduce the bug either. I have tried nix-shell --pure below shell.nix
with import <nixpkgs> {};
let
  my-python-packages = python-packages: with python-packages; [
    pandas
    requests
  ];
  python-with-my-packages = python3.withPackages my-python-packages;
in mkShell {
  buildInputs = [
    python-with-my-packages
  ];
}

which produces
[alice@applePrincess:/tmp/example]$ nix-shell --pure
this derivation will be built:
  /nix/store/l05rgrw2gwxcb3cpyz175f5l6d8qz8l5-python3-3.8.8-env.drv
these 21 paths will be fetched (49.38 MiB download, 291.18 MiB unpacked):
  /nix/store/56ncqwrhx3f6xfpal4k70f8ni8b86ry2-python3.8-numpy-1.19.1
  /nix/store/7bjcygchy1qc5h23ihafl69dl36435dx-python3.8-et_xmlfile-1.0.1
  /nix/store/82lv93djq2kv9z1qc4lpxa7709fhh6vk-python3.8-pandas-1.1.1
  /nix/store/bzhwxhki4lh4g2ljhvfqcaa65njaad5g-python3.8-xlrd-1.2.0
  /nix/store/h5955s62wzfp92hswc4sissqh7450b0j-python3.8-scipy-1.5.2
  /nix/store/hmgnc9100kzb64xyixxs61dnpzqn5jm5-hdf5-1.10.6
  /nix/store/hwjcxgh86fcqjp093g1w3yw7hdppkyv7-python3.8-openpyxl-3.0.5
  /nix/store/imyizdkaszqsafhldr9wg89wsyf8mlgb-blas-3-dev
  /nix/store/jazbdaynlrcsvx8ffj2d7dk075x7a9a3-python3.8-jdcal-1.4.1
  /nix/store/lryv580dc7mrkh4mdp8zg159j80zdfjf-blas-3
  /nix/store/ls5mb9swbzj7mkxljkbrmkn3r1mnvb96-python3.8-lxml-4.6.3
  /nix/store/p4iy3jibxl5slqw4srw1r61xmxxjdb9q-python3.8-beautifulsoup4-4.9.1
  /nix/store/pw7vpy2x39sc50ydmqf2klqaymi51cqf-python3.8-SQLAlchemy-1.3.19
  /nix/store/q9x01xl1cmips9vh3ccji7f8mdxwdh53-lapack-3-dev
  /nix/store/rbds49rivnqhsprgk0gvcnak0w9n1p6a-python3.8-Bottleneck-1.3.2
  /nix/store/vz1dmbf1jfd2kdqr64451a7g0n8hj9jz-lapack-3
  /nix/store/wms4ig88n8w0kndibd0k55jgm1q6x7vf-c-blosc-1.20.0
  /nix/store/xnk3zyrzinbdh8k2s9qb56kdwfgs76kw-python3.8-tables-3.6.1
  /nix/store/xp866w89l80w30qi3ii0y25rzw7yjlj4-python3.8-soupsieve-2.0.1
  /nix/store/z5frgf1g3f2jz99mxmxpxj8k9rbn6jc4-python3.8-xlwt-1.3.0
  /nix/store/zp8gwfp3dh1x11wa23mcfzsblcr9zhsv-python3.8-numexpr-2.7.1
copying path '/nix/store/wms4ig88n8w0kndibd0k55jgm1q6x7vf-c-blosc-1.20.0' from 'https://cache.nixos.org'...
copying path '/nix/store/pw7vpy2x39sc50ydmqf2klqaymi51cqf-python3.8-SQLAlchemy-1.3.19' from 'https://cache.nixos.org'...
copying path '/nix/store/7bjcygchy1qc5h23ihafl69dl36435dx-python3.8-et_xmlfile-1.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/jazbdaynlrcsvx8ffj2d7dk075x7a9a3-python3.8-jdcal-1.4.1' from 'https://cache.nixos.org'...
copying path '/nix/store/ls5mb9swbzj7mkxljkbrmkn3r1mnvb96-python3.8-lxml-4.6.3' from 'https://cache.nixos.org'...
copying path '/nix/store/xp866w89l80w30qi3ii0y25rzw7yjlj4-python3.8-soupsieve-2.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/bzhwxhki4lh4g2ljhvfqcaa65njaad5g-python3.8-xlrd-1.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/z5frgf1g3f2jz99mxmxpxj8k9rbn6jc4-python3.8-xlwt-1.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/lryv580dc7mrkh4mdp8zg159j80zdfjf-blas-3' from 'https://cache.nixos.org'...
copying path '/nix/store/hmgnc9100kzb64xyixxs61dnpzqn5jm5-hdf5-1.10.6' from 'https://cache.nixos.org'...
copying path '/nix/store/vz1dmbf1jfd2kdqr64451a7g0n8hj9jz-lapack-3' from 'https://cache.nixos.org'...
copying path '/nix/store/p4iy3jibxl5slqw4srw1r61xmxxjdb9q-python3.8-beautifulsoup4-4.9.1' from 'https://cache.nixos.org'...
copying path '/nix/store/hwjcxgh86fcqjp093g1w3yw7hdppkyv7-python3.8-openpyxl-3.0.5' from 'https://cache.nixos.org'...
copying path '/nix/store/q9x01xl1cmips9vh3ccji7f8mdxwdh53-lapack-3-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/imyizdkaszqsafhldr9wg89wsyf8mlgb-blas-3-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/56ncqwrhx3f6xfpal4k70f8ni8b86ry2-python3.8-numpy-1.19.1' from 'https://cache.nixos.org'...
copying path '/nix/store/rbds49rivnqhsprgk0gvcnak0w9n1p6a-python3.8-Bottleneck-1.3.2' from 'https://cache.nixos.org'...
copying path '/nix/store/zp8gwfp3dh1x11wa23mcfzsblcr9zhsv-python3.8-numexpr-2.7.1' from 'https://cache.nixos.org'...
copying path '/nix/store/h5955s62wzfp92hswc4sissqh7450b0j-python3.8-scipy-1.5.2' from 'https://cache.nixos.org'...
copying path '/nix/store/xnk3zyrzinbdh8k2s9qb56kdwfgs76kw-python3.8-tables-3.6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/82lv93djq2kv9z1qc4lpxa7709fhh6vk-python3.8-pandas-1.1.1' from 'https://cache.nixos.org'...
building '/nix/store/l05rgrw2gwxcb3cpyz175f5l6d8qz8l5-python3-3.8.8-env.drv'...
created 329 symlinks in user environment

[nix-shell:/tmp/example]$ python3
Python 3.8.8 (default, Feb 19 2021, 11:04:50)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>

If I changed to nixos-unstable instead of nixpkgs. It successfully finds library.
[alice@applePrincess:/tmp/example]$ nix-shell --pure
this derivation will be built:
  /nix/store/2db93faj9kq05qgbabbpwzy67hrwlrrk-python3-3.9.6-env.drv
these 17 paths will be fetched (17.43 MiB download, 102.87 MiB unpacked):
  /nix/store/202rlzl358ddalkrj2b1alg61fiq8qza-python3.9-soupsieve-2.2.1
  /nix/store/6mc1s28skd4849zjf2vx04zmm1qhnl4h-c-blosc-1.21.0
  /nix/store/88qpsgnbw234n7y1ap23n5bp891pl33d-python3.9-greenlet-1.1.1
  /nix/store/ai7zznhm4k18c4b5h272zyz7cvfn9524-hdf5-1.10.6
  /nix/store/cpva1bmw5d87ys57n9a5jyq17zp59vfk-python3.9-beautifulsoup4-4.10.0
  /nix/store/dzxhykjgiix9vph392rdvwwifpz2jf1i-python3.9-openpyxl-3.0.7
  /nix/store/k450nkqycvciyk1zrxgy0f90r5gnx32y-python3.9-xlrd-2.0.1
  /nix/store/m23ba8vj8gcalbysycg8c8j4ipb832xd-python3.9-jdcal-1.4.1
  /nix/store/p1jvp85li52pb619ip6lp3dydj1b6xa3-python3.9-Bottleneck-1.3.2
  /nix/store/pa71l35mzcbb70ah6amvgzr2rna7c8yc-python3.9-xlwt-1.3.0
  /nix/store/racqgc8pf0fzgkizi4bn8z12kh9nndnb-python3.9-SQLAlchemy-1.4.23
  /nix/store/rkm6cirv5liqxwnnwjjd9vmi9hayf188-python3.9-pandas-1.3.2
  /nix/store/s28ynd51brcrdl8qifxsj7abym0iacpj-python3.9-numexpr-2.7.3
  /nix/store/s66b6fsqwhyf35cv1nir13y7zr2qdxbq-python3.9-webencodings-0.5.1
  /nix/store/sij9ii7nqa3rg2whm055zj38rbigd74q-python3.9-et_xmlfile-1.0.1
  /nix/store/v4i0r3kwyx8calh4sfn014qwwbiq7f6a-python3.9-html5lib-1.1
  /nix/store/y3fib1rrbr1sfda3szynavnwjcr51kc1-python3.9-tables-3.6.1
copying path '/nix/store/6mc1s28skd4849zjf2vx04zmm1qhnl4h-c-blosc-1.21.0' from 'https://cache.nixos.org'...
copying path '/nix/store/p1jvp85li52pb619ip6lp3dydj1b6xa3-python3.9-Bottleneck-1.3.2' from 'https://cache.nixos.org'...
copying path '/nix/store/sij9ii7nqa3rg2whm055zj38rbigd74q-python3.9-et_xmlfile-1.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/88qpsgnbw234n7y1ap23n5bp891pl33d-python3.9-greenlet-1.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/m23ba8vj8gcalbysycg8c8j4ipb832xd-python3.9-jdcal-1.4.1' from 'https://cache.nixos.org'...
copying path '/nix/store/s28ynd51brcrdl8qifxsj7abym0iacpj-python3.9-numexpr-2.7.3' from 'https://cache.nixos.org'...
copying path '/nix/store/202rlzl358ddalkrj2b1alg61fiq8qza-python3.9-soupsieve-2.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/s66b6fsqwhyf35cv1nir13y7zr2qdxbq-python3.9-webencodings-0.5.1' from 'https://cache.nixos.org'...
copying path '/nix/store/k450nkqycvciyk1zrxgy0f90r5gnx32y-python3.9-xlrd-2.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/pa71l35mzcbb70ah6amvgzr2rna7c8yc-python3.9-xlwt-1.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/ai7zznhm4k18c4b5h272zyz7cvfn9524-hdf5-1.10.6' from 'https://cache.nixos.org'...
copying path '/nix/store/v4i0r3kwyx8calh4sfn014qwwbiq7f6a-python3.9-html5lib-1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/racqgc8pf0fzgkizi4bn8z12kh9nndnb-python3.9-SQLAlchemy-1.4.23' from 'https://cache.nixos.org'...
copying path '/nix/store/cpva1bmw5d87ys57n9a5jyq17zp59vfk-python3.9-beautifulsoup4-4.10.0' from 'https://cache.nixos.org'...
copying path '/nix/store/dzxhykjgiix9vph392rdvwwifpz2jf1i-python3.9-openpyxl-3.0.7' from 'https://cache.nixos.org'...
copying path '/nix/store/y3fib1rrbr1sfda3szynavnwjcr51kc1-python3.9-tables-3.6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/rkm6cirv5liqxwnnwjjd9vmi9hayf188-python3.9-pandas-1.3.2' from 'https://cache.nixos.org'...
building '/nix/store/2db93faj9kq05qgbabbpwzy67hrwlrrk-python3-3.9.6-env.drv'...
warning: creating dangling symlink `/nix/store/fr06mfcxnpg6mwlr6mb705zdzdqvr5pw-python3-3.9.6-env//include/python3.9/python3.9m' -> `/nix/store/i1m8r7mv8h47wr850cdsxksy22lv6gsz-python3-3.9.6/include/python3.9/python3.9m' -> `../python3.9m'
created 435 symlinks in user environment

[nix-shell:/tmp/example]$ python3
Python 3.9.6 (default, Jun 28 2021, 08:57:49)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>

nix-info result:
 - system: `"x86_64-linux"`
 - host os: `Linux 5.14.7, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210922_bcd73eb`
 - channels(root): `"nixos-20.09.4404.a13824fe5e3, nixos-unstable-21.11pre319562.c21ba4f7bb4"`
 - channels(alice): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

@applePrincess that's because you use nix-shell. if I use nix-shell, I dont have the issue as well. It only occurs when I try to install libraries with home-manager

I don't use home-manager though
I ran home-manager switch with below home.nix in vm
{ config, pkgs, ... }:
let
  unstable = import <nixpkgs-unstable> {};
  my-python-packages = python-packages: with python-packages; [
    pandas
    requests
  ];
  python-with-my-packages = unstable.python3.withPackages my-python-packages;
in {
  programs.home-manager.enable = true;
  home.username = "root";
  home.homeDirectory = "/root";
  home.packages = [
    python-with-my-packages
  ];
  home.stateVersion = "21.11";
}

I can still import requests
[root@nixos:~]# python3
Python 3.9.6 (default, Jun 28 2021, 08:57:49)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>>

@flexagoon I am going to close this. If you have a minimal reproducible example we can open this again.

authors: FRidh applePrincess flexagoon tomprince


text:
Vulnerability roundup 107: vault-1.7.4: 1 advisory [5.4]

search, files

[ ] CVE-2021-41802 CVSSv3=5.4 (nixos-21.05)

CVE details
CVE-2021-41802
HashiCorp Vault and Vault Enterprise through 1.7.4 and 1.8.3 allowed a user with write permission to an entity alias ID sharing a mount accessor with another user to acquire this other user’s policies by merging their identities. Fixed in Vault and Vault Enterprise 1.7.5 and 1.8.4.

Scanned versions: nixos-21.05: 3b1789322fc.
Cc @Chili-Man
Cc @lnl7
Cc @offlinehacker
Cc @pradeepchhetri
Cc @rushmorem

NixOS 21.05 is EOL, this is fixed in 21.11

authors: FliegendeWurst ckauhaus


text:
ocamlfind printconf destdir is in /nix/store after 21.11 update

Describe the bug
With the following nix channels:
nixos https://nixos.org/channels/nixos-21.11
nixos-old https://nixos.org/channels/nixos-21.05

I see the following outputs:
$ nix-shell -E 'with (import <nixos> {}); mkShell { buildInputs = [ ocaml-ng.ocamlPackages_4_12.findlib ]; }' --command 'ocamlfind printconf destdir'
/nix/store/hrm5l8wmhs27dyh4ara71wi4xmd4fbnf-ocaml-findlib-1.9.1/lib/ocaml/4.12.0/site-lib
$ nix-shell -E 'with (import <nixos-old> {}); mkShell { buildInputs = [ ocaml-ng.ocamlPackages_4_12.findlib ]; }' --command 'ocamlfind printconf destdir'
/nix/store/knnrpc2i9f68vscyzkwhj35qdpqf99rk-nix-shell/lib/ocaml/4.12.0/site-lib/

This causes a custom z3 build script I have that tries to install via ocamlfind to fail with:
installing
install flags: SHELL=/nix/store/l0wlqpbsvh1pgvhcdhw7qkka3d31si7k-bash-5.1-p8/bin/bash install
WARNING: installing files/directories (/nix/store/6crdaf03mx9pb32gp40z298v26c9hs6c-ocaml-findlib-1.9.1/lib/ocaml/4.12.0/site-lib) that are not in the install prefix (/nix/store/ghs5wg752pismc15hvlsihlbknkcdpyj-z3-4.8.5).
ocamlfind: Cannot mkdir /nix/store/6crdaf03mx9pb32gp40z298v26c9hs6c-ocaml-findlib-1.9.1/lib/ocaml/4.12.0/site-lib/Z3: Permission denied

this might be related to https://github.com/NixOS/nixpkgs/issues/121991 ? But I'm not 100% sure
Notify maintainers

@maggesi @vbmithr
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.81, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(root): `"nixos-21.11.334684.1158f346391, nixos-master, nixos-old-21.05.4646.3f0e4de0c2d, nixos-unstable-22.05pre340324.eac07edbd20, nixos-unstable-small-22.05pre340352.3d91acc39a3"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

My current hypothesis is that it has something to do with https://github.com/NixOS/nixpkgs/commit/e98be5d5e09cd1c43789cba9d681cf0799d2e957 -- @symphorien any ideas?

I think the problem was introduced by https://github.com/NixOS/nixpkgs/pull/133008/commits/a3ab43d3a45338f845a0f8a12ed34e84c8b79dae
Fixed in #152276

authors: jpdoyle symphorien


text:
youtube-dl updated too slowly for stable releases

This is a problem which more distributions have, but given the rate of change of the youtube-dl project I see a major mismatch between what Nix wants to offer, which is stability and the inherent instabity of youtube-dl.
I would like to see youtube-dl built at least everyday (but preferably every release of the upstream project).
One way to solve the larger problem of essentially executing arbitrary code on a machine would be to provide some small VM (docker/don't care) on which the program would be executed (such that there is no data being leaked into the VM environment).
I don't particularly care about the final solution you might pick in the end (one of them would be to consciously make the choice to not package it anymore).
See below for an example interaction.
nix-env -i youtube-dl &&
~/.nix-profile/bin/youtube-dl 'https://www.youtube.com/watch?v=ZBpkvR2-nQo2H'

results in a pile of errors (last one is)
AttributeError: 'module' object has no attribute 'sslwrap'

Nix 16.03 (Ubuntu 14.04.4 LTS)

I've been using youtube-dl quite frequently and it works just fine in the master branch. So probably all that would need to be done is to make sure new versions from master are  back-ported to release-16.03 regularly -- or least more often that we do it right now. This is something you, @0xABAB, could actually help us with, i.e. by creating a PR every now and then.

I believe the immediate issue has been resolved by https://github.com/NixOS/nixpkgs/pull/16985

I tested youtube-dl on release-16.03 a few days ago and was unable to download a video. I don't remember the exact error message :-( Anyway, I cherry-picked the updates that are on master to release-16.03 and now I'm able to download that video.

@joachifm: Thanks for the ref.

That error ("AttributeError: 'module' object has no attribute 'sslwrap'") might be due to something else though. (I don't see why that error would appear just because youtube-dl is "old".)
Btw, I successfully ran this in Ubuntu 16.04 (not 14.04... I only had 16.04 readily available):
$ curl https://nixos.org/nix/install | sh
...
$ nix-env -i youtube-dl
$ youtube-dl 'https://www.youtube.com/watch?v=ZBpkvR2-nQo2H'
[download success]

That was on the nixpkgs-unstable channel, nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion => "16.09pre86805.3223ef5".

authors: 0xABAB bjornfor joachifm peti


text:
Cinnamon: locking from menu sometimes does not work

Describe the bug
There is a lock button here:

Sometimes clicking it does not work (no reaction). Looking at the journal, the issue only happens when screensaver left the bus and when clicking the button you get this from the journal:
JS LOG: Ignored exception from dbus method: Gio.IOErrorEnum: Cannot invoke method; proxy is for a well-known name org.cinnamon.ScreenSaver without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag

The related code is at:
https://github.com/linuxmint/cinnamon/blob/5.4.0/files/usr/share/cinnamon/applets/menu%40cinnamon.org/applet.js#L2738
It looks like it tries for /usr/bin/cinnamon-screensaver-command and if it fails it this._screenSaverProxy.LockRemote(""); and it looks like the path was not handled in nixpkgs. Mentioned in https://github.com/linuxmint/cinnamon-screensaver/issues/384#issuecomment-877382012 "the screensaver spawns when needed and exits once it's deactivated".
Maybe we should fix the path for cinnamon-screensaver-command in this case? (The user@cinnamon.org applet probably also needs a fix)
/cc @mkg20001

Reproduced the issue on Linux Mint when I change /usr/bin/cinnamon-screensaver-command to path that does not exist


text:
JetBrains applications/products installed using JetBrains Toolbox won't start

Describe the Bug
I recently installed jetbrains-toolbox with Home Manager. I then installed at least 3 applications I commonly use, using JetBrains Toolbox...and not a single one will start.
Steps To Reproduce

Install jetbrains-toolbox
Open JetBrains Toolbox and install DataGrip (or any other application/product)
Start the application

Expected Behavior
Applications installed should work.
Additional Context
This is the error I'm getting in the journal:
Jun 28 18:12:46 uplink jetbrains-idea.desktop[59365]: /home/x80486/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9161.38/bin/idea.sh: line 171: /home/x80486/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9161.38/jbr/bin/java: cannot execute: required file not found

And something similar if I try to just run the shell script directly:
[x80486@uplink:~/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9161.38/bin]$ ./idea.sh
./idea.sh: line 171: /home/x80486/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.9161.38/jbr/bin/java: cannot execute: required file not found

Notify maintainers
@AnatolyPopov
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[x80486@uplink:~]$ nix-shell -p nix-info --run "nix-info -m"
this path will be fetched (0.01 MiB download, 0.05 MiB unpacked):
  /nix/store/5wdlffjhcr4i43sfajxcvx3lvnkryh5y-stdenv-linux
copying path '/nix/store/5wdlffjhcr4i43sfajxcvx3lvnkryh5y-stdenv-linux' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.35, NixOS, 23.05 (Stoat), 23.05.1375.9790f3242da`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(x80486): `"home-manager-23.05.tar.gz"`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

I'm not sure what happened, but after recent system update and rm -rf ~/.cache/JetBrains/Fleet it is launching for me, but only through Jetbrains Toolbox - the script doesn't work.
It seems to start in it's own bwrap environment

I see what you describe. Not sure what's going on with Toolbox, but the applications are able to start if started, as you said, from Toolbox itself. Basically the desktop icon is useless for the time being.
Feel free to let this one open if you have plans to take a look at it at some point. Thanks for the tip! :wave:

As far as I understand the reason is that you are using JetBrains JDK that is downloaded into your home directory. It is not properly patched to see the all the needed system library and interpreter and has default paths in ELF file. That's the reason for file not found. When you start your ide from JB Toolbox it's started via appimage and the appimage environment has all the required paths, so dependencies of jvm are resolvable there. So this appimage env is propagated to ide and because of that it magically works. I was trying to solve this issue for quite long time (before I discovered how to run Toolbox) and all my attempts were unsuccessful.

I'm seeing this problem also. I have not downloaded anything "manually" - I installed the NixOS package for jetbrains-toolbox and then used that for installing JetBrains applications (as is pretty much the whole point of it).
Applications work when started by JetBrains Toolbox because they are then launched inside the bwrap environment. The problem is the .desktop files created by Jetbrains Toolbox just try to start the java binary without the bwrap environment.
I realize it is messy to live-patch .desktop files that JetBrains Toolbox creates. But if NixOS at least provded a way for me to launch applications inside of the same environment as JetBrains Toolbox (similar to the steam-run package) then I could create my own .desktop files or shell scripts to start the developer tools without having to click my way through the Toolbox every time.

This is aggravated by the fact that the Jetbrains Toolbox tray icon does not display properly in the polybar tray, so if you ever close the Toolbox window you have to start another Toolbox process even though the previous one is still running.

New to NixOS here, and I have the same behaviour.
Fresh install of "jetbrains-toolbox" through systemPackages in /etc/nixos/configuration.nix
I installed RustRover from the ToolBox and whenever I try to start it with the "application shortcut" it doesn't start.
I need to start it from Jetbrains Toolbox for it to start properly.

  programs.nix-ld.enable = true;
  programs.nix-ld.libraries = with pkgs; [
    freetype
    zlib
    xorg.libXext
    xorg.libX11
    xorg.libXrender
    xorg.libXtst
    xorg.libXi
   # ...
  ];

got me a little bit further

  programs.nix-ld.enable = true;
  programs.nix-ld.libraries = with pkgs; [
    curl
    expat
    fontconfig
    freetype
    fuse
    fuse3
    glib
    icu
    libclang.lib
    libdbusmenu
    libxcrypt-legacy
    libxml2
    nss
    openssl
    python3
    stdenv.cc.cc
    xorg.libX11
    xorg.libXext
    xorg.libXi
    xorg.libXrender
    xorg.libXtst
    xz
    zlib
  ];

works for me with rustrover...

It somehow works, but when using Android Studio, I cannot setup the JDK path to the JAVA_HOME env. variable, which is possible using the android-studio package.
@haraldh Do you happen to know how to fix this with your setup?

You can try with all appimage packages as defined in https://github.com/NixOS/nixpkgs/blob/3030f185ba6a4bf4f18b87f345f104e6a6961f34/pkgs/build-support/appimage/default.nix#L95-L212
e.g.
    programs.nix-ld.libraries = with pkgs; [
      SDL
      SDL2
      SDL2_image
      SDL2_mixer
      SDL2_ttf
      SDL_image
      SDL_mixer
      SDL_ttf
      alsa-lib
      at-spi2-atk
      at-spi2-core
      atk
      bzip2
      cairo
      cups
      curlWithGnuTls
      dbus
      dbus-glib
      desktop-file-utils
      e2fsprogs
      expat
      flac
      fontconfig
      freeglut
      freetype
      fribidi
      fuse
      fuse3
      gdk-pixbuf
      glew110
      glib
      gmp
      gst_all_1.gst-plugins-base
      gst_all_1.gst-plugins-ugly
      gst_all_1.gstreamer
      gtk2
      harfbuzz
      icu
      keyutils.lib
      libGL
      libGLU
      libappindicator-gtk2
      libcaca
      libcanberra
      libcap
      libclang.lib
      libdbusmenu
      libdrm
      libgcrypt
      libgpg-error
      libidn
      libjack2
      libjpeg
      libmikmod
      libogg
      libpng12
      libpulseaudio
      librsvg
      libsamplerate
      libthai
      libtheora
      libtiff
      libudev0-shim
      libusb1
      libuuid
      libvdpau
      libvorbis
      libvpx
      libxcrypt-legacy
      libxkbcommon
      libxml2
      mesa
      nspr
      nss
      openssl
      p11-kit
      pango
      pixman
      python3
      speex
      stdenv.cc.cc
      tbb
      udev
      vulkan-loader
      wayland
      xorg.libICE
      xorg.libSM
      xorg.libX11
      xorg.libXScrnSaver
      xorg.libXcomposite
      xorg.libXcursor
      xorg.libXdamage
      xorg.libXext
      xorg.libXfixes
      xorg.libXft
      xorg.libXi
      xorg.libXinerama
      xorg.libXmu
      xorg.libXrandr
      xorg.libXrender
      xorg.libXt
      xorg.libXtst
      xorg.libXxf86vm
      xorg.libpciaccess
      xorg.libxcb
      xorg.xcbutil
      xorg.xcbutilimage
      xorg.xcbutilkeysyms
      xorg.xcbutilrenderutil
      xorg.xcbutilwm
      xorg.xkeyboardconfig
      xz
      zlib
    ];

You can try with all appimage packages as defined in
https://github.com/NixOS/nixpkgs/blob/3030f185ba6a4bf4f18b87f345f104e6a6961f34/pkgs/build-support/appimage/default.nix#L95-L212
e.g.
    programs.nix-ld.libraries = with pkgs; [
      SDL
      SDL2
      SDL2_image
      SDL2_mixer
      SDL2_ttf
      SDL_image
      SDL_mixer
      SDL_ttf
      alsa-lib
      at-spi2-atk
      at-spi2-core
      atk
      bzip2
      cairo
      cups
      curlWithGnuTls
      dbus
      dbus-glib
      desktop-file-utils
      e2fsprogs
      expat
      flac
      fontconfig
      freeglut
      freetype
      fribidi
      fuse
      fuse3
      gdk-pixbuf
      glew110
      glib
      gmp
      gst_all_1.gst-plugins-base
      gst_all_1.gst-plugins-ugly
      gst_all_1.gstreamer
      gtk2
      harfbuzz
      icu
      keyutils.lib
      libGL
      libGLU
      libappindicator-gtk2
      libcaca
      libcanberra
      libcap
      libclang.lib
      libdbusmenu
      libdrm
      libgcrypt
      libgpg-error
      libidn
      libjack2
      libjpeg
      libmikmod
      libogg
      libpng12
      libpulseaudio
      librsvg
      libsamplerate
      libthai
      libtheora
      libtiff
      libudev0-shim
      libusb1
      libuuid
      libvdpau
      libvorbis
      libvpx
      libxcrypt-legacy
      libxkbcommon
      libxml2
      mesa
      nspr
      nss
      openssl
      p11-kit
      pango
      pixman
      python3
      speex
      stdenv.cc.cc
      tbb
      udev
      vulkan-loader
      wayland
      xorg.libICE
      xorg.libSM
      xorg.libX11
      xorg.libXScrnSaver
      xorg.libXcomposite
      xorg.libXcursor
      xorg.libXdamage
      xorg.libXext
      xorg.libXfixes
      xorg.libXft
      xorg.libXi
      xorg.libXinerama
      xorg.libXmu
      xorg.libXrandr
      xorg.libXrender
      xorg.libXt
      xorg.libXtst
      xorg.libXxf86vm
      xorg.libpciaccess
      xorg.libxcb
      xorg.xcbutil
      xorg.xcbutilimage
      xorg.xcbutilkeysyms
      xorg.xcbutilrenderutil
      xorg.xcbutilwm
      xorg.xkeyboardconfig
      xz
      zlib
    ];

I can confirm this works for:

IntelliJ IDEA Ultimate
Rider
RustRover
WebStorm

libsecret is also nice to have

When I launch an IDE using the jetbrains-toolbox app git works fine. When I start the IDE externally, any git server communication fails with the following error:
unable to access 'https://git.example.org/foo/bar.git/': server certificate verification failed. CAfile: none CRLfile: none

Is there a workaround to make the system CA bundle available?

or NIX_SSL_CERT_FILE

I've set both variables, it doesn't help unfortunately.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/latest-intellij-idea-ultimate/43103/10

authors: AnatolyPopov Valpha80 captainepoch haraldh mattiasflodin meenzen nazarewk nixos-discourse x80486


text:
Update request: jq 1.6 → 1.7

Package name: jq
Latest released version: 1.7

Current version on the unstable channel: 1.6

Current version on the stable/release channel: 1.6

[x] Checked the nixpkgs pull requests

Notify maintainers
@raskin @globin @artturin
I tried to do the bump myself, but Nix complained about a circular dependency between outputs.
the new sha is sha256-QCoNaXXZRub05ITRqEMgQUoP+Ots9J0sEdFE1NNE22I=, and the patch is not needed anymore.

Note for maintainers: Please tag this issue in your PR.

https://github.com/NixOS/nixpkgs/pull/246515

authors: Artturin leiserfg


text:
twtxt gives a "ModuleNotFoundError: No module named 'pkg_resources'" error outside a devel enviroment

Describe the bug
When we try to install twtxt package on environment.systempackages = with pkgs;[ twtxt ]; the twtxt application does not work with the output on the title.
Steps To Reproduce
Steps to reproduce the behavior:

Type this flake.nix based on twtxt nixpkgs reference

{
  description = "A twtxt build schema";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
    let

      pkgs = import nixpkgs {
        inherit system;
      };

      my_twtxt = pkgs.python3Packages.buildPythonApplication rec {
        pname = "twtxt";
        version = "1.3.1";

        src = pkgs.fetchFromGitHub {
          owner = "buckket";
          repo = pname;
          rev = "refs/tags/v${version}";
          sha256 = "sha256-CbFh1o2Ijinfb8X+h1GP3Tp+8D0D3/Czt/Uatd1B4cw=";
        };

        # Relax some dependencies
        postPatch = ''
          substituteInPlace setup.py \
            --replace 'aiohttp>=2.2.5,<3' 'aiohttp' \
            --replace 'click>=6.7,<7' 'click' \
            --replace 'humanize>=0.5.1,<1' 'humanize'
        '';

        propagatedBuildInputs = with pkgs.python3Packages;[ aiohttp python-dateutil humanize click ];

        nativeCheckInputs = with pkgs.python3Packages; [ pytestCheckHook tox ];

        disabledTests = [
          # Disable test using relative date and time
          "test_tweet_relative_datetime"
        ];

        meta = with pkgs.lib; {
          description = "Decentralised, minimalist microblogging service for hackers";
          homepage = "https://github.com/buckket/twtxt";
          license = licenses.mit;
          maintainers = with maintainers; [ siraben ];
          mainProgram = "twtxt";
        };
      };

      packageName = "twtxt";

    in {
      packages.${packageName} = my_twtxt;
      defaultPackage = self.packages.${system}.${packageName};
    }
  );
}

Run nix run .# -- --version to run the equivalent to twtxt --version

Expected behavior
The result from command above should be
[user@system:~]$ nix run .# -- --version
twtxt, version 1.3.1

Screenshots
But the output will be something like
Traceback (most recent call last):
  File "/nix/store/dq9bgw3rgs5ck6whqkh64qa97yzj7cd2-twtxt-1.3.1/bin/.twtxt-wrapped", line 6, in <module>
    from twtxt.cli import main
  File "/nix/store/dq9bgw3rgs5ck6whqkh64qa97yzj7cd2-twtxt-1.3.1/lib/python3.11/site-packages/twtxt/cli.py", line 22, in <module>
    from twtxt.helper import run_pre_tweet_hook, run_post_tweet_hook
  File "/nix/store/dq9bgw3rgs5ck6whqkh64qa97yzj7cd2-twtxt-1.3.1/lib/python3.11/site-packages/twtxt/helper.py", line 17, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Additional context
The steuptools needs to be referenced on propagatedBuildInputs, maybe another python applications have the same bug.
Notify maintainers
@siraben
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.311, NixOS, 24.05 (Uakari), 24.05.20240403.fd281bd`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/n2g5cqwv8qf5p6vjxny6pg3blbdij12k-source`

Add a :+1: reaction to issues you find important.

Could you please take a look at #301767? Feedback would be much appreciated as I'm not a twtxt user.

authors: fabaff orahcio