mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 00:12:43 +01:00
Create StringSet DerivationBuilderParams::systemFeatures
Do this to avoid checking "system features" from the store config directly, because we rather not have `DerivationBuilder` depend on `Store`.
This commit is contained in:
parent
f5f9e32f54
commit
f4a0161cb1
3 changed files with 10 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ struct ChrootLinuxDerivationBuilder : ChrootDerivationBuilder, LinuxDerivationBu
|
|||
createDirs(chrootRootDir + "/dev/shm");
|
||||
createDirs(chrootRootDir + "/dev/pts");
|
||||
ss.push_back("/dev/full");
|
||||
if (store.Store::config.systemFeatures.get().count("kvm") && pathExists("/dev/kvm"))
|
||||
if (systemFeatures.count("kvm") && pathExists("/dev/kvm"))
|
||||
ss.push_back("/dev/kvm");
|
||||
ss.push_back("/dev/null");
|
||||
ss.push_back("/dev/random");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue