Age | Commit message (Collapse) | Author | Files | Lines |
|
lib/systems/inspect.nix: explanatory comment
|
|
lib/generators: add toLua/mkLuaInline
|
|
|
|
See https://github.com/nix-community/noogle
|
|
Suitable to simplify Lua-based configurations like neovim-lspconfig that
might need to interpolate Nix package paths.
|
|
45M -> 31M
|
|
I'm expecting all the builtins.* functions to be available in lib.*
|
|
lib.strings: Prevent paths as inputs in some functions
|
|
lib/modules: better error for invalid option declarations
|
|
Fixed TimescaleDB License Information
|
|
ofborg relies on the behavior that existed prior to
1c00bf394867b07ed7a908408d8bc1d0afd9fa49, where evaluation would
immediately abort due to a missing argument (whether it be an aliased
package when `allowAliases = false;` or a typo'd or otherwise
nonexistent package).
If `callPackageWith` `throw`s instead of `abort`s, the following
`nix-env` invocation does not fail fast but instead silently skips the
attribute (assuming there is a package that has an aliased package in
its `autoArgs`):
$ nix-env -qa --json --file . --arg config '{ allowAliases = false; }' &>/dev/null
$ echo $?
0
This does change the error output when there is a missing package (for
any of the reasons mentioned above), though. Before this change, the
errors looked like this:
$ nix-build -A hello --arg config '{ allowAliases = false; }'
error:
… while calling the 'throw' builtin
at /home/vin/workspace/vcs/nixpkgs/master/lib/customisation.nix:179:65:
178|
179| in if missingArgs == [] then makeOverridable f allArgs else throw error;
| ^
180|
error: Function called without required argument "bash_5" at /home/vin/workspace/vcs/nixpkgs/master/pkgs/applications/misc/hello/default.nix:8, did you mean "bash" or "bashdb"?
And the errors now look like this:
$ nix-build -A hello --arg config '{ allowAliases = false; }'
error:
… while calling the 'abort' builtin
at /home/vin/workspace/vcs/nixpkgs/master/lib/customisation.nix:179:65:
178|
179| in if missingArgs == [] then makeOverridable f allArgs else abort error;
| ^
180|
error: evaluation aborted with the following error message: 'Function called without required argument "bash_5" at /home/vin/workspace/vcs/nixpkgs/master/pkgs/applications/misc/hello/default.nix:8, did you mean "bash" or "bashdb"?'
|
|
into TSL (Timescale Community License) and Apache 2.0 components.
TimescaleDB provides two types of licenses, Apache 2.0 and Timescale Community License (TSL), with different feature sets. While all the code is in the same repository, the build
system can build both versions depending on the build parameters set in.
Co-authored-by: Emily Lange <git@indeednotjames.com>
|
|
Make `byName` aware of whether it's processing options or config to give
slightly more accurate error messages.
|
|
|
|
See also parent commits
|
|
There's no need to call this function on path data types, and it's
confusing with the new lib.path library functions
|
|
lib.{hasPrefix,hasInfix,hasSuffix} would otherwise return an
always-false result, which can be very unexpected:
nix-repl> lib.strings.hasPrefix ./lib ./lib/meta.nix
false
|
|
lib.path.subpath.join: init
|
|
haskellPackages: update stackage and hackage; haskellPackages.ghc: 9.2.6 -> 9.2.7
|
|
- provide comprehensive example
- add unit test
|
|
|
|
We don't have an emulator that can do this.
|
|
hercules-ci/lib-modules-disabledModules-module-with-key
lib/modules: Allow an "anonymous" module with key in disabledModules
|
|
|
|
- Christmas is over!
- Upstream has changed the name of the target triplet used for the JS
backend from js-unknown-ghcjs to javascript-unknown-ghcjs, since Cabal
calls the architecture "javascript":
https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c
Since the triplet is made up anyways, i.e. autoconf does not support
it and Rust uses different triplets for its emscripten backends, we'll
just change it as well.
- Upstream fixed the problem with ar(1) being invoked incorrectly by stage0:
https://gitlab.haskell.org/ghc/ghc/-/commit/e987e345c807035e4637ca3eae227ae501e16c42
|
|
katawa-shoujo: init at 1.3.1
|
|
all of these have been deprecated and raising warnings since 18.09. it's
about time we actually made good on "will be removed in the next release".
|
|
lib/systems/parse: stop considering armv8a able to execute armv7l
|
|
https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull
|
|
|
|
nixdoc takes everything from Type: to Example: as the type, which
misrendered a large part of the docs. it also drops sorely needed spaces
where the type had line breaks, so all has to be on one line (or use
non-standard literal spaces, which is probably worse).
also clarify what the `?` for arguments mean while we're here.
|
|
Since it's an attribute set, the lib function location generating code
tries to generate locations for each of the characters...
|
|
|
|
|
|
This makes the following work
disabledModules = [ foo.nixosModules.bar ];
even if `bar` is not a path, but rather a module such as
{ key = "/path/to/foo#nixosModules.bar"; config = ...; }
By supporting this, the user will often be able to use the same syntax
for both importing and disabling a module. This is becoming more relevant
because flakes promote the use of attributes to reference modules. Not
all of these modules in flake attributes will be identifiable, but with
the help of a framework such as flake-parts, these attributes can be
guaranteed to be identifiable (by outPath + attribute path).
|
|
|
|
|
|
|
|
LLVM-exception only makes sense when used with the Apache 2.0 license,
so let's combine them, so it's not possible to forget one of them like
happened with llvm_15.
|
|
|
|
|
|
|
|
|
|
lib/options: update showOption comment
|
|
|
|
|
|
lib/systems/architectures: expand inferiors
|
|
This function can be used to safely join subpaths together
|
|
|
|
nixos: Improve module conflict error messages
|