Skip to content

Commit

Permalink
Pin direnv version in nix-hls.sh script (#2232)
Browse files Browse the repository at this point in the history
* Pin direnv in nix-hls.sh script
  • Loading branch information
smatting authored Mar 24, 2022
1 parent b43fe6a commit c0954a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5-internal/nix-hls-pin-direnv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pin direnv version in nix-hls.sh script
4 changes: 3 additions & 1 deletion hack/bin/nix-hls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TOP_LEVEL="$(cd "$DIR/../.." && pwd)"

env=$(nix-build --no-out-link "$TOP_LEVEL/direnv.nix")
eval "$(direnv stdlib)"
direnv="$(nix-build -A direnv "$TOP_LEVEL/nix")/bin/direnv"
eval "$("$direnv" stdlib)"

load_prefix "$env"

haskell-language-server-wrapper "$@"

0 comments on commit c0954a3

Please sign in to comment.