libusb needs udev on build

this is a workaround to make CI work again, but what we really need to
do is completely separate the nixpkgs used for nixos build-system
tools from the nixpkgs we use for liminix host binaries
This commit is contained in:
Daniel Barlow 2024-06-12 18:55:30 +01:00
parent c22e3fb2ef
commit 50bad5c604
1 changed files with 3 additions and 1 deletions

View File

@ -271,7 +271,9 @@ extraPkgs // {
'';
};
libusb1 = prev.libusb1.override { enableUdev = false; };
libusb1 = prev.libusb1.override {
enableUdev = final.stdenv.buildPlatform == final.stdenv.hostPlatform;
};
util-linux-small = prev.util-linux.override {
ncursesSupport = false;