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.
23 -e '/ cabal-install /d' \
24 -e '/ distribution-nixpkgs /d' \
31 -e '/ language-nix /d' \
32 -e '/ ShellCheck /d' \
36# Drop packages which have broken metadata in the stupid all-cabal-hashes
37# repository. We need to drop our dependency on that thing ASAP.
39 -e '/wai-middleware-prometheus ==0.2.0/d' \
42# Drop the previous configuration ...
43sed -e '/# LTS Haskell/,/^$/c \TODO\
44' -i nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
46# ... and replace it with the new one.
47sed -e "/TODO/r $tmpfile" \
48 -e "s/TODO/ # LTS Haskell $version/" \
49 -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