about summary refs log blame commit diff
path: root/hie.sh
blob: 4ea97997c77865e0d5651e79abbca75d953abdf9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10








                                                                                         
#!/usr/bin/env bash

cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1

argv=( "$@"  )
argv=( "${argv[@]/\'/\'\\\'\'}"  )
argv=( "${argv[@]/#/\'}"  )
argv=( "${argv[@]/%/\'}"  )

exec nix-shell --pure --run "exec $(nix-build -o dist/nix/hie -A hie)/bin/hie ${argv[*]}"