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