summary refs log tree commit diff
path: root/pkgs/top-level/impure.nix
Commit message (Collapse)AuthorAge
* impure.nix: add crossSystem as argMatthew Bauer2017-04-29
|
* Allow directories with a default.nix to be imported as an overlay. Closes ↵Tom Hunger2017-02-25
| | | | | | | | #23016. Note that ${} substitution doesn't work because of the "cannot refer to other paths" constraint. The paranthesis are needed to enforce right-first evaluation.
* top-level: Hack around Nix's --arg logic not handling unnamed paramsJohn Ericson2017-02-09
|
* top-level: Allow nixpkgs to take localSystem directlyJohn Ericson2017-02-08
| | | | This is instead of both system and platform, which is kind of ugly.
* Remove unnecessary "sort" callEelco Dolstra2017-02-01
| | | | attrNames already returns names in sorted order.
* ~/.nixpkgs -> ~/.config/nixpkgsEelco Dolstra2017-02-01
| | | | | | The former is still respected as a fallback for config.nix for backwards compatibility (but not for overlays because they're a new feature).
* $NIXPKGS_OVERLAYS -> <nixpkgs-overlays>Eelco Dolstra2017-02-01
| | | | | | The Nix search path is the established mechanism for specifying the location of Nix expressions, so let's use it instead of adding another environment variable.
* Only read overlays ending in .nixEelco Dolstra2017-02-01
| | | | | For example, this prevents Nix from barfing on editor backup files in ~/.nixpkgs/overlays.
* Throw an error if NIXPKGS_OVERLAYS is invalid and improve documentation.Nicolas B. Pierron2017-01-16
|
* Add overlays mechanism to Nixpkgs.Nicolas B. Pierron2017-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Separate fix-point from config importing hacks and other impuritiesJohn Ericson2016-07-14