mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
89f50a96dd
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
28 lines
830 B
Nix
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
|
|
'';
|
|
}
|