|
43 | 43 |
|
44 | 44 | buildInputs = [pythonEnv pkgs.nodejs_20]; |
45 | 45 |
|
46 | | - # Don't use the default unpackPhase - we'll handle it in installPhase |
47 | | - dontUnpack = true; |
48 | | - |
49 | 46 | installPhase = '' |
50 | 47 | mkdir -p $out/bin |
51 | 48 | mkdir -p $out/lib/meshcore-packet-capture |
52 | 49 |
|
53 | | - # Copy Python scripts directly from source |
54 | | - cp ${./packet_capture.py} $out/lib/meshcore-packet-capture/packet_capture.py |
55 | | - cp ${./enums.py} $out/lib/meshcore-packet-capture/enums.py |
56 | | - cp ${./auth_token.py} $out/lib/meshcore-packet-capture/auth_token.py |
57 | | - cp ${./ble_pairing_helper.py} $out/lib/meshcore-packet-capture/ble_pairing_helper.py |
58 | | - cp ${./ble_scan_helper.py} $out/lib/meshcore-packet-capture/ble_scan_helper.py |
59 | | - cp ${./scan_meshcore_network.py} $out/lib/meshcore-packet-capture/scan_meshcore_network.py |
60 | | - cp ${./debug_ble_connection.py} $out/lib/meshcore-packet-capture/debug_ble_connection.py |
61 | | - cp ${./migrate_config.py} $out/lib/meshcore-packet-capture/migrate_config.py |
| 50 | + # Copy Python scripts from unpacked source |
| 51 | + # The source is unpacked to the current directory |
| 52 | + cp ${../packet_capture.py} $out/lib/meshcore-packet-capture/packet_capture.py |
| 53 | + cp ${../enums.py} $out/lib/meshcore-packet-capture/enums.py |
| 54 | + cp ${../auth_token.py} $out/lib/meshcore-packet-capture/auth_token.py |
| 55 | + cp ${../ble_pairing_helper.py} $out/lib/meshcore-packet-capture/ble_pairing_helper.py |
| 56 | + cp ${../ble_scan_helper.py} $out/lib/meshcore-packet-capture/ble_scan_helper.py |
| 57 | + cp ${../scan_meshcore_network.py} $out/lib/meshcore-packet-capture/scan_meshcore_network.py |
| 58 | + cp ${../debug_ble_connection.py} $out/lib/meshcore-packet-capture/debug_ble_connection.py |
| 59 | + cp ${../migrate_config.py} $out/lib/meshcore-packet-capture/migrate_config.py |
62 | 60 |
|
63 | 61 | # Create wrapper script for the main application |
64 | 62 | makeWrapper ${pythonEnv}/bin/python $out/bin/meshcore-packet-capture \ |
|
0 commit comments