Skip to content

Commit f81e8e6

Browse files
authored
Merge branch 'NixOS:master' into vim_o_exrc_support
2 parents b418b2a + 4a1f053 commit f81e8e6

File tree

12,978 files changed

+383970
-318967
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,978 files changed

+383970
-318967
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,24 @@
55
"ghcr.io/devcontainers/features/nix:1": {
66
// fails in the devcontainer sandbox, enable sandbox via config instead
77
"multiUser": false,
8-
"packages": "nixd,nixfmt-unstable",
8+
"packages": "nixpkgs.nixd,nixpkgs.nixfmt-rfc-style",
9+
"useAttributePath": true,
910
"extraNixConfig": "experimental-features = nix-command flakes,sandbox = true"
1011
}
1112
},
13+
// Fixup permissions inside container.
14+
// https://github.com/NixOS/nix/issues/6680#issuecomment-1230902525
15+
"postCreateCommand": "sudo apt-get install -y acl",
16+
"postStartCommand": "sudo setfacl -k /tmp; if [ -e /dev/kvm ]; then sudo chgrp $(id -g) /dev/kvm; fi",
1217
"customizations": {
1318
"vscode": {
1419
"extensions": [
1520
"jnoortheen.nix-ide"
1621
],
1722
"settings": {
18-
"nix.formatterPath": "nixfmt-rfc-style",
23+
"[nix]": {
24+
"editor.formatOnSave": true
25+
},
1926
"nix.enableLanguageServer": true,
2027
"nix.serverPath": "nixd"
2128
}

.editorconfig

Lines changed: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,23 @@ indent_size = 1
3535
[*.{json,lock,md,nix,rb}]
3636
indent_size = 2
3737

38-
# Match perl/python/shell scripts, set indent width of four
39-
[*.{bash,pl,pm,py,sh}]
38+
# Match all the Bash code in Nix files, set indent width of two
39+
[*.{bash,sh}]
40+
indent_size = 2
41+
42+
# Match Perl and Python scripts, set indent width of four
43+
[*.{pl,pm,py}]
4044
indent_size = 4
4145

4246
# Match gemfiles, set indent to spaces with width of two
4347
[Gemfile]
4448
indent_size = 2
4549
indent_style = space
4650

47-
# Match package.json, which are generally pulled from upstream and accept them as they are
48-
[package.json]
51+
# Match package.json and package-lock.json, which are generally pulled from upstream and accept them as they are
52+
[package{,-lock}.json]
4953
indent_style = unset
54+
insert_final_newline = unset
5055

5156
# Disable file types or individual files
5257
# some of these files may be auto-generated and/or require significant changes
@@ -81,47 +86,10 @@ charset = unset
8186
[eggs.nix]
8287
trim_trailing_whitespace = unset
8388

84-
[nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
85-
trim_trailing_whitespace = unset
86-
87-
[pkgs/build-support/dotnetenv/Wrapper/**]
88-
end_of_line = unset
89-
indent_style = unset
90-
insert_final_newline = unset
91-
trim_trailing_whitespace = unset
92-
9389
[registry.dat]
9490
end_of_line = unset
9591
insert_final_newline = unset
9692

97-
[pkgs/development/haskell-modules/hackage-packages.nix]
98-
indent_style = unset
99-
trim_trailing_whitespace = unset
100-
101-
[pkgs/misc/documentation-highlighter/**]
102-
insert_final_newline = unset
103-
104-
[pkgs/servers/dict/wordnet_structures.py]
105-
trim_trailing_whitespace = unset
106-
107-
[pkgs/tools/misc/timidity/timidity.cfg]
108-
trim_trailing_whitespace = unset
109-
110-
[pkgs/tools/security/qdigidoc/vendor/*]
111-
end_of_line = unset
112-
insert_final_newline = unset
113-
trim_trailing_whitespace = unset
114-
115-
[pkgs/tools/virtualization/ovftool/*.ova]
116-
end_of_line = unset
117-
insert_final_newline = unset
118-
trim_trailing_whitespace = unset
119-
charset = unset
120-
121-
[lib/tests/*.plist]
122-
indent_style = tab
123-
insert_final_newline = unset
124-
125-
[pkgs/kde/generated/**]
126-
insert_final_newline = unset
127-
end_of_line = unset
93+
# Keep this hint at the bottom:
94+
# Please don't add entries for subfolders here.
95+
# Create <subfolder>/.editorconfig instead.

.git-blame-ignore-revs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,18 @@ fd14c067813572afc03ddbf7cdedc3eab5a59954
251251

252252
# treewide format of all Nix files
253253
374e6bcc403e02a35e07b650463c01a52b13a7c8 # !autorebase nix-shell --run treefmt
254+
255+
# nix: nixfmt-rfc-style
256+
a4f7e161b380b35b2f7bc432659a95fd71254ad8
257+
0812c9a321003c924868051d2b2e1934e8880f3f
258+
34f269c14ac18d89ddee9a8f54b1ca92a85bbcc6
259+
062c34cdace499aa44f0fa6ca6f2ca71769f6c43
260+
261+
# haskellPackages.hercules-ci-agent (cabal2nix -> nixfmt-rfc-style)
262+
9314da7ee8d2aedfb15193b8c489da51efe52bb5
263+
264+
# nix-builder-vm: nixfmt-rfc-style
265+
a034fb50f79816c6738fb48b48503b09ea3b0132
266+
267+
# treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
268+
05580f4b4433fda48fff30f60dfd303d6ee05d21

.github/ISSUE_TEMPLATE/04_build_failure.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ body:
6161
You can still open a build failure report, but please say '**No, Hydra cannot reproduce this build failure.**' below.
6262
- If there's a <img src="https://raw.githubusercontent.com/NixOS/hydra/refs/heads/master/src/root/static/images/emojione-question-2754.svg" width="20px" align="top" alt="Gray Question Mark"> icon near the package entry, say '**Hydra is currently rebuilding this package.**'
6363
- If there's a <img src="https://raw.githubusercontent.com/NixOS/hydra/refs/heads/master/src/root/static/images/emojione-stopsign-1f6d1.svg" width="20px" align="top" alt="Red Stop Sign"> icon near the package entry, then the build job was stopped manually. If this occurs, please coordinate with the [Infrastructure Team](https://matrix.to/#/#infra:nixos.org), and say '**The last build job was manually cancelled.**'
64+
- If Hydra isn't supposed to build the package at all, say '**Hydra doesn’t try to build the package.**'
6465
options:
6566
- "Please select the Hydra Status."
6667
- "Yes, Hydra can reproduce this build failure."
6768
- "No, Hydra cannot reproduce this build failure."
6869
- "Hydra is currently rebuilding this package."
6970
- "The last build job was manually cancelled."
71+
- "Hydra doesn’t try to build the package."
7072
default: 0
7173
validations:
7274
required: true

.github/ISSUE_TEMPLATE/05_package_request.yml

Lines changed: 0 additions & 108 deletions
This file was deleted.
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
name: "Request: package update"
2+
description: "Create an update request for an existing, but outdated package."
3+
title: "Update Request: PACKAGENAME OLDVERSION → NEWVERSION"
4+
labels: ["0.kind: enhancement", "9.needs: package (update)"]
5+
body:
6+
- type: "markdown"
7+
attributes:
8+
value: |
9+
<p align="center">
10+
<a href="https://nixos.org">
11+
<picture>
12+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/NixOS/nixos-homepage/main/public/logo/nixos-hires.png">
13+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nixos-white.png">
14+
<img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/main/public/logo/nixos-hires.png" width="400px" alt="NixOS logo">
15+
</picture>
16+
</a>
17+
</p>
18+
19+
Welcome to Nixpkgs. Please replace the **`Update Request: PACKAGENAME OLDVERSION → NEWVERSION`** template above with the correct package name (As seen in the [NixOS Package Search](https://search.nixos.org/packages)), the current version of the package, and the latest version of the package.
20+
21+
> [!TIP]
22+
> For instance, if you were filing a request against the out of date `hello` package, where the current version in Nixpkgs is 1.0.0, but the latest version upstream is 1.0.1, your title would be as follows:
23+
> `Update Request: hello 1.0.0 → 1.0.1`
24+
25+
---
26+
- type: "dropdown"
27+
id: "version"
28+
attributes:
29+
label: "Nixpkgs version"
30+
description: |
31+
What version of Nixpkgs are you using?
32+
33+
> [!IMPORTANT]
34+
> If you are using an older or stable version, please update to the latest **unstable** version and check if the package is still out of date.
35+
> If the package has been updated in unstable, but you believe the update should be backported to the stable release of Nixpkgs, please file the '**Request: backport to stable**' form instead.
36+
options:
37+
- "Please select a version."
38+
- "- Unstable (25.05)"
39+
- "- Stable (24.11)"
40+
- "- Previous Stable (24.05)"
41+
default: 0
42+
validations:
43+
required: true
44+
- type: "input"
45+
id: "name"
46+
attributes:
47+
label: "Package name"
48+
description: "Please indicate the name of the package."
49+
validations:
50+
required: true
51+
- type: "input"
52+
id: "upstream-version"
53+
attributes:
54+
label: "Upstream version"
55+
description: "Please indicate the latest version of the package."
56+
validations:
57+
required: true
58+
- type: "input"
59+
id: "nixpkgs-version"
60+
attributes:
61+
label: "Nixpkgs version"
62+
description: |
63+
Please indicate the current version number in Nixpkgs' **unstable** channel. You can check this by setting the [NixOS Package Search](https://search.nixos.org/packages?channel=unstable) channel to 'unstable' and searching for the package.
64+
If you meant to request an upgrade in the stable channel, please file the '**Request: backport to stable**' form instead.
65+
validations:
66+
required: true
67+
- type: "input"
68+
id: "changelog"
69+
attributes:
70+
label: "Changelog"
71+
description: "If applicable, please link the upstream changelog for the latest version."
72+
validations:
73+
required: false
74+
- type: "textarea"
75+
id: "additional-context"
76+
attributes:
77+
label: "Additional context"
78+
description: "Add any other context about the update here."
79+
validations:
80+
required: false
81+
- type: "textarea"
82+
id: "maintainers"
83+
attributes:
84+
label: "Notify maintainers"
85+
description: |
86+
Please mention the people who are in the **Maintainers** list of the offending package. This is done by by searching for the package on the [NixOS Package Search](https://search.nixos.org/packages) and mentioning the people listed under **Maintainers** by prefixing their GitHub usernames with an '@' character. Please add the mentions above the `---` characters in the template below.
87+
value: |
88+
89+
90+
---
91+
92+
**Note for maintainers:** Please tag this issue in your pull request description. (i.e. `Resolves #ISSUE`.)
93+
validations:
94+
required: false
95+
- type: "checkboxes"
96+
id: "sanity-check"
97+
attributes:
98+
label: "I assert that this issue is relevant for Nixpkgs"
99+
options:
100+
- label: "I assert that this package update does not yet exist in an [open pull request](https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+is%3Apr+label%3A%228.has%3A+package+%28update%29%22) or in [Nixpkgs Unstable](https://search.nixos.org/packages?channel=unstable)."
101+
required: true
102+
- label: "I assert that this is not a [duplicate of any known issue](https://github.com/NixOS/nixpkgs/issues?q=is%3Aopen+is%3Aissue+label%3A%229.needs%3A+package+%28update%29%22)."
103+
required: true
104+
- label: "I assert that I have read the [NixOS Code of Conduct](https://github.com/NixOS/.github/blob/master/CODE_OF_CONDUCT.md) and agree to abide by it."
105+
required: true
106+
- type: "markdown"
107+
attributes:
108+
value: |
109+
# Thank you for helping improve Nixpkgs!
110+
111+
---
112+
- type: "textarea"
113+
id: "prioritisation"
114+
attributes:
115+
label: "Is this issue important to you?"
116+
description: |
117+
**Please do not modify this text area!**
118+
119+
This template helps Nixpkgs developers know which issues should be prioritised by allowing users to vote with a :+1: reaction.
120+
This is not a guarantee that highly-requested issues will be fixed first, but it helps us to figure out what's important to users. Please react on other users' issues if you find them important.
121+
value: |
122+
Add a :+1: [reaction] to [issues you find important].
123+
124+
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
125+
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc

0 commit comments

Comments
 (0)