| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
fix: Adding libtool to allow darwin compiles
Libtool seems to be required for mongodb to compile on darwin.
fix: Marking MongoDB as broken on aarch64
fix: Adding libtools to the pkg imports
Update mongodb to 4.0.4
|
|\
| |
| | |
nixos gerrit module
|
| |
| |
| |
| | |
This code was taken from the home-manager project.
|
| |
| |
| |
| |
| |
| |
| | |
Add platform definitions for 64-bit ARM and x86. This is sufficient for
for building Genode where a toolchain is provided as an overlay.
Toolchain: git+https://git.sr.ht/~ehmry/genodepkgs?rev=14fc773ac9ecd2cbb30cb4612b284eee83d83546
|
|\ \
| |/
|/| |
cleanSourceWith: don't use baseNameOf
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Currently, not providing `name` to `cleanSourceWith` will use the name
of the imported directory. However, a common case is for this to be the
top level of some repository. In that case, the name will be the name of
the checkout on the current machine, which is not necessarily
reproducible across different settings, and can lead to e.g. cache
misses in CI.
This is documented in the comment on `cleanSourceWith`, but this does
not stop it being a subtle trap for users.
There are different tradeoffs in each case:
1. If `cleanSourceWith` defaults to `"source"`, then we may end up with a
user not knowing what directory a source store path corresponds to.
However, it being called "unnamed" may give them a clue that there is a
way for them to name it, and lead them to the definition of the
function, which has a clear `name` parameter.
2. If `cleanSoureWith` defaults to the directory name, then a user may face
occasional loss of caching, which is hard to notice, and hard to track
down. Tracking it down likely requires use of more advanced tools like
`nix-diff`, and reading the source of a lot of nix code.
I think the downside of the status quo is worse.
This is really another iteration of
https://github.com/NixOS/nix/issues/1305: that led to adding the `name`
argument in the first place, this just makes us use a better default
`name`.
|
|\ \
| | |
| | | |
Misc fixes for armv6 bare metal cross
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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)
|
|\ \ \
| | | |
| | | | |
lib/options: Only recurse into visible sub options
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
set"
This reverts commit 15c873b486347e7861c64fb0b5a7852be9fc82e4.
This was causing infinite recursion when depending on nested options
|
|\ \ \ \
| | | | |
| | | | | |
Minor module improvements
|
| | | | |
| | | | |
| | | | |
| | | | | |
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
|
| | | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Add lib.kernel
|
| | | |
| | | |
| | | |
| | | |
| | | | |
whenAtLeast/whenBetween are made available in lib/kernel.nix but are now
scoped under whenXXX.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
For example see the parent commit.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
lib: Add lib.maintainer-groups
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also add a freedesktop maintainer group as an example.
|
| | | | | | |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
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!";
}
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Fix dontRecurseIntoAttrs + add to lib + doc
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
dontRecurseIntoAttrs was a noop (x: x), causing the expression
dontRecurseIntoAttrs (recurseIntoAttrs a) to have the wrong effect.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
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.
|
| |_|_|_|/ /
|/| | | | | |
|
|\ \ \ \ \ \
| |_|_|_|_|/
|/| | | | | |
Flake support
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This doesn't work in pure mode.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Remove isArm
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
isArm has been deprecated for three releases. All references have been
removed. Tree-wide substitution was performed in #37401 21 months ago.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This is the last reference to isArm. isArm is deprecated after 18.03.
This substitution was performed tree-wide in #37401.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
lib: improve cli module
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
They are cut off after a few decimal places; we cannot in good faith
define a default string representation with that.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|