From 50bad5c604b4d995ee57da137cef4d6a03809a17 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 12 Jun 2024 18:55:30 +0100 Subject: [PATCH] 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 --- overlay.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overlay.nix b/overlay.nix index 454fe84..7ab36f7 100644 --- a/overlay.nix +++ b/overlay.nix @@ -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;