This project is mirrored from https://github.com/haskell/Cabal.
Pull mirroring updated .
- Apr 10, 2016
-
-
Duncan Coutts authored
We need to be able to specify program options and locations on a per-pakage basis. Of course we can still specify them for all local packages. Note that these options are not actually used yet, which is why this patch can be so small. Using them is next.
-
Duncan Coutts authored
Move the FlagAssignment from the project-wide all-packages config to the per-package config. Initially it had been easier to do it globally since it gets used as a solver setting rather than as the other per-package config items, but obviously it is supposed to be per-package. So the flags field in the config top-level now applies to all local packages. And it can also be specified in package-specific sections. We don't yet check that any of the flags specified actually make sense for either the local packages or for the specific packages.
-
Duncan Coutts authored
It's a Map PackageName PackageConfig (or LegacyPackageConfig) so the correct monoid instance is to merge the PackageConfig values.
-
- Mar 27, 2016
-
-
And extend the project config print/parse tests to cover quoted strings. (cherry picked from commit 72b93d91)
-
- Mar 17, 2016
-
-
This defines the new cabal.project files and introduces the notion of a project root (and the logic for finding it). Also has support for implicit projects when no cabal.project file is defined. Supports both reading and writing project files or fragments. The printing & parsing round trips correctly. QC tests to follow. This is a key part of the new nix-local-build branch approach, based around projects with clear configuration state held in a project file (or extra files). This has support for file and dirs as packages within a project, including by glob. It supports both globs that much match a target, and optional globs that are allowed to match nothing. It has partial support for local tarball, remote http tarball and remote source repo packages. (cherry picked from commit 324b3240)
-