[Nix-dev] Re: Re: udev 151

Yury G. Kudryashov urkud+nix at ya.ru
Thu Apr 15 19:59:47 CEST 2010


Hi!

First of all, I talked upstream, and they don't want to search in 
getenv(something). OTOH, they will accept a patch that will add configure-
time option "--with-firmware-path".

My proposal:
1. write this patch (will do).
2. set --with-firmware-path=/var/lib/udev/firmware
3. nix system expression creates /nix/store/hash-firmware with all needed 
firmware files.
4. udev job creates symlinks /nix/store/hash-firmware into 
/var/lib/udev/firmware.


Tony White wrote:
> 2010/4/14 Lluís Batlle i Rossell <viriketo at gmail.com>:
> Yeah, I agree with Lluís. /root/test-firmware is meant to be an impure
> path used for testing firmware without any need for a rebuild. That
> was my concern. Preserving the functionality.
Do you want to write a patch and maintain it forever?
> Please preserve the location and functionality if you can. There are
> plenty of kernel modules out there which do require firmware but there
> exists no nix expression in nixpkgs for. Many wireless adapters for
> example.
If you need some impure path, we can add ONE standard impure path 
(/root/test-firmware or /lib/firmware) to --with-firmware-path argument. 
Note that adding another argument will require full rebuild of all packages 
that depend on udev (for example, xorgserver).
> It also makes no sense for certain firmware blobs to have an
> expression in nixpkgs because of proprietary licensing terms. So it
> needs to be as easy as possible for someone new to nix to just get on
> line and build their own firmware derivations. Then they can use the
> purity provided by the nix store and remove their required firmware
> blob from the impure path.
It is easy to make firmwareDirs = [ /another/impure/path ] option work (just 
copy them into /nix/store). And this will give you easy rollback.




More information about the nix-dev mailing list