Skip to content

Commit b94e45e

Browse files
Merge staging-next into staging
2 parents d8be038 + d151126 commit b94e45e

File tree

154 files changed

+2603
-1697
lines changed

Some content is hidden

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

154 files changed

+2603
-1697
lines changed

doc/README.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,25 +251,42 @@ You, as the writer of documentation, are still in charge of its content.
251251
For example:
252252

253253
```markdown
254-
# pkgs.coolFunction
254+
# pkgs.coolFunction {#pkgs.coolFunction}
255255

256-
Description of what `coolFunction` does.
256+
`pkgs.coolFunction` *`name`* *`config`*
257257

258-
## Inputs
258+
Description of what `callPackage` does.
259259

260-
`coolFunction` expects a single argument which should be an attribute set, with the following possible attributes:
261260

262-
`name` (String)
261+
## Inputs {#pkgs-coolFunction-inputs}
262+
263+
If something's special about `coolFunction`'s general argument handling, you can say so here.
264+
Otherwise, just describe the single argument or start the arguments' definition list without introduction.
265+
266+
*`name`* (String)
263267

264268
: The name of the resulting image.
265269

266-
`tag` (String; _optional_)
270+
*`config`* (Attribute set)
271+
272+
: Introduce the parameter. Maybe you have a test to make sure `{ }` is a sensible default; then you can say: these attributes are optional; `{ }` is a valid argument.
267273

268-
: Tag of the generated image.
274+
`outputHash` (String; _optional_)
269275

270-
_Default:_ the output path's hash.
276+
: A brief explanation including when and when not to pass this attribute.
277+
278+
: _Default:_ the output path's hash.
271279
```
272280

281+
Checklist:
282+
- Start with a synopsis, to show the order of positional arguments.
283+
- Metavariables are in emphasized code spans: ``` *`arg1`* ```. Metavariables are placeholders where users may write arbitrary expressions. This includes positional arguments.
284+
- Attribute names are regular code spans: ``` `attr1` ```. These identifiers can _not_ be picked freely by users, so they are _not_ metavariables.
285+
- _optional_ attributes have a _`Default:`_ if it's easily described as a value.
286+
- _optional_ attributes have a _`Default behavior:`_ if it's not easily described using a value.
287+
- Nix types aren't in code spans, because they are not code
288+
- Nix types are capitalized, to distinguish them from the camelCase [Module System](#module-system) types, which _are_ code and behave like functions.
289+
273290
#### Examples
274291

275292
To define a referenceable figure use the following fencing:

doc/languages-frameworks/python.section.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,7 @@ python3Packages.buildPythonApplication rec {
316316
}
317317
```
318318

319-
This is then added to `all-packages.nix` just as any other application would be.
320-
321-
```nix
322-
{
323-
luigi = callPackage ../applications/networking/cluster/luigi { };
324-
}
325-
```
319+
This is then added to `pkgs/by-name` just as any other application would be.
326320

327321
Since the package is an application, a consumer doesn't need to care about
328322
Python versions or modules, which is why they don't go in `python3Packages`.
@@ -331,25 +325,27 @@ Python versions or modules, which is why they don't go in `python3Packages`.
331325

332326
A distinction is made between applications and libraries, however, sometimes a
333327
package is used as both. In this case the package is added as a library to
334-
`python-packages.nix` and as an application to `all-packages.nix`. To reduce
328+
`python-packages.nix` and as an application to `pkgs/by-name`. To reduce
335329
duplication the `toPythonApplication` can be used to convert a library to an
336330
application.
337331

338332
The Nix expression shall use [`buildPythonPackage`](#buildpythonpackage-function) and be called from
339-
`python-packages.nix`. A reference shall be created from `all-packages.nix` to
333+
`python-packages.nix`. A reference shall be created from `pkgs/by-name` to
340334
the attribute in `python-packages.nix`, and the `toPythonApplication` shall be
341335
applied to the reference:
342336

343337
```nix
344338
{
345-
youtube-dl = with python3Packages; toPythonApplication youtube-dl;
346-
}
339+
python3Packages,
340+
}:
341+
342+
python3Packages.toPythonApplication python3Packages.youtube-dl
347343
```
348344

349345
#### `toPythonModule` function {#topythonmodule-function}
350346

351347
In some cases, such as bindings, a package is created using
352-
[`stdenv.mkDerivation`](#sec-using-stdenv) and added as attribute in `all-packages.nix`. The Python
348+
[`stdenv.mkDerivation`](#sec-using-stdenv) and added as attribute in `pkgs/by-name` or in `all-packages.nix`. The Python
353349
bindings should be made available from `python-packages.nix`. The
354350
`toPythonModule` function takes a derivation and makes certain Python-specific
355351
modifications.

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
}).nixos.manual;
7878
};
7979

80+
devShells = forAllSystems (system: {
81+
default = import ./shell.nix { inherit system; };
82+
});
83+
8084
# The "legacy" in `legacyPackages` doesn't imply that the packages exposed
8185
# through this attribute are "legacy" packages. Instead, `legacyPackages`
8286
# is used here as a substitute attribute name for `packages`. The problem

maintainers/maintainer-list.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,6 +2544,13 @@
25442544
githubId = 410028;
25452545
name = "Tobias Bergkvist";
25462546
};
2547+
berquist = {
2548+
name = "Eric Berquist";
2549+
email = "[email protected]";
2550+
github = "berquist";
2551+
githubId = 727571;
2552+
keys = [ { fingerprint = "AAD4 3B70 A504 9675 CFC8 B101 BAFD 205D 5FA2 B329"; } ];
2553+
};
25472554
berryp = {
25482555
email = "[email protected]";
25492556
github = "berryp";
@@ -16685,6 +16692,13 @@
1668516692
githubId = 23097564;
1668616693
name = "Nora Widdecke";
1668716694
};
16695+
pwnwriter = {
16696+
name = "Nabeen Tiwaree";
16697+
email = "[email protected]";
16698+
keys = [ { fingerprint = "B681 763F 9B5B DF27 9A13 9E0C 0544 A89B C519 20AA"; } ];
16699+
github = "pwnwriter";
16700+
githubId = 90331517;
16701+
};
1668816702
pwoelfel = {
1668916703
name = "Philipp Woelfel";
1669016704
email = "[email protected]";

nixos/tests/quake3.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ rec {
6565
client1.wait_for_x()
6666
client2.wait_for_x()
6767
68-
client1.execute("quake3 +set r_fullscreen 0 +set name Foo +connect server &")
69-
client2.execute("quake3 +set r_fullscreen 0 +set name Bar +connect server &")
68+
client1.execute("quake3 +set r_fullscreen 0 +set name Foo +connect server >&2 &", check_return = False)
69+
client2.execute("quake3 +set r_fullscreen 0 +set name Bar +connect server >&2 &", check_return = False)
7070
7171
server.wait_until_succeeds("grep -q 'Foo.*entered the game' /tmp/log")
7272
server.wait_until_succeeds("grep -q 'Bar.*entered the game' /tmp/log")

pkgs/applications/audio/youtube-music/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212

1313
stdenv.mkDerivation (finalAttrs: {
1414
pname = "youtube-music";
15-
version = "3.4.1";
15+
version = "3.5.1";
1616

1717
src = fetchFromGitHub {
1818
owner = "th-ch";
1919
repo = "youtube-music";
2020
rev = "v${finalAttrs.version}";
21-
hash = "sha256-HuV1jFSFvb/Ji150rVIvHrPLY3167W9/9xNnI81k9B8=";
21+
hash = "sha256-6aAaIugho8yHohEHp0HVkmzIOfhpkNYts6BOKPp9Wbw=";
2222
};
2323

2424
pnpmDeps = pnpm.fetchDeps {
2525
inherit (finalAttrs) pname version src;
26-
hash = "sha256-uN4rB/S/uoqR+qj7T/TGtU+3PRGagYVfx51nn6U8sdo=";
26+
hash = "sha256-lxqBmtHkyk4mnM/AJQmpyCmvhW2e96vZBkgtoREjEXY=";
2727
};
2828

2929
nativeBuildInputs = [ makeWrapper python3 nodejs pnpm.configHook ]

pkgs/applications/file-managers/nnn/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
}:
2121

2222
# Mutually exclusive options
23-
assert withIcons -> (withNerdIcons == false && withEmojis == false);
24-
assert withNerdIcons -> (withIcons == false && withEmojis == false);
25-
assert withEmojis -> (withIcons == false && withNerdIcons == false);
23+
assert withIcons -> (!withNerdIcons && !withEmojis);
24+
assert withNerdIcons -> (!withIcons && !withEmojis);
25+
assert withEmojis -> (!withIcons && !withNerdIcons);
2626

2727
stdenv.mkDerivation (finalAttrs: {
2828
pname = "nnn";

pkgs/applications/misc/oranda/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
rustPlatform.buildRustPackage rec {
1212
pname = "oranda";
13-
version = "0.6.3";
13+
version = "0.6.5";
1414

1515
src = fetchFromGitHub {
1616
owner = "axodotdev";
1717
repo = "oranda";
1818
rev = "v${version}";
19-
hash = "sha256-PECM0HLomMzNWnERgvYSfSh+XQAjGLxybZAJcaAzEBo=";
19+
hash = "sha256-FVd8NQVtzlZsDY40ZMJDdaX+6Q5jUxZHUq2v+kDFVOk=";
2020
};
2121

22-
cargoHash = "sha256-qO48oR3RtyCbhdGn+VZPceZX/RMqS+5LacSASYRboMo=";
22+
cargoHash = "sha256-48qDAgHf1tGUwhQWqEi4LQQmSi9PplTlgjVd7/yxZZc=";
2323

2424
nativeBuildInputs = [
2525
pkg-config

pkgs/applications/networking/browsers/brave/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ callPackage ./make-brave.nix (removeAttrs args [ "callPackage" ])
66
if stdenv.isAarch64 then
77
rec {
88
pname = "brave";
9-
version = "1.68.134";
9+
version = "1.68.137";
1010
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_arm64.deb";
11-
hash = "sha256-FP+Afk62/aiKd6ZPX0zy76bzO3pJjm4pqauxluFYEl8=";
11+
hash = "sha256-9HMgLZ/iK5xJByZuvD8n5cv+aK5oZRm2Xbm4NhgWpCk=";
1212
platform = "aarch64-linux";
1313
}
1414
else if stdenv.isx86_64 then
1515
rec {
1616
pname = "brave";
17-
version = "1.68.134";
17+
version = "1.68.137";
1818
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
19-
hash = "sha256-l07sbkM5gDMcXeMoWiWH/8nU+Y0ShyB2jIHsqEFaoew=";
19+
hash = "sha256-lEW4bv/BWjV8ncB8TMbLMSoQCW960kWP9DaZkEws428=";
2020
platform = "x86_64-linux";
2121
}
2222
else

pkgs/applications/networking/cluster/argo/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ let
3434
in
3535
buildGoModule rec {
3636
pname = "argo";
37-
version = "3.5.8";
37+
version = "3.5.10";
3838

3939
src = fetchFromGitHub {
4040
owner = "argoproj";
4141
repo = "argo";
4242
rev = "refs/tags/v${version}";
43-
hash = "sha256-BYUP/Gu+N8KK9mfjRAXupXqrwfZMZlYPxxuZCmUDFfE=";
43+
hash = "sha256-35Hp5lISQuFNsbSOKsLRcD695ZRCgQue+H8rKEPma5M=";
4444
};
4545

46-
vendorHash = "sha256-pVOTeH6fq4Gqarjvi7w2wYJ3FSqV6yNZERmOmbVGxLM=";
46+
vendorHash = "sha256-dGDXDpjf1kWcqBhCMKLXGXax6ApOL9eIiiem86CxdGs=";
4747

4848
doCheck = false;
4949

0 commit comments

Comments
 (0)