improve environment setup for guix users
This commit is contained in:
parent
37ee16bcf8
commit
2fd5982020
2 changed files with 77 additions and 0 deletions
21
run-svitak.sh
Executable file
21
run-svitak.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
BOOK_PATH=""
|
||||
|
||||
mkdir -p /tmp/guix-dbus
|
||||
echo "00000000000000000000000000000000" > /tmp/guix-dbus/machine-id
|
||||
|
||||
guix shell -C -N --emulate-fhs \
|
||||
--share=$HOME/.cabal=$HOME/.cabal \
|
||||
--share=$PWD=$PWD \
|
||||
--share="$HOME/3-I/books"="$HOME/3-I/books" \
|
||||
--share="$XDG_RUNTIME_DIR"="$XDG_RUNTIME_DIR" \
|
||||
--share="$XDG_RUNTIME_DIR/bus"="$XDG_RUNTIME_DIR/bus" \
|
||||
--share=/tmp/guix-dbus/machine-id=/etc/machine-id \
|
||||
--share=/dev/dri \
|
||||
--share=/sys \
|
||||
--preserve='^WAYLAND_DISPLAY$' \
|
||||
--preserve='^XDG_RUNTIME_DIR$' \
|
||||
--preserve='^DBUS_SESSION_BUS_ADDRESS$' \
|
||||
-D -f guix.scm -- \
|
||||
bash -c "export TEST=2; cabal run svitak -- \"$BOOK_PATH\""
|
||||
Loading…
Reference in a new issue