5STACKAGE2NIX_WORK_DIR=${STACKAGE2NIX_WORK_DIR:-$HOME}
6LTS_HASKELL_DIR=${LTS_HASKELL_DIR:-$STACKAGE2NIX_WORK_DIR/lts-haskell}
7ALL_CABAL_HASHES_DIR=${ALL_CABAL_HASHES_DIR:-$STACKAGE2NIX_WORK_DIR/all-cabal-hashes}
9if [ ! -d "$LTS_HASKELL_DIR" ]; then
10 git clone --depth 1 https://github.com/fpco/lts-haskell.git "$LTS_HASKELL_DIR"
13if [ ! -d "$ALL_CABAL_HASHES_DIR" ]; then
14 git clone --depth 1 --branch hackage https://github.com/commercialhaskell/all-cabal-hashes.git "$ALL_CABAL_HASHES_DIR"
18stack exec -- stackage2nix \
19 --lts-haskell "$LTS_HASKELL_DIR" \
20 --all-cabal-hashes "$ALL_CABAL_HASHES_DIR" \
23nix-build -A stackage2nix "$@"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list