Skip to content

Commit cb4427a

Browse files
committed
buildkite: Build stack 2.1.3 via stack2nix.
Update static-stack Hackage snapshot to get the packages it needs.
1 parent 40f6362 commit cb4427a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,12 @@ steps:
5151
command: |
5252
NIX_PATH=nixpkgs=nixpkgs nix-build --no-link survey/default.nix \
5353
--argstr compiler ghc865 -A workingStackageExecutables
54+
55+
# Stack via stack2nix
56+
57+
- label: static-stack
58+
command: |
59+
cd static-stack/
60+
mkdir -p static-stack-test-dir
61+
curl -L https://github.com/commercialhaskell/stack/archive/v2.1.3.tar.gz | tar -xz -C static-stack-test-dir
62+
$(nix-build --no-link -A fullBuildScript --argstr stackDir $PWD/static-stack-test-dir/stack-*)

static-stack/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let
1616
stack2nix-script = import ../static-stack2nix-builder/stack2nix-script.nix {
1717
pkgs = pkgs;
1818
stack-project-dir = stackDir; # where stack.yaml is
19-
hackageSnapshot = "2019-05-08T00:00:00Z"; # pins e.g. extra-deps without hashes or revisions
19+
hackageSnapshot = "2019-08-17T00:00:00Z"; # pins e.g. extra-deps without hashes or revisions
2020
};
2121

2222
static-stack2nix-builder = import ../static-stack2nix-builder/default.nix {

0 commit comments

Comments
 (0)