Skip to content

Commit 8bba327

Browse files
author
arch
committed
improve nix wrapper
1 parent cf37b44 commit 8bba327

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

nix_wrapper.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/usr/bin/bash
22

33
root_dir="$(dirname $0)"
4-
cmd="python3 `dirname $0`/funscript-editor.py $@"
5-
echo "cmd: $cmd" > /tmp/mtfg-nix.log
6-
echo "dir: $root_dir" >> /tmp/mtfg-nix.log
7-
# cd $root_dir && nix-shell --run "$cmd" >> /tmp/mtfg-nix.log 2>&1
8-
cd $root_dir && nix develop --command $cmd >> /tmp/mtfg-nix.log 2>&1
4+
cmd="python3 `dirname $0`/funscript-editor.py"
5+
echo "dir: $root_dir" > /tmp/mtfg-nix.log
6+
cd $root_dir && nix develop --command $cmd "$@" >> /tmp/mtfg-nix.log 2>&1

shell.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@ in
5050
screeninfo
5151
]))
5252
];
53+
54+
shellHook = ''
55+
export QT_QPA_PLATFORM="xcb"
56+
'';
5357
}

0 commit comments

Comments
 (0)