Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Cabal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
8dea20f6
Commit
8dea20f6
authored
Feb 19, 2020
by
Oleg Grenrus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve #6515: Add section on environment variables
parent
e348e510
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
Cabal/doc/installing-packages.rst
Cabal/doc/installing-packages.rst
+47
-0
No files found.
Cabal/doc/installing-packages.rst
View file @
8dea20f6
...
...
@@ -41,6 +41,53 @@ executables by default, you would change this line to
You
can
also
use
``
cabal
user
-
config
update
``
to
migrate
configuration
files
created
by
older
versions
of
``
cabal
``.
Environment
variables
---------------------
Various
environment
variables
affect
``
cabal
-
install
``.
``
CABAL_CONFIG
``
The
variable
to
find
global
configuration
file
.
``
CABAL_DIR
``
Default
content
directory
for
``
cabal
-
install
``
files
.
Default
value
is
``
getAppUserDataDirectory
"cabal"
``,
which
is
``$
HOME
/.
cabal
``
on
unix
systems
.
..
note
::
The
CABAL_DIR
might
be
dropped
in
the
future
,
when
``
cabal
-
install
``
starts
to
use
XDG
Directory
specification
.
``
CABAL_BUILDDIR
``
The
override
for
default
``
dist
``
build
directory
.
Note
,
the
nix
-
style
builds
build
directory
(``
dist
-
newstyle
``)
is
not
affected
by
this
environment
variable
.
``
CABAL_SANDBOX_PACKAGE_PATH
``
Variable
related
to
deprecated
sandbox
functionality
.
``
CABAL_SANDBOX_CONFIG
``
Variable
related
to
deprecated
sandbox
functionality
.
Configuration
file
discovery
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.
If
``$
CABAL_CONFIG
``
is
set
use
it
,
2.
otherwise
if
``$
CABAL_DIR
``
is
set
use
``$
CABAL_DIR
/
config
``
3.
otherwise
use
``
getAppUserDirectory
"cabal"
``
If
the
configuration
file
doesn
't exist ``cabal-install``
will generate the default one, with directories based on
``$CABAL_DIR`` (if set) or ``getAppUserDirectory "cabal"`` prefix.
.. note:
If ``$CABAL_CONFIG`` is set, but the file doesn'
t
exist
,
one
will
be
generated
with
``$
CABAL_DIR
``
or
``
getAppUserDirectory
"cabal"
``
based
prefixes
.
In
other
words
not
the
prefixes
based
on
a
directory
part
of
``$
CABAL_CONFIG
``
path
.
Repository
specification
------------------------
...
...
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