Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-10-20 | lib.isStorePath: fix `false` result when passed a path object | Tim Cuthbertson | 1 | -1/+1 | |
Since `isStorePath` relies on comparing against builtins.storeDir (a string), we need to convert the input into a string as well. | |||||
2018-10-18 | tests/systems.nix: fix tests | Matthew Bauer | 1 | -14/+15 | |
these weren’t being run correctly | |||||
2018-10-15 | generators: make toPretty handle floats correctly | Léo Gaspard | 1 | -0/+2 | |
2018-09-18 | Merge pull request #46336 from Infinisil/overrideExisting | Jörg Thalheim | 1 | -0/+14 | |
lib: Improve overrideExisting implementation | |||||
2018-09-17 | lib/tests: Add overrideExisting tests | Silvan Mosberger | 1 | -0/+14 | |
2018-09-16 | Merge pull request #36287 from shlevy/lib-tests-default | Graham Christensen | 1 | -0/+7 | |
lib/tests: Add check-eval.nix to run simple tests. | |||||
2018-09-06 | Merge branch 'no-toPath' | Shea Levy | 1 | -2/+2 | |
2018-08-28 | hurd: cleanup unmaintained target | Jörg Thalheim | 1 | -1/+1 | |
This has been not touched in 6 years. Let's remove it to cause less problems when adding new cross-compiling infrastructure. This also simplify gcc significantly. | |||||
2018-08-15 | lib/recursiveUpdateUntil: add a test & release note for fix | Profpatsch | 1 | -0/+24 | |
2018-07-20 | [bot]: remove unreferenced code | volth | 1 | -4/+0 | |
2018-06-10 | lib: bitAnd, bitOr, bitXor (bitsize-agnostic fallback function) (#41491) | volth | 1 | -0/+15 | |
* lib: bitAnd, bitOr, bitXor * lib: test for bitAnd, bitOr, bitXor * lib: bitsize-agnostic zipIntBits * lib: bitNot * lib: bitNot | |||||
2018-06-05 | Revert "lib: bitAnd, bitOr, bitXor" | Profpatsch | 1 | -15/+0 | |
2018-06-02 | lib: test for bitAnd, bitOr, bitXor | volth | 1 | -0/+15 | |
2018-05-22 | treewide: Remove uses of builtins.toPath. | Shea Levy | 1 | -2/+2 | |
toPath has confusing semantics and is never necessary; it can always either just be omitted or replaced by pre-concatenating `/.`. It has been marked as "!!! obsolete?" for more than 10 years in a C++ comment, hopefully removing it will let us properly deprecate and, eventually, remove it. | |||||
2018-05-07 | lib.types: fix loaOf behavior for long lists | Robert Helgesson | 3 | -0/+44 | |
Assigning a list of 10 or more elements to an option having the type `loaOf a` produces a configuration value that is not honoring the order of the original list. This commit fixes this and a related issue arising when 10 or more lists are merged into this type of option. | |||||
2018-05-06 | lib/types: clear up coercedTo description | Silvan Mosberger | 1 | -2/+2 | |
2018-05-06 | lib/types: Add coercedTo unsound tests | Silvan Mosberger | 4 | -0/+21 | |
2018-04-25 | lib/generators: print paths without quotes & move function down | Profpatsch | 1 | -3/+5 | |
2018-03-29 | lib/generators: introduce a sane default for `mkValueString` | Profpatsch | 1 | -0/+26 | |
So far, `mkValueString` defaulted to `toString`, which is a bad match for most configuration file formats, especially because how booleans are formatted. This also improves error messages for unsupported types. Add a test to codify the formatting. | |||||
2018-03-20 | Remove obsolete /nix/var/nix/{manifests,channel-cache} | Eelco Dolstra | 1 | -1/+0 | |
2018-03-09 | lib.isStorePath: Fix derivation detection | Shea Levy | 1 | -0/+2 | |
2018-03-08 | lib-tests: Don't depend on /bin/sh | Shea Levy | 1 | -1/+1 | |
https://hydra.nixos.org/build/70748333 | |||||
2018-03-04 | lib/tests: Add check-eval.nix to run simple tests. | Shea Levy | 1 | -0/+7 | |
This can be used by evaluation-only tools to validate tests are still working. | |||||
2018-02-23 | lib, treewide: Add missing MIPS arches, and fix existing usage | Daniel Barlow | 1 | -2/+2 | |
Existing "mips64el" should be "mipsel". This is just the barest minimum so that nixpkgs can recognize them as systems - although required for building individual derivations onto MIPS boards, it is not sufficient if you want to actually build nixos on those targets | |||||
2017-11-22 | lib/generators: add mkValueString to mkKeyValueDefault generator | Profpatsch | 1 | -1/+1 | |
This means the generation of values can now be influenced, even down from e.g. an INI generator. Breaks the interface of `mkKeyValueDefault` to match its interface to other generator functions. It might me sensible to rename `mkKeyValue` and `mkKeyValueSet` to conform to the `toX`-style of generator functions. | |||||
2017-11-05 | lib/types: add `ints.positive`. | Profpatsch | 3 | -0/+14 | |
For values that are positive, but cannot be 0. | |||||
2017-11-05 | lib/types: update docs to match the new type names | Profpatsch | 4 | -0/+24 | |
2017-11-05 | lib/types: add tests for `ints.between` and `ints.unsigned` | Profpatsch | 1 | -1/+9 | |
The int types are trivial invocations of `ints.between`, so they are not tested explicitely. | |||||
2017-06-22 | lib/generators: put more information in toPretty lambdas | Profpatsch | 1 | -0/+2 | |
With `builtins.functionArgs` we can get some information if the first argument is an attrset and whether the contained fields have default values. Encode that into the pretty-printed lambda. | |||||
2017-06-22 | lib/generators: toPretty | Profpatsch | 1 | -0/+30 | |
`toPretty` implements a pretty printer for nix values. | |||||
2017-06-09 | lib-tests: fix test for isStorePath | Daiderd Jordan | 1 | -1/+1 | |
2017-05-30 | Add `isStorePath` tests (#26223) | Profpatsch | 1 | -4/+34 | |
2017-05-21 | lib tests: Simplify relative path for default argument | John Ericson | 1 | -1/+1 | |
2017-05-17 | lib: Consolidate tests into one meta job | John Ericson | 3 | -40/+331 | |
2017-04-17 | lib: Fix preexisting bugs in old platforms code (now bugs in tests) | John Ericson | 1 | -2/+2 | |
Warning, this changes the compatibility claims of existing packages! | |||||
2017-04-17 | lib: Fix system parsing, and use for doubles lists | John Ericson | 2 | -24/+64 | |
The old hard-coded lists are now used to test system parsing. In the process, make an `assertTrue` in release lib for eval tests; also use it in release-cross | |||||
2017-03-03 | modules: add support for module replacement with disabledModules | Daiderd Jordan | 5 | -0/+24 | |
This is based on a prototype Nicolas B. Pierron worked on during a discussion we had at FOSDEM. A new version with a workaround for problems of the reverted original. Discussion: https://github.com/NixOS/nixpkgs/commit/3f2566689 | |||||
2017-03-01 | Revert "modules: add support for module replacement with disabledModules" | Vladimír Čunát | 5 | -24/+0 | |
This reverts commit 3f2566689d14f1d7778d55ca807d1dad2f4695d1 for now. Evaluation of the tested job got broken, blocking nixos-unstable. | |||||
2017-02-28 | use relative path for module tests | Daiderd Jordan | 1 | -1/+1 | |
2017-02-28 | modules: add support for module replacement with disabledModules | Daiderd Jordan | 5 | -0/+24 | |
This is based on a prototype Nicolas B. Pierron worked on during a discussion we had at FOSDEM. | |||||
2017-02-03 | modules lib: type description in type error message | Nikolay Amiantov | 1 | -1/+1 | |
2017-02-02 | module tests: add tests for coercedTo | Nikolay Amiantov | 4 | -0/+21 | |
2016-06-22 | Replace `./../*` with `../*` in Nix expressions (#16414) | John Ericson | 1 | -1/+1 | |
2016-02-26 | lib: alphabetize things | zimbatm | 1 | -5/+5 | |
2015-07-14 | NixOS modules: Add error context on module arguments evaluation. | Nicolas B. Pierron | 4 | -3/+23 | |
2015-03-16 | Add tests for the new module system improvements. | Nicolas B. Pierron | 7 | -0/+60 | |
2015-02-09 | Issue #6161 - Register lib tests as release blockers. | Nicolas B. Pierron | 2 | -15/+47 | |
2015-02-09 | Issue #6161 - Add tests for NixOS modules. | Nicolas B. Pierron | 15 | -0/+192 | |