We need to remove the upstream version, to replace it here with the CrOS version, and also we need to provide the CrOS version as a build input, not a native build input. --- .../linux/chromium-os/modem-manager/next.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/chromium-os/modem-manager/next.nix b/pkgs/os-specific/linux/chromium-os/modem-manager/next.nix index d40b2c9292e..a2239a0b9c8 100644 --- a/pkgs/os-specific/linux/chromium-os/modem-manager/next.nix +++ b/pkgs/os-specific/linux/chromium-os/modem-manager/next.nix @@ -3,7 +3,12 @@ }: modemmanager.overrideAttrs ( - { pname, nativeBuildInputs ? [], passthru ? {}, meta ? {}, ... }: + { pname + , nativeBuildInputs ? [], buildInputs ? [] + , passthru ? {}, meta ? {} + , ... + }: + { pname = "${pname}-chromiumos-next-unstable"; version = "2019-10-17"; @@ -12,7 +17,10 @@ modemmanager.overrideAttrs ( upstreamInfo.components."src/third_party/modemmanager-next"; nativeBuildInputs = nativeBuildInputs ++ - [ autoreconfHook autoconf-archive libqmi libxslt ]; + [ autoreconfHook autoconf-archive libxslt ]; + + buildInputs = [ libqmi ] + ++ lib.filter (x: x ? pname && x.pname != "libqmi") buildInputs; passthru = passthru // { updateScript = ../update.py; -- 2.31.1