Skip to content

Commit 21f1fc3

Browse files
committed
flake.nix: update
1 parent ef8a1d5 commit 21f1fc3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
defaultShellHook = ''
3333
export SHELL="${pkgs.bashInteractive}/bin/bash"
3434
35-
export FLAKE_ROOT=$(nix flake metadata | grep 'Resolved URL' | awk '{print $3}' | awk -F'://' '{print $2}')
35+
export FLAKE_ROOT="$(nix flake metadata | grep 'Resolved URL' | awk '{print $3}' | sed 's/^path://' | sed 's/^git+file:\/\///')"
3636
export HISTFILE="$FLAKE_ROOT/.nix_bash_history"
3737
3838
export GOROOT="${pkgs.go}/share/go"

0 commit comments

Comments
 (0)