2020-01-24 02:20:58 +03:00
|
|
|
-- Global project configuration.
|
|
|
|
--
|
2022-04-07 10:15:11 +03:00
|
|
|
-- This file can be overridden with cabal.project.local (see e.g. cabal/dev.project)
|
|
|
|
--
|
|
|
|
-- If you need to switch between several local configurations you can also create a
|
|
|
|
-- symbolic link to this file in the project root directory; e.g.:
|
|
|
|
-- $ ln -s cabal.project myconfig.project
|
|
|
|
-- $ ln -s cabal.project.freeze myconfig.project.freeze
|
2020-01-24 02:20:58 +03:00
|
|
|
--
|
|
|
|
-- ...and then create a new set of overrides in:
|
2022-04-07 10:15:11 +03:00
|
|
|
-- myconfig.project.local
|
|
|
|
--
|
2020-01-24 02:20:58 +03:00
|
|
|
-- ...and then invoke cabal with
|
2022-04-07 10:15:11 +03:00
|
|
|
-- $ cabal new-build --project-file=myconfig.project
|
2020-01-24 02:20:58 +03:00
|
|
|
--
|
2020-02-13 20:38:23 +03:00
|
|
|
-- See: https://www.haskell.org/cabal/users-guide/nix-local-build.html#configuring-builds-with-cabal-project
|
2021-08-11 07:18:40 +03:00
|
|
|
|
2022-10-06 12:07:14 +03:00
|
|
|
with-compiler: ghc-9.2.4
|
2021-11-15 16:21:37 +03:00
|
|
|
|
2021-11-24 11:19:19 +03:00
|
|
|
-- package-level parallelism:
|
|
|
|
jobs: $ncpus
|
|
|
|
|
2021-08-11 07:18:40 +03:00
|
|
|
packages: server
|
2022-07-07 19:50:17 +03:00
|
|
|
packages: server/lib/*/*.cabal
|
2020-01-18 01:07:15 +03:00
|
|
|
|
|
|
|
package *
|
2021-10-20 19:14:00 +03:00
|
|
|
-- NOTE: this gets applied to both local (hasura) packages and dependencies,
|
|
|
|
-- but optimizations for local hasura packages are overridden/controlled
|
|
|
|
-- via the 'optimize-hasura' flag.
|
2020-01-18 01:07:15 +03:00
|
|
|
optimization: 2
|
2020-04-03 11:24:51 +03:00
|
|
|
-- For tooling, e.g. 'weeder', and IDE-like stuff:
|
|
|
|
ghc-options: -fwrite-ide-info
|
2020-01-18 01:07:15 +03:00
|
|
|
|
|
|
|
haddock-html: true
|
|
|
|
haddock-hoogle: true
|
|
|
|
haddock-hyperlink-source: true
|
|
|
|
haddock-quickjump: true
|
2022-03-16 09:34:05 +03:00
|
|
|
haddock-internal: true
|
2020-01-18 01:07:15 +03:00
|
|
|
|
|
|
|
package graphql-engine
|
|
|
|
ghc-options: -j
|
|
|
|
haddock-options: "--show-all"
|
|
|
|
|
2021-09-16 14:03:01 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
2021-09-16 23:16:08 +03:00
|
|
|
location: https://github.com/hasura/kriti-lang.git
|
2022-07-02 13:05:32 +03:00
|
|
|
tag: v0.3.2
|
2021-09-16 14:03:01 +03:00
|
|
|
|
2020-01-18 01:07:15 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/ci-info-hs.git
|
2021-03-03 10:01:44 +03:00
|
|
|
tag: be578a01979fc95137cc2c84827f9fafb99df60f
|
2020-09-01 07:56:11 +03:00
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/pool.git
|
2022-08-16 10:07:31 +03:00
|
|
|
tag: c5faf9a358e83eaf15fef0c1e890f463d0022565
|
2021-02-23 20:37:27 +03:00
|
|
|
|
2022-06-26 01:08:01 +03:00
|
|
|
-- This is an unrelesaed version of "odbc"
|
2021-02-23 20:37:27 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
2022-02-14 13:42:11 +03:00
|
|
|
location: https://github.com/fpco/odbc.git
|
2022-09-13 11:33:44 +03:00
|
|
|
tag: 38e04349fe28a91f189e44bd7783220956d18aae
|
2021-02-23 20:37:27 +03:00
|
|
|
|
|
|
|
package odbc
|
|
|
|
ghc-options: -Wwarn
|
|
|
|
-- Our CI compiles with -Werror, which is also applied to those packages
|
|
|
|
-- while it's fine for packages we maintain, we can't actually enforce
|
|
|
|
-- that third-party packages are warning-free, hence this -Wno-error.
|
|
|
|
-- When the changes in odbc are released, we can instead depend on
|
|
|
|
-- the hackage version, and remove it from this list of packages.
|
2021-08-06 00:07:17 +03:00
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/ekg-core.git
|
2022-06-26 01:08:01 +03:00
|
|
|
tag: b0cdc337ca2a52e392d427916ba3e28246b396c0
|
2021-08-06 00:07:17 +03:00
|
|
|
|
2022-10-06 12:07:14 +03:00
|
|
|
-- TODO relax these constraints in the package
|
|
|
|
allow-newer: ekg-prometheus:bytestring
|
|
|
|
allow-newer: ekg-prometheus:inspection-testing
|
2022-07-24 00:18:01 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/ekg-prometheus.git
|
2022-08-05 08:49:46 +03:00
|
|
|
tag: v0.2.0.0
|
2022-07-24 00:18:01 +03:00
|
|
|
|
2021-08-06 00:07:17 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/ekg-json.git
|
2021-12-27 20:00:41 +03:00
|
|
|
tag: 84990712c165d7e3e76b2b289640ef8b5033f12f
|
2021-08-11 07:18:40 +03:00
|
|
|
|
2022-07-07 21:51:06 +03:00
|
|
|
-- This is v1.2.5.0 with https://github.com/haskell/text/pull/348
|
|
|
|
-- cherry-picked.
|
|
|
|
-- These changes are in version 2.0, but hopefully they can get backported:
|
|
|
|
-- https://github.com/haskell/text/issues/452
|
2021-09-08 07:12:45 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/text.git
|
2022-07-07 21:51:06 +03:00
|
|
|
tag: ba0fd2bf256c996a6c85dbdc8590a6fcde41b8f8
|
2021-09-08 07:12:45 +03:00
|
|
|
|