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:||' \
20# Drop restrictions on some tools where we always want the latest version.
22 -e '/ cabal-install /d' \
27 -e '/ ShellCheck /d' \
32# Drop the previous configuration ...
33sed -e '/# LTS Haskell/,/^$/c \TODO\
34' -i nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
36# ... and replace it with the new one.
37sed -e "/TODO/r $tmpfile" \
38 -e "s/TODO/ # LTS Haskell $version/" \
39 -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