[Nix-dev] How to buildEnv with pathname-conflicting packages?

Kosyrev Serge _deepfire at feelingofgreen.ru
Wed Aug 12 22:41:07 CEST 2015


Good day, folks!

I'm trying to have a buildEnv with clang and gcc:

,----
| with import <nixpkgs> {};
| buildEnv {
|   name = "chroot";
|   paths = [ stdenv
|             bash
|             clang gcc haskellPackages.ghc git python ];
| }
`----

,----
| [deepfire at andromedae:~/src]$ nix-build buildenv.nix
| these derivations will be built:
|   /nix/store/x3wsmf7xs29q2c2zcj232yg5lfxzkk10-chroot.drv
| building path(s) ‘/nix/store/335jairjzxl1ddp08lhan0qjwrgnrjvy-chroot’
| collision between `/nix/store/47sfpm2qclpqvrzijizimk4md1739b1b-gcc-wrapper-4.9.3/bin/as' and `/nix/store/f3d7nrxflkzghhh0hc5nqwc11zrs80vq-clang-wrapper-3.6.2/bin/as' at /nix/store/9z6d76pz8rr7gci2n3igh5dqi7ac5xqj-builder.pl line 72.
| builder for ‘/nix/store/x3wsmf7xs29q2c2zcj232yg5lfxzkk10-chroot.drv’ failed with exit code 25
| error: build of ‘/nix/store/x3wsmf7xs29q2c2zcj232yg5lfxzkk10-chroot.drv’ failed
`----

What do I do, then?

Priorities do not seem to be the way to do it, according to:

  https://github.com/NixOS/nixpkgs/issues/7425

-- 
respectfully,
Косырев Серёга
-- 
“And those who were seen dancing were thought to be insane
 by those who could not hear the music.”
 – Friedrich Wilhelm Nietzsche


More information about the nix-dev mailing list