Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,17 @@ steps:
# Stack via stack2nix

- label: static-stack
# TODO: Remove the override of unix-compat below once that's available in stack
command: |
set -eu -o pipefail

cd static-stack/
mkdir -p static-stack-test-dir
curl -L https://github.com/commercialhaskell/stack/archive/v2.1.3.tar.gz | tar -xz -C static-stack-test-dir
# Use lts-12 because ghc822 is no longer in nixpkgs
cp static-stack-test-dir/stack-*/stack-lts-12.yaml static-stack-test-dir/stack-*/stack.yaml

echo "Overriding point release of unix-compat, see https://github.com/nh2/static-haskell-nix/issues/79"
perl -pi -e 's/^packages:/packages:\n- unix-compat-0.5.2\@rev:0/g' static-stack-test-dir/stack-*/snapshot-lts-12.yaml

$(nix-build --no-link -A fullBuildScript --argstr stackDir $PWD/static-stack-test-dir/stack-*)
2 changes: 1 addition & 1 deletion static-stack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let
stack2nix-script = import ../static-stack2nix-builder/stack2nix-script.nix {
pkgs = pkgs;
stack-project-dir = stackDir; # where stack.yaml is
hackageSnapshot = "2019-08-17T00:00:00Z"; # pins e.g. extra-deps without hashes or revisions
hackageSnapshot = "2020-02-08T00:00:00Z"; # pins e.g. extra-deps without hashes or revisions
};

static-stack2nix-builder = import ../static-stack2nix-builder/default.nix {
Expand Down