[Nix-dev] Two approaches to kmod migration

Yury G. Kudryashov urkud.urkud at gmail.com
Thu Mar 29 22:41:56 CEST 2012


Peter Simons wrote:

> Hi Yury,
> 
> However, I don't want an impure /lib/modules path either. I appreciate
> that introducing that path would make life easier for people who package
> kernel modules, but that convenience comes at a price, namely the risk
> that impure builds will erroneously succeed and will end up building
> software that crashes the machine or something.
My point here is that NixOS has a very good way to avoid such risks. This 
way is called "chroot builds". I think that this is much lower price than 
patching every single package to look into /var/run/booted-
system/lib/modules.

BTW, if we do care about non-chroot builds and/or "nix on non-NixOS", we 
should at least apply the glibc patch sent by Jack Cummings on 09.03.2012 
that fixes some $glibc/lib/*.so rpath issues.
-- 
Yury G. Kudryashov,
mailto: urkud at mccme.ru



More information about the nix-dev mailing list