5tmpfile=$(mktemp "stackage-update.XXXXXXX")
8curl -L -s "https://www.stackage.org/lts/cabal.config" >"$tmpfile"
9version=$(sed -n "s/^--.*http:..www.stackage.org.snapshot.lts-//p" "$tmpfile")
11# Create a simple yaml version of the file.
14 -e 's|^constraints:||' \
21# Drop restrictions on some tools where we always want the latest version.
24 -e '/ cabal-install /d' \
25 -e '/ distribution-nixpkgs /d' \
31 -e '/ language-nix /d' \
32 -e '/ ShellCheck /d' \
36# Drop the previous configuration ...
37sed -e '/# LTS Haskell/,/^$/c \TODO\
38' -i nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
40# ... and replace it with the new one.
41sed -e "/TODO/r $tmpfile" \
42 -e "s/TODO/ # LTS Haskell $version/" \
43 -i nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
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