1{ stdenv, writeScript, coreutils, glibc, git, nix-tools, cabal-install, nix-prefetch-git }@args:
3import ./update-external.nix args {
6 # Clone or update the main Stackage Nix expressions repo.
7 # The upstream LTS and Nightly package sets are in submodules, which
8 # should also be updated.
9 if [ -d stackage.nix ]; then
12 git submodule update --init
13 git submodule foreach git pull origin master
15 git clone git@github.com:input-output-hk/stackage.nix.git
17 git submodule update --init
20 echo "Running lts-to-nix for all snapshots..."
22 # update them all in parallel...
23 N=$(getconf _NPROCESSORS_ONLN)
24 for lts in {lts-haskell,stackage-nightly}/*.yaml
26 lts-to-nix $lts > $(basename ''${lts%.yaml}.nix) &
27 while [[ $(jobs -r -p | wc -l) -gt $N ]]; do
28 # can't use `wait -n` on older bash versions.
29 # e.g. what ships with macOS High Sierra
36 echo "{" > nightlies.nix;
37 for a in nightly-*.nix; do echo " \"''${a%%.nix}\" = import ./$a;" >> nightlies.nix; done;
38 echo "}" >> nightlies.nix
41 for a in lts-*.nix; do echo " \"''${a%%.nix}\" = import ./$a;" >> ltss.nix; done;
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