[Nix-dev] hardware.enableAllFirmware doesn't work
James Cook
james.cook at utoronto.ca
Mon Feb 13 05:36:04 CET 2012
Hello,
When I set hardware.enableAllFirmware = true in nixos, I get a
collision between firmware-linux-nonfree and linux. See my
configuration.nix and transcript at the end.
I am guessing the way to fix this is to set meta.priority on one of
the two packages, but I don't understand the situation well enough to
know if that will break anything.
For now, I've worked around the problem by commenting out a few of the
lines in
pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix.
(If it's useful, I found that commenting out linux-nonfree, bnx2,
iwlwifi and qlogic did the trick. It works for me because I only need
the ralink firmware.)
Thanks!
James
=== minimal configuration.nix to produce the problem ===
{config, pkgs, ...}:
{
fileSystems = [];
hardware.enableAllFirmware = true;
}
=== transcript ===
[root at angel-nixos:~]# nixos-rebuild --fast build
building the system configuration...
these derivations will be built:
/nix/store/3plqdga620627jynxqxzp7zzqn8grz3b-udev.conf.drv
/nix/store/bss00yd5as7ss7syivxm29a65ih34lqq-etc.drv
/nix/store/gxy74m9k58xizsmxadj6n8r24nh0cipd-upstart-udev.conf.drv
/nix/store/v1byr582i8kdjnvgqsg8iaa5z296dqc6-system.drv
/nix/store/wsdvcmd2j0ln1wizyxrdwwvrsyzv8ira-udev-rules.drv
/nix/store/zsgyfvprarn385jiylpkm2l0yad9ahq2-firmware.drv
building path(s) `/nix/store/3k6h7k1vl3v52c5cvsv44wbgdmlkplkk-firmware'
building /nix/store/3k6h7k1vl3v52c5cvsv44wbgdmlkplkk-firmware
collision between
`/nix/store/cryqq3ys9plswcnhcqpj45kpq8cgfbzv-firmware-linux-nonfree-0.35/3com/typhoon.bin' and `/nix/store/1f7w067acwyj5za66335xcn1hicaha2w-linux-2.6.35.14/lib/firmware/3com/typhoon.bin' at /nix/store/1pwj1c26h0vi5w535iw2ipd26zd6k6hq-builder.pl line
72.
builder for `/nix/store/zsgyfvprarn385jiylpkm2l0yad9ahq2-firmware.drv'
failed; keeping build directory
`/tmp/nix-build-zsgyfvprarn385jiylpkm2l0yad9ahq2-firmware.drv-1'
builder for `/nix/store/zsgyfvprarn385jiylpkm2l0yad9ahq2-firmware.drv'
failed with exit code 2
cannot build derivation
`/nix/store/wsdvcmd2j0ln1wizyxrdwwvrsyzv8ira-udev-rules.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/3plqdga620627jynxqxzp7zzqn8grz3b-udev.conf.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/gxy74m9k58xizsmxadj6n8r24nh0cipd-upstart-udev.conf.drv': 1
dependencies couldn't be built
cannot build derivation
`/nix/store/bss00yd5as7ss7syivxm29a65ih34lqq-etc.drv': 1 dependencies
couldn't be built
cannot build derivation
`/nix/store/v1byr582i8kdjnvgqsg8iaa5z296dqc6-system.drv': 2
dependencies couldn't be built
error: build of
`/nix/store/v1byr582i8kdjnvgqsg8iaa5z296dqc6-system.drv' failed
More information about the nix-dev
mailing list