Skip to content

Instantly share code, notes, and snippets.

@steshaw
Last active August 9, 2019 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steshaw/fb156b7a2ad460f4326d95b949a82cb0 to your computer and use it in GitHub Desktop.
Save steshaw/fb156b7a2ad460f4326d95b949a82cb0 to your computer and use it in GitHub Desktop.
Install Rust
$ 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]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment