From 250359a4d5b5afc71fe7fcd007f4999e5b187a3b Mon Sep 17 00:00:00 2001
From: andre4ik3
Date: Mon, 16 Dec 2024 00:29:26 +0400
Subject: [PATCH 001/685] nixos/etc-overlay: mark `EROFS_FS` kernel
configuration option as required
---
nixos/modules/system/etc/etc-activation.nix | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/nixos/modules/system/etc/etc-activation.nix b/nixos/modules/system/etc/etc-activation.nix
index aed58af780b7..574f19dff0c7 100644
--- a/nixos/modules/system/etc/etc-activation.nix
+++ b/nixos/modules/system/etc/etc-activation.nix
@@ -43,6 +43,10 @@
"overlay"
];
+ system.requiredKernelConfig = with config.lib.kernelConfig; [
+ (isEnabled "EROFS_FS")
+ ];
+
boot.initrd.systemd = {
mounts = [
{
From d91b76cb89180d330c61d2a460f8553a7a8b6d33 Mon Sep 17 00:00:00 2001
From: Benedikt Rips
Date: Mon, 27 Jan 2025 19:26:02 +0100
Subject: [PATCH 002/685] chntpw: consistently use Debian's patches
---
pkgs/by-name/ch/chntpw/package.nix | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/pkgs/by-name/ch/chntpw/package.nix b/pkgs/by-name/ch/chntpw/package.nix
index 603120053e27..783a7cf7b509 100644
--- a/pkgs/by-name/ch/chntpw/package.nix
+++ b/pkgs/by-name/ch/chntpw/package.nix
@@ -23,45 +23,44 @@ stdenv.mkDerivation rec {
./01-chntpw-install-target.patch
# Import various bug fixes from debian
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/04_get_abs_path";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/04_get_abs_path";
sha256 = "17h0gaczqd5b792481synr1ny72frwslb779lm417pyrz6kh9q8n";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/06_correct_test_open_syscall";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/06_correct_test_open_syscall";
sha256 = "00lg83bimbki988n71w54mmhjp9529r0ngm40d7fdmnc2dlpj3hd";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/07_detect_failure_to_write_key";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/07_detect_failure_to_write_key";
sha256 = "0pk6xnprh2pqyx4n4lw3836z6fqsw3mclkzppl5rhjaahriwxw4l";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/08_no_deref_null";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/08_no_deref_null";
sha256 = "1g7pfmjaj0c2sm64s3api2kglj7jbgddjjd3r4drw6phwdkah0zs";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/09_improve_robustness";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/09_improve_robustness";
sha256 = "1nszkdy01ixnain7cwdmfbhjngphw1300ifagc1wgl9wvghzviaa";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/11_improve_documentation";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/11_improve_documentation";
sha256 = "0yql6hj72q7cq69rrspsjkpiipdhcwb0b9w5j8nhq40cnx9mgqgg";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/12_readonly_filesystem";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/12_readonly_filesystem";
sha256 = "1kxcy7f2pl6fqgmjg8bnl3pl5wgiw5xnbyx12arinmqkkggp4fa4";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/13_write_to_hive";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/13_write_to_hive";
sha256 = "1638lcyxjkrkmbr3n28byixny0qrxvkciw1xd97x48mj6bnwqrkv";
})
(fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1/debian/patches/14_improve_description";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/14_improve_description";
sha256 = "11y5kc4dh4zv24nkb0jw2zwlifx6nzsd4jbizn63l6dbpqgb25rs";
})
(fetchpatch {
- name = "17_hexdump-pointer-type.patch";
- url = "https://git.launchpad.net/ubuntu/+source/chntpw/plain/debian/patches/17_hexdump-pointer-type.patch?id=aed501c87499f403293e7b9f505277567c2f3b52";
- sha256 = "sha256-ir9LFl8FJq141OwF5SbyVMtjQ1kTMH1NXlHl0XZq7m8=";
+ url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/17_hexdump-pointer-type.patch";
+ sha256 = "ir9LFl8FJq141OwF5SbyVMtjQ1kTMH1NXlHl0XZq7m8=";
})
];
From 1c557a268af3b9513e6fe1d5458b4aa003ee9237 Mon Sep 17 00:00:00 2001
From: Benedikt Rips
Date: Wed, 29 Jan 2025 14:29:29 +0100
Subject: [PATCH 003/685] chntpw: refactor
---
pkgs/by-name/ch/chntpw/package.nix | 106 ++++++++++++++++-------------
1 file changed, 60 insertions(+), 46 deletions(-)
diff --git a/pkgs/by-name/ch/chntpw/package.nix b/pkgs/by-name/ch/chntpw/package.nix
index 783a7cf7b509..28f72fbd0285 100644
--- a/pkgs/by-name/ch/chntpw/package.nix
+++ b/pkgs/by-name/ch/chntpw/package.nix
@@ -3,7 +3,7 @@
stdenv,
fetchurl,
unzip,
- fetchpatch,
+ fetchDebianPatch,
}:
stdenv.mkDerivation rec {
@@ -18,51 +18,65 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ unzip ];
- patches = [
- ./00-chntpw-build-arch-autodetect.patch
- ./01-chntpw-install-target.patch
- # Import various bug fixes from debian
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/04_get_abs_path";
- sha256 = "17h0gaczqd5b792481synr1ny72frwslb779lm417pyrz6kh9q8n";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/06_correct_test_open_syscall";
- sha256 = "00lg83bimbki988n71w54mmhjp9529r0ngm40d7fdmnc2dlpj3hd";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/07_detect_failure_to_write_key";
- sha256 = "0pk6xnprh2pqyx4n4lw3836z6fqsw3mclkzppl5rhjaahriwxw4l";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/08_no_deref_null";
- sha256 = "1g7pfmjaj0c2sm64s3api2kglj7jbgddjjd3r4drw6phwdkah0zs";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/09_improve_robustness";
- sha256 = "1nszkdy01ixnain7cwdmfbhjngphw1300ifagc1wgl9wvghzviaa";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/11_improve_documentation";
- sha256 = "0yql6hj72q7cq69rrspsjkpiipdhcwb0b9w5j8nhq40cnx9mgqgg";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/12_readonly_filesystem";
- sha256 = "1kxcy7f2pl6fqgmjg8bnl3pl5wgiw5xnbyx12arinmqkkggp4fa4";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/13_write_to_hive";
- sha256 = "1638lcyxjkrkmbr3n28byixny0qrxvkciw1xd97x48mj6bnwqrkv";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/14_improve_description";
- sha256 = "11y5kc4dh4zv24nkb0jw2zwlifx6nzsd4jbizn63l6dbpqgb25rs";
- })
- (fetchpatch {
- url = "https://sources.debian.org/data/main/c/chntpw/140201-1.2/debian/patches/17_hexdump-pointer-type.patch";
- sha256 = "ir9LFl8FJq141OwF5SbyVMtjQ1kTMH1NXlHl0XZq7m8=";
- })
- ];
+ patches =
+ let
+ fetchChntpwDebianPatch =
+ { patch, hash }:
+ fetchDebianPatch {
+ inherit
+ hash
+ patch
+ pname
+ version
+ ;
+ debianRevision = "1.2";
+ };
+ in
+ [
+ ./00-chntpw-build-arch-autodetect.patch
+ ./01-chntpw-install-target.patch
+ # Import various bug fixes from debian
+ (fetchChntpwDebianPatch {
+ patch = "04_get_abs_path";
+ hash = "sha256-FuEEp/nZ3xNIpemcRTXPThxvQ7ZeB0REOqs0/Jl6AJ4=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "06_correct_test_open_syscall";
+ hash = "sha256-DQ55aRPM1uZOA6Q+C3ISJV0JayWFh2MRSnGuGtdAjwI=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "07_detect_failure_to_write_key";
+ hash = "sha256-lPDOY4ZKSZgLvfdPyurgGjvzzUCDU2JJ9/gKmK/tZl4=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "08_no_deref_null";
+ hash = "sha256-+gOoZuPwGp4byaNJ2dpb8kj6pohXDU1M1YIBqWR197w=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "09_improve_robustness";
+ hash = "sha256-SsX94ds80ccDe8pFAEbg8D4r4XK1cXZsVLbHAHybX9s=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "11_improve_documentation";
+ hash = "sha256-7+FXU7cMEAwtkoWnBRZnsN0Y75T66pyTwexgcSQ0FHs=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "12_readonly_filesystem";
+ hash = "sha256-RDly35sTVxuzEqH7ZXvh8fFC76B2oSfrw87QK9zxrM8=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "13_write_to_hive";
+ hash = "sha256-e2bM7TKyItJPaj3wyObuGQNve/QLCTvyqjNP2T2jaJg=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "14_improve_description";
+ hash = "sha256-OhexHr6rGTqM/XFJ0vS3prtI+RdcgjUtEfsT2AibxYc=";
+ })
+ (fetchChntpwDebianPatch {
+ patch = "17_hexdump-pointer-type.patch";
+ hash = "sha256-ir9LFl8FJq141OwF5SbyVMtjQ1kTMH1NXlHl0XZq7m8=";
+ })
+ ];
installPhase = ''
make install PREFIX=$out
From 385cf708bdfb6b707f91e5b1a2a7045185b3168b Mon Sep 17 00:00:00 2001
From: kilianar
Date: Sat, 15 Mar 2025 12:56:19 +0100
Subject: [PATCH 004/685] verapdf: 1.26.4 -> 1.26.5
https://github.com/veraPDF/veraPDF-apps/releases/tag/v1.26.5
---
pkgs/by-name/ve/verapdf/package.nix | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkgs/by-name/ve/verapdf/package.nix b/pkgs/by-name/ve/verapdf/package.nix
index 77e3185e5818..40982860feeb 100644
--- a/pkgs/by-name/ve/verapdf/package.nix
+++ b/pkgs/by-name/ve/verapdf/package.nix
@@ -10,7 +10,7 @@
}:
maven.buildMavenPackage rec {
pname = "verapdf";
- version = "1.26.4";
+ version = "1.26.5";
mvnParameters = "-pl '!installer' -Dverapdf.timestamp=1980-01-01T00:00:02Z -Dproject.build.outputTimestamp=1980-01-01T00:00:02Z";
@@ -23,7 +23,7 @@ maven.buildMavenPackage rec {
patches = [ ./stable-maven-plugins.patch ];
- mvnHash = "sha256-VXivLGt440MfloWedtQlGukuZk0yui1QhjrpXGNNzqY=";
+ mvnHash = "sha256-qRd/IatxEj12wH12JcZwrWfKffaAs+KSuKFN2yhlMyI=";
nativeBuildInputs = [
makeWrapper
From 8be1057f88cbffd2a44d1df8cb52f99849edbfdf Mon Sep 17 00:00:00 2001
From: illustris
Date: Sun, 16 Mar 2025 19:07:51 +0530
Subject: [PATCH 005/685] spark: 3.5.4 -> 3.5.5
---
pkgs/applications/networking/cluster/spark/default.nix | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkgs/applications/networking/cluster/spark/default.nix b/pkgs/applications/networking/cluster/spark/default.nix
index a2472525b122..4ce7f56f2197 100644
--- a/pkgs/applications/networking/cluster/spark/default.nix
+++ b/pkgs/applications/networking/cluster/spark/default.nix
@@ -97,8 +97,8 @@ in
# a new NixOS release.
spark_3_5 = spark {
pname = "spark";
- version = "3.5.4";
- hash = "sha256-rSr7UH1dZIkUYW6ehc/dYxlmN9yVjEKwrwLMT+uMd/0=";
+ version = "3.5.5";
+ hash = "sha256-vzcWgIfHPhN3nyrxdk3f0p4fW3MpQ+FuEPnWPw0xNPg=";
};
spark_3_4 = spark rec {
pname = "spark";
From 8b4477c31170dd2ccf3dee3941def8070a1b260c Mon Sep 17 00:00:00 2001
From: Nicola Squartini
Date: Tue, 18 Mar 2025 17:14:25 +0100
Subject: [PATCH 006/685] bitbox: 4.46.3 -> 4.47.2
---
pkgs/by-name/bi/bitbox/genassets.patch | 13 -------------
pkgs/by-name/bi/bitbox/package.nix | 23 ++++++++++++++---------
2 files changed, 14 insertions(+), 22 deletions(-)
delete mode 100644 pkgs/by-name/bi/bitbox/genassets.patch
diff --git a/pkgs/by-name/bi/bitbox/genassets.patch b/pkgs/by-name/bi/bitbox/genassets.patch
deleted file mode 100644
index 0c09f22ec6ea..000000000000
--- a/pkgs/by-name/bi/bitbox/genassets.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/frontends/qt/genassets.sh b/frontends/qt/genassets.sh
-index 4b1ba87be..b5a9ad279 100755
---- a/frontends/qt/genassets.sh
-+++ b/frontends/qt/genassets.sh
-@@ -20,7 +20,7 @@ if [ ! -d ../web/build ]; then
- fi
-
- echo '' > assets.qrc
--/usr/bin/find ../web/build/ -maxdepth 3 -type f | sed -e "s|../web/build/||" | awk '{ print "../web/build/" $1 "" '} >> assets.qrc
-+find ../web/build/ -maxdepth 3 -type f | sort | sed -e "s|../web/build/||" | awk '{ print "../web/build/" $1 "" '} >> assets.qrc
-
- echo 'resources/trayicon.png' >> assets.qrc
- echo '' >> assets.qrc
diff --git a/pkgs/by-name/bi/bitbox/package.nix b/pkgs/by-name/bi/bitbox/package.nix
index cb040646f516..486137a37c82 100644
--- a/pkgs/by-name/bi/bitbox/package.nix
+++ b/pkgs/by-name/bi/bitbox/package.nix
@@ -2,28 +2,32 @@
lib,
stdenv,
fetchFromGitHub,
+ runCommand,
buildNpmPackage,
clang,
go,
libsForQt5,
+ qt6,
}:
+let
+ rcc = runCommand "rcc" { } ''
+ mkdir -p $out/bin
+ cp ${lib.getExe' libsForQt5.qt5.qtbase.dev "rcc"} $out/bin
+ '';
+in
stdenv.mkDerivation rec {
pname = "bitbox";
- version = "4.46.3";
+ version = "4.47.2";
src = fetchFromGitHub {
owner = "BitBoxSwiss";
repo = "bitbox-wallet-app";
rev = "v${version}";
fetchSubmodules = true;
- hash = "sha256-2oGVQ022NGOHLo7TBdeXG3ng1nYW8fyLwSV0hJdAl9I=";
+ hash = "sha256-sRE+Nnb3oqiJEjqiyG+3/sZLp23nquw5+4VpbZVFCQ8=";
};
- patches = [
- ./genassets.patch
- ];
-
postPatch = ''
substituteInPlace frontends/qt/resources/linux/usr/share/applications/bitbox.desktop \
--replace-fail 'Exec=BitBox %u' 'Exec=bitbox %u'
@@ -36,7 +40,7 @@ stdenv.mkDerivation rec {
inherit version;
inherit src;
sourceRoot = "source/frontends/web";
- npmDepsHash = "sha256-w98wwKHiZtor5ivKd+sh5K8HnAepu6cw9RyVJ+eTq3k=";
+ npmDepsHash = "sha256-eazc3OIusY8cbaF8RJOrVcyWPQexcz6lZYLLCpB1mHc=";
installPhase = "cp -r build $out";
};
@@ -70,12 +74,13 @@ stdenv.mkDerivation rec {
runHook postInstall
'';
- buildInputs = [ libsForQt5.qtwebengine ];
+ buildInputs = [ qt6.qtwebengine ];
nativeBuildInputs = [
clang
go
- libsForQt5.wrapQtAppsHook
+ qt6.wrapQtAppsHook
+ rcc
];
meta = {
From 8636485550a0842097b67a95f0216068fe6a7f77 Mon Sep 17 00:00:00 2001
From: pongo1231
Date: Wed, 2 Apr 2025 18:48:52 +0200
Subject: [PATCH 007/685] persistent-evdev: don't use python3Packages
---
pkgs/servers/persistent-evdev/default.nix | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pkgs/servers/persistent-evdev/default.nix b/pkgs/servers/persistent-evdev/default.nix
index 36f125c913fa..088607dbb592 100644
--- a/pkgs/servers/persistent-evdev/default.nix
+++ b/pkgs/servers/persistent-evdev/default.nix
@@ -2,7 +2,8 @@
lib,
buildPythonPackage,
fetchFromGitHub,
- python3Packages,
+ evdev,
+ pyudev,
}:
buildPythonPackage rec {
@@ -17,7 +18,7 @@ buildPythonPackage rec {
sha256 = "d0i6DL/qgDELet4ew2lyVqzd9TApivRxL3zA3dcsQXY=";
};
- propagatedBuildInputs = with python3Packages; [
+ propagatedBuildInputs = [
evdev
pyudev
];
From b418b2aa6782f1db0297a8c9ce18b532040fca31 Mon Sep 17 00:00:00 2001
From: BirdeeHub
Date: Fri, 4 Apr 2025 03:05:53 -0700
Subject: [PATCH 008/685] neovimUtils.wrapNeovimUnstable: support vim.o.exrc
---
doc/languages-frameworks/neovim.section.md | 2 +-
pkgs/applications/editors/neovim/wrapper.nix | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/doc/languages-frameworks/neovim.section.md b/doc/languages-frameworks/neovim.section.md
index 3a701a9edad0..111fb77c8bd2 100644
--- a/doc/languages-frameworks/neovim.section.md
+++ b/doc/languages-frameworks/neovim.section.md
@@ -59,7 +59,7 @@ For instance, `sqlite-lua` needs `g:sqlite_clib_path` to be set to work. Nixpkgs
- `neovimRcContent`: Extra vimL code sourced by the generated `init.lua`.
- `wrapperArgs`: Extra arguments forwarded to the `makeWrapper` call.
- `wrapRc`: Nix, not being able to write in your `$HOME`, loads the
- generated Neovim configuration via its `-u` argument, i.e. : `-u /nix/store/...generatedInit.lua`. This has side effects like preventing Neovim from reading your config in `$XDG_CONFIG_HOME` (see bullet 7 of [`:help startup`](https://neovim.io/doc/user/starting.html#_initialization) in Neovim). Disable it if you want to generate your own wrapper. You can still reuse while reusing the logic of the nixpkgs wrapper and access the generated config via `neovim.passthru.initRc`.
+ generated Neovim configuration via the `$VIMINIT` environment variable, i.e. : `export VIMINIT='lua dofile("/nix/store/...generatedInit.lua")'`. This has side effects like preventing Neovim from reading your config in `$XDG_CONFIG_HOME` (see bullet 7 of [`:help startup`](https://neovim.io/doc/user/starting.html#_initialization) in Neovim). Disable it if you want to generate your own wrapper. You can still reuse while reusing the logic of the nixpkgs wrapper and access the generated config via `neovim.passthru.initRc`.
- `plugins`: A list of plugins to add to the wrapper.
```
diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix
index 65dc227aa042..eec889819eab 100644
--- a/pkgs/applications/editors/neovim/wrapper.nix
+++ b/pkgs/applications/editors/neovim/wrapper.nix
@@ -193,8 +193,9 @@ let
"${placeholder "out"}/rplugin.vim"
]
++ lib.optionals finalAttrs.wrapRc [
- "--add-flags"
- "-u ${writeText "init.lua" rcContent}"
+ "--set-default"
+ "VIMINIT"
+ "lua dofile([[${writeText "init.lua" rcContent}]])"
]
++ finalAttrs.generatedWrapperArgs;
From 0bbeedc62cb8349a1cc06b6addc4220eaa48741f Mon Sep 17 00:00:00 2001
From: Nicola Squartini
Date: Sun, 20 Apr 2025 09:59:44 +0200
Subject: [PATCH 009/685] bitbox: add comment explaining the need of Qt 5
---
pkgs/by-name/bi/bitbox/package.nix | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pkgs/by-name/bi/bitbox/package.nix b/pkgs/by-name/bi/bitbox/package.nix
index 486137a37c82..95924f254bbb 100644
--- a/pkgs/by-name/bi/bitbox/package.nix
+++ b/pkgs/by-name/bi/bitbox/package.nix
@@ -11,6 +11,8 @@
}:
let
+ # Qt 6 doesn’t provide the rcc binary so we create an ad hoc package pulling
+ # it from Qt 5.
rcc = runCommand "rcc" { } ''
mkdir -p $out/bin
cp ${lib.getExe' libsForQt5.qt5.qtbase.dev "rcc"} $out/bin
From 64d418def4ac3945357c958bccedb2595e8283fb Mon Sep 17 00:00:00 2001
From: x
Date: Tue, 22 Apr 2025 13:07:43 +0800
Subject: [PATCH 010/685] edusong: update hash for updated upstream
---
pkgs/by-name/ed/edusong/package.nix | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkgs/by-name/ed/edusong/package.nix b/pkgs/by-name/ed/edusong/package.nix
index 4c9901f0c766..55da46ecbde1 100644
--- a/pkgs/by-name/ed/edusong/package.nix
+++ b/pkgs/by-name/ed/edusong/package.nix
@@ -6,12 +6,12 @@
stdenvNoCC.mkDerivation rec {
pname = "edusong";
- version = "1.0"; # The upstream doesn't provide the version
+ version = "4.0";
src = fetchzip {
name = "${pname}-${version}";
url = "https://language.moe.gov.tw/001/Upload/Files/site_content/M0001/eduSong_Unicode.zip";
- hash = "sha256-pIG1EbFGf2O2AzM4+HCCvGPodBBwUt7ozpb+BpPk5Kw=";
+ hash = "sha256-4NBnwMrYufeZbgSiD2fAhe4tuy0aAA5u9tWwjQQjEQk=";
};
installPhase = ''
From be4069b7da7dfa754198bf158bd2a116ac74da25 Mon Sep 17 00:00:00 2001
From: x
Date: Tue, 22 Apr 2025 13:10:13 +0800
Subject: [PATCH 011/685] edusong: harmonize description and longDescription
with the other two MOE fonts
---
pkgs/by-name/ed/edusong/package.nix | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/pkgs/by-name/ed/edusong/package.nix b/pkgs/by-name/ed/edusong/package.nix
index 55da46ecbde1..bdd306c9b272 100644
--- a/pkgs/by-name/ed/edusong/package.nix
+++ b/pkgs/by-name/ed/edusong/package.nix
@@ -20,11 +20,9 @@ stdenvNoCC.mkDerivation rec {
'';
meta = {
- description = "The MOE Standard Song Font, a Chinese font by the Ministry of Education, ROC (Taiwan)";
+ description = "The MOE Song font, a Song-style Chinese character typeface";
longDescription = ''
- The MOE Standard Song Font is a Chinese Song font provided by
- the Midistry of Education, Republic of China (Taiwan).
- Song or Ming is a category of CKJ typefaces in print.
+ A Song-style Chinese character typeface published by the Ministry of Education of the Republic of China (Taiwan). The Song style is also referred to as 宋體, 宋体, sòngtǐ, 明體, 明体, or míngtǐ, in Chinese; 명조체, 明朝體, or myeongjo in Korean; 明朝体, みんちょうたい, or minchōtai in Japanese.
'';
homepage = "https://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=48";
license = lib.licenses.cc-by-nd-30;
From 00adb0968ce8592db442d4f30bf5a3494a45e101 Mon Sep 17 00:00:00 2001
From: x
Date: Tue, 22 Apr 2025 15:09:11 +0800
Subject: [PATCH 012/685] edusong: ensure correct filename in installPhase
fetchzip's unzipping the file without any special options will create a
file with garbled characters (mojibake) and 'invalid encoding' appended
to the filename. The original filename can be seen using unzipNLS with
option -O CP950. Also see
https://wiki.archlinux.org/title/Character_encoding#Troubleshooting.
---
pkgs/by-name/ed/edusong/package.nix | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkgs/by-name/ed/edusong/package.nix b/pkgs/by-name/ed/edusong/package.nix
index bdd306c9b272..dec473ccf5f0 100644
--- a/pkgs/by-name/ed/edusong/package.nix
+++ b/pkgs/by-name/ed/edusong/package.nix
@@ -16,7 +16,7 @@ stdenvNoCC.mkDerivation rec {
installPhase = ''
mkdir -p $out/share/fonts/
- mv *.ttf $out/share/fonts/
+ mv eduSong_Unicode*.ttf $out/share/fonts/eduSong_Unicode\(2024年12月\).ttf
'';
meta = {
From 8758e3fe227eedea2d0b012a955df813dfbb57dd Mon Sep 17 00:00:00 2001
From: Marcus Ramberg
Date: Mon, 14 Apr 2025 19:34:16 +0200
Subject: [PATCH 013/685] flashspace: 2.3.29 -> 3.3.39
---
pkgs/by-name/fl/flashspace/package.nix | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/pkgs/by-name/fl/flashspace/package.nix b/pkgs/by-name/fl/flashspace/package.nix
index 518eeeb1d39a..66418c005820 100644
--- a/pkgs/by-name/fl/flashspace/package.nix
+++ b/pkgs/by-name/fl/flashspace/package.nix
@@ -1,13 +1,12 @@
{
fetchzip,
- gitUpdater,
lib,
stdenv,
nix-update-script,
}:
let
- version = "2.3.29";
+ version = "3.3.39";
in
stdenv.mkDerivation {
pname = "flashspace";
@@ -16,7 +15,7 @@ stdenv.mkDerivation {
src = fetchzip {
url = "https://github.com/wojciech-kulik/FlashSpace/releases/download/v${version}/FlashSpace.app.zip";
- hash = "sha256-aBqlxIPPhx5GwNowf172Ko10g8RXnN7nIJaD3Zh4TPg=";
+ hash = "sha256-/mgdeRxaxq+oIjbbaxCSExHxyYqqWl80+6jPzPIhT4M=";
};
installPhase = ''
From 6f0e661871bd17afa272a24d580bb3d6dff7330a Mon Sep 17 00:00:00 2001
From: misilelab
Date: Sat, 3 May 2025 14:28:47 +0900
Subject: [PATCH 014/685] glab: 1.56.0 -> 1.57.0
https://gitlab.com/gitlab-org/cli/-/releases/v1.57.0
Signed-off-by: misilelab
---
pkgs/by-name/gl/glab/package.nix | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkgs/by-name/gl/glab/package.nix b/pkgs/by-name/gl/glab/package.nix
index 6f6b9c8b0390..a831142537c2 100644
--- a/pkgs/by-name/gl/glab/package.nix
+++ b/pkgs/by-name/gl/glab/package.nix
@@ -10,16 +10,16 @@
buildGoModule (finalAttrs: {
pname = "glab";
- version = "1.56.0";
+ version = "1.57.0";
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "cli";
rev = "v${finalAttrs.version}";
- hash = "sha256-dFyVhl4+WdQeoSZSY8JbkjJBhqOX/oN2b9q1CGlLhpc=";
+ hash = "sha256-a5gV47DP8+WOaMVcEWlTcriobnj74JTYKVDqYzJgGRU=";
};
- vendorHash = "sha256-m4IWtK2PNjs2UxzVCT2oSx6Gic2flN4Fq8w0mNIhHxo=";
+ vendorHash = "sha256-9NKY8CACcR70EdHGRWicROoA4khXYZjLPNd8A+VkjuY=";
ldflags = [
"-s"
From 60c8081932c417f6fe37f964e3e7b0ce92532bf5 Mon Sep 17 00:00:00 2001
From: emaryn
Date: Fri, 2 May 2025 23:01:13 +0800
Subject: [PATCH 015/685] instead: 3.3.2 -> 3.5.2
---
pkgs/by-name/in/instead/package.nix | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/pkgs/by-name/in/instead/package.nix b/pkgs/by-name/in/instead/package.nix
index d5dd0588c017..3dee5046b5c1 100644
--- a/pkgs/by-name/in/instead/package.nix
+++ b/pkgs/by-name/in/instead/package.nix
@@ -38,13 +38,13 @@ let
];
in
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
pname = "instead";
- version = "3.3.2";
+ version = "3.5.2";
src = fetchurl {
- url = "mirror://sourceforge/project/instead/instead/${version}/instead_${version}.tar.gz";
- sha256 = "u5j2kDKRvMQPsG8iA6uOBScuyE/e1BJIK2+qVL6jqQs=";
+ url = "mirror://sourceforge/project/instead/instead/${finalAttrs.version}/instead_${finalAttrs.version}.tar.gz";
+ hash = "sha256-d5BvzZCZ3P5CLptuCuJ4KxfEp4CDbtmIZDIbGDcyV3o=";
};
NIX_LDFLAGS = "-llua -lgcc_s";
@@ -53,6 +53,7 @@ stdenv.mkDerivation rec {
pkg-config
unzip
];
+
buildInputs = [
SDL2
SDL2_ttf
@@ -64,11 +65,15 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace configure.sh \
- --replace "/tmp/sdl-test" $(mktemp)
+ --replace-fail "/tmp/sdl-test" $(mktemp)
'';
configurePhase = ''
+ runHook preConfigure
+
{ echo 2; echo $out; } | ./configure.sh
+
+ runHook postConfigure
'';
inherit games;
@@ -83,11 +88,11 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
- meta = with lib; {
+ meta = {
description = "Simple text adventure interpreter for Unix and Windows";
homepage = "https://instead.syscall.ru/";
license = lib.licenses.mit;
platforms = with lib.platforms; linux;
- maintainers = with maintainers; [ pSub ];
+ maintainers = with lib.maintainers; [ pSub ];
};
-}
+})
From 5781ef6de9ff4d3ed6b8ce2f8526825878a850aa Mon Sep 17 00:00:00 2001
From: Charlie Moog
Date: Mon, 28 Apr 2025 10:41:52 -0700
Subject: [PATCH 016/685] nixos/systemd/networkd: allow passing flow control
fields to link
---
nixos/modules/system/boot/networkd.nix | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 89d967ccc0bf..8ac3df70df97 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -100,6 +100,9 @@ let
"ReceiveQueues"
"TransmitQueues"
"TransmitQueueLength"
+ "RxFlowControl"
+ "TxFlowControl"
+ "AutoNegotiationFlowControl"
])
(assertValueOneOf "MACAddressPolicy" [
"persistent"
@@ -137,6 +140,9 @@ let
(assertValueOneOf "GenericSegmentationOffload" boolValues)
(assertValueOneOf "GenericReceiveOffload" boolValues)
(assertValueOneOf "LargeReceiveOffload" boolValues)
+ (assertValueOneOf "RxFlowControl" boolValues)
+ (assertValueOneOf "TxFlowControl" boolValues)
+ (assertValueOneOf "AutoNegotiationFlowControl" boolValues)
(assertInt "RxChannels")
(assertRange "RxChannels" 1 4294967295)
(assertInt "TxChannels")
From 1b71ecce98809f9cbacfb968775e293675b8e657 Mon Sep 17 00:00:00 2001
From: Anton Mosich
Date: Sun, 4 May 2025 14:28:27 +0200
Subject: [PATCH 017/685] ncdu_1: 1.18.1 -> 1.22
Changelog: https://dev.yorhel.nl/ncdu/changes
---
pkgs/tools/misc/ncdu/1.nix | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/pkgs/tools/misc/ncdu/1.nix b/pkgs/tools/misc/ncdu/1.nix
index fde4411d393c..d69ac1e952de 100644
--- a/pkgs/tools/misc/ncdu/1.nix
+++ b/pkgs/tools/misc/ncdu/1.nix
@@ -2,18 +2,21 @@
lib,
stdenv,
fetchurl,
+ pkg-config,
ncurses,
}:
stdenv.mkDerivation rec {
pname = "ncdu";
- version = "1.18.1";
+ version = "1.22";
src = fetchurl {
url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
- sha256 = "sha256-fA+h6ynYWq7UuhdBZL27jwEbXDkNAXxX1mj8cjEzJAU=";
+ sha256 = "sha256-CtbAltwE1RIFgRBHYMAbj06X1BkdbJ73llT6PGkaF2s=";
};
+ nativeBuildInputs = [ pkg-config ];
+
buildInputs = [ ncurses ];
meta = with lib; {
From f5871d0d3a91f6acbf25f4a046c19612acd46645 Mon Sep 17 00:00:00 2001
From: Anton Mosich
Date: Sun, 4 May 2025 14:29:08 +0200
Subject: [PATCH 018/685] ncdu_1: modernize
---
pkgs/tools/misc/ncdu/1.nix | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/pkgs/tools/misc/ncdu/1.nix b/pkgs/tools/misc/ncdu/1.nix
index d69ac1e952de..b4f3de7afabf 100644
--- a/pkgs/tools/misc/ncdu/1.nix
+++ b/pkgs/tools/misc/ncdu/1.nix
@@ -4,14 +4,15 @@
fetchurl,
pkg-config,
ncurses,
+ versionCheckHook,
}:
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
pname = "ncdu";
version = "1.22";
src = fetchurl {
- url = "https://dev.yorhel.nl/download/${pname}-${version}.tar.gz";
+ url = "https://dev.yorhel.nl/download/ncdu-${finalAttrs.version}.tar.gz";
sha256 = "sha256-CtbAltwE1RIFgRBHYMAbj06X1BkdbJ73llT6PGkaF2s=";
};
@@ -19,12 +20,15 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses ];
- meta = with lib; {
+ nativeInstallCheckInputs = [ versionCheckHook ];
+ doInstallCheck = true;
+
+ meta = {
description = "Disk usage analyzer with an ncurses interface";
homepage = "https://dev.yorhel.nl/ncdu";
- license = licenses.mit;
- platforms = platforms.all;
- maintainers = with maintainers; [ pSub ];
+ license = lib.licenses.mit;
+ platforms = lib.platforms.all;
+ maintainers = with lib.maintainers; [ pSub ];
mainProgram = "ncdu";
};
-}
+})
From c0826d818e47d5b98d3c2310543f3e6ef284aa36 Mon Sep 17 00:00:00 2001
From: Keenan Weaver
Date: Mon, 5 May 2025 19:17:59 -0500
Subject: [PATCH 019/685] soundfont-generaluser: 1.471 ->
2.0.2-unstable-2025-04-21, adopt and modernize
---
.../so/soundfont-generaluser/package.nix | 32 ++++++++++---------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/pkgs/by-name/so/soundfont-generaluser/package.nix b/pkgs/by-name/so/soundfont-generaluser/package.nix
index df1a24af9589..72be24893163 100644
--- a/pkgs/by-name/so/soundfont-generaluser/package.nix
+++ b/pkgs/by-name/so/soundfont-generaluser/package.nix
@@ -1,29 +1,31 @@
{
lib,
stdenv,
- fetchzip,
+ fetchFromGitHub,
}:
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
pname = "generaluser";
- version = "1.471";
+ version = "2.0.2-unstable-2025-04-21";
- # we can't use fetchurl since stdenv does not handle unpacking *.zip's by default.
- src = fetchzip {
- # Linked on https://www.schristiancollins.com/generaluser.php:
- url = "https://www.dropbox.com/s/4x27l49kxcwamp5/GeneralUser_GS_${version}.zip";
- sha256 = "sha256-lwUlWubXiVZ8fijKuNF54YQjT0uigjNAbjKaNjmC51s=";
+ src = fetchFromGitHub {
+ owner = "mrbumpy409";
+ repo = "GeneralUser-GS";
+ rev = "74d4cfe4042a61ddab17d4f86dbccd9d2570eb2a";
+ hash = "sha256-I27l8F/BFAo6YSNbtAV14AKVsPIJTHFG2eGudseWmjo=";
};
installPhase = ''
- install -Dm644 GeneralUser*.sf2 $out/share/soundfonts/GeneralUser-GS.sf2
+ runHook preInstall
+ install -Dm644 $src/GeneralUser-GS.sf2 $out/share/soundfonts/GeneralUser-GS.sf2
+ runHook postInstall
'';
- meta = with lib; {
- description = "SoundFont bank featuring 259 instrument presets and 11 drum kits";
+ meta = {
+ description = "General MIDI SoundFont with a low memory footprint";
homepage = "https://www.schristiancollins.com/generaluser.php";
- license = licenses.generaluser;
- platforms = platforms.all;
- maintainers = [ ];
+ license = lib.licenses.generaluser;
+ maintainers = with lib.maintainers; [ keenanweaver ];
+ platforms = lib.platforms.all;
};
-}
+})
From 721bd297b16f8a5c113f387af9f2620fc8e5af76 Mon Sep 17 00:00:00 2001
From: Weijia Wang <9713184+wegank@users.noreply.github.com>
Date: Tue, 6 May 2025 15:45:16 +0200
Subject: [PATCH 020/685] perlPackages.UUID4Tiny: add loongarch64 and riscv64
support
---
pkgs/top-level/perl-packages.nix | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index b1543f44f992..60d227fd28da 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -37577,12 +37577,17 @@ with self;
url = "mirror://cpan/authors/id/C/CV/CVLIBRARY/UUID4-Tiny-0.003.tar.gz";
hash = "sha256-4S9sgrg1dcORd3O0HA+1HPeDx8bPcuDJkWks4u8Hg2I=";
};
- postPatch = lib.optionalString (stdenv.hostPlatform.isAarch64) ''
- # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h
- # printf SYS_getrandom | gcc -include sys/syscall.h -E -
- substituteInPlace lib/UUID4/Tiny.pm \
- --replace "syscall( 318" "syscall( 278"
- '';
+ postPatch =
+ lib.optionalString
+ (
+ stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isLoongArch64 || stdenv.hostPlatform.isRiscV64
+ )
+ ''
+ # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h
+ # printf SYS_getrandom | gcc -include sys/syscall.h -E -
+ substituteInPlace lib/UUID4/Tiny.pm \
+ --replace "syscall( 318" "syscall( 278"
+ '';
meta = {
description = "Cryptographically secure v4 UUIDs for Linux x64";
license = with lib.licenses; [
From 66afc79dcdf2c74a0704bc648dc1c44cf1117608 Mon Sep 17 00:00:00 2001
From: squat
Date: Tue, 6 May 2025 17:31:33 +0200
Subject: [PATCH 021/685] spicedb: add shell completion
This commit adds shell completion for bash, fish, and zsh to both
spicedb and zed, leveraging their `completion` subcommands with bash
process substitution.
Signed-off-by: squat
---
pkgs/servers/spicedb/default.nix | 10 ++++++++++
pkgs/servers/spicedb/zed.nix | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/pkgs/servers/spicedb/default.nix b/pkgs/servers/spicedb/default.nix
index 414466335bb5..88955ec0ea0a 100644
--- a/pkgs/servers/spicedb/default.nix
+++ b/pkgs/servers/spicedb/default.nix
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
+ installShellFiles,
}:
buildGoModule rec {
@@ -23,6 +24,15 @@ buildGoModule rec {
subPackages = [ "cmd/spicedb" ];
+ nativeBuildInputs = [ installShellFiles ];
+
+ postInstall = ''
+ installShellCompletion --cmd spicedb \
+ --bash <($out/bin/spicedb completion bash) \
+ --fish <($out/bin/spicedb completion fish) \
+ --zsh <($out/bin/spicedb completion zsh)
+ '';
+
meta = with lib; {
description = "Open source permission database";
longDescription = ''
diff --git a/pkgs/servers/spicedb/zed.nix b/pkgs/servers/spicedb/zed.nix
index f7ae38c731c0..77327cde0805 100644
--- a/pkgs/servers/spicedb/zed.nix
+++ b/pkgs/servers/spicedb/zed.nix
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
+ installShellFiles,
}:
buildGoModule rec {
@@ -21,6 +22,15 @@ buildGoModule rec {
"-X 'github.com/jzelinskie/cobrautil/v2.Version=${src.rev}'"
];
+ nativeBuildInputs = [ installShellFiles ];
+
+ postInstall = ''
+ installShellCompletion --cmd zed \
+ --bash <($out/bin/zed completion bash) \
+ --fish <($out/bin/zed completion fish) \
+ --zsh <($out/bin/zed completion zsh)
+ '';
+
meta = with lib; {
description = "Command line for managing SpiceDB";
mainProgram = "zed";
From d7626b2f9579680ff6c75cf0a3f5e5bfc2c8169c Mon Sep 17 00:00:00 2001
From: Sergei Lukianov
Date: Wed, 7 May 2025 15:59:00 -0700
Subject: [PATCH 022/685] asus-wmi-sensors: drop
This driver has been integrated into the kernel mainline as of version
5.17: https://github.com/electrified/asus-wmi-sensors
ZHF: https://hydra.nixos.org/build/296172908
Signed-off-by: Sergei Lukianov
---
.../linux/asus-wmi-sensors/default.nix | 45 -------------------
pkgs/top-level/linux-kernels.nix | 2 -
2 files changed, 47 deletions(-)
delete mode 100644 pkgs/os-specific/linux/asus-wmi-sensors/default.nix
diff --git a/pkgs/os-specific/linux/asus-wmi-sensors/default.nix b/pkgs/os-specific/linux/asus-wmi-sensors/default.nix
deleted file mode 100644
index c73086722de5..000000000000
--- a/pkgs/os-specific/linux/asus-wmi-sensors/default.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- lib,
- stdenv,
- fetchFromGitHub,
- kernel,
-}:
-
-stdenv.mkDerivation rec {
- name = "asus-wmi-sensors-${version}-${kernel.version}";
- version = "unstable-2019-11-07";
-
- # The original was deleted from github, but this seems to be an active fork
- src = fetchFromGitHub {
- owner = "electrified";
- repo = "asus-wmi-sensors";
- rev = "8daafd45d1b860cf5b17eee1c94d93feb04164a9";
- sha256 = "0kc0xlrsmf783ln5bqyj6qxzmrhdxdfdd2b9ygf2lbl2153i04vc";
- };
-
- hardeningDisable = [ "pic" ];
-
- nativeBuildInputs = kernel.moduleBuildDependencies;
-
- preConfigure = ''
- sed -i 's|depmod|#depmod|' Makefile
- '';
-
- makeFlags = [
- "TARGET=${kernel.modDirVersion}"
- "KERNEL_MODULES=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
- "MODDESTDIR=${placeholder "out"}/lib/modules/${kernel.modDirVersion}/kernel/drivers/hwmon"
- ];
-
- meta = with lib; {
- description = "Linux HWMON (lmsensors) sensors driver for various ASUS Ryzen and Threadripper motherboards";
- homepage = "https://github.com/electrified/asus-wmi-sensors";
- license = licenses.gpl2Only;
- platforms = [
- "x86_64-linux"
- "i686-linux"
- ];
- maintainers = with maintainers; [ Frostman ];
- broken = versionOlder kernel.version "4.12";
- };
-}
diff --git a/pkgs/top-level/linux-kernels.nix b/pkgs/top-level/linux-kernels.nix
index 900ef2f76a26..cc788db89b96 100644
--- a/pkgs/top-level/linux-kernels.nix
+++ b/pkgs/top-level/linux-kernels.nix
@@ -461,8 +461,6 @@ in
asus-ec-sensors = callPackage ../os-specific/linux/asus-ec-sensors { };
- asus-wmi-sensors = callPackage ../os-specific/linux/asus-wmi-sensors { };
-
ena = callPackage ../os-specific/linux/ena { };
lenovo-legion-module = callPackage ../os-specific/linux/lenovo-legion { };
From 190b4b2f2f9b816bd11acdb71fe5bdfd673a333d Mon Sep 17 00:00:00 2001
From: Amadej Kastelic
Date: Thu, 8 May 2025 12:37:53 +0200
Subject: [PATCH 023/685] python3Packages.gst-python: fix darwin build
---
pkgs/development/python-modules/gst-python/default.nix | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pkgs/development/python-modules/gst-python/default.nix b/pkgs/development/python-modules/gst-python/default.nix
index 301da0fc46dd..2c8d9818f9bb 100644
--- a/pkgs/development/python-modules/gst-python/default.nix
+++ b/pkgs/development/python-modules/gst-python/default.nix
@@ -1,5 +1,6 @@
{
lib,
+ stdenv,
buildPythonPackage,
fetchurl,
fetchpatch,
@@ -78,6 +79,10 @@ buildPythonPackage rec {
# https://github.com/NixOS/nixpkgs/issues/47390
installCheckPhase = "meson test --print-errorlogs";
+ preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
+ export DYLD_LIBRARY_PATH="${gst_all_1.gst-plugins-base}/lib"
+ '';
+
passthru = {
updateScript = directoryListingUpdater { };
};
From ae078850cc437c3301b7b93c3820247dcf5dec0c Mon Sep 17 00:00:00 2001
From: emaryn
Date: Fri, 9 May 2025 12:56:30 +0800
Subject: [PATCH 024/685] museeks: 0.13.1 -> 0.20.9
Diff: https://github.com/martpie/museeks/compare/0.13.1...0.20.9
---
pkgs/by-name/mu/museeks/package.nix | 63 +++++++++++++++++++----------
1 file changed, 41 insertions(+), 22 deletions(-)
diff --git a/pkgs/by-name/mu/museeks/package.nix b/pkgs/by-name/mu/museeks/package.nix
index eb551c222a8b..86d0f0e85459 100644
--- a/pkgs/by-name/mu/museeks/package.nix
+++ b/pkgs/by-name/mu/museeks/package.nix
@@ -1,41 +1,60 @@
{
lib,
+ stdenv,
fetchurl,
- appimageTools,
+ dpkg,
+ autoPatchelfHook,
+ webkitgtk_4_1,
+ libsoup_3,
+ glib,
+ gtk3,
+ cairo,
+ dbus,
+ gdk-pixbuf,
+ nix-update-script,
}:
-let
+stdenv.mkDerivation (finalAttrs: {
pname = "museeks";
- version = "0.13.1";
+ version = "0.20.9";
src = fetchurl {
- url = "https://github.com/martpie/museeks/releases/download/${version}/museeks-x86_64.AppImage";
- hash = "sha256-LvunhCFmpv00TnXzWjp3kQUAhoKpmp6pqKgcaUqZV+o=";
+ url = "https://github.com/martpie/museeks/releases/download/${finalAttrs.version}/Museeks_${finalAttrs.version}_amd64.deb";
+ hash = "sha256-7jRgMpfQTJr3yW3YAPTnPSvtrqumScN3Tr7YXQX3Fi8=";
};
- appimageContents = appimageTools.extractType2 {
- inherit pname version src;
- };
-in
-appimageTools.wrapType2 {
- inherit pname version src;
+ nativeBuildInputs = [
+ dpkg
+ autoPatchelfHook
+ ];
- extraInstallCommands = ''
- mkdir -p $out/share/${pname}
- cp -a ${appimageContents}/{locales,resources} $out/share/${pname}
- cp -a ${appimageContents}/usr/share/icons $out/share/
- install -Dm 444 ${appimageContents}/${pname}.desktop -t $out/share/applications
+ buildInputs = [
+ dbus
+ webkitgtk_4_1
+ libsoup_3
+ gtk3
+ cairo
+ gdk-pixbuf
+ glib
+ (lib.getLib stdenv.cc.cc)
+ ];
- substituteInPlace $out/share/applications/${pname}.desktop \
- --replace 'Exec=AppRun' 'Exec=${pname}'
+ installPhase = ''
+ runHook preInstall
+
+ cp -r usr $out
+
+ runHook postInstall
'';
- meta = with lib; {
+ passthru.updateScript = nix-update-script { };
+
+ meta = {
description = "Simple, clean and cross-platform music player";
homepage = "https://github.com/martpie/museeks";
- license = licenses.mit;
+ license = lib.licenses.mit;
platforms = [ "x86_64-linux" ];
- maintainers = with maintainers; [ zendo ];
+ maintainers = with lib.maintainers; [ zendo ];
mainProgram = "museeks";
};
-}
+})
From 321d3dbbbdd5544060453e89dd222c7e6527862e Mon Sep 17 00:00:00 2001
From: Josh Heinrichs
Date: Wed, 23 Apr 2025 16:47:30 -0600
Subject: [PATCH 025/685] percona-server_8_0: fix compiling on darwin
Currently percona-server_8_0 fails to compile on Darwin for a few
reasons. First it hits an error due to adding multiple copies of
OpenSSL[1] which Homebrew has fixed and attempted to upstream[2][3].
After addressing that, it fails to compile due to the removal of
std::char_traits in LLVM 19. This has already been patched in
mysql80[4], but I couldn't find a precedent for grabbing patches from
another package, so I opted to adapt the patch instead. The
Percona-specific changes are minimal and could be extracted into a
separate patch if that's desirable.
[1] https://perconadev.atlassian.net/jira/software/c/projects/PS/issues/PS-9641
[2] https://github.com/percona/percona-server/pull/5537
[3] https://github.com/Homebrew/homebrew-core/pull/204799
[4] https://github.com/NixOS/nixpkgs/pull/374591
---
pkgs/servers/sql/percona-server/8_0.nix | 10 +
.../sql/percona-server/libcpp-fixes.patch | 207 ++++++++++++++++++
2 files changed, 217 insertions(+)
create mode 100644 pkgs/servers/sql/percona-server/libcpp-fixes.patch
diff --git a/pkgs/servers/sql/percona-server/8_0.nix b/pkgs/servers/sql/percona-server/8_0.nix
index d64e5c445b03..d0762c3cd7df 100644
--- a/pkgs/servers/sql/percona-server/8_0.nix
+++ b/pkgs/servers/sql/percona-server/8_0.nix
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
+ fetchpatch,
gitUpdater,
bison,
cmake,
@@ -62,6 +63,15 @@ stdenv.mkDerivation (finalAttrs: {
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ];
patches = [
+ # adapted from mysql80's llvm 19 fixes
+ ./libcpp-fixes.patch
+ # fixes using -DWITH_SSL=system with CMAKE_PREFIX_PATH on darwin
+ # https://github.com/Homebrew/homebrew-core/pull/204799
+ (fetchpatch {
+ name = "fix-system-ssl-darwin.patch";
+ url = "https://github.com/percona/percona-server/pull/5537/commits/a693e5d67abf6f27f5284c86361604babec529c6.patch";
+ hash = "sha256-fFBy3AYTMLvHvbsh0g0UvuPkmVMKZzxPsxeBKbsN8Ho=";
+ })
./no-force-outline-atomics.patch # Do not force compilers to turn on -moutline-atomics switch
./coredumper-explicitly-import-unistd.patch # fix build on aarch64-linux
];
diff --git a/pkgs/servers/sql/percona-server/libcpp-fixes.patch b/pkgs/servers/sql/percona-server/libcpp-fixes.patch
new file mode 100644
index 000000000000..7e8de096415e
--- /dev/null
+++ b/pkgs/servers/sql/percona-server/libcpp-fixes.patch
@@ -0,0 +1,207 @@
+diff --git a/include/my_char_traits.h b/include/my_char_traits.h
+new file mode 100644
+index 00000000000..6336bc039c8
+--- /dev/null
++++ b/include/my_char_traits.h
+@@ -0,0 +1,65 @@
++/* Copyright (c) 2024, Oracle and/or its affiliates.
++
++ This program is free software; you can redistribute it and/or modify
++ it under the terms of the GNU General Public License, version 2.0,
++ as published by the Free Software Foundation.
++
++ This program is designed to work with certain software (including
++ but not limited to OpenSSL) that is licensed under separate terms,
++ as designated in a particular file or component or in included license
++ documentation. The authors of MySQL hereby grant you an additional
++ permission to link the program and your derivative works with the
++ separately licensed software that they have either included with
++ the program or referenced in the documentation.
++
++ This program is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ GNU General Public License, version 2.0, for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with this program; if not, write to the Free Software
++ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
++
++#ifndef MY_CHAR_TRAITS_INCLUDED
++#define MY_CHAR_TRAITS_INCLUDED
++
++#include
++
++template
++struct my_char_traits;
++
++/*
++ This is a standards-compliant, drop-in replacement for
++ std::char_traits
++ We need this because clang libc++ is removing support for it in clang 19.
++ It is not a complete implementation. Rather we implement just enough to
++ compile any usage of char_traits we have in our codebase.
++ */
++template <>
++struct my_char_traits {
++ using char_type = unsigned char;
++ using int_type = unsigned int;
++
++ static void assign(char_type &c1, const char_type &c2) { c1 = c2; }
++
++ static char_type *assign(char_type *s, std::size_t n, char_type a) {
++ return static_cast(memset(s, a, n));
++ }
++
++ static int compare(const char_type *s1, const char_type *s2, std::size_t n) {
++ return memcmp(s1, s2, n);
++ }
++
++ static char_type *move(char_type *s1, const char_type *s2, std::size_t n) {
++ if (n == 0) return s1;
++ return static_cast(memmove(s1, s2, n));
++ }
++
++ static char_type *copy(char_type *s1, const char_type *s2, std::size_t n) {
++ if (n == 0) return s1;
++ return static_cast(memcpy(s1, s2, n));
++ }
++};
++
++#endif // MY_CHAR_TRAITS_INCLUDED
+diff --git a/sql/mdl_context_backup.h b/sql/mdl_context_backup.h
+index 89e7e23df34..cf9c307ec2d 100644
+--- a/sql/mdl_context_backup.h
++++ b/sql/mdl_context_backup.h
+@@ -28,6 +28,7 @@
+ #include