Skip to content

Commit 5af8033

Browse files
committed
resolve path issue
1 parent df5e95a commit 5af8033

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

nix/packages.nix

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,20 @@
4343

4444
buildInputs = [pythonEnv pkgs.nodejs_20];
4545

46-
# Don't use the default unpackPhase - we'll handle it in installPhase
47-
dontUnpack = true;
48-
4946
installPhase = ''
5047
mkdir -p $out/bin
5148
mkdir -p $out/lib/meshcore-packet-capture
5249
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
6260
6361
# Create wrapper script for the main application
6462
makeWrapper ${pythonEnv}/bin/python $out/bin/meshcore-packet-capture \

0 commit comments

Comments
 (0)