blob: 6260d9488f3468db1f1bf8cb3a1592e19a367b16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
nix build nixpkgs#jq.bin -o jq
PATH+=:$PWD/jq-bin/bin
ghcs_nix="https://gitlab.haskell.org/bgamari/ghcs-nix/-/archive/master/ghcs-nix-master.tar.gz"
nix build -f "$ghcs_nix" ghc-8_10_7 -o boot_ghc
run() {
local ver="$1"
local drv="ghc-$ver"
echo "$ver"
nix build -f "$ghcs_nix" $drv
(cd ../; rm -r dist-newstyle; cabal configure hadrian -w bootstrap/result/bin/ghc)
cp ../dist-newstyle/cache/plan.json "plan-$ver.json"
cabal run --with-ghc-pkg $PWD/boot_ghc/bin/ghc-pkg -w $PWD/boot_ghc/bin/ghc -v0 hadrian-bootstrap-gen -- "plan-$ver.json" | tee | jq --sort-keys | "plan-bootstrap-$ver.json"
}
run "9_2_1"
run "9_2_2"
run "9_2_3"
run "9_2_4"
run "9_2_5"
run "9_4_1"
run "9_4_2"
run "9_4_3"
|