lpac: support qmi and mbim

With this, I can successfully talk to a 9esim card plugged into a
Quectel EC25 LTE modem, setting PAC_APDU_QMI_DEVICE=/dev/cdc-wdm0 and
LPAC_APDU=qmi.

+9 -1
+9 -1
pkgs/by-name/lp/lpac/package.nix
··· 6 6 pkg-config, 7 7 pcsclite, 8 8 curl, 9 + libmbim, 10 + libqmi, 9 11 withDrivers ? true, 10 12 withLibeuicc ? true, 13 + withMbim ? true, 14 + withQmi ? true, 11 15 nix-update-script, 12 16 }: 13 17 ··· 33 37 cmakeFlags = [ 34 38 (lib.cmakeBool "LPAC_DYNAMIC_DRIVERS" withDrivers) 35 39 (lib.cmakeBool "LPAC_DYNAMIC_LIBEUICC" withLibeuicc) 40 + (lib.cmakeBool "LPAC_WITH_APDU_MBIM" withMbim) 41 + (lib.cmakeBool "LPAC_WITH_APDU_QMI" withQmi) 36 42 ]; 37 43 38 44 nativeBuildInputs = [ ··· 43 49 buildInputs = [ 44 50 curl 45 51 pcsclite 46 - ]; 52 + ] 53 + ++ optional withMbim libmbim 54 + ++ optional withQmi libqmi; 47 55 48 56 postInstall = '' 49 57 mkdir -p $out/share/doc/lpac