Files
haskell.nix/scripts/update-stackage.nix
T
Hamish Mackenzie 89f50a96dd Use pkgs.lib instead of stdenv.lib (#1031)
Fixes:

Warning: `stdenv.lib` is deprecated and will be removed in the next release. Please use `pkgs.lib` instead. For more information see https://github.com/NixOS/nixpkgs/issues/108938
2021-02-11 01:07:16 +13:00

28 lines
830 B
Nix

{ stdenv, lib, writeScript, coreutils, glibc, git, openssh
, nix-tools, cabal-install, nix-prefetch-git
, gawk, bash, curl, findutils }@args:
import ./update-external.nix args {
name = "stackage";
script = ''
# Clone or update the main Stackage Nix expressions repo.
# The upstream LTS and Nightly package sets are in submodules, which
# should also be updated.
if [ -d stackage.nix ]; then
cd stackage.nix
git pull --ff-only
git submodule update --init
git submodule foreach git pull origin master
else
git clone git@github.com:input-output-hk/stackage.nix.git
cd stackage.nix
git submodule update --init
git submodule foreach git pull origin master
fi
echo "Running lts-to-nix for all snapshots..."
LTS_TO_NIX=lts-to-nix ./update.sh
'';
}