mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-09-11 18:05:56 +03:00
takes too long and it runs in nix-build anyway. Ideally we would do `cabal haddock-project` but that is not yet available everywhere (due to older haddock). Maybe revisit later.
18 lines
466 B
Bash
Executable File
18 lines
466 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Script by @fisx
|
|
|
|
set -eo pipefail
|
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
|
|
which dhall || cabal install dhall
|
|
which dhall-to-yaml || cabal install dhall-yaml
|
|
|
|
echo "dhall format-ing ci.dhall"
|
|
dhall format ci.dhall
|
|
echo "cp haskellCi.dhall -> ci.dhall.frozen"
|
|
cp ci.dhall ci.dhall.frozen
|
|
echo "dhall freez-ing ci.dhall.frozen"
|
|
dhall freeze ci.dhall.frozen
|
|
echo "regenerating ci.yaml"
|
|
dhall-to-yaml-ng --generated-comment --file ci.dhall > ci.yaml
|