summary refs log tree commit diff
path: root/lib/attrsets.nix
Commit message (Collapse)AuthorAge
* Add lib.filterAttrsRecursive functionJaka Hudoklin2015-09-19
|
* Allow options with type "package" to be store pathsEelco Dolstra2015-08-07
| | | | | | | | For example, this allows writing nix.package = /nix/store/786mlvhd17xvcp2r4jmmay6jj4wj6b7f-nix-1.10pre4206_896428c; Also, document types.package in the manual.
* Rename misc.nix -> deprecated.nixEelco Dolstra2015-07-23
|
* More efficient version of filterAttrsEelco Dolstra2015-07-23
|
* lib: Fix matchAttrs by importing builtins.lengthBenjamin Staffin2014-12-30
| | | | | | | | | | | | | | | | Before: nix-repl> :l <nixpkgs> nix-repl> lib.matchAttrs { foo = "bar"; } { bar = "bas"; } error: undefined variable ‘length’ at "/home/benley/nix/nixpkgs/lib/attrsets.nix":317:10 After: nix-repl> :l <nixpkgs> nix-repl> lib.matchAttrs { foo = "bar"; } { bar = "bas"; } false Change-Id: I548d69d50cffe1c63a6f39f76fd09d1835d8d9a2
* Replace hasAttr/getAttr calls with the ? and . operatorsEelco Dolstra2014-10-05
| | | | | For NixOS evaluation, this gives a ~21% reduction in the number of values allocated and a ~4% speedup. It's also more readable.
* Use new primopsEelco Dolstra2014-10-05
|
* Remove backward-compatible implementations of some primopsEelco Dolstra2013-11-12
| | | | Nixpkgs requires at least Nix 1.2 anyway, so these are now useless.
* Add some primops to libEelco Dolstra2013-11-12
|
* Inline some functions on the critical pathEelco Dolstra2013-10-28
|
* Keep position information for option declarations and definitionsEelco Dolstra2013-10-28
| | | | | | | Also, when an option definition fails to type-check, print the file name of the module in which the offending definition occurs, e.g. error: user-thrown exception: The option value `boot.loader.grub.version' in `/etc/nixos/configuration.nix' is not a integer.
* Move pkgs/lib/ to lib/Eelco Dolstra2013-10-10