mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
f5dfe78a1e
This patch add a new argument to Nixpkgs default expression named "overlays". By default, the value of the argument is either taken from the environment variable `NIXPKGS_OVERLAYS`, or from the directory `~/.nixpkgs/overlays/`. If the environment variable does not name a valid directory then this mechanism would fallback on the home directory. If the home directory does not exists it will fallback on an empty list of overlays. The overlays directory should contain the list of extra Nixpkgs stages which would be used to extend the content of Nixpkgs, with additional set of packages. The overlays, i-e directory, files, symbolic links are used in alphabetical order. The simplest overlay which extends Nixpkgs with nothing looks like: ```nix self: super: { } ``` More refined overlays can use `super` as the basis for building new packages, and `self` as a way to query the final result of the fix-point. An example of overlay which extends Nixpkgs with a small set of packages can be found at: https://github.com/nbp/nixpkgs-mozilla/blob/nixpkgs-overlay/moz-overlay.nix To use this file, checkout the repository and add a symbolic link to the `moz-overlay.nix` file in `~/.nixpkgs/overlays` directory.
28 lines
844 B
XML
28 lines
844 B
XML
<book xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
|
<info>
|
|
|
|
<title>Nixpkgs Contributors Guide</title>
|
|
|
|
<subtitle>Version <xi:include href=".version" parse="text" /></subtitle>
|
|
|
|
</info>
|
|
|
|
<xi:include href="introduction.xml" />
|
|
<xi:include href="quick-start.xml" />
|
|
<xi:include href="stdenv.xml" />
|
|
<xi:include href="multiple-output.xml" />
|
|
<xi:include href="configuration.xml" />
|
|
<xi:include href="functions.xml" />
|
|
<xi:include href="meta.xml" />
|
|
<xi:include href="languages-frameworks/index.xml" />
|
|
<xi:include href="package-notes.xml" />
|
|
<xi:include href="overlays.xml" />
|
|
<xi:include href="coding-conventions.xml" />
|
|
<xi:include href="submitting-changes.xml" />
|
|
<xi:include href="reviewing-contributions.xml" />
|
|
<xi:include href="contributing.xml" />
|
|
|
|
</book>
|