$ nix-env -f '<nixpkgs>' -iA rustc cargo binutils gcc gnumake openssl pkgconfig
replacing old 'gcc-wrapper-7.4.0'
replacing old 'gnumake-4.2.1'
replacing old 'pkg-config-0.29.2'
installing 'rustc-1.36.0'
installing 'cargo-1.36.0'
installing 'binutils-wrapper-2.31.1'
installing 'gcc-wrapper-7.4.0'
installing 'gnumake-4.2.1'
installing 'openssl-1.0.2s'
installing 'pkg-config-0.29.2'
building '/nix/store/8hgj54vbrwlnqqiy07frsz8v0m2qcw55-user-environment.drv'...
error: packages '/nix/store/hsi8wy263vimgvr4nf2hvf9gx661qkvj-binutils-wrapper-2.31.1/bin/ld.bfd' and '/nix/store/hpzj855nkgjvg58nrhq4910sb9q3kss1-gcc-wrapper-7.4.0/bin/ld.bfd' have the same priority 10; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
builder for '/nix/store/8hgj54vbrwlnqqiy07frsz8v0m2qcw55-user-environment.drv' failed with exit code 1
error: build of '/nix/store/8hgj54vbrwlnqqiy07frsz8v0m2qcw55-user-environment.drv' failed
With nix-shell
:
$ nix-shell -p rustc cargo binutils gcc gnumake openssl pkgconfig
[nix-shell:~/Code/wezm/read-rust]$