Skip to content

Commit

Permalink
Merge pull request NixOS#8 from auxolotl/nixpkgs-bump-2024-05-03
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses authored May 3, 2024
2 parents 115b8f9 + abcd73e commit f818212
Show file tree
Hide file tree
Showing 518 changed files with 22,732 additions and 4,133 deletions.
9 changes: 1 addition & 8 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/pkgs/top-level/splice.nix @Ericson2314
/pkgs/top-level/release-cross.nix @Ericson2314
/pkgs/stdenv/generic @Ericson2314
/pkgs/stdenv/generic/check-meta.nix @Ericson2314 @piegamesde
/pkgs/stdenv/generic/check-meta.nix @Ericson2314
/pkgs/stdenv/cross @Ericson2314
/pkgs/build-support/cc-wrapper @Ericson2314
/pkgs/build-support/bintools-wrapper @Ericson2314
Expand Down Expand Up @@ -305,13 +305,6 @@ nixos/modules/services/networking/networkmanager.nix @Janik-Haag
# terraform providers
/pkgs/applications/networking/cluster/terraform-providers @zowoq

# Matrix
/pkgs/servers/heisenbridge @piegamesde
/pkgs/servers/matrix-conduit @piegamesde
/nixos/modules/services/misc/heisenbridge.nix @piegamesde
/nixos/modules/services/misc/matrix-conduit.nix @piegamesde
/nixos/tests/matrix-conduit.nix @piegamesde

# Forgejo
nixos/modules/services/misc/forgejo.nix @bendlas @emilylange
pkgs/applications/version-management/forgejo @bendlas @emilylange
Expand Down
2 changes: 1 addition & 1 deletion doc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ in pkgs.stdenv.mkDerivation {
${lib-docs}/index.md \
> ./functions/library.md
substitute ./manual.md.in ./manual.md \
--replace '@MANUAL_VERSION@' '${pkgs.lib.version}'
--replace-fail '@MANUAL_VERSION@' '${pkgs.lib.version}'
mkdir -p out/media
Expand Down
61 changes: 60 additions & 1 deletion lib/gvariant.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,53 @@ rec {

inherit type isGVariant;

intConstructors = [
{
name = "mkInt32";
type = type.int32;
min = -2147483648;
max = 2147483647;
}
{
name = "mkUint32";
type = type.uint32;
min = 0;
max = 4294967295;
}
{
name = "mkInt64";
type = type.int64;
# Nix does not support such large numbers.
min = null;
max = null;
}
{
name = "mkUint64";
type = type.uint64;
min = 0;
# Nix does not support such large numbers.
max = null;
}
{
name = "mkInt16";
type = type.int16;
min = -32768;
max = 32767;
}
{
name = "mkUint16";
type = type.uint16;
min = 0;
max = 65535;
}
{
name = "mkUchar";
type = type.uchar;
min = 0;
max = 255;
}
];

/* Returns the GVariant value that most closely matches the given Nix value.
If no GVariant value can be found unambiguously then error is thrown.
Expand All @@ -70,8 +117,20 @@ rec {
mkArray v
else if isGVariant v then
v
else if builtins.isInt v then
let
validConstructors = builtins.filter ({ min, max, ... }: (min == null || min <= v) && (max == null || v <= max)) intConstructors;
in
throw ''
The GVariant type for number “${builtins.toString v}” is unclear.
Please wrap the value with one of the following, depending on the value type in GSettings schema:
${lib.concatMapStringsSep "\n" ({ name, type, ...}: "- `lib.gvariant.${name}` for `${type}`") validConstructors}
''
else if builtins.isAttrs v then
throw "Cannot construct GVariant value from an attribute set. If you want to construct a dictionary, you will need to create an array containing items constructed with `lib.gvariant.mkDictionaryEntry`."
else
throw "The GVariant type of ${v} can't be inferred.";
throw "The GVariant type of ${builtins.typeOf v} can't be inferred.";

/* Returns the GVariant array from the given type of the elements and a Nix list.
Expand Down
12 changes: 12 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7600,6 +7600,12 @@
githubId = 76716;
name = "Graham Christensen";
};
grahamnorris = {
email = "[email protected]";
github = "grahamnorris";
githubId = 66037909;
name = "Graham J. Norris";
};
gravndal = {
email = "[email protected]";
github = "gravndal";
Expand Down Expand Up @@ -9064,6 +9070,12 @@
githubId = 6789916;
name = "Jason Odoom";
};
javaes = {
email = "[email protected]";
github = "javaes";
githubId = 1131529;
name = "Jan van Esdonk";
};
javaguirre = {
email = "[email protected]";
github = "javaguirre";
Expand Down
8 changes: 4 additions & 4 deletions nixos/doc/manual/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ let
cp -r --no-preserve=all $inputs/* .
substituteInPlace ./manual.md \
--replace '@NIXOS_VERSION@' "${version}"
--replace-fail '@NIXOS_VERSION@' "${version}"
substituteInPlace ./configuration/configuration.md \
--replace \
--replace-fail \
'@MODULE_CHAPTERS@' \
${escapeShellArg (concatMapStringsSep "\n" (p: "${p.value}") config.meta.doc)}
substituteInPlace ./nixos-options.md \
--replace \
--replace-fail \
'@NIXOS_OPTIONS_JSON@' \
${optionsDoc.optionsJSON}/${common.outputPath}/options.json
substituteInPlace ./development/writing-nixos-tests.section.md \
--replace \
--replace-fail \
'@NIXOS_TEST_OPTIONS_JSON@' \
${testOptionsDoc.optionsJSON}/${common.outputPath}/options.json
sed -e '/@PYTHON_MACHINE_METHODS@/ {' -e 'r ${testDriverMachineDocstrings}/machine-methods.md' -e 'd' -e '}' \
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2405.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m

- `halloy` package was updated past 2024.5 which introduced a breaking change by switching the config format from YAML to TOML. See https://github.com/squidowl/halloy/releases/tag/2024.5 for details.

- The `wpaperd` package has a breaking change moving to 1.0.1, previous version 0.3.0 had 2 different configuration files, one for wpaperd and one for the wallpapers. Remove the former and move the latter (`wallpaper.toml`) to `config.toml`.

- Ada packages (libraries and tools) have been moved into the `gnatPackages` scope. `gnatPackages` uses the default GNAT compiler, `gnat12Packages` and `gnat13Packages` use the respective matching compiler version.

- Paths provided as `restartTriggers` and `reloadTriggers` for systemd units will now be copied into the nix store to make the behavior consistent.
Expand Down
15 changes: 3 additions & 12 deletions nixos/modules/programs/evince.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,19 @@

{ config, pkgs, lib, ... }:

with lib;

let cfg = config.programs.evince;

in {

# Added 2019-08-09
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "evince" "enable" ]
[ "programs" "evince" "enable" ])
];

###### interface

options = {

programs.evince = {

enable = mkEnableOption "Evince, the GNOME document viewer";
enable = lib.mkEnableOption "Evince, the GNOME document viewer";

package = mkPackageOption pkgs "evince" { };
package = lib.mkPackageOption pkgs "evince" { };

};

Expand All @@ -32,7 +23,7 @@ in {

###### implementation

config = mkIf config.programs.evince.enable {
config = lib.mkIf config.programs.evince.enable {

environment.systemPackages = [ cfg.package ];

Expand Down
15 changes: 3 additions & 12 deletions nixos/modules/programs/file-roller.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,19 @@

{ config, pkgs, lib, ... }:

with lib;

let cfg = config.programs.file-roller;

in {

# Added 2019-08-09
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "file-roller" "enable" ]
[ "programs" "file-roller" "enable" ])
];

###### interface

options = {

programs.file-roller = {

enable = mkEnableOption "File Roller, an archive manager for GNOME";
enable = lib.mkEnableOption "File Roller, an archive manager for GNOME";

package = mkPackageOption pkgs [ "gnome" "file-roller" ] { };
package = lib.mkPackageOption pkgs [ "gnome" "file-roller" ] { };

};

Expand All @@ -32,7 +23,7 @@ in {

###### implementation

config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {

environment.systemPackages = [ cfg.package ];

Expand Down
17 changes: 4 additions & 13 deletions nixos/modules/programs/gnome-disks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,20 @@

{ config, pkgs, lib, ... }:

with lib;

{

meta = {
maintainers = teams.gnome.members;
maintainers = lib.teams.gnome.members;
};

# Added 2019-08-09
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "gnome-disks" "enable" ]
[ "programs" "gnome-disks" "enable" ])
];

###### interface

options = {

programs.gnome-disks = {

enable = mkOption {
type = types.bool;
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable GNOME Disks daemon, a program designed to
Expand All @@ -39,7 +30,7 @@ with lib;

###### implementation

config = mkIf config.programs.gnome-disks.enable {
config = lib.mkIf config.programs.gnome-disks.enable {

environment.systemPackages = [ pkgs.gnome.gnome-disk-utility ];

Expand Down
15 changes: 3 additions & 12 deletions nixos/modules/programs/gnome-terminal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

{ config, pkgs, lib, ... }:

with lib;

let

cfg = config.programs.gnome-terminal;
Expand All @@ -13,21 +11,14 @@ in
{

meta = {
maintainers = teams.gnome.members;
maintainers = lib.teams.gnome.members;
};

# Added 2019-08-19
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "gnome-terminal-server" "enable" ]
[ "programs" "gnome-terminal" "enable" ])
];

options = {
programs.gnome-terminal.enable = mkEnableOption "GNOME Terminal";
programs.gnome-terminal.enable = lib.mkEnableOption "GNOME Terminal";
};

config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.gnome.gnome-terminal ];
services.dbus.packages = [ pkgs.gnome.gnome-terminal ];
systemd.packages = [ pkgs.gnome.gnome-terminal ];
Expand Down
15 changes: 3 additions & 12 deletions nixos/modules/programs/gpaste.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
# GPaste.
{ config, lib, pkgs, ... }:

with lib;

{

# Added 2019-08-09
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "gpaste" "enable" ]
[ "programs" "gpaste" "enable" ])
];

###### interface
options = {
programs.gpaste = {
enable = mkOption {
type = types.bool;
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Whether to enable GPaste, a clipboard manager.
Expand All @@ -26,7 +17,7 @@ with lib;
};

###### implementation
config = mkIf config.programs.gpaste.enable {
config = lib.mkIf config.programs.gpaste.enable {
environment.systemPackages = [ pkgs.gnome.gpaste ];
services.dbus.packages = [ pkgs.gnome.gpaste ];
systemd.packages = [ pkgs.gnome.gpaste ];
Expand Down
16 changes: 3 additions & 13 deletions nixos/modules/programs/seahorse.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@

{ config, pkgs, lib, ... }:

with lib;

{

# Added 2019-08-27
imports = [
(mkRenamedOptionModule
[ "services" "gnome3" "seahorse" "enable" ]
[ "programs" "seahorse" "enable" ])
];


###### interface

options = {

programs.seahorse = {

enable = mkEnableOption "Seahorse, a GNOME application for managing encryption keys and passwords in the GNOME Keyring";
enable = lib.mkEnableOption "Seahorse, a GNOME application for managing encryption keys and passwords in the GNOME Keyring";

};

Expand All @@ -29,9 +19,9 @@ with lib;

###### implementation

config = mkIf config.programs.seahorse.enable {
config = lib.mkIf config.programs.seahorse.enable {

programs.ssh.askPassword = mkDefault "${pkgs.gnome.seahorse}/libexec/seahorse/ssh-askpass";
programs.ssh.askPassword = lib.mkDefault "${pkgs.gnome.seahorse}/libexec/seahorse/ssh-askpass";

environment.systemPackages = [
pkgs.gnome.seahorse
Expand Down
Loading

0 comments on commit f818212

Please sign in to comment.