File tree Expand file tree Collapse file tree 3 files changed +43
-45
lines changed
Expand file tree Collapse file tree 3 files changed +43
-45
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env nix-shell
2+ #! nix-shell --pure -i bash -p nix cabal-install ghc nix-prefetch-scripts
3+
4+ export NIX_PATH=" nixpkgs=channel:nixos-19.03"
5+
6+ set -euo pipefail
7+
8+ # This file can interfere with the build.
9+ # https://github.com/input-output-hk/haskell.nix/issues/57
10+ rm -f .nix-tools.cache
11+
12+ echo " +++ Cabal configure"
13+ cabal new-update
14+ cabal new-configure
15+
16+ echo
17+ echo " +++ Run stable version of plan-to-nix"
18+ nix build -f https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz nix-tools -o nt
19+ ./nt/bin/plan-to-nix --output nix1 --plan-json dist-newstyle/cache/plan.json
20+
21+ echo
22+ echo " +++ Build project"
23+ nix build -f nix1 nix-tools.components.exes --no-link
24+
25+ echo
26+ echo " +++ Run tests"
27+ echo " There are no tests -- https://github.com/input-output-hk/haskell.nix/issues/51"
28+
29+ echo
30+ echo " +++ Run plan-to-nix again"
31+
32+ nix build -f nix1 nix-tools.components.exes.plan-to-nix
33+ ./result/bin/plan-to-nix --output nix2 --plan-json dist-newstyle/cache/plan.json
34+
35+ echo
36+ echo " +++ Build project"
37+
38+ nix build -f nix2 nix-tools.components.exes --no-link
Original file line number Diff line number Diff line change 1+ steps :
2+ - label : ' Build'
3+ command : ./.buildkite/build.sh
4+ agents :
5+ system : x86_64-linux
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments