3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/stdenv
Nicolas B. Pierron f5dfe78a1e Add overlays mechanism to Nixpkgs.
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.
2017-01-16 01:17:33 +01:00
..
cross Add overlays mechanism to Nixpkgs. 2017-01-16 01:17:33 +01:00
custom Add overlays mechanism to Nixpkgs. 2017-01-16 01:17:33 +01:00
cygwin Allow not rebasing in cygwin stdenv. 2016-05-20 17:17:10 +02:00
darwin Add overlays mechanism to Nixpkgs. 2017-01-16 01:17:33 +01:00
freebsd Add overlays mechanism to Nixpkgs. 2017-01-16 01:17:33 +01:00
generic top-level: Modernize stdenv.overrides giving it self and super 2017-01-13 10:36:11 -05:00
linux Add overlays mechanism to Nixpkgs. 2017-01-16 01:17:33 +01:00
native Add overlays mechanism to Nixpkgs. 2017-01-16 01:17:33 +01:00
nix top-level: Normalize stdenv booting 2017-01-13 13:23:23 -05:00
adapters.nix Remove more dead code: stdenvDarwinNaked no longer exists 2016-06-20 23:53:09 -07:00
booter.nix stdenv/booter.nix: Add longer note explaining indexing 2017-01-13 13:47:17 -05:00
common-path.nix
default.nix Add overlays mechanism to Nixpkgs. 2017-01-16 01:17:33 +01:00