-
Notifications
You must be signed in to change notification settings - Fork 0
/
ready.sh
executable file
·21 lines (16 loc) · 894 Bytes
/
ready.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/run/current-system/profile/bin/bash
export PROFILE=$(guix environment --container --network -m ./guix-env/dev-env.scm \
-- bash -c 'echo $GUIX_ENVIRONMENT')
LD_LIBRARY_PATH=/lib:/lib/nss:$ANDROID_HOME/emulator/lib64/qt/lib:$ANDROID_HOME/emulator/lib64:$LIBRARY_PATH /home/adroit/android-sdk/platform-tools/adb devices # for some reason deamon should be started outside container
guix environment --container --network --share=$XAUTHORITY --share=/tmp/.X11-unix \
--share=/dev/shm --expose=/etc/machine-id --share=/home/$USER \
--expose=$PROFILE/lib=/lib --expose=$PROFILE/lib=/lib64 \
--share=/dev/kvm \
--share=/dev/bus/usb \
--expose=/usr/bin/=/usr/bin \
-m ./guix-env/dev-env.scm \
-- env XAUTHORITY=$XAUTHORITY DISPLAY=$DISPLAY \
TERM=$TERM \
fish -C ./guix-env/inside-env.sh
#--share=/dev/ttyACM0 \
# --share=/dev/serial \