Skip to content

Commit 5af80ac

Browse files
Merge master into staging-next
2 parents a4b5a14 + 06570e5 commit 5af80ac

File tree

18 files changed

+132
-48
lines changed

18 files changed

+132
-48
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In addition to numerous new and upgraded packages, this release has the followin
1010

1111
- `screen`'s module has been cleaned, and will now require you to set `programs.screen.enable` in order to populate `screenrc` and add the program to the environment.
1212

13-
- `linuxPackages_testing_bcachefs` is now fully deprecated by `linuxPackages_testing`, and is therefore no longer available.
13+
- `linuxPackages_testing_bcachefs` is now fully deprecated by `linuxPackages_latest`, and is therefore no longer available.
1414

1515
- NixOS now installs a stub ELF loader that prints an informative error message when users attempt to run binaries not made for NixOS.
1616
- This can be disabled through the `environment.stub-ld.enable` option.

nixos/modules/module-list.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@
195195
./programs/haguichi.nix
196196
./programs/hamster.nix
197197
./programs/htop.nix
198-
./programs/hyprland.nix
199198
./programs/iay.nix
200199
./programs/iftop.nix
201200
./programs/i3lock.nix
@@ -273,6 +272,7 @@
273272
./programs/wavemon.nix
274273
./programs/wayland/cardboard.nix
275274
./programs/wayland/labwc.nix
275+
./programs/wayland/hyprland.nix
276276
./programs/wayland/river.nix
277277
./programs/wayland/sway.nix
278278
./programs/wayland/waybar.nix
File renamed without changes.

nixos/modules/system/boot/stage-1-init.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,14 @@ touch /etc/initrd-release
8686
# Function for waiting for device(s) to appear.
8787
waitDevice() {
8888
local device="$1"
89-
# Split device string using ':' as a delimiter as bcachefs
90-
# uses this for multi-device filesystems, i.e. /dev/sda1:/dev/sda2:/dev/sda3
91-
local IFS=':'
89+
# Split device string using ':' as a delimiter, bcachefs uses
90+
# this for multi-device filesystems, i.e. /dev/sda1:/dev/sda2:/dev/sda3
91+
local IFS
92+
93+
# bcachefs is the only known use for this at the moment
94+
# Preferably, the 'UUID=' syntax should be enforced, but
95+
# this is kept for compatibility reasons
96+
if [ "$fsType" = bcachefs ]; then IFS=':'; fi
9297

9398
# USB storage devices tend to appear with some delay. It would be
9499
# great if we had a way to synchronously wait for them, but

nixos/modules/tasks/filesystems/bcachefs.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,14 @@ in
123123
inherit assertions;
124124
# needed for systemd-remount-fs
125125
system.fsPackages = [ pkgs.bcachefs-tools ];
126-
# FIXME: Remove this line when the default kernel has bcachefs
126+
# FIXME: Remove this line when the LTS (default) kernel is at least version 6.7
127127
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
128-
systemd.services = lib.mapAttrs' (mkUnits "") (lib.filterAttrs (n: fs: (fs.fsType == "bcachefs") && (!utils.fsNeededForBoot fs)) config.fileSystems);
128+
services.udev.packages = [ pkgs.bcachefs-tools ];
129+
130+
systemd = {
131+
packages = [ pkgs.bcachefs-tools ];
132+
services = lib.mapAttrs' (mkUnits "") (lib.filterAttrs (n: fs: (fs.fsType == "bcachefs") && (!utils.fsNeededForBoot fs)) config.fileSystems);
133+
};
129134
}
130135

131136
(lib.mkIf ((lib.elem "bcachefs" config.boot.initrd.supportedFilesystems) || (bootFs != {})) {

pkgs/applications/misc/nwg-displays/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
python310Packages.buildPythonApplication rec {
1616
pname = "nwg-displays";
17-
version = "0.3.10";
17+
version = "0.3.12";
1818

1919
src = fetchFromGitHub {
2020
owner = "nwg-piotr";
2121
repo = "nwg-displays";
22-
rev = "v${version}";
23-
hash = "sha256-clL34Ewzf0sJEWiye4L4e1RrPFIHkmotLpPaibGvVY4=";
22+
rev = "refs/tags/v${version}";
23+
hash = "sha256-cr+2ejpXEOg0e86tT37o9400J299DQSkOrQUZE5+V2s=";
2424
};
2525

2626
nativeBuildInputs = [

pkgs/applications/science/electronics/fritzing/default.nix

Lines changed: 39 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
, qtsvg
1010
, qttools
1111
, qtserialport
12+
, qtwayland
13+
, qt5compat
1214
, boost
1315
, libngspice
1416
, libgit2
@@ -18,38 +20,60 @@
1820
let
1921
# SHA256 of the fritzing-parts HEAD on the master branch,
2022
# which contains the latest stable parts definitions
21-
partsSha = "4713511c894cb2894eae505b9307c6555afcc32c";
23+
partsSha = "015626e6cafb1fc7831c2e536d97ca2275a83d32";
2224

2325
parts = fetchFromGitHub {
2426
owner = "fritzing";
2527
repo = "fritzing-parts";
2628
rev = partsSha;
27-
sha256 = "sha256-QiOGWc+99MJhOVrXyNOinR8rTVvW/E+wPfoB6QvbhY0=";
29+
hash = "sha256-5jw56cqxpT/8bf1q551WG53J6Lw5pH0HEtRUoNNMc+A=";
30+
};
31+
32+
# Header-only library
33+
svgpp = fetchFromGitHub {
34+
owner = "svgpp";
35+
repo = "svgpp";
36+
rev = "v1.3.0";
37+
hash = "sha256-kJEVnMYnDF7bThDB60bGXalYgpn9c5/JCZkRSK5GoE4=";
2838
};
2939
in
3040

3141
stdenv.mkDerivation rec {
3242
pname = "fritzing";
33-
version = "unstable-2022-07-01";
43+
version = "1.0.1";
3444

3545
src = fetchFromGitHub {
3646
owner = pname;
3747
repo = "fritzing-app";
38-
rev = "40d23c29b0463d5c968c3c4b34ed5ffc05c5a258";
39-
sha256 = "sha256-smvfuxQWF/LMFFXHOKb3zUZsEet/XoiaxXOR5QMaYzw=";
48+
rev = "8f5f1373835050ce014299c78d91c24beea9b633";
49+
hash = "sha256-jLVNzSh2KwXpi3begtp/53sdBmQQbCnKMCm2p770etg=";
4050
};
4151

42-
buildInputs = [ qtbase qtsvg qtserialport boost libgit2 quazip libngspice ];
43-
nativeBuildInputs = [ qmake pkg-config qttools wrapQtAppsHook ];
44-
4552
patches = [
53+
# Fix error caused by implicit call
4654
(fetchpatch {
47-
url = "https://aur.archlinux.org/cgit/aur.git/plain/0001-Quick-Dirty-patch-to-allow-finding-quazip-qt5-on-Arc.patch?h=fritzing&id=1ae0dc88464f375a54b156e6761315bcb04bcc1f";
48-
sha256 = "sha256-iS18EWw920gyeXDoHBRGwXvwMJurJS21H77Erl+fqog=";
55+
url = "https://aur.archlinux.org/cgit/aur.git/plain/0003-ParseResult-operator-bool-in-explicit.patch?h=fritzing&id=b2c79b55f0a2811e80bb1136b1e021fbc56937c9";
56+
hash = "sha256-9HdcNqLHEB0HQbF7AaTdUIJUbafwsRKPA+wfF4g8veU=";
4957
})
5058
];
5159

60+
nativeBuildInputs = [ qmake pkg-config qttools wrapQtAppsHook ];
61+
buildInputs = [
62+
qtbase
63+
qtsvg
64+
qtserialport
65+
qtwayland
66+
qt5compat
67+
boost
68+
libgit2
69+
quazip
70+
libngspice
71+
];
72+
5273
postPatch = ''
74+
# Use packaged quazip, libgit and ngspice
75+
sed -i "/pri\/quazipdetect.pri/d" phoenix.pro
76+
sed -i "/pri\/spicedetect.pri/d" phoenix.pro
5377
substituteInPlace phoenix.pro \
5478
--replace 'LIBGIT_STATIC = true' 'LIBGIT_STATIC = false'
5579
@@ -61,7 +85,11 @@ stdenv.mkDerivation rec {
6185
cp -a ${parts}/* parts/
6286
'';
6387

64-
env.NIX_CFLAGS_COMPILE = "-I${lib.getDev quazip}/include/QuaZip-Qt${lib.versions.major qtbase.version}-${quazip.version}/quazip";
88+
env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [
89+
"-I${lib.getDev quazip}/include/QuaZip-Qt${lib.versions.major qtbase.version}-${quazip.version}/quazip"
90+
"-I${svgpp}/include"
91+
];
92+
env.NIX_LDFLAGS = "-lquazip1-qt${lib.versions.major qtbase.version}";
6593

6694
qmakeFlags = [
6795
"phoenix.pro"

pkgs/by-name/su/sudachi-rs/package.nix

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,49 @@
44
, sudachidict
55
, runCommand
66
, sudachi-rs
7+
, writeScript
78
}:
89

910
rustPlatform.buildRustPackage rec {
1011
pname = "sudachi-rs";
11-
version = "0.6.7";
12+
version = "0.6.8";
1213

1314
src = fetchFromGitHub {
1415
owner = "WorksApplications";
1516
repo = "sudachi.rs";
1617
rev = "refs/tags/v${version}";
17-
hash = "sha256-VzNOI6PP9sKBsNfB5yIxAI8jI8TEdM4tD49Jl/2tkSE=";
18+
hash = "sha256-9GXU+YDPuQ+roqQfUE5q17Hl6AopsvGhRPjZ+Ui+n24=";
1819
};
1920

2021
postPatch = ''
2122
substituteInPlace sudachi/src/config.rs \
2223
--replace '"resources"' '"${placeholder "out"}/share/resources"'
2324
'';
2425

25-
cargoHash = "sha256-b2NtgHcMkimzFFuqohAo9KdSaIq6oi3qo/k8/VugyFs=";
26+
cargoHash = "sha256-Ufo3dB2KGDDNiebp7hLhQrUMLsefO8wRpJQDz57Yb8Y=";
2627

2728
# prepare the resources before the build so that the binary can find sudachidict
2829
preBuild = ''
2930
install -Dm644 ${sudachidict}/share/system.dic resources/system.dic
3031
install -Dm644 resources/* -t $out/share/resources
3132
'';
3233

33-
passthru.tests = {
34-
# detects an error that sudachidict is not found
35-
cli = runCommand "${pname}-cli-test" { } ''
36-
mkdir $out
37-
echo "高輪ゲートウェイ駅" | ${lib.getExe sudachi-rs} > $out/result
34+
passthru = {
35+
updateScript = writeScript "update.sh" ''
36+
#!/usr/bin/env nix-shell
37+
#!nix-shell -i bash -p nix-update
38+
39+
set -eu -o pipefail
40+
nix-update sudachi-rs
41+
nix-update --version=skip python3Packages.sudachipy
3842
'';
43+
tests = {
44+
# detects an error that sudachidict is not found
45+
cli = runCommand "${pname}-cli-test" { } ''
46+
mkdir $out
47+
echo "高輪ゲートウェイ駅" | ${lib.getExe sudachi-rs} > $out/result
48+
'';
49+
};
3950
};
4051

4152
meta = with lib; {

pkgs/by-name/sw/swaylock-fancy/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ in
3131

3232
stdenv.mkDerivation {
3333
pname = "swaylock-fancy";
34-
version = "unstable-2023-11-21";
34+
version = "unstable-2023-12-22";
3535

3636
src = fetchFromGitHub {
3737
owner = "Big-B";
3838
repo = "swaylock-fancy";
39-
rev = "ff37ae3c6d0f100f81ff64fdb9d422c37de2f4f6";
40-
hash = "sha256-oS4YCbZOIrMP4QSM5eHWzTn18k3w2OnJ2k+64x/DnuM=";
39+
rev = "0b93740e1dfc39883c125c212a1adc16b01c14f1";
40+
hash = "sha256-ko4SeHGNBiPMvxFXhD+U2r0Mwc14C2IN5CaJYI0V8u8=";
4141
};
4242

4343
postPatch = ''

pkgs/development/python-modules/sudachidict/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
, fetchFromGitHub
33
, sudachidict
44
, setuptools
5+
, sudachipy
56
}:
67

78
buildPythonPackage rec {
@@ -33,6 +34,10 @@ buildPythonPackage rec {
3334
setuptools
3435
];
3536

37+
propagatedBuildInputs = [
38+
sudachipy
39+
];
40+
3641
# we need to prepare some files before the build
3742
# https://github.com/WorksApplications/SudachiDict/blob/develop/package_python.sh
3843
preBuild = ''

0 commit comments

Comments
 (0)