@@ -26,6 +26,18 @@ basic () {
26 DISABLE_SDIST_BUILD=y \
26 DISABLE_SDIST_BUILD=y \
27 CABAL_PROJECT=cabal.project.ci \
27 CABAL_PROJECT=cabal.project.ci \
28 CABAL_BUILD_OPTIONS=\"--flag inspection --flag fusion-plugin\""
28 CABAL_BUILD_OPTIONS=\"--flag inspection --flag fusion-plugin\""
29+# chart deps do not build with ghc-8.10 on nix
31+# --argstr compiler "ghc8101" \
32+# --argstr c2nix "--flag dev" \
33+# --run "cabal build chart --flag dev"
35+# --argstr compiler "ghc8101" \
36+# --argstr c2nix "--flag inspection" \
40+# --cabal-build-options \"--cabal-project cabal.project.ci --flag inspection --flag fusion-plugin\""
31#------------------------------------------------------------------------------
43#------------------------------------------------------------------------------
@@ -116,6 +128,18 @@ ghc844 () { ghc 865 8.4.4; }
116# Read command line
128# Read command line
117#-----------------------------------------------------------------------------
129#-----------------------------------------------------------------------------
131+ALL_TARGETS="all basic hlint coverage flags ghc883 ghc864 ghc844"
134+ echo "Available targets: $ALL_TARGETS"
138+ echo "Usage: $0 --targets <space separated target names>"
119while test -n "$1"
143while test -n "$1"
121 case $1 in
145 case $1 in
@@ -128,11 +152,9 @@ do
131−ALL_TARGETS="all basic hlint coverage flags ghc883 ghc864 ghc844"
133if test "$(has_item "$TARGETS" help)" = "help"
155if test "$(has_item "$TARGETS" help)" = "help"
135− echo "Available targets: $ALL_TARGETS"
157+ print_targets
@@ -143,9 +165,7 @@ fi
144if test -z "$TARGETS"
166if test -z "$TARGETS"
146− echo "Usage: $0 --targets <space separated target names>"
168+ print_help
147− echo "Available targets: $ALL_TARGETS"
151for i in $TARGETS
171for i in $TARGETS