| Commit message (Expand) | Author | Age | Files | Lines |
| * | lib.takeEnd: init (#398222) | Johannes Kirschbauer | 2025-04-23 | 1 | -0/+63 |
| |\ |
|
| | * | lib.takeEnd: init | azahi | 2025-04-13 | 1 | -0/+63 |
| * | | lib.strings: init splitStringBy (#385643) | Pol Dellaiera | 2025-04-23 | 1 | -0/+95 |
| |\ \ |
|
| | * | | lib.strings: init splitStringBy | Heitor Augusto | 2025-04-07 | 1 | -0/+95 |
| * | | | lib/strings: Zero‐pad hex digits in escapeC (#399722) | Norbert Melzer | 2025-04-21 | 1 | -2/+2 |
| |\ \ \ |
|
| | * | | | lib/strings: Zero‐pad hex digits in escapeC•••lib.strings.escapeC produces single‐digit hexadecimal strings for
character values ≤ 15, which results in an ambiguity. If the following
character is a hex digit, it will be interpreted as being part of the
escape sequence.
systemd, which also relies on C‐style escape sequences, does not
decode single‐digit sequences at all, even if unambiguous.
Padding the hexadecimal string with "0" avoids this problem.
| Mikael Voss | 2025-04-18 | 1 | -2/+2 |
| | | |/
| |/| |
|
| * | | | lib.options.mkPackageOption: use lib.showAttrPath (#398066) | Johannes Kirschbauer | 2025-04-21 | 2 | -1/+27 |
| |\ \ \ |
|
| | * | | | lib.options.mkPackageOption: use lib.showAttrPath•••Make use of `lib.showAttrPath` instead of manually doing `concatStringsSep "."`.
This means edge-cases such as the attr-path including names that are not
valid nix identifiers will be handled better.
See:
- https://nix.dev/manual/nix/2.26/language/identifiers
- https://nixos.org/manual/nixpkgs/unstable/#function-library-lib.attrsets.showAttrPath
| Matt Sturgeon | 2025-04-13 | 2 | -0/+17 |
| | * | | | lib/tests/modules: test all `mkPackageOption` cases•••There were several test case options declared in `declare-mkPackageOption.nix`
that were not actually tested in `modules.sh`.
| Matt Sturgeon | 2025-04-13 | 1 | -1/+10 |
| | |/ / |
|
| * | | | lib/types: check paths in pathWith with hasStorePathPrefix (#387304) | Johannes Kirschbauer | 2025-04-21 | 1 | -0/+3 |
| |\ \ \
| |/ /
|/| | |
|
| | * | | lib/types: check paths in pathWith with hasStorePathPrefix•••This permits usage of content‐addressed derivations and has the added
benefit of checking normalised paths.
| Mikael Voss | 2025-04-02 | 1 | -0/+3 |
| * | | | Merge remote-tracking branch 'origin/master' into staging-next | K900 | 2025-04-11 | 1 | -0/+36 |
| |\ \ \ |
|
| | * \ \ | lib.types.submodule: Disable check during docs generation (#396907) | Robert Hensing | 2025-04-11 | 1 | -0/+36 |
| | |\ \ \ |
|
| | | * | | | lib.types.submodule: Disable check during docs generation•••Put simply docs generation is a weird eval, and we should avoid
generating any unnecessary errors.
| Robert Hensing | 2025-04-11 | 1 | -0/+36 |
| | | |/ / |
|
| * | | | | Merge master into staging-next | nixpkgs-ci[bot] | 2025-04-11 | 6 | -1/+104 |
| |\| | | |
|
| | * | | | lib/modules: export `class` inside `specialArgs` (#395141) | Robert Hensing | 2025-04-10 | 6 | -1/+104 |
| | |\ \ \ |
|
| | | * | | | lib/modules: add `class` to `specialArgs`•••Co-Authored-By: Johannes Kirschbauer <hsjobeki@gmail.com>
| Michael Hoang | 2025-04-10 | 6 | -1/+104 |
| | | | |/
| | |/| |
|
| * | | | | Merge master into staging-next | nixpkgs-ci[bot] | 2025-04-09 | 1 | -1/+1 |
| |\| | | |
|
| | * | | | nixVersions.{nix_2_28,nix_2_26}: switch simplified meson build•••So we are adding a simplified version that builds a monolithic nix binary to get finished
in time for the release. Afterwards we will switch to the modular build again.
| Jörg Thalheim | 2025-04-08 | 1 | -1/+1 |
| | |/ / |
|
| * | | | Merge remote-tracking branch 'origin/master' into staging-next | K900 | 2025-04-07 | 2 | -0/+79 |
| |\| | |
|
| | * | | lib.modules: init test for lib.mkDefinition | Johannes Kirschbauer | 2025-04-03 | 2 | -0/+79 |
| | |/ |
|
| * / | treewide: drop support for 32‐bit Darwin•••It’s dead, Jim.
| Emily | 2025-04-02 | 1 | -5/+0 |
| |/ |
|
| * | treewide: Format all Nix files•••Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:
nix-build ci -A fmt.check
This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).
This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).
Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase).
If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
| Silvan Mosberger | 2025-04-01 | 4 | -785/+2281 |
| * | lib/tests/release.nix: Use nix.overrideScope for >=2.26 | Robert Hensing | 2025-03-31 | 1 | -15/+4 |
| * | nixVersions.nix_2_26: Fix cross and static | Robert Hensing | 2025-03-26 | 1 | -1/+17 |
| * | lib.packagesFromDirectoryRecursive: default to creating new scopes when `newS...••• Co-authored-by: Rebecca Turner <rbt@sent.as>
| nicoo | 2025-03-26 | 1 | -6/+0 |
| * | lib.packagesFromDirectoryRecursive: add tests for nested scopes | nicoo | 2025-03-26 | 12 | -0/+58 |
| * | lib/tests: move `packages-from-directory/*` into a subdir•••in preparation for adding more tests for `lib.packagesFromDirectoryRecursive`
| nicoo | 2025-03-24 | 12 | -2/+2 |
| * | lib/types: types.either deprecate functor.wrapped in favor of functor.payload... | Johannes Kirschbauer | 2025-03-20 | 2 | -0/+18 |
| * | lib/types: types.coercedTo deprecate functor.wrapped in favor of functor.payl... | Johannes Kirschbauer | 2025-03-15 | 2 | -1/+13 |
| * | lib/types: types.functionTo deprecate functor.wrapped in favor of functor.pay... | Johannes Kirschbauer | 2025-03-15 | 2 | -0/+17 |
| * | lib/types: types.nullOr deprecate functor.wrapped in favor of functor.payload... | Johannes Kirschbauer | 2025-03-15 | 2 | -2/+19 |
| * | lib/types: types.{unique,uniq} deprecate functor.wrapped in favor of functor.... | Johannes Kirschbauer | 2025-03-15 | 2 | -2/+19 |
| * | lib/strings: allow CA paths in isStorePath | Mikael Voss | 2025-03-05 | 1 | -0/+10 |
| * | lib.types.functionTo: preserve functionArgs•••Previously if function in defs had set pattern in argument,
this information would be lost.
This keeps functionArgs in set pattern,
by using functor and `__functionArgs`
that is later used by `lib.functionArgs`.
| Wroclaw | 2025-03-02 | 1 | -0/+15 |
| * | lib.types: Make functor.wrapped deprecation work in unprocessed types (#382848) | Johannes Kirschbauer | 2025-02-21 | 2 | -3/+61 |
| |\ |
|
| | * | lib.types: improve tests for deprecation warning on all migrated types | Johannes Kirschbauer | 2025-02-19 | 2 | -3/+61 |
| * | | lib.strings: init toSentenceCase (#381802) | Johannes Kirschbauer | 2025-02-20 | 1 | -0/+9 |
| |\ \
| |/
|/| |
|
| | * | lib.strings: init toSentenceCase | isabel | 2025-02-19 | 1 | -0/+9 |
| * | | Revert "lib.types.attrsWith: remove failing test"•••This reverts commit ce8f304bb68f88be5e32975c3299f2e16abe05c0.
The problem was simply a typo (nestedTypes.elemType ->
type.nestedTypes.elemType) ! And CI didn't run for lib in the orginal
PR which is why it didn't get caught.
| Silvan Mosberger | 2025-02-17 | 1 | -0/+4 |
| * | | lib/types: add `types.pathWith`•••This gives people some flexibility when they need a path type, and
prevents a "combinatorial explosion" of various path stops.
I've re-implemented our existing `path` and `pathInStore` types using
`pathWith`. Our existing `package` type is potentially a candidate for
similar treatment, but it's a little quirkier (there's some stuff with
`builtins.hasContext` and `toDerivation` that I don't completely
understand), and I didn't want to muddy this PR with that.
As a happy side effect of this work, we get a new feature: the ability
to create a type for paths *not* in the store. This is useful for when a
module needs a path to a file, and wants to protect people from
accidentally leaking that file into the nix store.
| Jeremy Fleischman | 2025-02-15 | 2 | -0/+124 |
| * | | lib.types: init mergeTypes (#364620) | Johannes Kirschbauer | 2025-02-10 | 1 | -0/+41 |
| |\ \ |
|
| | * | | lib.types: init mergeTypes | Johannes Kirschbauer | 2025-02-10 | 1 | -0/+41 |
| * | | | lib/modules: tests change expected error for class mismatch | Johannes Kirschbauer | 2025-01-29 | 1 | -3/+3 |
| | |/
|/| |
|
| * | | `lib.dropEnd` (#370558) | Silvan Mosberger | 2025-01-13 | 1 | -0/+24 |
| |\ \ |
|
| | * | | lib.dropEnd: init•••Naming borrowed from Haskell
- `base`: [`dropWhileEnd`]
- `extra`, `mono-traversable`, ...: [`dropEnd`]
[`dropEnd`]: https://hackage.haskell.org/package/mono-traversable-1.0.21.0/docs/Data-Sequences.html#v:dropEnd
[`dropWhileEnd`]: https://hackage.haskell.org/package/base-4.21.0.0/docs/Data-List.html#v:dropWhileEnd
| Robert Hensing | 2025-01-03 | 1 | -0/+12 |
| | * | | lib/tests/misc: Test lib.drop | Robert Hensing | 2025-01-03 | 1 | -0/+12 |
| * | | | treewide: Fix incorrect string escapes | piegames | 2025-01-07 | 1 | -2/+2 |
| |/ / |
|
| * | | lib.generators.toPlist: escape XML syntax in strings & keys (#356502) | Silvan Mosberger | 2024-12-23 | 3 | -2/+76 |
| |\ \ |
|
| | * | | lib.generators.toPlist: escape XML syntax in strings & keys•••Before this patch, code like this would break generate invalid XML:
lib.generators.toPlist {} "ab<cd"
That's obviously bad, since the call to toPlist often happens through
indirection, as is the case in e.g. the nix-darwin project. A user might
not realize that they have to escape the strings.
This patch adds the argument 'escape' to lib.generators.plist and emits
a warning if it is not set to true. In a future release, this behavior
should become the default.
I have also added a note for future maintainers, in case I forget to
actually remove the deprecated functionality in a future release.
| Linnnus | 2024-12-23 | 3 | -2/+76 |