Skip to content

Commit 848c59f

Browse files
Merge master into staging-next
2 parents 9203d9e + b1619b6 commit 848c59f

File tree

33 files changed

+537
-8934
lines changed

33 files changed

+537
-8934
lines changed

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@
256256
- `kmonad` is now hardened by default using common `systemd` settings.
257257
If KMonad is used to execute shell commands, hardening may make some of them fail. In that case, you can disable hardening using {option}`services.kmonad.keyboards.<name>.enableHardening` option.
258258

259+
- `isd` was updated from 0.2.0 to 0.5.1, the new version may crash with a previously generated config, try moving or deleting `~/.config/isd/schema.json`.
260+
259261
- `asusd` has been upgraded to version 6 which supports multiple aura devices. To account for this, the single `auraConfig` configuration option has been replaced with `auraConfigs` which is an attribute set of config options per each device. The config files may also be now specified as either source files or text strings; to account for this you will need to specify that `text` is used for your existing configs, e.g.:
260262
```diff
261263
-services.asusd.asusdConfig = '''file contents'''

nixos/modules/services/databases/mysql.nix

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,25 @@ in
433433
done
434434
''}
435435
436+
${lib.optionalString isMariaDB ''
437+
# If MariaDB is used in an Galera cluster, we have to check if the sync is done,
438+
# or it will fail to init the database while joining, so we get in an broken non recoverable state
439+
# so we wait until we have an synced state
440+
if ${cfg.package}/bin/mysql -u ${superUser} -N -e "SHOW VARIABLES LIKE 'wsrep_on'" 2>/dev/null | ${lib.getExe' pkgs.gnugrep "grep"} -q 'ON'; then
441+
echo "Galera cluster detected, waiting for node to be synced..."
442+
while true; do
443+
STATE=$(${cfg.package}/bin/mysql -u ${superUser} -N -e "SHOW STATUS LIKE 'wsrep_local_state_comment'" | ${lib.getExe' pkgs.gawk "awk"} '{print $2}')
444+
if [ "$STATE" = "Synced" ]; then
445+
echo "Node is synced"
446+
break
447+
else
448+
echo "Current state: $STATE - Waiting for 1 second..."
449+
sleep 1
450+
fi
451+
done
452+
fi
453+
''}
454+
436455
if [ -f ${cfg.dataDir}/mysql_init ]
437456
then
438457
# While MariaDB comes with a 'mysql' super user account since 10.4.x, MySQL does not
@@ -447,10 +466,10 @@ in
447466
# Create initial databases
448467
if ! test -e "${cfg.dataDir}/${database.name}"; then
449468
echo "Creating initial database: ${database.name}"
450-
( echo 'create database `${database.name}`;'
469+
( echo 'CREATE DATABASE IF NOT EXISTS `${database.name}`;'
451470
452471
${lib.optionalString (database.schema != null) ''
453-
echo 'use `${database.name}`;'
472+
echo 'USE `${database.name}`;'
454473
455474
# TODO: this silently falls through if database.schema does not exist,
456475
# we should catch this somehow and exit, but can't do it here because we're in a subshell.
@@ -469,7 +488,7 @@ in
469488
${lib.optionalString (cfg.replication.role == "master") ''
470489
# Set up the replication master
471490
472-
( echo "use mysql;"
491+
( echo "USE mysql;"
473492
echo "CREATE USER '${cfg.replication.masterUser}'@'${cfg.replication.slaveHost}' IDENTIFIED WITH mysql_native_password;"
474493
echo "SET PASSWORD FOR '${cfg.replication.masterUser}'@'${cfg.replication.slaveHost}' = PASSWORD('${cfg.replication.masterPassword}');"
475494
echo "GRANT REPLICATION SLAVE ON *.* TO '${cfg.replication.masterUser}'@'${cfg.replication.slaveHost}';"
@@ -479,9 +498,9 @@ in
479498
${lib.optionalString (cfg.replication.role == "slave") ''
480499
# Set up the replication slave
481500
482-
( echo "stop slave;"
483-
echo "change master to master_host='${cfg.replication.masterHost}', master_user='${cfg.replication.masterUser}', master_password='${cfg.replication.masterPassword}';"
484-
echo "start slave;"
501+
( echo "STOP SLAVE;"
502+
echo "CHANGE MASTER TO MASTER_HOST='${cfg.replication.masterHost}', MASTER_USER='${cfg.replication.masterUser}', MASTER_PASSWORD='${cfg.replication.masterPassword}';"
503+
echo "START SLAVE;"
485504
) | ${cfg.package}/bin/mysql -u ${superUser} -N
486505
''}
487506

pkgs/applications/graphics/processing/default.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
libGL,
1717
}:
1818
let
19-
buildNumber = "1294";
19+
buildNumber = "1295";
2020
vaqua = fetchurl {
2121
name = "VAqua9.jar";
2222
url = "https://violetlib.org/release/vaqua/9/VAqua9.jar";
@@ -61,15 +61,19 @@ let
6161
in
6262
stdenv.mkDerivation rec {
6363
pname = "processing";
64-
version = "4.3.1";
64+
version = "4.3.2";
6565

6666
src = fetchFromGitHub {
6767
owner = "processing";
6868
repo = "processing4";
6969
rev = "processing-${buildNumber}-${version}";
70-
sha256 = "sha256-nshhPeDXhrvk+2oQ9BPqJTZV9a+OjxeQiO31JAxQ40g=";
70+
sha256 = "sha256-jUkWnkP8up5vpaXfgFJ/jQjN1KfeX5EuYXSb+W6NEms=";
7171
};
7272

73+
# Processing did not update the todo.txt file before tagging this release, so
74+
# the "revision-check" Ant target fails.
75+
patches = [ ./disable-revision-check.patch ];
76+
7377
nativeBuildInputs = [
7478
ant
7579
unzip
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/build/build.xml b/build/build.xml
2+
index 8ad556c11..e61b6ae45 100644
3+
--- a/build/build.xml
4+
+++ b/build/build.xml
5+
@@ -453,8 +453,6 @@
6+
7+
<!-- the revision.base property won't be set
8+
if $revision wasn't found... -->
9+
- <fail unless="revision.correct"
10+
- message="Fix revision number in Base.java" />
11+
</target>
12+
13+

pkgs/by-name/bu/buf/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ buildGoModule rec {
4040
];
4141

4242
preCheck = ''
43+
# Some tests take longer depending on builder load.
44+
substituteInPlace private/bufpkg/bufcheck/lint_test.go \
45+
--replace-fail 'context.WithTimeout(context.Background(), 60*time.Second)' \
46+
'context.WithTimeout(context.Background(), 600*time.Second)'
4347
# For WebAssembly runtime tests
4448
GOOS=wasip1 GOARCH=wasm go build -o $GOPATH/bin/buf-plugin-suffix.wasm \
4549
./private/bufpkg/bufcheck/internal/cmd/buf-plugin-suffix
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
pkg-config,
6+
wrapGAppsHook4,
7+
gtk4-layer-shell,
8+
}:
9+
10+
rustPlatform.buildRustPackage (finalAttrs: {
11+
pname = "hyprswitch";
12+
version = "3.3.2";
13+
14+
src = fetchFromGitHub {
15+
owner = "H3rmt";
16+
repo = "hyprswitch";
17+
tag = "v${finalAttrs.version}";
18+
hash = "sha256-cmo544QvdacVTHPqmc6er4xnSSc63e6Z71BS0FxSklE=";
19+
};
20+
21+
useFetchCargoVendor = true;
22+
cargoHash = "sha256-DEifup2oAcqZplx2JoN3hkP1VmxwYVFS8ZqfpR80baA=";
23+
24+
nativeBuildInputs = [
25+
wrapGAppsHook4
26+
pkg-config
27+
];
28+
29+
buildInputs = [
30+
gtk4-layer-shell
31+
];
32+
33+
meta = {
34+
description = "CLI/GUI that allows switching between windows in Hyprland";
35+
mainProgram = "hyprswitch";
36+
homepage = "https://github.com/H3rmt/hyprswitch";
37+
license = lib.licenses.mit;
38+
platforms = lib.platforms.linux;
39+
maintainers = with lib.maintainers; [ arminius-smh ];
40+
};
41+
})

pkgs/by-name/is/isd/package.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@
77

88
python3Packages.buildPythonApplication rec {
99
pname = "isd";
10-
version = "0.2.0";
10+
version = "0.5.1";
1111
pyproject = true;
1212

1313
src = fetchFromGitHub {
1414
owner = "isd-project";
1515
repo = "isd";
1616
tag = "v${version}";
17-
hash = "sha256-YOQoI9PB096C/wNF9y5nrXkpJGbO6cXQ2U6I2Ece2PM=";
17+
hash = "sha256-z9lyPSiuUAwu5bmZlcHj5SV3mHtP+GXtuEeJzOr1c9A=";
1818
};
1919

2020
build-system = with python3Packages; [
2121
hatchling
22+
setuptools
2223
];
2324

2425
dependencies = with python3Packages; [
@@ -38,7 +39,7 @@ python3Packages.buildPythonApplication rec {
3839
];
3940

4041
pythonImportsCheck = [
41-
"isd"
42+
"isd_tui"
4243
];
4344

4445
passthru.updateScript = nix-update-script { };

pkgs/by-name/li/libvirt-glib/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
8181
];
8282

8383
meta = with lib; {
84-
description = "Library for working with virtual machines";
84+
description = "Wrapper library of libvirt for glib-based applications";
8585
longDescription = ''
8686
libvirt-glib wraps libvirt to provide a high-level object-oriented API better
8787
suited for glib-based applications, via three libraries:

0 commit comments

Comments
 (0)