cabal-buck2-0.6.0.0: cabal-buck2.cabal
cabal-version: 3.8
name: cabal-buck2
version: 0.6.0.0
-- To ship a new version:
-- - bump the version above
-- - update the changelog & README
-- - push the changes to the master branch of cabal-buck2
-- - create a branch A.B.C.D on haskell-buck2
-- - push an update to `version.bzl` for A.B.C.D on that branch
-- - update the buck2 submodule to that branch (the sdist includes it)
-- - cabal install locally, and check it on a local repo
-- - wait for CI on cabal-buck2
-- - cabal sdist, cabal upload, check the candidate
-- - git tag the version A.B.C.D
-- - cabal upload --publish
synopsis: Build a Cabal project with buck2 (the `cabal buck2` external command)
license: BSD-3-Clause
build-type: Simple
author: Simon Marlow <marlowsd@gmail.com>
maintainer: Simon Marlow <marlowsd@gmail.com>
category: Build Tool
description:
This is a [Cabal external command](https://cabal.readthedocs.io/en/stable/external-commands.html) `cabal buck2` that allows
you to use [Buck2](https://buck2.build) as the build system for your
Cabal project. For more details see the package README.
tested-with: GHC==9.14.1, GHC==9.12.4, GHC==9.10.3, GHC==9.8.2, GHC==9.6.4, GHC==9.4.8
extra-doc-files: README.md, changelog.md
extra-source-files:
test/fixtures/**/*.c
test/fixtures/**/*.cmm
test/fixtures/**/*.S
test/fixtures/**/*.js
test/fixtures/**/*.ly
test/fixtures/**/*.cabal
test/fixtures/**/*.h
test/fixtures/**/*.hs
test/fixtures/**/*.hs-boot
test/fixtures/**/*.pc
test/fixtures/**/*.project
test/fixtures/**/.buckconfig
test/fixtures/**/.gitkeep
test/fixtures/**/PACKAGE
test/fixtures/**/*.txt
-- The buck2 support code (the haskell-buck2 submodule in buck2/), which
-- `cabal buck2` copies into a project that doesn't have a buck2/ directory.
-- Its tests, its CI and documentation images aren't needed, and neither are
-- the tests of the prelude's Android tooling, which are most of its size.
--
-- A wildcard has to have an extension, so there is a pattern for each kind
-- of file. The data-files test (in test/Main.hs) checks that the patterns
-- match the files of the submodule, apart from those left out.
data-files:
buck2/**/*.CommandLineProcessor
buck2/**/*.CompilerPluginRegistrar
buck2/**/*.ExperimentConfigService
buck2/**/*.Extension
buck2/**/*.KotlinCDLogger
buck2/**/*.bat
buck2/**/*.broken_json
buck2/*.bzl
buck2/platforms/**/*.bzl
buck2/prelude/**/*.bzl
buck2/toolchains/**/*.bzl
buck2/**/*.config
buck2/**/*.cpp
buck2/**/*.erl
buck2/**/*.exe
buck2/**/*.go
buck2/**/*.hrl
buck2/**/*.in
buck2/prelude/**/*.json
buck2/**/*.m
buck2/**/*.mobileprovision
buck2/**/*.props
buck2/**/*.proto
buck2/**/*.pyi
buck2/**/*.rs
buck2/**/*.src
buck2/**/*.template
buck2/**/*.yaml
buck2/**/HelloWorld
buck2/**/LICENSE
buck2/**/LICENSE-APACHE
buck2/**/LICENSE-MIT
buck2/**/Makefile
buck2/**/README
buck2/**/hmaptool
buck2/**/xcode_version_checker
buck2/*.sh
buck2/BUCK
buck2/README.md
buck2/constraints/**/BUCK
buck2/platforms/**/BUCK
buck2/prelude/**/*.bxl
buck2/prelude/**/*.c
buck2/prelude/**/*.h
buck2/prelude/**/*.hs
buck2/prelude/**/*.md
buck2/prelude/.buckconfig
buck2/prelude/BUCK
buck2/prelude/abi/**/BUCK
buck2/prelude/android/**/*.java
buck2/prelude/android/**/*.py
buck2/prelude/android/**/BUCK
buck2/prelude/apple/**/*.plist
buck2/prelude/apple/**/*.py
buck2/prelude/apple/**/BUCK
buck2/prelude/build_mode/**/BUCK
buck2/prelude/cfg/**/BUCK
buck2/prelude/cpu/**/BUCK
buck2/prelude/cxx/**/*.py
buck2/prelude/cxx/**/*.sh
buck2/prelude/cxx/**/BUCK
buck2/prelude/erlang/**/*.sh
buck2/prelude/erlang/**/BUCK
buck2/prelude/git/**/*.py
buck2/prelude/git/**/BUCK
buck2/prelude/go/**/BUCK
buck2/prelude/go_bootstrap/**/*.py
buck2/prelude/go_bootstrap/**/BUCK
buck2/prelude/haskell/**/*.py
buck2/prelude/haskell/**/BUCK
buck2/prelude/http_archive/**/BUCK
buck2/prelude/ide_integrations/**/*.py
buck2/prelude/ide_integrations/**/BUCK
buck2/prelude/java/**/*.py
buck2/prelude/java/**/BUCK
buck2/prelude/js/**/*.py
buck2/prelude/js/**/BUCK
buck2/prelude/julia/**/*.py
buck2/prelude/julia/**/BUCK
buck2/prelude/kotlin/**/*.java
buck2/prelude/kotlin/**/*.py
buck2/prelude/kotlin/**/BUCK
buck2/prelude/os/**/BUCK
buck2/prelude/os_lookup/**/BUCK
buck2/prelude/platforms/**/BUCK
buck2/prelude/python/**/*.py
buck2/prelude/python/**/*.sh
buck2/prelude/python/**/BUCK
buck2/prelude/runtime/**/BUCK
buck2/prelude/rust/**/*.py
buck2/prelude/rust/**/BUCK
buck2/prelude/test/**/*.py
buck2/prelude/test/**/BUCK
buck2/prelude/third-party/**/*.py
buck2/prelude/third-party/**/BUCK
buck2/prelude/toolchains/android/BUCK
buck2/prelude/toolchains/android/android/**/*.java
buck2/prelude/toolchains/android/android/**/BUCK
buck2/prelude/toolchains/android/config/**/BUCK
buck2/prelude/toolchains/android/src/**/*.jar
buck2/prelude/toolchains/android/src/**/*.java
buck2/prelude/toolchains/android/src/**/*.kt
buck2/prelude/toolchains/android/src/**/BUCK
buck2/prelude/toolchains/android/third-party/**/BUCK
buck2/prelude/toolchains/android/tools/**/BUCK
buck2/prelude/toolchains/apple/**/*.plist
buck2/prelude/toolchains/apple/**/BUCK
buck2/prelude/toolchains/conan/**/*.py
buck2/prelude/toolchains/conan/**/BUCK
buck2/prelude/toolchains/cxx/**/BUCK
buck2/prelude/toolchains/msvc/**/*.py
buck2/prelude/toolchains/msvc/**/BUCK
buck2/prelude/windows/**/BUCK
buck2/prelude/zip_file/**/*.py
buck2/prelude/zip_file/**/BUCK
buck2/template/**/PACKAGE
buck2/template/.buckconfig
buck2/toolchains/**/BUCK
homepage: https://github.com/simonmar/cabal-buck2
bug-reports: https://github.com/simonmar/cabal-buck2/issues
source-repository head
type: git
location: https://github.com/simonmar/cabal-buck2.git
common warnings
ghc-options: -Wall -Wcompat -Wno-unused-do-bind
library
import: warnings
hs-source-dirs: src
default-language: GHC2021
default-extensions: TypeOperators, NoImportQualifiedPost
exposed-modules:
Distribution.Client.CmdBuck2
Distribution.Client.Buck2.BuildDependencies
Distribution.Client.Buck2.Cache
Distribution.Client.Buck2.Configure
Distribution.Client.Buck2.Fingerprint
Distribution.Client.Buck2.Flags
Distribution.Client.Buck2.Generate
Distribution.Client.Buck2.LocalPackages
Distribution.Client.Buck2.Prebuilt
Distribution.Client.Buck2.Schedule
Distribution.Client.Buck2.Setup
Distribution.Client.Buck2.Spec
Distribution.Client.Buck2.Starlark
Distribution.Client.Buck2.Toolchain
Distribution.Client.Buck2.Unpack
Distribution.Client.Buck2.Version
Distribution.Client.Buck2.Write
other-modules:
Paths_cabal_buck2
autogen-modules:
Paths_cabal_buck2
build-depends:
, async >=2.2.6 && <2.3
, base >=4.17 && <4.24
, bytestring >=0.11.5 && <0.13
, Cabal ==3.18.*
, Cabal-syntax ==3.18.*
, cabal-install ==3.18.1.0
, cabal-install-solver ==3.18.*
, containers >=0.6.7 && <0.9
, directory >=1.3.8 && <1.4
, filepath >=1.4 && <1.6
, process >=1.6 && <1.7
, stm >=2.5.1 && <2.6
executable cabal-buck2
import: warnings
main-is: Main.hs
ghc-options: -threaded -rtsopts
hs-source-dirs: app
default-language: GHC2021
build-depends:
, base >=4.17 && <4.24
, Cabal
, cabal-buck2
, cabal-install
-- `cabal test` runs `cabal-buck2` on the projects in `test/fixtures`
-- and checks the files it generates. The tests don't need buck2, and
-- use a private `CABAL_DIR` and the packages installed with GHC only
-- (the fixtures set `active-repositories: :none`, or a local repository
-- made with `tar`), so they need no network access.
test-suite fixtures
import: warnings
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
default-language: GHC2021
build-tool-depends: cabal-buck2:cabal-buck2
build-depends:
, base >=4.17 && <4.24
, bytestring >=0.11.5 && <0.13
, Cabal
, cabal-buck2
, containers >=0.6.7 && <0.9
, directory
, filepath
, process