Commit Graph

5275 Commits

Author SHA1 Message Date
Yueh-Shun Li
918e017d64 lib.extendMkDerivation: adjust default value documentation 2025-11-06 19:34:30 +08:00
Felix Buehler
3106949fd7 lib/types: add externalPath 2025-11-04 22:57:16 +01:00
nixpkgs-ci[bot]
b07ca7b994 Merge master into staging-next 2025-11-04 19:27:06 +00:00
Robert Hensing
49f0cbd7f8 lib.types: introduce a fileset type (#428293) 2025-11-04 13:44:33 +00:00
nixpkgs-ci[bot]
d6fd3bcd5a Merge master into staging-next 2025-11-04 00:17:07 +00:00
Aliaksandr
02fb25e850 lib: move remaining builtins to appropriate place 2025-11-04 01:42:19 +02:00
Sandro Jäckel
8ea573926b licenses: add gnuplot 2025-11-03 22:52:43 +01:00
K900
934d11cb78 Merge remote-tracking branch 'origin/staging-next' into staging 2025-11-02 00:50:30 +03:00
Philip Taron
21623b7ce7 Reapply "splice.nix: make pkgs splicedPackages" (#456138) 2025-11-01 13:49:33 +00:00
nixpkgs-ci[bot]
9c7c6cc7ff Merge staging-next into staging 2025-10-31 00:17:58 +00:00
Robert Hensing
acb6191c6e lib: Add splicing utilities (#426889) 2025-10-30 21:22:54 +00:00
Aliaksandr
f4d36941eb lib: deprecate fold 2025-10-30 16:56:49 +02:00
Wolfgang Walther
4949737a38 systems/examples: remove x86_64-unknown-redox
relibc itself has been removed in 2024 already.
2025-10-28 21:54:04 +01:00
nixpkgs-ci[bot]
c522ea5070 Merge staging-next into staging 2025-10-28 18:06:54 +00:00
Robert Hensing
586961172a lib/modules: Report error for unsupported t // { check = ...; } (#454964) 2025-10-28 16:40:39 +00:00
Robert Hensing
60072f71ab lib/modules: Clarify variable names in suggestions logic 2025-10-28 15:27:17 +01:00
Robert Hensing
143ca6688b lib/modules: Fix suggestions in submodules 2025-10-28 15:22:17 +01:00
Robert Hensing
cdefdba743 lib/modules: Support multiple suggestions, optimize 2025-10-28 15:17:08 +01:00
nixpkgs-ci[bot]
6a088f5b69 Merge staging-next into staging 2025-10-28 00:17:14 +00:00
Silvan Mosberger
7636389851 lib.teams: Add githubId from associated github teams
This will allow the code for https://github.com/NixOS/nixpkgs/issues/447514
to make sure that the right team is requested for review,
even if it has been renamed in the meantime.

While the matching is currently based on the teams slug/name and not the
id, renames won't cause problems with `lib.teams`, because CI would
error if there's no match. Changing this can be future work.
2025-10-28 00:01:51 +01:00
Silvan Mosberger
ddf8b5da4a lib.teams: Add githubMaintainers field
This is so you can figure out who to ask to get added to the team

Also avoid an unecessary `{ inherit lib; }` argument
2025-10-27 19:36:58 +01:00
Silvan Mosberger
428bd8f1a2 lib.teams: Populate fields from synced GitHub state
The before and after of

    nix-instantiate --eval -A lib.teams --strict --json | jq 'walk(if type == "array" then sort else . end)'

has been ensured to be negligible, only consisting of minor team
shortName and scope differences
2025-10-27 19:36:57 +01:00
nixpkgs-ci[bot]
9c3c785b9e Merge staging-next into staging 2025-10-26 00:19:00 +00:00
Johannes Kirschbauer
8c222f2fc7 treewide: remove deprecated lib functions that had warning for more than 2 years (#454377) 2025-10-25 20:35:54 +00:00
nixpkgs-ci[bot]
584512ec5c Merge staging-next into staging 2025-10-25 12:06:42 +00:00
Alyssa Ross
d563aa57de lib.systems.parse: Default glibc ppc64 to ELFv1 ABI (#451088) 2025-10-25 09:57:43 +00:00
Alyssa Ross
9711c5ae0d lib.systems: Simplify ABI on POWER for rust.rustcTarget (#451087) 2025-10-25 09:57:09 +00:00
Wolfgang Walther
4dd2f20130 Merge staging-next into staging 2025-10-24 09:27:24 +02:00
Aliaksandr
dc7095a86e treewide: remove deprecated lib functions that had warning for more than 2 years 2025-10-24 06:30:16 +03:00
Robert Hensing
93ea59f66d lib/modules: Report error for unsupported // { check }
`check` can have a new place since the introduction of
merge.v2. This makes the // { check = ... } idiom unreliable.

In this PR we add checks to detect and report this.

merge.v2 introduced in:
https://github.com/NixOS/nixpkgs/pull/391544

Real world case:
https://hercules-ci.com/github/hercules-ci/hercules-ci-effects/jobs/875
2025-10-23 19:06:05 +02:00
Wolfgang Walther
3e505de718 freeimage: drop
Very insecure.
2025-10-23 13:54:39 +02:00
K900
5cb3e47242 Merge remote-tracking branch 'origin/staging-next' into staging 2025-10-22 21:22:37 +03:00
Johannes Kirschbauer
43b77e1457 lib/cli: add toCommandLine (#404233) 2025-10-22 14:45:00 +00:00
Vladimír Čunát
d560d72dd2 Merge branch 'master' into staging 2025-10-22 08:47:06 +02:00
Philip Taron
62d9b8a326 lib.customisation: fix error message when running in nix repl (#452573) 2025-10-22 02:06:47 +00:00
nixpkgs-ci[bot]
c17f995873 Merge staging-next into staging 2025-10-22 00:17:44 +00:00
Silvan Mosberger
a8ae0941a3 lib/types: small typo fix (#454354) 2025-10-21 22:31:12 +00:00
Aliaksandr
bb56489b2f lib/types: small typo fix 2025-10-22 00:20:17 +03:00
Lukas Wurzinger
1f4c50ab81 lib/cli: deprecate toGNUCommandLine 2025-10-21 21:01:38 +02:00
Lukas Wurzinger
73e8a483e6 lib/cli: add toCommandLine 2025-10-21 21:01:32 +02:00
Aliaksandr
def801fb09 lib: deprecate mkAliasOptionModuleMD 2025-10-21 16:00:52 +03:00
nixpkgs-ci[bot]
7ce8699579 Merge staging-next into staging 2025-10-18 06:06:09 +00:00
nixpkgs-ci[bot]
fe3676c810 Merge master into staging-next 2025-10-18 06:05:29 +00:00
Connor Baker
4617867f58 intel-oneapi.{base,hpc}: init at 2025.2.1.44 (#448561) 2025-10-18 02:50:21 +00:00
Jeremy Fleischman
775ce27666 lib.customisation: fix error message when running in nix repl
This code was more careful before
<dd435697b3>
(it didn't assume that `unsafeGetAttrPos` always returns a non-null
location). Unfortunately, `unsafeGetAttrPos` *does* return `null` when
dealing with `nix repl`:

```
nix-repl> f = {foo}: foo

nix-repl> builtins.unsafeGetAttrPos "foo" (builtins.functionArgs f)
null
```

Here's how to reproduce the issue.

*Before* this fix:

```
nix-repl> f = {foo}: foo

nix-repl> myCallPackage = lib.callPackageWith {}

nix-repl> myCallPackage f {}
error:
       … while calling the 'abort' builtin
         at /home/jeremy/src/github.com/NixOS/nixpkgs/lib/customisation.nix:323:7:
          322|     else
          323|       abort "lib.customisation.callPackageWith: ${error}";
             |       ^
          324|

       … while selecting an attribute
         at /home/jeremy/src/github.com/NixOS/nixpkgs/lib/customisation.nix:310:14:
          309|         "Function called without required argument \"${arg}\" at "
          310|         + "${loc.file}:${toString loc.line}${prettySuggestions (getSuggestions arg)}";
             |              ^
          311|

       error: expected a set but found null: null

```

*After*:

```
nix-repl> f = {foo}: foo

nix-repl> myCallPackage = lib.callPackageWith {}

nix-repl> myCallPackage f {}
error:
       … while calling the 'abort' builtin
         at /home/jeremy/src/github.com/NixOS/nixpkgs/lib/customisation.nix:332:7:
          331|     # Inputs
          332|
             |       ^
          333|     `autoArgs`

       error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "foo" at <unknown location>'
```
2025-10-16 08:27:01 -04:00
nixpkgs-ci[bot]
c69dd11cb9 Merge staging-next into staging 2025-10-13 18:06:03 +00:00
nixpkgs-ci[bot]
f5c2101b71 Merge master into staging-next 2025-10-13 18:05:26 +00:00
Philip Taron
3aefc14aca lib.attrsets: remove deprecated names
- `lib.attrsets.cartesianProductOfSets` was deprecated in 228621e42d
- `lib.attrsets.zip` was deprecated in fcbc4fe9ff (2013!)
- `lib.attrsets.zipWithNames` was deprecated in 00127bef3f (2009!)

The time has come.
2025-10-13 09:09:59 -07:00
Philip Taron
3050865cc3 lib: remove mapAttrsFlatten after a year (#450420) 2025-10-13 16:00:11 +00:00
Philip Taron
db45f2b770 lib: remove mapAttrsFlatten after a year
It was deprecated in b9c51260d0.
2025-10-13 08:55:22 -07:00