Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
a23e8ac1
Commit
a23e8ac1
authored
Sep 07, 2018
by
Herbert Valerio Riedel
🕺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User-guide: basic description of source-repo-package stanza [ci skip]
parent
4feb3cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
3 deletions
+35
-3
Cabal/doc/nix-local-build.rst
Cabal/doc/nix-local-build.rst
+35
-3
No files found.
Cabal/doc/nix-local-build.rst
View file @
a23e8ac1
...
...
@@ -716,9 +716,7 @@ project are:
There is no command line variant of this field.
[STRIKEOUT:There is also a stanza ``source-repository-package`` for
specifying packages from an external version control.] (Not
implemented.)
All local packages are *vendored*, in the sense that if other packages
(including external ones from Hackage) depend on a package with the name
...
...
@@ -752,6 +750,9 @@ format:
Formally, the format described by the following BNF:
.. todo::
convert globbing grammar to proper ABNF_ syntax
.. code-block:: abnf
FilePathGlob ::= FilePathRoot FilePathGlobRel
...
...
@@ -769,12 +770,43 @@ Formally, the format described by the following BNF:
| "\\" [*{},] # escaped reserved character
| "{" Glob "," ... "," Glob "}" # union (match any of these)
Specifying Packages from Remote Version Control Locations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Starting with Cabal 2.4, there is now a stanza
``source-repository-package`` for specifying packages from an external
version control which supports the following fields:
- :pkg-field:`source-repository:type`
- :pkg-field:`source-repository:location`
- :pkg-field:`source-repository:tag`
- :pkg-field:`source-repository:subdir`
A simple example is shown below:
.. code-block:: cabal
packages: .
source-repository-package
type: git
location: https://github.com/hvr/HsYAML.git
tag: e70cf0c171c9a586b62b3f75d72f1591e4e6aaa1
source-repository-package
type: git
location: https://github.com/well-typed/cborg
tag: 3d274c14ca3077c3a081ba7ad57c5182da65c8c1
subdir: cborg
Global configuration options
----------------------------
The following top-level configuration options are not specific to any
package, and thus apply globally:
.. cfg-field:: verbose: nat
--verbose=n, -vn
:synopsis: Build verbosity level.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment