on 0b364fd help sign in
haskell.nix/scripts/update-stackage.nix
27 lines 825 B history raw
1{ stdenv, writeScript, coreutils, glibc, git, openssh
2, nix-tools, cabal-install, nix-prefetch-git
3, gawk, bash, curl, findutils }@args:
5import ./update-external.nix args {
6 name = "stackage";
7 script = ''
8 # Clone or update the main Stackage Nix expressions repo.
9 # The upstream LTS and Nightly package sets are in submodules, which
10 # should also be updated.
11 if [ -d stackage.nix ]; then
12 cd stackage.nix
13 git pull --ff-only
14 git submodule update --init
15 git submodule foreach git pull origin master
16 else
17 git clone git@github.com:input-output-hk/stackage.nix.git
18 cd stackage.nix
19 git submodule update --init
20 git submodule foreach git pull origin master
21 fi
23 echo "Running lts-to-nix for all snapshots..."
25 LTS_TO_NIX=lts-to-nix ./update.sh
26 '';