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.
23 -e '/ cabal-install /d' \
25 -e '/ distribution-nixpkgs /d' \
32 -e '/ jailbreak-cabal /d' \
33 -e '/ json-autotype/d' \
34 -e '/ lambdabot-core /d' \
35 -e '/ lambdabot-irc-plugins /d' \
36 -e '/ language-nix /d' \
38 -e '/ ShellCheck /d' \
43# Drop the previous configuration ...
44sed -e '/# LTS Haskell/,/^$/c \TODO\
45' -i nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
47# ... and replace it with the new one.
48sed -e "/TODO/r $tmpfile" \
49 -e "s/TODO/ # LTS Haskell $version/" \
50 -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