| Commit message (Expand) | Author | Age | Files | Lines |
| * | Merge pull request #82882 from obsidiansystems/armv6-embedded•••Misc fixes for armv6 bare metal cross | John Ericson | 2020-03-19 | 2 | -2/+8 |
| |\ |
|
| | * | lib: Fix systems test for new `armv6l-none` | John Ericson | 2020-03-18 | 1 | -1/+1 |
| | * | lib: Add armv6l-none to doubles list | John Ericson | 2020-03-12 | 1 | -1/+7 |
| | * | lib/systems: Assume newlib when no kernel and no libc is provided•••newlib is the default for most tools when no kernel is provided. Other
exist, but this seems like a safe default.
(cherry picked from commit 8009c2071179ee3490f244b91a49202728efe403)
| Matthew Bauer | 2020-03-12 | 1 | -2/+1 |
| * | | Merge pull request #82897 from Infinisil/fix-recursive-visible-docs•••lib/options: Only recurse into visible sub options | Robert Hensing | 2020-03-19 | 1 | -1/+1 |
| |\ \ |
|
| | * | | lib/options: Only recurse into visible sub options | Silvan Mosberger | 2020-03-19 | 1 | -1/+1 |
| * | | | lib/tests: Check for nested option-dependent definitions | Silvan Mosberger | 2020-03-19 | 4 | -0/+42 |
| * | | | Revert "lib/modules: Throw better error when definitions assign to an option ...•••This reverts commit 15c873b486347e7861c64fb0b5a7852be9fc82e4.
This was causing infinite recursion when depending on nested options
| Silvan Mosberger | 2020-03-19 | 3 | -9/+1 |
| * | | | Merge pull request #82751 from Infinisil/minor-module-improvements•••Minor module improvements | Robert Hensing | 2020-03-18 | 3 | -6/+22 |
| |\ \ \ |
|
| | * | | | lib/modules: Fix type checks not being done before merging•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
| Silvan Mosberger | 2020-03-18 | 2 | -4/+7 |
| | * | | | lib/modules: Throw better error when definitions assign to an option set | Silvan Mosberger | 2020-03-18 | 3 | -1/+10 |
| | * | | | lib/modules: Remove internal _module attribute from config•••The _module option is added as an internal option set, and it messes up
the results of module evaluations, requiring people to manually filter
_modules out.
If people depend on this, they can still use config._module from inside
the modules, exposing _module as an explicitly declared user option. Or
alternatively with the _module attribute now returned by evalModules.
| Silvan Mosberger | 2020-03-17 | 1 | -1/+5 |
| | |/ / |
|
| * / / | lib/modules: Test the ability for config to depend on options for compatibility | Robert Hensing | 2020-03-17 | 2 | -0/+21 |
| |/ / |
|
| * | | Merge pull request #70157 from teto/lib_kernel•••Add lib.kernel | Silvan Mosberger | 2020-03-12 | 2 | -6/+14 |
| |\ \ |
|
| | * | | lib.kernel: scoped whenXXX helpers•••whenAtLeast/whenBetween are made available in lib/kernel.nix but are now
scoped under whenXXX.
| Matthieu Coudron | 2019-10-01 | 1 | -0/+10 |
| | * | | lib.kernel: make public•••Remove the "version" parameter in order to make it more widely
available.
Starts making some kernel configuration helpers available.
The intent is to be able to better build and check the linux kernel
configuration.
| Matthieu Coudron | 2019-10-01 | 2 | -6/+4 |
| * | | | Merge #81713: lib.callPackages(With): guard against a repeated mistake | Vladimír Čunát | 2020-03-12 | 1 | -1/+6 |
| |\ \ \ |
|
| | * | | | lib.callPackages(With): guard against a repeated mistake•••For example see the parent commit.
| Vladimír Čunát | 2020-03-12 | 1 | -1/+6 |
| * | | | | Merge pull request #72125 from jtojnar/maintainer-groups•••lib: Add lib.maintainer-groups | Jan Tojnar | 2020-03-10 | 1 | -0/+1 |
| |\ \ \ \ |
|
| | * | | | | lib: Add lib.teams•••Also add a freedesktop maintainer group as an example.
| Jan Tojnar | 2019-11-23 | 1 | -0/+1 |
| * | | | | | lib/generators: Add toINI option for duplicate keys | Silvan Mosberger | 2020-03-10 | 2 | -6/+24 |
| * | | | | | Merge pull request #80919 from hercules-ci/modules-add-file-context•••lib/modules.nix: Add file context to unmerged values in mergeDefinitions | Robert Hensing | 2020-03-05 | 1 | -1/+1 |
| |\ \ \ \ \
| |_|/ / /
|/| | | | |
|
| | * | | | | lib/modules.nix: Add file context to unmerged values in mergeDefinitions•••This helps with troubleshooting exceptions in config values, which were hard
to track down for options with many definitions.
The trace will look like:
error: while evaluating the attribute 'config.foo' at undefined position:
[...]
while evaluating the option `foo':
[...]
while evaluating definitions from `/home/user/mymod.nix':
while evaluating 'dischargeProperties' at /home/user/nixpkgs/lib/modules.nix:464:25, called from /home/user/nixpkgs/lib/modules.nix:392:137:
while evaluating the attribute 'value' at /home/user/nixpkgs/lib/modules.nix:277:44:
Value error!
where the `/home/user/mymod.nix` module is
{ lib, ... }: {
options.foo = lib.mkOption {
type = lib.types.lines;
};
config.foo = builtins.throw "Value error!";
}
| Robert Hensing | 2020-02-24 | 1 | -1/+1 |
| * | | | | | Merge pull request #68491 from roberth/fix-dontRecurseIntoAttrs•••Fix dontRecurseIntoAttrs + add to lib + doc | Robert Hensing | 2020-03-01 | 2 | -1/+16 |
| |\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | * | | | | Document attrsets.recurseIntoAttrs | Robert Hensing | 2019-09-11 | 1 | -0/+3 |
| | * | | | | top-level: Fix dontRecurseIntoAttrs and include in lib•••dontRecurseIntoAttrs was a noop (x: x), causing the expression
dontRecurseIntoAttrs (recurseIntoAttrs a) to have the wrong effect.
| Robert Hensing | 2019-09-11 | 2 | -1/+6 |
| | * | | | | lib: Add recurseIntoAttrs•••This makes the function available without having to evaluate the
Nixpkgs fix-point, making it available in a more natural way for
code that deals with multiple Nixpkgs invocations.
Its definition is coupled to Nix rather than Nixpkgs, so it will
feel right at home in lib.
| Robert Hensing | 2019-09-11 | 2 | -1/+8 |
| * | | | | | Merge pull request #80814 from matthewbauer/default-newlib-for-none•••lib/systems: Assume newlib when no kernel and no libc is provided | John Ericson | 2020-02-22 | 1 | -2/+1 |
| |\ \ \ \ \ |
|
| | * | | | | | lib/systems: Assume newlib when no kernel and no libc is provided•••newlib is the default for most tools when no kernel is provided. Other
exist, but this seems like a safe default.
| Matthew Bauer | 2020-02-22 | 1 | -2/+1 |
| * | | | | | | 20.09 is Nightingale | worldofpeace | 2020-02-10 | 1 | -1/+1 |
| | |_|_|_|/
|/| | | | |
|
| * | | | | | Merge pull request #68897 from edolstra/master•••Flake support | Eelco Dolstra | 2020-02-10 | 2 | -2/+2 |
| |\ \ \ \ \ |
|
| | * | | | | | lib/tests/misc.nix: Don't make a copy on Nixpkgs | Eelco Dolstra | 2020-02-10 | 1 | -1/+1 |
| | * | | | | | lib/tests/misc.nix: Fix dependency on currentSystem•••This doesn't work in pure mode.
| Eelco Dolstra | 2020-02-10 | 1 | -1/+1 |
| * | | | | | | Merge pull request #79291 from chkno/remove-isArm•••Remove isArm | worldofpeace | 2020-02-08 | 2 | -4/+1 |
| |\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
|
| | * | | | | | stdenv: Remove isArm (use isAarch32 instead)•••isArm has been deprecated for three releases. All references have been
removed. Tree-wide substitution was performed in #37401 21 months ago.
| Chuck | 2020-02-05 | 1 | -3/+0 |
| | * | | | | | lib.systems.elaborate: isArm -> isAarch32•••This is the last reference to isArm. isArm is deprecated after 18.03.
This substitution was performed tree-wide in #37401.
| Chuck | 2020-02-05 | 1 | -1/+1 |
| * | | | | | | Revert "Revert "Merge master into staging-next""•••In 87a19e9048773d5a363679617406ad148d36c3b8 I merged staging-next into master using the GitHub gui as intended.
In ac241fb7a570d6cf81d229ad22a8889602639160 I merged master into staging-next for the next staging cycle, however, I accidentally pushed it to master.
Thinking this may cause trouble, I reverted it in 0be87c79797a5fa384fbc356c74ed54f9f7829ea. This was however wrong, as it "removed" master.
This reverts commit 0be87c79797a5fa384fbc356c74ed54f9f7829ea.
| Frederik Rietdijk | 2020-02-05 | 1 | -1/+1 |
| |/ / / / / |
|
| * | | | | | Revert "Merge master into staging-next"•••I merged master into staging-next but accidentally pushed it to master.
This should get us back to 87a19e9048773d5a363679617406ad148d36c3b8.
This reverts commit ac241fb7a570d6cf81d229ad22a8889602639160, reversing
changes made to 76a439239eb310d9ad76d998b34d5d3bc0e37acb.
| Frederik Rietdijk | 2020-02-05 | 1 | -1/+1 |
| * | | | | | lib/strings: fix comment typo | Robert Helgesson | 2020-02-05 | 1 | -1/+1 |
| |/ / / / |
|
| * | | | | Merge pull request #78337 from Profpatsch/lib-improve-cli-module•••lib: improve cli module | Profpatsch | 2020-01-24 | 4 | -50/+97 |
| |\ \ \ \ |
|
| | * | | | | lib/cli: mkKey -> mkOptionName, use generators.mkValueStringDefault•••Let’s call them by what they are, option names.
`generators.mkValueStringDefault` is a better value string renderer
than plain `toString`.
Also add docs to all options.
| Profpatsch | 2020-01-23 | 1 | -11/+25 |
| | * | | | | lib/generators: floats are not supported in mkValueStringDefault•••They are cut off after a few decimal places; we cannot in good faith
define a default string representation with that.
| Profpatsch | 2020-01-23 | 1 | -0/+3 |
| | * | | | | lib/cli: rename `renderX` options to `mkX`•••Mirrors the naming scheme in `generators.nix`, for consistency.
Also rename `key` to `k` and value to `v` to aid readability to the
code structure.
| Profpatsch | 2020-01-23 | 1 | -17/+14 |
| | * | | | | lib/cli,lib/tests/misc: somewhat more standard formatting | Profpatsch | 2020-01-23 | 2 | -76/+61 |
| | * | | | | lib/cli: encodeGNUCommandLine -> toGNUCommandLineShell•••The semantic difference between `encode` and `to` is not apparent.
Users are likely to confuse both functions (which leads to unexpected
error messages about the wrong types). Like in `generators.nix`, all
functions should be prefixed by `to`.
Furthermore, converting to a string depends on the target context. In
this case, it’s a POSIX shell, so we should name it that (compare
`escapeShellArg` in `strings.nix`).
We can later add versions that escape for embedding in e.g. python
scripts or similar.
| Profpatsch | 2020-01-23 | 2 | -4/+51 |
| | * | | | | lib/cli: unexport symbols & sort with generators•••lib/cli is very similar to generators, so it should follow largely the
same interface. Similar to how generators isn’t exported, we should
also namespace cli by default (plus “cli” is only three characters to
type).
| Profpatsch | 2020-01-23 | 1 | -3/+4 |
| * | | | | | Merge pull request #78058 from mayflower/nixos/version-gitdir-symlink•••nixos/version: fix case where .git is a symlink | Franz Pletz | 2020-01-24 | 3 | -2/+3 |
| |\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | * | | | | nixos/version: fix case where .git is a symlink•••Before c9214c394b248e1f26e45dbe1be2bd82363af3a6 and
9d396d2e426b9a765de0b8999aa214f1259633e6 if .git is symlink the version
would gracefully default to no git revision. With those changes an
exception is thrown instead.
This introduces a new function `pathIsGitRepo` that checks if
`commitIdFromGitRepo` fails without error so we don't have to
reimplement this logic again and can fail gracefully.
| Franz Pletz | 2020-01-20 | 3 | -2/+3 |
| * | | | | | Merge pull request #77855 from AndersonTorres/update/notion•••notion: 3-2017050501 -> 3-2019050101 | Anderson Torres | 2020-01-22 | 1 | -5/+0 |
| |\ \ \ \ \ |
|
| | * | | | | | Notion custom license: exclude | AndersonTorres | 2020-01-17 | 1 | -5/+0 |
| | |/ / / / |
|