From b8abbbf7b3d8ef72b84bdfaa8369c1694c8655c6 Mon Sep 17 00:00:00 2001 From: Vonfry Date: Tue, 23 Apr 2024 18:43:52 +0800 Subject: [PATCH 001/114] tdlib: 1.8.27 -> 1.8.28 --- pkgs/development/libraries/tdlib/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/tdlib/default.nix b/pkgs/development/libraries/tdlib/default.nix index 920b8467bc99..0d60f0412267 100644 --- a/pkgs/development/libraries/tdlib/default.nix +++ b/pkgs/development/libraries/tdlib/default.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation { pname = "tdlib"; - version = "1.8.27"; + version = "1.8.28"; src = fetchFromGitHub { owner = "tdlib"; @@ -11,8 +11,8 @@ stdenv.mkDerivation { # The tdlib authors do not set tags for minor versions, but # external programs depending on tdlib constrain the minor # version, hence we set a specific commit with a known version. - rev = "efc6bd553b61dea0ae8c0436695e8d2539bf03f9"; - hash = "sha256-AHfuT+bLkc8Lm1B96E/kwUx1ZKStQbv/skH8woRITRk="; + rev = "38d31da77a72619cf7ec5d479338a48274cc7446"; + hash = "sha256-y6Gt8gDfvIBJd/2O4vTs38DzAPyL9pAZBbrf2qcv9cY="; }; buildInputs = [ gperf openssl readline zlib ]; From 001ed29519b178e4c0b8add95998eede4bc46492 Mon Sep 17 00:00:00 2001 From: D3vil0p3r Date: Sun, 11 Feb 2024 18:53:37 +0100 Subject: [PATCH 002/114] dbd: init at 1.50-unstable-2016-01-04 --- pkgs/by-name/db/dbd/package.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/db/dbd/package.nix diff --git a/pkgs/by-name/db/dbd/package.nix b/pkgs/by-name/db/dbd/package.nix new file mode 100644 index 000000000000..20658b4d716d --- /dev/null +++ b/pkgs/by-name/db/dbd/package.nix @@ -0,0 +1,30 @@ +{ lib +, stdenv +, fetchFromGitHub +}: + +stdenv.mkDerivation { + pname = "dbd"; + version = "1.50-unstable-2016-01-04"; + + src = fetchFromGitHub { + owner = "gitdurandal"; + repo = "dbd"; + rev = "8cf5350781b6753fcdd863148a5dcc6976e693ca"; + hash = "sha256-b2yBZ2/Ab+SviKNlyZgdfiZ7GGZ1sonZnblD0i+vuFw="; + }; + + makeFlags = [ + "PREFIX=${placeholder "out"}" + "CC=${stdenv.cc.targetPrefix}cc" + ] ++ lib.optionals stdenv.isDarwin [ "darwin" ] ++ lib.optionals (stdenv.hostPlatform.isUnix && !stdenv.isDarwin) [ "unix" ]; + + meta = with lib; { + description = "Netcat-clone, designed to be portable and offer strong encryption"; + mainProgram = "dbd"; + homepage = "https://github.com/gitdurandal/dbd"; + maintainers = with maintainers; [ d3vil0p3r ]; + platforms = platforms.unix; + license = licenses.gpl2Plus; + }; +} From 5d66721a92942592fb52639460079f3aa344502a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 1 May 2024 23:33:04 +0000 Subject: [PATCH 003/114] scotch: 6.1.1 -> 7.0.4 --- pkgs/by-name/sc/scotch/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sc/scotch/package.nix b/pkgs/by-name/sc/scotch/package.nix index 7a93705cd914..a76eb47c014f 100644 --- a/pkgs/by-name/sc/scotch/package.nix +++ b/pkgs/by-name/sc/scotch/package.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "scotch"; - version = "6.1.1"; + version = "7.0.4"; buildInputs = [ bison @@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "scotch"; repo = "scotch"; rev = "v${finalAttrs.version}"; - hash = "sha256-GUV6s+P56OAJq9AMe+LZOMPICQO/RuIi+hJAecmO5Wc="; + hash = "sha256-uaox4Q9pTF1r2BZjvnU2LE6XkZw3x9mGSKLdRVUobGU="; }; preConfigure = '' From 97057551543ba76f35373b9d8ba3a0074d85bdf2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 2 May 2024 04:20:33 +0000 Subject: [PATCH 004/114] opensmtpd: 7.4.0p0 -> 7.5.0p0 --- pkgs/servers/mail/opensmtpd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mail/opensmtpd/default.nix b/pkgs/servers/mail/opensmtpd/default.nix index f93bc857116f..c642c62be1ce 100644 --- a/pkgs/servers/mail/opensmtpd/default.nix +++ b/pkgs/servers/mail/opensmtpd/default.nix @@ -18,14 +18,14 @@ stdenv.mkDerivation rec { pname = "opensmtpd"; - version = "7.4.0p0"; + version = "7.5.0p0"; nativeBuildInputs = [ autoreconfHook autoconf-archive pkgconf libtool bison ]; buildInputs = [ libevent zlib libressl db pam libxcrypt ]; src = fetchurl { url = "https://www.opensmtpd.org/archives/${pname}-${version}.tar.gz"; - hash = "sha256-wYHMw0NKEeWDYZ4AAoUg1Ff+Bi403AO+6jWAeCIM43Q="; + hash = "sha256-hPXBOTwMG+zHLO6pceCr1wdbLKfk4fiQm4Pt/Y3gw5w="; }; patches = [ From 0220f7ccc2d3b7df299e28435f208b42572ffe1e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 4 May 2024 00:16:24 +0000 Subject: [PATCH 005/114] catboost: 1.2.3 -> 1.2.5 --- pkgs/development/libraries/catboost/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/catboost/default.nix b/pkgs/development/libraries/catboost/default.nix index 6da5885223a6..b4fa78a12526 100644 --- a/pkgs/development/libraries/catboost/default.nix +++ b/pkgs/development/libraries/catboost/default.nix @@ -22,13 +22,13 @@ in stdenv.mkDerivation (finalAttrs: { pname = "catboost"; - version = "1.2.3"; + version = "1.2.5"; src = fetchFromGitHub { owner = "catboost"; repo = "catboost"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-wn9STnpqX3zmdxPmMYAz9JPdg13Goux76CMaCiqohk8="; + hash = "sha256-2dfCCCa0LheytkLRbYuBd25M320f1kbhBWKIVjslor0="; }; patches = [ From 22a7de63547f38571243d9275f355db38df5699a Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 4 May 2024 14:45:24 -0700 Subject: [PATCH 006/114] plasma6: mark dolphin + spectacle as optional packages --- nixos/modules/services/desktop-managers/plasma6.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/desktop-managers/plasma6.nix b/nixos/modules/services/desktop-managers/plasma6.nix index 08507b4d370a..a1baf54024d6 100644 --- a/nixos/modules/services/desktop-managers/plasma6.nix +++ b/nixos/modules/services/desktop-managers/plasma6.nix @@ -135,14 +135,11 @@ in { ksystemstats libksysguard - spectacle systemsettings kcmutils # Gear baloo - dolphin - dolphin-plugins ffmpegthumbs kdegraphics-thumbnailers kde-inotify-survey @@ -154,7 +151,6 @@ in { plasma-browser-integration konsole (lib.getBin qttools) # Expose qdbus in PATH - ark elisa gwenview @@ -162,6 +158,9 @@ in { kate khelpcenter print-manager + dolphin + dolphin-plugins + spectacle ]; in requiredPackages From 0a8f72f2ed23fb0dfce42f6076ca9a5995f6b5d1 Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 4 May 2024 17:59:25 -0700 Subject: [PATCH 007/114] plasma6: reorganize & describe dependencies --- .../services/desktop-managers/plasma6.nix | 42 +++++++------------ 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/nixos/modules/services/desktop-managers/plasma6.nix b/nixos/modules/services/desktop-managers/plasma6.nix index a1baf54024d6..43f6b3a6485a 100644 --- a/nixos/modules/services/desktop-managers/plasma6.nix +++ b/nixos/modules/services/desktop-managers/plasma6.nix @@ -60,10 +60,8 @@ in { qt.enable = true; environment.systemPackages = with kdePackages; let requiredPackages = [ - # Hack? To make everything run on Wayland - qtwayland - # Needed to render SVG icons - qtsvg + qtwayland # Hack? To make everything run on Wayland + qtsvg # Needed to render SVG icons # Frameworks with globally loadable bits frameworkintegration # provides Qt plugin @@ -75,6 +73,9 @@ in { kiconthemes # provides Qt plugins kimageformats # provides Qt plugins kio # provides helper service + a bunch of other stuff + kio-admin # managing files as admin + kio-extras # stuff for MTP, AFC, etc + kio-fuse # fuse interaction kpackage # provides kpackagetool tool kservice # provides kbuildsycoca6 tool kwallet # provides helper service @@ -87,30 +88,27 @@ in { # Core Plasma parts kwin pkgs.xwayland - kscreen libkscreen - kscreenlocker - kactivitymanagerd kde-cli-tools - kglobalacceld + kglobalacceld # keyboard shortcut daemon kwrited # wall message proxy, not to be confused with kwrite - - milou - polkit-kde-agent-1 - + baloo # system indexer + milou # search engine atop baloo + ffmpegthumbs # video thumbnailer + kdegraphics-thumbnailers # pdf etc thumbnailer + polkit-kde-agent-1 # polkit auth ui plasma-desktop plasma-workspace - - # Crash handler - drkonqi + drkonqi # crash handler + kde-inotify-survey # handles running out of inodes # Application integration libplasma # provides Kirigami platform theme plasma-integration # provides Qt platform theme - kde-gtk-config + kde-gtk-config # syncs KDE settings to GTK # Artwork + themes breeze @@ -124,28 +122,16 @@ in { # misc Plasma extras kdeplasma-addons - pkgs.xdg-user-dirs # recommended upstream # Plasma utilities kmenuedit - kinfocenter plasma-systemmonitor ksystemstats libksysguard - systemsettings kcmutils - - # Gear - baloo - ffmpegthumbs - kdegraphics-thumbnailers - kde-inotify-survey - kio-admin - kio-extras - kio-fuse ]; optionalPackages = [ plasma-browser-integration From 5ee714da81a4e979ce6737e257b505880ed7586a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 6 May 2024 03:46:27 +0000 Subject: [PATCH 008/114] promptfoo: 0.55.0 -> 0.57.1 --- pkgs/by-name/pr/promptfoo/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/pr/promptfoo/package.nix b/pkgs/by-name/pr/promptfoo/package.nix index f6859c50f14e..34a76e5b4584 100644 --- a/pkgs/by-name/pr/promptfoo/package.nix +++ b/pkgs/by-name/pr/promptfoo/package.nix @@ -5,16 +5,16 @@ buildNpmPackage rec { pname = "promptfoo"; - version = "0.55.0"; + version = "0.57.1"; src = fetchFromGitHub { owner = "promptfoo"; repo = "promptfoo"; rev = "${version}"; - hash = "sha256-XQnsOr+L2MCKPzZeIKzx4XjWF6B18gBVDU0j31CgjUc="; + hash = "sha256-YjVnQmDfc6KBykAHPcRoM88Njlb6odhKWR0ZgFQSkVs="; }; - npmDepsHash = "sha256-f7tlRZHjdeIk17hQhzmIbhMwUkoca3J+F65cr0dvSmU="; + npmDepsHash = "sha256-sgcMtWPsikAuMCZ1h5IV4Ly+lO3/OKkTzGm8iFx3HiM="; dontNpmBuild = true; From 2be8d75ed6df7e0bb51554a68278c5302cebaf02 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 10 May 2024 08:14:18 +0000 Subject: [PATCH 009/114] libnbd: 1.18.2 -> 1.20.1 --- pkgs/development/libraries/libnbd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libnbd/default.nix b/pkgs/development/libraries/libnbd/default.nix index 5889c8ef12d5..7a2e358d572b 100644 --- a/pkgs/development/libraries/libnbd/default.nix +++ b/pkgs/development/libraries/libnbd/default.nix @@ -12,11 +12,11 @@ stdenv.mkDerivation rec { pname = "libnbd"; - version = "1.18.2"; + version = "1.20.1"; src = fetchurl { url = "https://download.libguestfs.org/libnbd/${lib.versions.majorMinor version}-stable/${pname}-${version}.tar.gz"; - hash = "sha256-OYtNHAIGgwJuapoJNEMVkurUK9bQ7KO+V223bGC0TFI="; + hash = "sha256-AoTfX6Ov9Trj9a9i+K+NYCwxhQ9C5YYqx/15RBtgJYw="; }; nativeBuildInputs = [ From 5a5298d9f0dd4ffaf1395284d3ee6ea959fd6f0b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 12 May 2024 17:28:35 +0000 Subject: [PATCH 010/114] percollate: 4.0.5 -> 4.2.0 --- pkgs/tools/text/percollate/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/text/percollate/default.nix b/pkgs/tools/text/percollate/default.nix index ea55446aac6e..2a7f8eaec354 100644 --- a/pkgs/tools/text/percollate/default.nix +++ b/pkgs/tools/text/percollate/default.nix @@ -2,21 +2,21 @@ buildNpmPackage rec { pname = "percollate"; - version = "4.0.5"; + version = "4.2.0"; src = fetchFromGitHub { owner = "danburzo"; repo = pname; rev = "v${version}"; - hash = "sha256-St9a22Af2QV3gOR80LmDMeq0x9tf/ZJz9Z4IgeeM80I="; + hash = "sha256-AmvdigxLZA3lgT48Z9EVEWOC92kWNA2ve37RMJTR0UA="; }; - npmDepsHash = "sha256-WHOv5N893G35bMC03aGb2m7rQz5xIRd9hPldbRku+RY="; + npmDepsHash = "sha256-21Q47puHZ8/jXIlLFrro87hOYahBjov8Pbg/Z2wgt+g="; dontNpmBuild = true; # Dev dependencies include an unnecessary Java dependency (epubchecker) - # https://github.com/danburzo/percollate/blob/v4.0.5/package.json#L40 + # https://github.com/danburzo/percollate/blob/v4.2.0/package.json#L40 npmInstallFlags = [ "--omit=dev" ]; nativeBuildInputs = [ makeWrapper ]; From 5424ae8ee5739dbcb05e850f2ab0d41580dee2c5 Mon Sep 17 00:00:00 2001 From: Jan van Esdonk Date: Mon, 6 May 2024 09:22:21 +0700 Subject: [PATCH 011/114] prometheus-frr-exporter: init at 1.2.0 --- .../pr/prometheus-frr-exporter/package.nix | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pkgs/by-name/pr/prometheus-frr-exporter/package.nix diff --git a/pkgs/by-name/pr/prometheus-frr-exporter/package.nix b/pkgs/by-name/pr/prometheus-frr-exporter/package.nix new file mode 100644 index 000000000000..40f2a982bf4b --- /dev/null +++ b/pkgs/by-name/pr/prometheus-frr-exporter/package.nix @@ -0,0 +1,35 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +let + version = "1.2.0"; + src = fetchFromGitHub { + owner = "tynany"; + repo = "frr_exporter"; + rev = "v${version}"; + hash = "sha256-sjC6ee7VMbr5zlahAA/i4wrZIu8CBUF+LYaq6uEvukk="; + }; +in +buildGoModule { + pname = "prometheus-frr-exporter"; + vendorHash = "sha256-xckGN/FKN2bwFPll6IRDBOGGUm2JTzoZDwKC6ZkoD/Y="; + inherit src version; + + ldflags = [ + "-X github.com/prometheus/common/version.Version=${version}" + "-X github.com/prometheus/common/version.Revision=${src.rev}" + "-X github.com/prometheus/common/version.Branch=unknown" + ]; + + meta = with lib; { + description = "Prometheus exporter for FRR version 3.0+"; + longDescription = '' + Prometheus exporter for FRR version 3.0+ that collects metrics from the + FRR Unix sockets and exposes them via HTTP, ready for collecting by + Prometheus. + ''; + homepage = "https://github.com/tynany/frr_exporter"; + license = licenses.mit; + maintainers = with maintainers; [ javaes ]; + mainProgram = "frr_exporter"; + }; +} From 17386ebad2cce6d1d39b2c443f2596a0f6ab1d04 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 15 May 2024 16:13:48 +0000 Subject: [PATCH 012/114] crc: 2.34.1 -> 2.36.0 --- pkgs/by-name/cr/crc/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/cr/crc/package.nix b/pkgs/by-name/cr/crc/package.nix index ef9d7a173b26..18f9b852a243 100644 --- a/pkgs/by-name/cr/crc/package.nix +++ b/pkgs/by-name/cr/crc/package.nix @@ -7,16 +7,16 @@ }: let - openShiftVersion = "4.15.3"; + openShiftVersion = "4.15.12"; okdVersion = "4.15.0-0.okd-2024-02-23-163410"; - microshiftVersion = "4.15.3"; + microshiftVersion = "4.15.12"; podmanVersion = "4.4.4"; writeKey = "$(MODULEPATH)/pkg/crc/segment.WriteKey=cvpHsNcmGCJqVzf6YxrSnVlwFSAZaYtp"; - gitCommit = "b470b5f68269c93abee8d7139cbd3e3fe3419f93"; - gitHash = "sha256-80B6eGPnAAeUdKzk9/8VDHjv9tUh85rZSki9PSzqVvg="; + gitCommit = "27c493c19b7f396931c3b94cc3367f572e6af04a"; + gitHash = "sha256-uxp3DVYbbjKf1Cjj7GCf9QBxFq3K136k51eymD0U018="; in buildGoModule rec { - version = "2.34.1"; + version = "2.36.0"; pname = "crc"; src = fetchFromGitHub { From d0de5c02571bbfe293b4fc82c65c9b9709c04b4a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 17 May 2024 16:43:59 +0000 Subject: [PATCH 013/114] snd: 24.3 -> 24.4 --- pkgs/applications/audio/snd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/snd/default.nix b/pkgs/applications/audio/snd/default.nix index 4cb879850b09..67ec87343c74 100644 --- a/pkgs/applications/audio/snd/default.nix +++ b/pkgs/applications/audio/snd/default.nix @@ -5,11 +5,11 @@ stdenv.mkDerivation rec { pname = "snd"; - version = "24.3"; + version = "24.4"; src = fetchurl { url = "mirror://sourceforge/snd/snd-${version}.tar.gz"; - sha256 = "sha256-riy8WrL6jbD4aYnFf9x5DVeYabmty0OCb53jP3iVD9I="; + sha256 = "sha256-nP4ngNUQvveSQBEqXlzYdaqD0SGzTDPwIiWhSabRu+8="; }; nativeBuildInputs = [ pkg-config ]; From d9443cb26b5817427abd61deb1b8aef94a2fb94b Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 18 May 2024 13:41:50 -0700 Subject: [PATCH 014/114] plasma6: move ffmpegthumbs to optional, clarify comments --- nixos/modules/services/desktop-managers/plasma6.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/desktop-managers/plasma6.nix b/nixos/modules/services/desktop-managers/plasma6.nix index 43f6b3a6485a..1dc1c00a40be 100644 --- a/nixos/modules/services/desktop-managers/plasma6.nix +++ b/nixos/modules/services/desktop-managers/plasma6.nix @@ -75,7 +75,7 @@ in { kio # provides helper service + a bunch of other stuff kio-admin # managing files as admin kio-extras # stuff for MTP, AFC, etc - kio-fuse # fuse interaction + kio-fuse # fuse interface for KIO kpackage # provides kpackagetool tool kservice # provides kbuildsycoca6 tool kwallet # provides helper service @@ -97,13 +97,12 @@ in { kwrited # wall message proxy, not to be confused with kwrite baloo # system indexer milou # search engine atop baloo - ffmpegthumbs # video thumbnailer kdegraphics-thumbnailers # pdf etc thumbnailer polkit-kde-agent-1 # polkit auth ui plasma-desktop plasma-workspace drkonqi # crash handler - kde-inotify-survey # handles running out of inodes + kde-inotify-survey # warns the user on low inotifywatch limits # Application integration libplasma # provides Kirigami platform theme @@ -147,6 +146,7 @@ in { dolphin dolphin-plugins spectacle + ffmpegthumbs ]; in requiredPackages From ece660caff4a88c9f2b0cec38ac9e40c7e1df8fd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 May 2024 03:37:06 +0000 Subject: [PATCH 015/114] python311Packages.aioshelly: 9.0.0 -> 10.0.0 --- pkgs/development/python-modules/aioshelly/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aioshelly/default.nix b/pkgs/development/python-modules/aioshelly/default.nix index 8011abb1882c..0a648fa4f704 100644 --- a/pkgs/development/python-modules/aioshelly/default.nix +++ b/pkgs/development/python-modules/aioshelly/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "aioshelly"; - version = "9.0.0"; + version = "10.0.0"; pyproject = true; disabled = pythonOlder "3.10"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "home-assistant-libs"; repo = "aioshelly"; rev = "refs/tags/${version}"; - hash = "sha256-yVjQlP4vIs3Nk94ZcafpLzxVMIJfLsPGee5G5IdnCRs="; + hash = "sha256-HHFp1n0oTZznByGMH2DD/LnK8mSuAe7ex2dA951MtpY="; }; build-system = [ setuptools ]; From 69a006b014b91d49e9a0b20a81b10e169f9a66cd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 May 2024 04:28:59 +0000 Subject: [PATCH 016/114] semgrep: 1.72.0 -> 1.73.0 --- pkgs/tools/security/semgrep/common.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/security/semgrep/common.nix b/pkgs/tools/security/semgrep/common.nix index 49f7080ce072..1ae95ed6572a 100644 --- a/pkgs/tools/security/semgrep/common.nix +++ b/pkgs/tools/security/semgrep/common.nix @@ -1,9 +1,9 @@ { lib }: rec { - version = "1.72.0"; + version = "1.73.0"; - srcHash = "sha256-Rfu4ymNQ9AXuj5nkx01eUtIVMXDmunNTvUH/2Y7VaXM="; + srcHash = "sha256-INgc1rTN5K5mcV3u4Jktn7cqu87Z5sLnn70CxuZlbPA="; # submodule dependencies # these are fetched so we: @@ -13,8 +13,8 @@ rec { "cli/src/semgrep/semgrep_interfaces" = { owner = "semgrep"; repo = "semgrep-interfaces"; - rev = "75abf193687b84ab341d8267d865ad68d81a89c9"; - hash = "sha256-pS95f9oZLtzCEOQrjJP6aGm6lrltumG4ZjSTaUcRDpU="; + rev = "9f38254957c50c68ea402eebae0f7aa40dd01cbf"; + hash = "sha256-/P8b7nSwNZSrm7dUFkehDaGz+r+bofrlFfuIo4U7tJM="; }; }; @@ -25,19 +25,19 @@ rec { core = { x86_64-linux = { platform = "any"; - hash = "sha256-/XZzzDbsW6pw8LC8DgofZ1Gr7eeQyH719NzJDCoXhpk="; + hash = "sha256-NSleztCh9+VEsezypbIS74Ll+KP/Nb/zqAWum7tdoMc="; }; aarch64-linux = { platform = "musllinux_1_0_aarch64.manylinux2014_aarch64"; - hash = "sha256-7zCy2IbxsNO1Jl/efu9dwSyvv6a0HYvqEBzxVpTzqAM="; + hash = "sha256-tySsh+CLciJRXpr4oJa/h6Zh0Fw8c+EDdSNNRwOfKpg="; }; x86_64-darwin = { platform = "macosx_10_14_x86_64"; - hash = "sha256-jykFOXOCtEtlTxN6z17m8E2g2Wpb7qdXx6w4L6w+DbY="; + hash = "sha256-jO8H0wSjW34ynx+WN0oP8mpuAsfMva7H86gg72WrsBY="; }; aarch64-darwin = { platform = "macosx_11_0_arm64"; - hash = "sha256-0dBki3y9tMdjRRfYbxtl0fVTDXO8tLpx76EPISxtCy4="; + hash = "sha256-EizxrTI7b4qSp8nLwXCnvJqKwZje7+WXyw5z+Yk6bvQ="; }; }; From ae1cbfc2dfaf6c202037869edc8ae0e77ad68303 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 20 May 2024 00:04:41 +0000 Subject: [PATCH 017/114] plasticity: 1.4.20 -> 24.1.5 --- pkgs/by-name/pl/plasticity/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pl/plasticity/package.nix b/pkgs/by-name/pl/plasticity/package.nix index 0c7128724e28..895b8a604b56 100644 --- a/pkgs/by-name/pl/plasticity/package.nix +++ b/pkgs/by-name/pl/plasticity/package.nix @@ -33,11 +33,11 @@ }: stdenv.mkDerivation rec { pname = "plasticity"; - version = "1.4.20"; + version = "24.1.5"; src = fetchurl { url = "https://github.com/nkallen/plasticity/releases/download/v${version}/Plasticity-${version}-1.x86_64.rpm"; - hash = "sha256-i2n35UmRSEtkaPvJDPC2imYqgIx+qKu4bOaarYl9qQQ="; + hash = "sha256-1oneFWWgMYsh12knn+Atp8ttSnTdaV+5TWwp2htZsvE="; }; passthru.updateScript = ./update.sh; From 65379b1c1fa1d4c4752a903a6c4868d4b4f3e6e7 Mon Sep 17 00:00:00 2001 From: luftmensch-luftmensch Date: Sun, 19 May 2024 16:39:48 +0200 Subject: [PATCH 018/114] wl-kbptr: init at 0.2.1 --- pkgs/by-name/wl/wl-kbptr/package.nix | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pkgs/by-name/wl/wl-kbptr/package.nix diff --git a/pkgs/by-name/wl/wl-kbptr/package.nix b/pkgs/by-name/wl/wl-kbptr/package.nix new file mode 100644 index 000000000000..8b60cd2a7b91 --- /dev/null +++ b/pkgs/by-name/wl/wl-kbptr/package.nix @@ -0,0 +1,57 @@ +{ + lib, + fetchFromGitHub, + gitUpdater, + gtk3, + libxkbcommon, + meson, + ninja, + pkg-config, + stdenv, + wayland, + wayland-protocols, +}: +let + pname = "wl-kbptr"; + version = "0.2.1"; +in +stdenv.mkDerivation { + inherit pname version; + src = fetchFromGitHub { + owner = "moverest"; + repo = "wl-kbptr"; + rev = "refs/tags/v${version}"; + hash = "sha256-bA4PbWJNM4qWDF5KfNEgeQ5Z/r/Aw3wL8YUMSnzUo0w="; + }; + + depsBuildBuild = [ pkg-config ]; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ + gtk3 + libxkbcommon + wayland + wayland-protocols + ]; + + strictDeps = true; + + passthru = { + updateScript = gitUpdater { }; + }; + + meta = { + homepage = "https://github.com/moverest/wl-kbptr"; + description = "Control the mouse pointer with the keyboard on Wayland"; + changelog = "https://github.com/moverest/wl-kbptr/releases/tag/v${version}"; + license = lib.licenses.gpl3; + mainProgram = "wl-kbptr"; + maintainers = [ lib.maintainers.luftmensch-luftmensch ]; + inherit (wayland.meta) platforms; + }; +} From c2a63d0466b9703bb43dcdfb554c757cb0db2338 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 20 May 2024 17:55:57 -0400 Subject: [PATCH 019/114] vmware-horizon-client: remove bundled libpng --- .../networking/remote/vmware-horizon-client/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/networking/remote/vmware-horizon-client/default.nix b/pkgs/applications/networking/remote/vmware-horizon-client/default.nix index 6b1630594be0..ab6df01a269b 100644 --- a/pkgs/applications/networking/remote/vmware-horizon-client/default.nix +++ b/pkgs/applications/networking/remote/vmware-horizon-client/default.nix @@ -54,6 +54,9 @@ let # Deleting the bundled library is the simplest way to force it to use our version. rm "$out/lib/vmware/gcc/libstdc++.so.6" + # This bundled version of libpng causes browser issues, and would prevent web-based sign-on. + rm "$out/lib/vmware/libpng16.so.16" + # This opensc library is required to support smartcard authentication during the # initial connection to Horizon. mkdir $out/lib/vmware/view/pkcs11 From 073a7a5d6ec5a69bd27771e6b9455acb96d384ea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 11:18:31 +0200 Subject: [PATCH 020/114] yara: refactor - add mainProgram - remove marketing buzz from description --- pkgs/tools/security/yara/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/security/yara/default.nix b/pkgs/tools/security/yara/default.nix index 26eea76f016b..20c0ac63f66e 100644 --- a/pkgs/tools/security/yara/default.nix +++ b/pkgs/tools/security/yara/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , fetchpatch , autoreconfHook @@ -20,8 +21,8 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "VirusTotal"; - repo = pname; - rev = "v${version}"; + repo = "yara"; + rev = "refs/tags/v${version}"; hash = "sha256-AecHsUBtBleUkWuYMQ4Tx/PY8cs9j7JwqncBziJD0hA="; }; @@ -64,10 +65,12 @@ stdenv.mkDerivation rec { doCheck = enableStatic; meta = with lib; { - description = "The pattern matching swiss knife for malware researchers"; + description = "Tool to perform pattern matching for malware-related tasks"; homepage = "http://Virustotal.github.io/yara/"; + changelog = "https://github.com/VirusTotal/yara/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; + mainProgram = "yara"; platforms = platforms.all; }; } From fc1676d2583d6f7cfad8ad93dbee833745f033a9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 11:19:45 +0200 Subject: [PATCH 021/114] yara: format with nixfmt --- pkgs/tools/security/yara/default.nix | 52 +++++++++++++++------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/pkgs/tools/security/yara/default.nix b/pkgs/tools/security/yara/default.nix index 20c0ac63f66e..44b1544ab935 100644 --- a/pkgs/tools/security/yara/default.nix +++ b/pkgs/tools/security/yara/default.nix @@ -1,18 +1,22 @@ -{ lib -, stdenv -, fetchFromGitHub -, fetchpatch -, autoreconfHook -, pcre -, pkg-config -, protobufc -, withCrypto ? true, openssl -, enableCuckoo ? true, jansson -, enableDex ? true -, enableDotNet ? true -, enableMacho ? true -, enableMagic ? true, file -, enableStatic ? false +{ + lib, + stdenv, + fetchFromGitHub, + fetchpatch, + autoreconfHook, + pcre, + pkg-config, + protobufc, + withCrypto ? true, + openssl, + enableCuckoo ? true, + jansson, + enableDex ? true, + enableDotNet ? true, + enableMacho ? true, + enableMagic ? true, + file, + enableStatic ? false, }: stdenv.mkDerivation rec { @@ -39,16 +43,14 @@ stdenv.mkDerivation rec { pkg-config ]; - buildInputs = [ - pcre - protobufc - ] ++ lib.optionals withCrypto [ - openssl - ] ++ lib.optionals enableMagic [ - file - ] ++ lib.optionals enableCuckoo [ - jansson - ]; + buildInputs = + [ + pcre + protobufc + ] + ++ lib.optionals withCrypto [ openssl ] + ++ lib.optionals enableMagic [ file ] + ++ lib.optionals enableCuckoo [ jansson ]; preConfigure = "./bootstrap.sh"; From 4e910390b4af164be5f467d8b300dd49e4efcf90 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 12:00:16 +0200 Subject: [PATCH 022/114] python312Packages.model-checker: init at 0.3.13 A hyperintensional theorem prover for counterfactual conditionals and modal operators https://pypi.org/project/model-checker/ --- .../python-modules/model-checker/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/model-checker/default.nix diff --git a/pkgs/development/python-modules/model-checker/default.nix b/pkgs/development/python-modules/model-checker/default.nix new file mode 100644 index 000000000000..685282decd33 --- /dev/null +++ b/pkgs/development/python-modules/model-checker/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pythonOlder, + z3-solver, + pythonRelaxDepsHook, +}: + +buildPythonPackage rec { + pname = "model-checker"; + version = "0.3.13"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + pname = "model_checker"; + inherit version; + hash = "sha256-3LVes+orRl8tNhhbUUDa1VM/tFf8Y1pAzKknmrjA6e4="; + }; + + # z3 does not provide a dist-info, so python-runtime-deps-check will fail + pythonRemoveDeps = [ "z3-solver" ]; + + build-system = [ setuptools ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; + + dependencies = [ z3-solver ]; + + # Tests have multiple issues, ImportError, TypeError, etc. + # Check with the next release > 0.3.13 + doCheck = false; + + pythonImportsCheck = [ "model_checker" ]; + + meta = with lib; { + description = "A hyperintensional theorem prover for counterfactual conditionals and modal operators"; + homepage = "https://pypi.org/project/model-checker/"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 455b2ddbff3b..072f56fe3e7a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7622,6 +7622,8 @@ self: super: with self; { model-bakery = callPackage ../development/python-modules/model-bakery { }; + model-checker = callPackage ../development/python-modules/model-checker { }; + modelcif = callPackage ../development/python-modules/modelcif { }; modeled = callPackage ../development/python-modules/modeled { }; From e3197735e38c6a610fde603e3ed6165b98c8c78e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 12:02:45 +0000 Subject: [PATCH 023/114] python311Packages.pyrainbird: 6.0.1 -> 6.0.2 --- pkgs/development/python-modules/pyrainbird/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyrainbird/default.nix b/pkgs/development/python-modules/pyrainbird/default.nix index 131cf9f551de..1444533bb28c 100644 --- a/pkgs/development/python-modules/pyrainbird/default.nix +++ b/pkgs/development/python-modules/pyrainbird/default.nix @@ -24,7 +24,7 @@ buildPythonPackage rec { pname = "pyrainbird"; - version = "6.0.1"; + version = "6.0.2"; pyproject = true; disabled = pythonOlder "3.10"; @@ -33,7 +33,7 @@ buildPythonPackage rec { owner = "allenporter"; repo = "pyrainbird"; rev = "refs/tags/${version}"; - hash = "sha256-kRPRyEt31SJpNRXcTshGByKAfPzEj+CDNpEQp4Klgks="; + hash = "sha256-CcoZZ60PItqy0bCc36WfyNF9Fc28aHwQ6hhnY41lBNg="; }; postPatch = '' From b650373b42a85b5e07a7f93f2a0abdd4d005c47b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 12:23:53 +0000 Subject: [PATCH 024/114] sqlmc: 1.0.0 -> 1.1.0 --- pkgs/by-name/sq/sqlmc/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sq/sqlmc/package.nix b/pkgs/by-name/sq/sqlmc/package.nix index 995ab820543b..e2defc3b2a38 100644 --- a/pkgs/by-name/sq/sqlmc/package.nix +++ b/pkgs/by-name/sq/sqlmc/package.nix @@ -6,14 +6,14 @@ python3.pkgs.buildPythonApplication rec { pname = "sqlmc"; - version = "1.0.0"; + version = "1.1.0"; pyproject = true; src = fetchFromGitHub { owner = "malvads"; repo = "sqlmc"; rev = "refs/tags/${version}"; - hash = "sha256-VJSOOCFqDPTh7PoumAQqt+tdR05uGe/xTwxcJAAe//k="; + hash = "sha256-8p+9A1j+J3WItc1u8kG7LHY086kcwMGhEMENym2p/Fo="; }; nativeBuildInputs = with python3.pkgs; [ setuptools ]; From dd83689d6bfd5b469037e81dcf8f8257468d2248 Mon Sep 17 00:00:00 2001 From: iopq Date: Tue, 21 May 2024 22:11:59 +0800 Subject: [PATCH 025/114] xray: make sure there's only one location asset folder The executable doesn't handle multiple asset folders --- pkgs/tools/networking/xray/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/xray/default.nix b/pkgs/tools/networking/xray/default.nix index e2a07cf2d262..56803c3dc312 100644 --- a/pkgs/tools/networking/xray/default.nix +++ b/pkgs/tools/networking/xray/default.nix @@ -42,8 +42,8 @@ buildGoModule rec { postFixup = '' wrapProgram $out/bin/xray \ - --suffix V2RAY_LOCATION_ASSET : $assetsDrv/share/v2ray \ - --suffix XRAY_LOCATION_ASSET : $assetsDrv/share/v2ray + --set-default V2RAY_LOCATION_ASSET $assetsDrv/share/v2ray \ + --set-default XRAY_LOCATION_ASSET $assetsDrv/share/v2ray ''; passthru = { From 5f41c75fddf742f304b7e2f6f1e74dfcd0231756 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 14:36:58 +0000 Subject: [PATCH 026/114] opentelemetry-collector: 0.100.0 -> 0.101.0 --- pkgs/tools/misc/opentelemetry-collector/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/opentelemetry-collector/default.nix b/pkgs/tools/misc/opentelemetry-collector/default.nix index b855202633db..463a699638f7 100644 --- a/pkgs/tools/misc/opentelemetry-collector/default.nix +++ b/pkgs/tools/misc/opentelemetry-collector/default.nix @@ -8,17 +8,17 @@ buildGoModule rec { pname = "opentelemetry-collector"; - version = "0.100.0"; + version = "0.101.0"; src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-collector"; rev = "v${version}"; - hash = "sha256-GDRxOfuAlztJhuYXZKmDpQ6M4ZW3+bNevMjqCHRuyVY="; + hash = "sha256-BRZxeTFw4v4LLXPPzIzcjtR/RTckpolGGcB6jyq+ZOA="; }; # there is a nested go.mod sourceRoot = "${src.name}/cmd/otelcorecol"; - vendorHash = "sha256-wVJyu4+dYXLSkopfSLkKPkwnUCGyUeagQtOjuvNxF6A="; + vendorHash = "sha256-dO0j26AlpibsmbOqozz9+xMAJS/ZZHT6Z857AblYFHA="; nativeBuildInputs = [ installShellFiles ]; From c8da86f45f472543f8b23823b1c0e7afd0b3261b Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Mon, 20 May 2024 21:32:31 +0200 Subject: [PATCH 027/114] yara-x: init at 0.3.0 Announcement blogpost: https://virustotal.github.io/yara-x/blog/yara-is-dead-long-live-yara-x/ --- pkgs/by-name/ya/yara-x/package.nix | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/ya/yara-x/package.nix diff --git a/pkgs/by-name/ya/yara-x/package.nix b/pkgs/by-name/ya/yara-x/package.nix new file mode 100644 index 000000000000..18ea5fa58a1a --- /dev/null +++ b/pkgs/by-name/ya/yara-x/package.nix @@ -0,0 +1,44 @@ +{ lib +, fetchFromGitHub +, rustPlatform +, cmake +, installShellFiles +, testers +, yara-x +}: + +rustPlatform.buildRustPackage rec { + pname = "yara-x"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "VirusTotal"; + repo = "yara-x"; + rev = "refs/tags/v${version}"; + hash = "sha256-AFRKsBNDgjIsLnr61ME4WvDj+DsvIhFUnDmOGn3So8o="; + }; + + cargoHash = "sha256-cZ/bWaTNnX9+o8D5lMu72snc4CLpjqcwjintbw59OXA="; + + nativeBuildInputs = [ cmake installShellFiles ]; + + postInstall = '' + installShellCompletion --cmd yr \ + --bash <($out/bin/yr completion bash) \ + --fish <($out/bin/yr completion fish) \ + --zsh <($out/bin/yr completion zsh) + ''; + + passthru.tests.version = testers.testVersion { + package = yara-x; + }; + + meta = { + description = "Tool to do pattern matching for malware research"; + homepage = "https://virustotal.github.io/yara-x/"; + changelog = "https://github.com/VirusTotal/yara-x/releases/tag/v${version}"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ lesuisse ]; + mainProgram = "yr"; + }; +} From 7c5a432dbc9f9d4a137c90038a978d9909c70150 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Tue, 21 May 2024 21:02:03 +0200 Subject: [PATCH 028/114] asterisk_18: 18.21.0 -> 18.23.1, asterisk_20: 20.6.0 -> 20.8.1 Fixes CVE-2024-35190. Changelogs: https://github.com/asterisk/asterisk/releases/tag/20.8.1 https://github.com/asterisk/asterisk/releases/tag/20.8.0 https://github.com/asterisk/asterisk/releases/tag/20.7.0 https://github.com/asterisk/asterisk/releases/tag/18.23.1 https://github.com/asterisk/asterisk/releases/tag/18.23.0 https://github.com/asterisk/asterisk/releases/tag/18.22.0 https://github.com/asterisk/asterisk/releases/tag/18.21.0 --- pkgs/servers/asterisk/default.nix | 8 ++++---- pkgs/servers/asterisk/versions.json | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/asterisk/default.nix b/pkgs/servers/asterisk/default.nix index 4102f60c716f..7333f6607da5 100644 --- a/pkgs/servers/asterisk/default.nix +++ b/pkgs/servers/asterisk/default.nix @@ -142,10 +142,10 @@ let }; }; - pjproject_2_13_1 = fetchurl + pjproject_2_14_1 = fetchurl { - url = "https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.13.1/pjproject-2.13.1.tar.bz2"; - hash = "sha256-cOBRvO+B9fGt4UVYAHQQwBsc2cUF7Pu1GRsjAF7BE1g="; + url = "https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.14.1/pjproject-2.14.1.tar.bz2"; + hash = "sha256-MtsK8bOc0fT/H/pUydqK/ahMIVg8yiRDt3TSM1uhUFQ="; } // { pjsip_patches = [ ]; }; @@ -168,7 +168,7 @@ let versions = lib.mapAttrs (_: { version, sha256 }: let - pjsip = pjproject_2_13_1; + pjsip = pjproject_2_14_1; in common { inherit version sha256; diff --git a/pkgs/servers/asterisk/versions.json b/pkgs/servers/asterisk/versions.json index 7c7aaaa51544..e11a27cf5544 100644 --- a/pkgs/servers/asterisk/versions.json +++ b/pkgs/servers/asterisk/versions.json @@ -1,14 +1,14 @@ { "asterisk_18": { - "sha256": "31e1b544ece2bb75be93621e358e6765fc095f4b65e061d488d517177aeb9208", - "version": "18.21.0" + "sha256": "a46a85f676ea820f9c3c550c7caa8d9515e7754512740768a1336a82e8cf6162", + "version": "18.23.1" }, "asterisk_20": { - "sha256": "d70109e9b4c52fba6d0080b20cadc0aaee4060a0ad28bff4e376bf8b393e9400", - "version": "20.6.0" + "sha256": "fa498b6224e8c262de6840a67e00e3747e178fcefd9fb2595885d402ca3248f5", + "version": "20.8.1" }, "asterisk_21": { - "sha256": "488100fe1d5648f629e22b52c87d9133892bf556f0c544eea659185cea6e8a69", - "version": "21.1.0" + "sha256": "cf59196b94851fbfdbcc63d1d6a8d2b83a4ae093c89c3d37b5d460b3a3d20f15", + "version": "21.3.1" } } From c1db7c1157839a308329b62d2736f7857bbcafe5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 22:53:58 +0200 Subject: [PATCH 029/114] python312Packages.nanoleaf: refactor --- .../python-modules/nanoleaf/default.nix | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/nanoleaf/default.nix b/pkgs/development/python-modules/nanoleaf/default.nix index a77998c994c5..86ac6ba900f7 100644 --- a/pkgs/development/python-modules/nanoleaf/default.nix +++ b/pkgs/development/python-modules/nanoleaf/default.nix @@ -1,25 +1,48 @@ -{ lib, buildPythonPackage, fetchPypi, requests }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, requests +, setuptools +}: buildPythonPackage rec { pname = "nanoleaf"; version = "0.4.1"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "17dmxibfjmwnrs6ng5cmvfis3cv6iw267xb8n1pijy15y9dz0s8s"; + hash = "sha256-GmnwW/IleBlvsGj1YwSPZrOho9uVlWeNzpZX6VbstZ0="; }; prePatch = '' sed -i '/^gitVersion =/d' setup.py - substituteInPlace setup.py --replace 'gitVersion' '"${version}"' + substituteInPlace setup.py \ + --replace-fail 'gitVersion' '"${version}"' ''; - propagatedBuildInputs = [ requests ]; + build-system = [ + setuptools + ]; + + dependencies = [ + requests + ]; + + # Module has no test + doCheck = false; + + pythonImportsCheck = [ + "nanoleaf" + ]; meta = with lib; { - description = "A python interface for Nanoleaf Aurora lighting"; + description = "Module for interacting with Nanoleaf Aurora lighting"; homepage = "https://github.com/software-2/nanoleaf"; + changelog = "https://github.com/software-2/nanoleaf/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ ]; }; From 964fb46db07774bea4fd0a7ef690aa135b55cd17 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 22:54:14 +0200 Subject: [PATCH 030/114] python312Packages.nanoleaf: format with nixfmt --- .../python-modules/nanoleaf/default.nix | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/nanoleaf/default.nix b/pkgs/development/python-modules/nanoleaf/default.nix index 86ac6ba900f7..995c56510d65 100644 --- a/pkgs/development/python-modules/nanoleaf/default.nix +++ b/pkgs/development/python-modules/nanoleaf/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -24,20 +25,14 @@ buildPythonPackage rec { --replace-fail 'gitVersion' '"${version}"' ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - requests - ]; + dependencies = [ requests ]; # Module has no test doCheck = false; - pythonImportsCheck = [ - "nanoleaf" - ]; + pythonImportsCheck = [ "nanoleaf" ]; meta = with lib; { description = "Module for interacting with Nanoleaf Aurora lighting"; From 77aba030fdff6ffa226d03d5898c2780047830e9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 23:00:44 +0200 Subject: [PATCH 031/114] python312Packages.atomiclong: refactor - migrate to pytestCheckHook - update build-system - add pythonImportsCheck --- .../python-modules/atomiclong/default.nix | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/atomiclong/default.nix b/pkgs/development/python-modules/atomiclong/default.nix index 1af61849585b..783cb9386c35 100644 --- a/pkgs/development/python-modules/atomiclong/default.nix +++ b/pkgs/development/python-modules/atomiclong/default.nix @@ -1,17 +1,39 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, cffi }: +{ lib +, buildPythonPackage +, cffi +, fetchPypi +, pytestCheckHook +, pythonOlder +, setuptools +}: buildPythonPackage rec { pname = "atomiclong"; version = "0.1.1"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "1gjbc9lvpkgg8vj7dspif1gz9aq4flkhxia16qj6yvb7rp27h4yb"; + hash = "sha256-yxN4xM1nbW8kNkHFDid1BKv0X3Dx6nbkRu/Nu2liS74="; }; - buildInputs = [ pytest ]; - propagatedBuildInputs = [ cffi ]; + build-system = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + dependencies = [ + cffi + ]; + + pythonImportsCheck = [ + "atomiclong" + ]; meta = with lib; { description = "Long data type with atomic operations using CFFI"; From 773847fb13b6333d03ba7f849863d26aa486a0ff Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 23:01:52 +0200 Subject: [PATCH 032/114] python312Packages.atomiclong: format with nixfmt --- .../python-modules/atomiclong/default.nix | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/atomiclong/default.nix b/pkgs/development/python-modules/atomiclong/default.nix index 783cb9386c35..a5180221fc76 100644 --- a/pkgs/development/python-modules/atomiclong/default.nix +++ b/pkgs/development/python-modules/atomiclong/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cffi -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cffi, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-yxN4xM1nbW8kNkHFDid1BKv0X3Dx6nbkRu/Nu2liS74="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - dependencies = [ - cffi - ]; + dependencies = [ cffi ]; - pythonImportsCheck = [ - "atomiclong" - ]; + pythonImportsCheck = [ "atomiclong" ]; meta = with lib; { description = "Long data type with atomic operations using CFFI"; From ea3f18fe96e4aa0049387f4e059bec871fbd0ba1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 23:17:02 +0200 Subject: [PATCH 033/114] yara-x: add myself as additional maintainer --- pkgs/by-name/ya/yara-x/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ya/yara-x/package.nix b/pkgs/by-name/ya/yara-x/package.nix index 18ea5fa58a1a..80789fa99123 100644 --- a/pkgs/by-name/ya/yara-x/package.nix +++ b/pkgs/by-name/ya/yara-x/package.nix @@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec { homepage = "https://virustotal.github.io/yara-x/"; changelog = "https://github.com/VirusTotal/yara-x/releases/tag/v${version}"; license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ lesuisse ]; + maintainers = with lib.maintainers; [ fab lesuisse ]; mainProgram = "yr"; }; } From abbb4a7e2795852dca65da51734d142c2d0d98f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Tue, 21 May 2024 17:15:21 +0200 Subject: [PATCH 034/114] n8n: fix aarch64 build --- pkgs/applications/networking/n8n/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/n8n/default.nix b/pkgs/applications/networking/n8n/default.nix index 7677abfb0ccf..2fb3c47aa8f7 100644 --- a/pkgs/applications/networking/n8n/default.nix +++ b/pkgs/applications/networking/n8n/default.nix @@ -19,13 +19,17 @@ nodePackages.n8n.override { pkgs.postgresql ]; - # Oracle's official package on npm is binary only (WHY?!) and doesn't provide binaries for aarch64. - # This can supposedly be fixed by building a custom copy of the module from source, but that's way - # too much complexity for a setup no one would ever actually run. - # - # NB: If you _are_ actually running n8n on Oracle on aarch64, feel free to submit a patch. preRebuild = lib.optionalString stdenv.isAarch64 '' + # Oracle's official package on npm is binary only (WHY?!) and doesn't provide binaries for aarch64. + # This can supposedly be fixed by building a custom copy of the module from source, but that's way + # too much complexity for a setup no one would ever actually run. + # + # NB: If you _are_ actually running n8n on Oracle on aarch64, feel free to submit a patch. rm -rf node_modules/oracledb + + # This package tries to load a prebuilt binary for a different arch, and it doesn't provide the binary for aarch64. + # It is marked as an optional dependency in pnpm-lock.yaml and there are no other references to it n8n. + rm -rf node_modules/@sap/hana-client ''; # makes libmongocrypt bindings not look for static libraries in completely wrong places From c28508d1dac6859f5e65f67a8d3c44418b444d3d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 22:41:47 +0000 Subject: [PATCH 035/114] python311Packages.holidays: 0.48 -> 0.49 --- pkgs/development/python-modules/holidays/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/holidays/default.nix b/pkgs/development/python-modules/holidays/default.nix index 79e5fc8d523a..54f00eef6b97 100644 --- a/pkgs/development/python-modules/holidays/default.nix +++ b/pkgs/development/python-modules/holidays/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "holidays"; - version = "0.48"; + version = "0.49"; pyproject = true; disabled = pythonOlder "3.8"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "vacanza"; repo = "python-holidays"; rev = "refs/tags/v${version}"; - hash = "sha256-PKa4knEUkULeGbwjEViF2J3QyUOOvKHYxy0ChmRQf6A="; + hash = "sha256-pO2365FS8Axo+dBSHmlnHtnXIExzSI86BVGD0DCN2KU="; }; build-system = [ From 874a30be6f8aad7b6b87d58618131130e284d319 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 23:27:30 +0000 Subject: [PATCH 036/114] python311Packages.boto3-stubs: 1.34.109 -> 1.34.110 --- pkgs/development/python-modules/boto3-stubs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/boto3-stubs/default.nix b/pkgs/development/python-modules/boto3-stubs/default.nix index 00f7fae6999a..6a6dc2ee0ef5 100644 --- a/pkgs/development/python-modules/boto3-stubs/default.nix +++ b/pkgs/development/python-modules/boto3-stubs/default.nix @@ -366,7 +366,7 @@ buildPythonPackage rec { pname = "boto3-stubs"; - version = "1.34.109"; + version = "1.34.110"; pyproject = true; disabled = pythonOlder "3.7"; @@ -374,7 +374,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "boto3_stubs"; inherit version; - hash = "sha256-h/soM0T7nH4jMl82FCy4C15aJJCdP6Bvf2doGYt+sWg="; + hash = "sha256-S1Xvok7jS1T/5QaJnwvfqMqEMfbUuSItY0fdkOabpzU="; }; build-system = [ setuptools ]; From 8f081e9cbfc398c296c0bb49eec0c3a292f93547 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 23:49:09 +0000 Subject: [PATCH 037/114] libretro.mupen64plus: unstable-2024-03-07 -> unstable-2024-05-21 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..1edf9dca5e9a 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -540,10 +540,10 @@ "src": { "owner": "libretro", "repo": "mupen64plus-libretro-nx", - "rev": "3f794eec4dc4af2f22ecce507f2da324381d3d92", - "hash": "sha256-xO01TAjW8otnoU8fzmK69BufoQn3eY9BPamc3ISqBn8=" + "rev": "5d2ac21adb784ad72d6101290117702eef0411dd", + "hash": "sha256-PKjnoTioAvCYv2JBiPMXR4QZUgPeSQ3V4cB7mp2fqeI=" }, - "version": "unstable-2024-03-07" + "version": "unstable-2024-05-21" }, "neocd": { "fetcher": "fetchFromGitHub", From 46bdb4b9942c20faa766f078253ba7b78b5d94e2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 23:49:51 +0000 Subject: [PATCH 038/114] libretro.stella2014: unstable-2023-02-20 -> unstable-2024-05-20 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..05aebd99b084 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -804,10 +804,10 @@ "src": { "owner": "libretro", "repo": "stella2014-libretro", - "rev": "8ab051edd4816f33a5631d230d54059eeed52c5f", - "hash": "sha256-wqssB8WXXF2Lu9heII8nWLLOvI38cIfHSMA7OOd6jx0=" + "rev": "db6bee857f73138ae02755bf09e392b31fef4540", + "hash": "sha256-NH9ZsYPG1X5wLKpIvcqDkMUyI/eDLVITY/IaY5djt/8=" }, - "version": "unstable-2023-02-20" + "version": "unstable-2024-05-20" }, "swanstation": { "fetcher": "fetchFromGitHub", From 722bb29002dfdbf6948595579aef223c6e435aa2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 23:50:00 +0000 Subject: [PATCH 039/114] libretro.mrboom: unstable-2024-05-17 -> unstable-2024-05-19 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..0a4042fa3d6a 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -529,11 +529,11 @@ "src": { "owner": "Javanaise", "repo": "mrboom-libretro", - "rev": "d9695504924344eb681b526d0cc3bb5e3884a32b", - "hash": "sha256-incaTU5pFv5K4jeiWx09Cp50+4Ewf13tT83zr7Zidmo=", + "rev": "a7af125dc9ef65c9a1b43136a75374bbac5458ee", + "hash": "sha256-hPJ8MpJOPGkckB0rj1uQ9BmY+0//Lj9jfNA9hfpdu3o=", "fetchSubmodules": true }, - "version": "unstable-2024-05-17" + "version": "unstable-2024-05-19" }, "mupen64plus": { "fetcher": "fetchFromGitHub", From b8e2e1700c8b0249c233ba485b0dfab289fa7d85 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:12:56 +0000 Subject: [PATCH 040/114] libretro.snes9x: unstable-2024-05-13 -> unstable-2024-05-19 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..969b8358ea85 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -754,10 +754,10 @@ "src": { "owner": "snes9xgit", "repo": "snes9x", - "rev": "8f41776532c407744c41e5d08444cb2dbd492c14", - "hash": "sha256-w8RWXqTjAUVrg3U0aMdaZ5mOlZYhgARzOAgyc57AhGQ=" + "rev": "738e53989e29c912eba3be4656df18cecc76e69b", + "hash": "sha256-riz4WBK/Qrw6QuIyi6ylNdDBxYOq1SsltC7/GAunZbM=" }, - "version": "unstable-2024-05-13" + "version": "unstable-2024-05-19" }, "snes9x2002": { "fetcher": "fetchFromGitHub", From e93da40fa260cc397304d51f229524f4ae684911 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:13:45 +0000 Subject: [PATCH 041/114] libretro.pcsx-rearmed: unstable-2024-05-17 -> unstable-2024-05-20 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..f51ef83b73ce 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -631,10 +631,10 @@ "src": { "owner": "libretro", "repo": "pcsx_rearmed", - "rev": "db02598e737b8d50cd347fe2ef13cb85ade051dd", - "hash": "sha256-BgqwKbmRXKIMfv8xPBH38wTMSVWvkFKOJCb0emZkx5Y=" + "rev": "87f07621f8f864204d15e5514b7dcda7ed458fd4", + "hash": "sha256-J9HzZzzeih/Hv/hi+JmGloPMTgtRSdAubnipMDUOpIM=" }, - "version": "unstable-2024-05-17" + "version": "unstable-2024-05-20" }, "picodrive": { "fetcher": "fetchFromGitHub", From b30f40b75bb62eb159483ead19a81d244b4986a5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:37:22 +0000 Subject: [PATCH 042/114] libretro.beetle-saturn: unstable-2024-02-25 -> unstable-2024-05-19 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..c688f9f73ef6 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -95,10 +95,10 @@ "src": { "owner": "libretro", "repo": "beetle-saturn-libretro", - "rev": "8192ecca34d44f8f85175fa7b7fab6ec2ffb31c2", - "hash": "sha256-2YDfyIEoCj9dM+d3+UOTFVNA56OnBNO5HgJAjoV7Xik=" + "rev": "7a8f808a1d447fcb8fa9547d9f163eb3600d3086", + "hash": "sha256-Yp1HuhbsQGicrFeIbnJP6Rd6hVK4BRclUnPKZlYC7pM=" }, - "version": "unstable-2024-02-25" + "version": "unstable-2024-05-19" }, "beetle-supafaust": { "fetcher": "fetchFromGitHub", From 24b529c2f435a55f3438d09b10bfc1c21e7eae46 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:52:24 +0000 Subject: [PATCH 043/114] libretro.mame2003: unstable-2024-05-17 -> unstable-2024-05-21 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..db2425953b18 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -429,10 +429,10 @@ "src": { "owner": "libretro", "repo": "mame2003-libretro", - "rev": "aed807fce1acd4fbc70f7ced8fa52548220082ac", - "hash": "sha256-48C2vJIFfna2LcbcLVTTVmJzvV87DZBa+6UQz/LfaVU=" + "rev": "cb2c76b2185c6600d1985b041eae001c674ffc08", + "hash": "sha256-HBDJsYEC4G/wELYe8IGfq+9Hv2Sx+v52YxYfLQRZ+ns=" }, - "version": "unstable-2024-05-17" + "version": "unstable-2024-05-21" }, "mame2003-plus": { "fetcher": "fetchFromGitHub", From 5d6b6a4857f4f34118ca11c85f7d3db1997c730c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:52:30 +0000 Subject: [PATCH 044/114] dcrwallet: 1.8.1 -> 2.0.0 --- pkgs/applications/blockchains/dcrwallet/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/blockchains/dcrwallet/default.nix b/pkgs/applications/blockchains/dcrwallet/default.nix index 6fe4afa5b584..cb7e19ada141 100644 --- a/pkgs/applications/blockchains/dcrwallet/default.nix +++ b/pkgs/applications/blockchains/dcrwallet/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "dcrwallet"; - version = "1.8.1"; + version = "2.0.0"; src = fetchFromGitHub { owner = "decred"; repo = "dcrwallet"; rev = "release-v${version}"; - hash = "sha256-Pz25jExqbvy8fgiZy9vaYuVp8kuE6deGLlBEjxTnYGQ="; + hash = "sha256-KBmEMYNVHGkkFXE99nI0uCGGDpkC0MvSFWFPEQwvx+o="; }; - vendorHash = "sha256-lvN7OcDoEzb9LyH9C5q8pd0BOnF2VKuh4O82U+tQ6fI="; + vendorHash = "sha256-66S1evvX/SEKFXB00dyI9IEuV8dmqM+k1wuhTtgVpBs="; subPackages = [ "." ]; From 5835d7d5c9f4a4fffd0b68ecf1584e3a2d59b942 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:55:37 +0000 Subject: [PATCH 045/114] libretro.mame2003-plus: unstable-2024-05-17 -> unstable-2024-05-21 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..40847c1b5b2a 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -439,10 +439,10 @@ "src": { "owner": "libretro", "repo": "mame2003-plus-libretro", - "rev": "f0135f7f610c43496f376dfddbc60fc0ed24a736", - "hash": "sha256-jHilxNFL+n8QesjgD6lt8HQSVwA4uiLMsNa1JkkCIuA=" + "rev": "97dfe652dba01872bc5dd5d13a0dfb6588286adf", + "hash": "sha256-BQoc8y0eJkK8PpPqHjQ8qKp8/xrjl789bxNy+RdU3Sc=" }, - "version": "unstable-2024-05-17" + "version": "unstable-2024-05-21" }, "mame2010": { "fetcher": "fetchFromGitHub", From 57f60190718ae4e1757e765857cdc712258bc37c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:56:37 +0000 Subject: [PATCH 046/114] libretro.ppsspp: unstable-2024-05-14 -> unstable-2024-05-21 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..bdcd9558f3c9 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -663,11 +663,11 @@ "src": { "owner": "hrydgard", "repo": "ppsspp", - "rev": "dbcac0e48c769e4874028496c6d6f6ecc418e16f", - "hash": "sha256-Nn1kRh2xgKZWrrWRIuYkm4U7sJ5U9tMBRMZFTA4pcEE=", + "rev": "1a01e4fd2e1ad1a6c5a7a1511ddeb495f525ae9e", + "hash": "sha256-MWXfHbWQXi/UflOV4zchrBVdh+Nt04HnvoTbpLNyq/Q=", "fetchSubmodules": true }, - "version": "unstable-2024-05-14" + "version": "unstable-2024-05-21" }, "prboom": { "fetcher": "fetchFromGitHub", From 7c1ed28fa72e0b9d6f4e186ce99c77173e750977 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 00:57:03 +0000 Subject: [PATCH 047/114] fblog: 4.9.0 -> 4.10.0 --- pkgs/development/tools/fblog/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/fblog/default.nix b/pkgs/development/tools/fblog/default.nix index 001a1f5298d2..d940051a9a4e 100644 --- a/pkgs/development/tools/fblog/default.nix +++ b/pkgs/development/tools/fblog/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "fblog"; - version = "4.9.0"; + version = "4.10.0"; src = fetchFromGitHub { owner = "brocode"; repo = pname; rev = "v${version}"; - hash = "sha256-9v8bn68anWB0vkRIixa6YvNl54z6X8u+MyYs38Zgc5A="; + hash = "sha256-4Yg7gWVBG9GI1ailEbbcslM+XR8L7yjjjvf4dQq/87I="; }; - cargoHash = "sha256-tXBXI0tlCdfxKscR4Vfw4okJw+jW3EqPz4Rp6xeCdIQ="; + cargoHash = "sha256-8rnQllCne1q1uDpeJkqAdzNKSkEgVp+v9drXL8TaQmM="; meta = with lib; { description = "A small command-line JSON log viewer"; From 401acf0e424a03d889486dd662eba8b4d7dd9429 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 01:18:56 +0000 Subject: [PATCH 048/114] gatus: 5.10.0 -> 5.11.0 --- pkgs/by-name/ga/gatus/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ga/gatus/package.nix b/pkgs/by-name/ga/gatus/package.nix index 1e10ce2db475..a2b59c3d3106 100644 --- a/pkgs/by-name/ga/gatus/package.nix +++ b/pkgs/by-name/ga/gatus/package.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "gatus"; - version = "5.10.0"; + version = "5.11.0"; src = fetchFromGitHub { owner = "TwiN"; repo = "gatus"; rev = "v${version}"; - hash = "sha256-gZSK3ebBBJGHRdylCl18AYifGknYbOz7+xaCJjU9ZlY="; + hash = "sha256-x9agE3ZctH9fudUA0uTVUiCUxiEEn/I4Lz47oIyUee0="; }; - vendorHash = "sha256-sZ6IPYitNnnw7+UQVAWFEe9/ObDhAiou1GzDDqnGXb8="; + vendorHash = "sha256-Cb9G24SinU+ln9iVSHLsD0TNt2sIfYsHGmQI/vZekPI="; subPackages = [ "." ]; From ffeb2c3bfbecd75dd550469def8e6a6598824443 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 01:19:07 +0000 Subject: [PATCH 049/114] ginkgo: 2.17.3 -> 2.18.0 --- pkgs/development/tools/ginkgo/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/ginkgo/default.nix b/pkgs/development/tools/ginkgo/default.nix index 1c3355f3aef4..ecbda3802d4d 100644 --- a/pkgs/development/tools/ginkgo/default.nix +++ b/pkgs/development/tools/ginkgo/default.nix @@ -2,15 +2,15 @@ buildGoModule rec { pname = "ginkgo"; - version = "2.17.3"; + version = "2.18.0"; src = fetchFromGitHub { owner = "onsi"; repo = "ginkgo"; rev = "v${version}"; - sha256 = "sha256-JIKEuYhzX/gTO2YYI3u1I9YBbXGkdmoQ3kiSfTwu/Qg="; + sha256 = "sha256-e8XL79Qj38I+oYJdBut1VL0DlU/tE1q7v1N8JmWjrfA="; }; - vendorHash = "sha256-qLyqG7A4TEsZSF8olXWc2BIYZukQx/xHsnbYTfC/w4A="; + vendorHash = "sha256-ccqhuUL99dtIeiEM4hRdi0479I0cyf8pxSZz0G6Vm+w="; # integration tests expect more file changes # types tests are missing CodeLocation From f5e1d37e0de7225fb615617461a9f94415c71d52 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 01:19:10 +0000 Subject: [PATCH 050/114] htcondor: 23.4.0 -> 23.7.2 --- pkgs/by-name/ht/htcondor/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ht/htcondor/package.nix b/pkgs/by-name/ht/htcondor/package.nix index f0caa1d981d0..3d382f0c0a71 100644 --- a/pkgs/by-name/ht/htcondor/package.nix +++ b/pkgs/by-name/ht/htcondor/package.nix @@ -20,14 +20,14 @@ stdenv.mkDerivation rec { pname = "htcondor"; - version = "23.4.0"; + version = "23.7.2"; src = fetchFromGitHub { owner = "htcondor"; repo = "htcondor"; rev = "v${version}"; - hash = "sha256-+WfNVxP7qsEpn8zPretLnOEAnPq0GylyxCbcQI8o0L0="; + hash = "sha256-U0IeZlDd21RYR9XNoIGPpuwhEL1MfQ9+DDyeX8sLgWM="; }; nativeBuildInputs = [ cmake ]; From 5405010c02f7ee81cc73540ce1a82ac1323beda8 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Mon, 20 May 2024 11:25:33 +0800 Subject: [PATCH 051/114] =?UTF-8?q?webkitgtk:=202.44.1=20=E2=86=92=202.44.?= =?UTF-8?q?2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://webkitgtk.org/2024/05/16/webkitgtk2.44.2-released.html https://webkitgtk.org/security/WSA-2024-0003.html https://github.com/WebKit/WebKit/compare/webkitgtk-2.44.1...webkitgtk-2.44.2 CVE-2024-27834 --- pkgs/development/libraries/webkitgtk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix index 140c2a4d4ae2..cbe910b4469e 100644 --- a/pkgs/development/libraries/webkitgtk/default.nix +++ b/pkgs/development/libraries/webkitgtk/default.nix @@ -69,7 +69,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "webkitgtk"; - version = "2.44.1"; + version = "2.44.2"; name = "${finalAttrs.pname}-${finalAttrs.version}+abi=${if lib.versionAtLeast gtk3.version "4.0" then "6.0" else "4.${if lib.versions.major libsoup.version == "2" then "0" else "1"}"}"; outputs = [ "out" "dev" "devdoc" ]; @@ -80,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://webkitgtk.org/releases/webkitgtk-${finalAttrs.version}.tar.xz"; - hash = "sha256-QlsUWbDwTQYAx40au15+36PAYKQg+LIx6aai1dKcVWE="; + hash = "sha256-Uj9CyP8kgyrdF2Mfbqr+j5MDr+MW7xp+GES5Uqf3Uhs="; }; patches = lib.optionals stdenv.isLinux [ From 5b6a12e96e2eb638964d2ce6e1137e00c24c1b10 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:09:34 +0000 Subject: [PATCH 052/114] mollysocket: 1.3.0 -> 1.4.0 --- pkgs/by-name/mo/mollysocket/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/mo/mollysocket/package.nix b/pkgs/by-name/mo/mollysocket/package.nix index 025bb34e8dd7..d2fd8ccbff0e 100644 --- a/pkgs/by-name/mo/mollysocket/package.nix +++ b/pkgs/by-name/mo/mollysocket/package.nix @@ -11,16 +11,16 @@ rustPlatform.buildRustPackage rec { pname = "mollysocket"; - version = "1.3.0"; + version = "1.4.0"; src = fetchFromGitHub { owner = "mollyim"; repo = "mollysocket"; rev = version; - hash = "sha256-eFvRjGUQ1AU+kXUp6YALm1lqhTMY2DxvFuf+MHCL38c="; + hash = "sha256-wZIP4mmIrg8D70C8jLjPC/+TlOT+gP7YOkM1Ey44Tvk="; }; - cargoHash = "sha256-3UwvnbHH6v1fJyivdU55GmJ2/+RSqXfBKIcOARASWbE="; + cargoHash = "sha256-3yTbwbgOIm69Nf8stPMMhgR6g0sfenycx07by8AM01M="; nativeBuildInputs = [ pkg-config From a74fffe58b99fa9d22a414119d7fbbcb752dc38f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:09:42 +0000 Subject: [PATCH 053/114] opentelemetry-collector-contrib: 0.100.0 -> 0.101.0 --- pkgs/tools/misc/opentelemetry-collector/contrib.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/opentelemetry-collector/contrib.nix b/pkgs/tools/misc/opentelemetry-collector/contrib.nix index ea52a0e00b3c..e24a9ff66b18 100644 --- a/pkgs/tools/misc/opentelemetry-collector/contrib.nix +++ b/pkgs/tools/misc/opentelemetry-collector/contrib.nix @@ -8,18 +8,18 @@ buildGoModule rec { pname = "opentelemetry-collector-contrib"; - version = "0.100.0"; + version = "0.101.0"; src = fetchFromGitHub { owner = "open-telemetry"; repo = "opentelemetry-collector-contrib"; rev = "v${version}"; - sha256 = "sha256-QmWl3XhCmOxJPn/haBsWVCPI970sTQpmVpJwCCpBbH4="; + sha256 = "sha256-WdMQnAYAdyvS0uyRzvLnhi1HeoWqmUQSIq6MdcP7NfY="; }; # proxy vendor to avoid hash missmatches between linux and macOS proxyVendor = true; - vendorHash = "sha256-62G+wQeZK/7iO10ZgXXY3gT8LwUnqDY9Pr8HkAqkVik="; + vendorHash = "sha256-LM9Co4XpmyIOTVllhiiON4R8OYTO5OjY9Wn+LrU6PIM="; # there is a nested go.mod sourceRoot = "${src.name}/cmd/otelcontribcol"; From b566502ac8ee4deae830f29c51a7c6c5531e82a6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:10:05 +0000 Subject: [PATCH 054/114] firebase-tools: 13.9.0 -> 13.10.0 --- pkgs/development/tools/firebase-tools/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/firebase-tools/default.nix b/pkgs/development/tools/firebase-tools/default.nix index f6a23d437c7b..4af5783d7112 100644 --- a/pkgs/development/tools/firebase-tools/default.nix +++ b/pkgs/development/tools/firebase-tools/default.nix @@ -8,16 +8,16 @@ buildNpmPackage rec { pname = "firebase-tools"; - version = "13.9.0"; + version = "13.10.0"; src = fetchFromGitHub { owner = "firebase"; repo = "firebase-tools"; rev = "v${version}"; - hash = "sha256-a/rtEDodVL0QCqxEhklDwiTSMFI1hKPrkbtsJH0Au64="; + hash = "sha256-g6VmfVBGAjMH2a+oQpS3fVJm9rRNrYFaVfZ/GeqLSus="; }; - npmDepsHash = "sha256-z7h+Jh3KuMkxn5gUDHYlU1+UyABHdLh2IFJiu6wFkhU="; + npmDepsHash = "sha256-W+XiuYTFmPgcS03U579/J3HsdPkX9WIHMR33DzWQlr8="; postPatch = '' ln -s npm-shrinkwrap.json package-lock.json From dc3b72af493d10d11da0e1f1340ab5c4d85b1ead Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:37:15 +0000 Subject: [PATCH 055/114] libretro.puae: unstable-2024-05-04 -> unstable-2024-05-20 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..b936b5a860f1 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -694,10 +694,10 @@ "src": { "owner": "libretro", "repo": "libretro-uae", - "rev": "106b98d50dab4b5648067096f0ba54acbf713fd3", - "hash": "sha256-UtZETlFrK59P6IK2i9Kt8qxRV8aEDMqxH7Oigm5sc1g=" + "rev": "3432007d28ef173707e2b32bd931932e5b74085d", + "hash": "sha256-spkl8A4mijM4uSpFojAFiYZl7tetWpCBKCDMUM8byUU=" }, - "version": "unstable-2024-05-04" + "version": "unstable-2024-05-20" }, "quicknes": { "fetcher": "fetchFromGitHub", From 2d64678308c2d2f3ce1fd7af53cdd827ce1d9967 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:56:37 +0000 Subject: [PATCH 056/114] ticker: 4.5.14 -> 4.6.2 --- pkgs/applications/misc/ticker/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/ticker/default.nix b/pkgs/applications/misc/ticker/default.nix index fdbc9c2a5cd4..a717135f48b4 100644 --- a/pkgs/applications/misc/ticker/default.nix +++ b/pkgs/applications/misc/ticker/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "ticker"; - version = "4.5.14"; + version = "4.6.2"; src = fetchFromGitHub { owner = "achannarasappa"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-WpU0fxkdNqr8zF6eGOlbaV9dp6sZyNZ1J7Uq+yGBnUs="; + hash = "sha256-bNqwQwYuaWThpVVlZji0uiNKf8Ynxs00bAD+iSnbtm8="; }; - vendorHash = "sha256-c7wU9LLRlS9kOhE4yAiKAs/npQe8lvSwPcd+/D8o9rk="; + vendorHash = "sha256-cTJa170oFFPRQSg3njZk26XvzsRRdJqcsFokKUWJr6Q="; ldflags = [ "-s" From e3ab2727781bf2ae44b687871f92df0e4863a72a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:56:43 +0000 Subject: [PATCH 057/114] rpm-ostree: 2024.5 -> 2024.6 --- pkgs/tools/misc/rpm-ostree/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/rpm-ostree/default.nix b/pkgs/tools/misc/rpm-ostree/default.nix index 8cf801da5712..835cff2cf018 100644 --- a/pkgs/tools/misc/rpm-ostree/default.nix +++ b/pkgs/tools/misc/rpm-ostree/default.nix @@ -40,13 +40,13 @@ stdenv.mkDerivation rec { pname = "rpm-ostree"; - version = "2024.5"; + version = "2024.6"; outputs = [ "out" "dev" "man" "devdoc" ]; src = fetchurl { url = "https://github.com/coreos/${pname}/releases/download/v${version}/${pname}-${version}.tar.xz"; - hash = "sha256-lwgEOnV82/EHRem3owngq4ALcjIWj7V1J552JsNCrBw="; + hash = "sha256-8jHT4ZQ8vcZ4S3qBNMhCPKSHbFIJCCXNWZVmgsLWxSs="; }; nativeBuildInputs = [ From 0e081da3a7f568e8e009c74d1f93a5d5c66cb753 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:57:15 +0000 Subject: [PATCH 058/114] libretro.fbneo: unstable-2024-05-15 -> unstable-2024-05-20 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..62469dd05478 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -287,10 +287,10 @@ "src": { "owner": "libretro", "repo": "fbneo", - "rev": "d64b24ca2eaf5dcdc0e9e5a8ada95af736ec80d7", - "hash": "sha256-3arvKLXFXr7+s08IF4Qv215qfvi6uOk3afpo8zT4d3I=" + "rev": "312473be86f25e1a0456d4bb9d12462d90d59131", + "hash": "sha256-QU+ZG1onr3BtXZAUT9o5LypFozZsAF6biTj05sKtV+s=" }, - "version": "unstable-2024-05-15" + "version": "unstable-2024-05-20" }, "fceumm": { "fetcher": "fetchFromGitHub", From fa41c157450d9b69e574c7c9ccca6d1b0dac403e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 03:44:48 +0000 Subject: [PATCH 059/114] libretro.bluemsx: unstable-2024-05-17 -> unstable-2024-05-20 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..38c5aa5b1700 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -155,10 +155,10 @@ "src": { "owner": "libretro", "repo": "bluemsx-libretro", - "rev": "0dcb73adef9601ca70d94b3f4e3ba1b3b54edbc0", - "hash": "sha256-jjo9vUMRZjHwhnh5OiC1JuNc/diJWoa/GcHwHnLIFqw=" + "rev": "df29d437204af0a5158b6ecb2d6b68296f8d979a", + "hash": "sha256-ULDnLHbEQ1+VR3axfbVaH4Kkuq/UDBA9JGuW9beraZ4=" }, - "version": "unstable-2024-05-17" + "version": "unstable-2024-05-20" }, "bsnes": { "fetcher": "fetchFromGitHub", From 529c3d261c0c74f0d57f95321e3acb58c42720a7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 03:45:22 +0000 Subject: [PATCH 060/114] libretro.mame: unstable-2024-05-09 -> unstable-2024-05-21 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..dc1dc3e2a4d7 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -408,11 +408,11 @@ "src": { "owner": "libretro", "repo": "mame", - "rev": "1c6d288bf15705ab93c66a11af40eaf9d2a515a2", - "hash": "sha256-h5hMfCwoECTyH/VU7IheQg5Jx9skpYrZlA9Xh+4lotQ=", + "rev": "4ee35952a8fdb1332e970fa14c3e79c8c968050c", + "hash": "sha256-UIAMq8AIdLKX8SIF2V0+Vc6kHPJ0rmdx4BeqoSrCfFE=", "fetchSubmodules": true }, - "version": "unstable-2024-05-09" + "version": "unstable-2024-05-21" }, "mame2000": { "fetcher": "fetchFromGitHub", From ac2296af833edccd737d2721433a6136dbd3704e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 03:47:21 +0000 Subject: [PATCH 061/114] talosctl: 1.7.1 -> 1.7.2 --- pkgs/applications/networking/cluster/talosctl/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/talosctl/default.nix b/pkgs/applications/networking/cluster/talosctl/default.nix index 25e4c7ab97ed..2b148c859e31 100644 --- a/pkgs/applications/networking/cluster/talosctl/default.nix +++ b/pkgs/applications/networking/cluster/talosctl/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "talosctl"; - version = "1.7.1"; + version = "1.7.2"; src = fetchFromGitHub { owner = "siderolabs"; repo = "talos"; rev = "v${version}"; - hash = "sha256-1UDPpavDjWoM5kSfyaT4H5y5ax/vVlfqpzN9U2sTVuk="; + hash = "sha256-hYfh/faOQtN1MTnaCHsdogzBU3Xf6BY4apK+VuVCh6E="; }; - vendorHash = "sha256-52RaQOJ2KTuc8wdk7vv5XsynKdMOwZ1LaqiPdB+jXPw="; + vendorHash = "sha256-5Dxtwu+PM0TbznIPTl8QxgOvNsQZUDMGY2kf+PSfCqo="; ldflags = [ "-s" "-w" ]; From e84a22d42798517d59fbbf4d2c3e9517c13bbd03 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Wed, 22 May 2024 11:25:25 +0800 Subject: [PATCH 062/114] python3Packages.pulumi-aws: 6.25.0 -> 6.37.0 fix build --- .../python-modules/pulumi-aws/default.nix | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/pulumi-aws/default.nix b/pkgs/development/python-modules/pulumi-aws/default.nix index 1255e4b9b7aa..1cdaf24ae2a0 100644 --- a/pkgs/development/python-modules/pulumi-aws/default.nix +++ b/pkgs/development/python-modules/pulumi-aws/default.nix @@ -1,27 +1,29 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, parver -, pulumi -, pythonOlder -, semver +{ + lib, + buildPythonPackage, + fetchFromGitHub, + parver, + pulumi, + pythonOlder, + semver, + setuptools, }: buildPythonPackage rec { pname = "pulumi-aws"; # Version is independant of pulumi's. - version = "6.25.0"; - format = "setuptools"; + version = "6.37.0"; - disabled = pythonOlder "3.7"; + pyproject = true; + build-system = [ setuptools ]; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "pulumi"; repo = "pulumi-aws"; rev = "refs/tags/v${version}"; - hash = "sha256-RtJIl90rTMFv4mLrDd2SxLYYLf0yKS//7+sxVBdNX8g="; + hash = "sha256-jThsT+OBBl3RQKLTxobXqgSlcyxYo5ZYsm+VaEwAJAk="; }; sourceRoot = "${src.name}/sdk/python"; @@ -35,9 +37,7 @@ buildPythonPackage rec { # Checks require cloud resources doCheck = false; - pythonImportsCheck = [ - "pulumi_aws" - ]; + pythonImportsCheck = [ "pulumi_aws" ]; meta = with lib; { description = "Pulumi python amazon web services provider"; From 5875762c833c86cf4da4fe1fd985a1ce6a5d5397 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 04:01:57 +0000 Subject: [PATCH 063/114] libretro.atari800: unstable-2023-11-14 -> unstable-2024-05-18 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..268c70395c3f 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -15,10 +15,10 @@ "src": { "owner": "libretro", "repo": "libretro-atari800", - "rev": "410d7bf0c215f3444793a9cec51c129e7b67c400", - "hash": "sha256-mUhAraZrmElB6rxQziQG6I2sCdkiX5wYBJhkZgpMSa0=" + "rev": "8bfa3b80f6a2db365dfd1e8a6c06b7b0844327cf", + "hash": "sha256-sUv1NT5aOwULOCC9vCrlRXcvVdlfZk9dmPMZg2NGAPg=" }, - "version": "unstable-2023-11-14" + "version": "unstable-2024-05-18" }, "beetle-gba": { "fetcher": "fetchFromGitHub", From b56286db09b5a67e14b521b919d4e46290f411ee Mon Sep 17 00:00:00 2001 From: nhnn Date: Tue, 21 May 2024 18:58:55 +0300 Subject: [PATCH 064/114] filesender: init at 2.48 --- pkgs/by-name/fi/filesender/package.nix | 39 ++++++ .../filesender/separate_mutable_paths.patch | 122 ++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 pkgs/by-name/fi/filesender/package.nix create mode 100644 pkgs/by-name/fi/filesender/separate_mutable_paths.patch diff --git a/pkgs/by-name/fi/filesender/package.nix b/pkgs/by-name/fi/filesender/package.nix new file mode 100644 index 000000000000..10816401b7db --- /dev/null +++ b/pkgs/by-name/fi/filesender/package.nix @@ -0,0 +1,39 @@ +{ + stdenv, + fetchFromGitHub, + lib, + nixosTests, +}: +stdenv.mkDerivation rec { + pname = "filesender"; + version = "2.48"; + + src = fetchFromGitHub { + owner = "filesender"; + repo = "filesender"; + rev = "filesender-${version}"; + hash = "sha256-lXA9XZ5gbfut2EQ5bF2w8rhAEM++8rQseWviKwfRWGk="; + }; + + patches = [ + # /nix/store is read-only, but filesender searches config and logs inside of installation directory. + # This patch changes search directories to FILESENDER_CONFIG_DIR and FILESENDER_LOG_DIR environment variables. + ./separate_mutable_paths.patch + ]; + + installPhase = '' + mkdir -p $out/ + cp -R . $out/ + ''; + + passthru.tests = { + inherit (nixosTests) filesender; + }; + + meta = { + description = "Web application for sending large files to other users"; + homepage = "https://filesender.org/"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ nhnn ]; + }; +} diff --git a/pkgs/by-name/fi/filesender/separate_mutable_paths.patch b/pkgs/by-name/fi/filesender/separate_mutable_paths.patch new file mode 100644 index 000000000000..cc618211cb3f --- /dev/null +++ b/pkgs/by-name/fi/filesender/separate_mutable_paths.patch @@ -0,0 +1,122 @@ +diff --git a/classes/utils/Config.class.php b/classes/utils/Config.class.php +index a4d819bc..3c2ed287 100644 +--- a/classes/utils/Config.class.php ++++ b/classes/utils/Config.class.php +@@ -30,7 +30,7 @@ + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +-if (!defined('FILESENDER_BASE')) { // Require environment (fatal) ++if (!defined('FILESENDER_BASE') || !defined("FILESENDER_CONFIG_DIR")) { // Require environment (fatal) + die('Missing environment'); + } + +@@ -116,7 +116,7 @@ class Config + } + + // Check if main config exists +- $main_config_file = FILESENDER_BASE.'/config/config.php'; ++ $main_config_file = FILESENDER_CONFIG_DIR.'/config/config.php'; + if (!file_exists($main_config_file)) { + throw new ConfigFileMissingException($main_config_file); + } +@@ -136,7 +136,7 @@ class Config + + + // load password file if it is there +- $pass_config_file = FILESENDER_BASE.'/config/config-passwords.php'; ++ $pass_config_file = FILESENDER_CONFIG_DIR.'/config/config-passwords.php'; + if (file_exists($pass_config_file)) { + $config = array(); + include_once($pass_config_file); +@@ -153,7 +153,7 @@ class Config + throw new ConfigBadParameterException('virtualhost'); + } + +- $config_file = FILESENDER_BASE.'/config/'.$virtualhost.'/config.php'; ++ $config_file = FILESENDER_CONFIG_DIR.'/config/'.$virtualhost.'/config.php'; + if (!file_exists($config_file)) { + throw new ConfigFileMissingException($config_file); + } // Should exist even if empty +@@ -175,7 +175,7 @@ class Config + } + foreach ($regex_and_configs as $regex => $extra_config_name) { + if (preg_match('`'.$regex.'`', $auth_attrs[$attr])) { +- $extra_config_file = FILESENDER_BASE.'/config/config-' . $extra_config_name . '.php'; ++ $extra_config_file = FILESENDER_CONFIG_DIR.'/config/config-' . $extra_config_name . '.php'; + if (file_exists($extra_config_file)) { + $config = array(); + include_once($extra_config_file); +@@ -204,7 +204,7 @@ class Config + // Load config overrides if any + $overrides_cfg = self::get('config_overrides'); + if ($overrides_cfg) { +- $overrides_file = FILESENDER_BASE.'/config/'.($virtualhost ? $virtualhost.'/' : '').'config_overrides.json'; ++ $overrides_file = FILESENDER_CONFIG_DIR.'/config/'.($virtualhost ? $virtualhost.'/' : '').'config_overrides.json'; + + $overrides = file_exists($overrides_file) ? json_decode(trim(file_get_contents($overrides_file))) : new StdClass(); + +@@ -431,7 +431,7 @@ class Config + public static function getVirtualhosts() + { + $virtualhosts = array(); +- foreach (scandir(FILESENDER_BASE.'/config') as $item) { ++ foreach (scandir(FILESENDER_CONFIG_DIR.'/config') as $item) { + if (!preg_match('`^(.+)\.conf\.php$`', $item, $match)) { + continue; + } +diff --git a/config/csrf-protector-config.php b/config/csrf-protector-config.php +index 83759ca4..ea4a3173 100755 +--- a/config/csrf-protector-config.php ++++ b/config/csrf-protector-config.php +@@ -40,7 +40,7 @@ return array( + // The following should be set correctly from your config.php + // information + "jsUrl" => $config['site_url'] . "/js/csrfprotector.js", +- "logDirectory" => FILESENDER_BASE.'/log/', ++ "logDirectory" => FILESENDER_LOG_DIR, + + // I found that leaving this with the _ as default + // caused the implicit token to be stripped +diff --git a/includes/ConfigDefaults.php b/includes/ConfigDefaults.php +index 733550e7..8d99b5f0 100644 +--- a/includes/ConfigDefaults.php ++++ b/includes/ConfigDefaults.php +@@ -224,7 +224,7 @@ $default = array( + 'log_facilities' => array( + array( + 'type' => 'file', +- 'path' => FILESENDER_BASE.'/log/', ++ 'path' => FILESENDER_LOG_DIR, + 'rotate' => 'hourly' + ) + ), +diff --git a/includes/ConfigValidation.php b/includes/ConfigValidation.php +index 5c1e7f61..b1fb57e4 100644 +--- a/includes/ConfigValidation.php ++++ b/includes/ConfigValidation.php +@@ -31,9 +31,9 @@ + */ + + // Require environment (fatal) +-if(!defined('FILESENDER_BASE')) die('Missing environment'); ++if(!defined('FILESENDER_BASE') || !defined("FILESENDER_CONFIG_DIR")) die('Missing environment'); + +-if(!file_exists(FILESENDER_BASE.'/config/config.php')) +++if(!file_exists(FILESENDER_CONFIG_DIR.'/config.php')) + die('Configuration file not found'); + + ConfigValidator::addCheck('site_url', 'string'); +diff --git a/includes/init.php b/includes/init.php +index ba7fa82f..31812c54 100644 +--- a/includes/init.php ++++ b/includes/init.php +@@ -35,6 +35,8 @@ if(PHP_INT_SIZE !== 8) { + } + + define('FILESENDER_BASE', dirname( __DIR__ )); ++define('FILESENDER_CONFIG_DIR', getenv('FILESENDER_CONFIG_DIR', true) ?: (FILESENDER_BASE.'/config')); ++define('FILESENDER_LOG_DIR', getenv('FILESENDER_LOG_DIR', true) ?: (FILESENDER_BASE.'/log')); + + // Include classes autoloader + require_once(FILESENDER_BASE.'/classes/autoload.php'); From 57c1d2768b1c727632019a9b7a20ef0e6520e923 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 04:05:01 +0000 Subject: [PATCH 065/114] libretro.flycast: unstable-2024-05-17 -> unstable-2024-05-21 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..a973be636c66 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -307,11 +307,11 @@ "src": { "owner": "flyinghead", "repo": "flycast", - "rev": "88f23958ace20840fb2666ccc42750a6f9b20d19", - "hash": "sha256-foLCf8E8HNT2DgSM5sUN4fkvJqBrlvOU6XBK4NgZzEU=", + "rev": "0fa3e9a37b37d2ab200a910ff2a5736ca8c57a1b", + "hash": "sha256-c2cDQ2MSsP/rUrX89Mj5Gplb0WS2EjjOBCNd5QFbuHw=", "fetchSubmodules": true }, - "version": "unstable-2024-05-17" + "version": "unstable-2024-05-21" }, "fmsx": { "fetcher": "fetchFromGitHub", From f8b18b5485fc088cf2340d6f58ec884d7f4ca02d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 04:10:43 +0000 Subject: [PATCH 066/114] libretro.swanstation: unstable-2024-05-06 -> unstable-2024-05-21 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..6d9a491ec451 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -814,10 +814,10 @@ "src": { "owner": "libretro", "repo": "swanstation", - "rev": "929958a1acaa075e32e108118b550e0449540cb6", - "hash": "sha256-UofVxdi+e1Y9d0ML/8lGahJCx5xnW5j9oDssRKrxYLU=" + "rev": "6a0cc4a1cf3b8a89150160f631f477c36dc6e559", + "hash": "sha256-YciqQW5Q9NYbzdsWeYc92CDWBaXT3HZmDsd3WkqPYzo=" }, - "version": "unstable-2024-05-06" + "version": "unstable-2024-05-21" }, "tgbdual": { "fetcher": "fetchFromGitHub", From cb374142e6f67c0067f7b8bd9e1956e1f49eec2a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 04:11:54 +0000 Subject: [PATCH 067/114] libretro.dosbox-pure: unstable-2024-05-15 -> unstable-2024-05-20 --- pkgs/applications/emulators/retroarch/hashes.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 1f5d42776bf3..b565c1dec0c4 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -246,10 +246,10 @@ "src": { "owner": "schellingb", "repo": "dosbox-pure", - "rev": "640452c18bbe15bfea4763883bcbc277317f1b6f", - "hash": "sha256-d1iyJNnq+ZbwAiRNOpmk+fDMnO/yg8EkvOuuHoyIyVw=" + "rev": "1c7ad4fafc5204e3aff83e2caa6020cb2fe43a2d", + "hash": "sha256-cOamfnwLilAz2I8CKA18JvauadbObuAq4JabNcdw7EQ=" }, - "version": "unstable-2024-05-15" + "version": "unstable-2024-05-20" }, "easyrpg": { "fetcher": "fetchFromGitHub", From 9f67f1edc2f5f6c9c8c2d650f041e4b66f21b73e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 04:45:52 +0000 Subject: [PATCH 068/114] crunchy-cli: 3.6.2 -> 3.6.4 --- pkgs/by-name/cr/crunchy-cli/Cargo.lock | 107 ++++++++++++------------ pkgs/by-name/cr/crunchy-cli/package.nix | 7 +- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/pkgs/by-name/cr/crunchy-cli/Cargo.lock b/pkgs/by-name/cr/crunchy-cli/Cargo.lock index 198afc90c11d..5ea720f25c61 100644 --- a/pkgs/by-name/cr/crunchy-cli/Cargo.lock +++ b/pkgs/by-name/cr/crunchy-cli/Cargo.lock @@ -92,9 +92,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.83" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25bdb32cbbdce2b519a9cd7df3a678443100e265d5e25ca763b7572a5104f5f3" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "async-speed-limit" @@ -119,6 +119,12 @@ dependencies = [ "syn", ] +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + [[package]] name = "autocfg" version = "1.3.0" @@ -188,9 +194,9 @@ checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" [[package]] name = "cc" -version = "1.0.97" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099a5357d84c4c61eb35fc8eafa9a79a902c2f76911e5747ced4e032edd8d9b4" +checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f" [[package]] name = "cfg-if" @@ -238,7 +244,7 @@ dependencies = [ "anstream", "anstyle", "clap_lex", - "strsim 0.11.1", + "strsim", ] [[package]] @@ -343,7 +349,7 @@ checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "crunchy-cli" -version = "3.6.2" +version = "3.6.4" dependencies = [ "chrono", "clap", @@ -356,7 +362,7 @@ dependencies = [ [[package]] name = "crunchy-cli-core" -version = "3.6.2" +version = "3.6.4" dependencies = [ "anyhow", "async-speed-limit", @@ -441,9 +447,9 @@ dependencies = [ [[package]] name = "darling" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54e36fcd13ed84ffdfda6f5be89b31287cbb80c439841fe69e04841435464391" +checksum = "83b2eb4d90d12bdda5ed17de686c2acb4c57914f8f921b8da7e112b5a36f3fe1" dependencies = [ "darling_core", "darling_macro", @@ -451,23 +457,23 @@ dependencies = [ [[package]] name = "darling_core" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c2cf1c23a687a1feeb728783b993c4e1ad83d99f351801977dd809b48d0a70f" +checksum = "622687fe0bac72a04e5599029151f5796111b90f1baaa9b544d807a5e31cd120" dependencies = [ "fnv", "ident_case", "proc-macro2", "quote", - "strsim 0.10.0", + "strsim", "syn", ] [[package]] name = "darling_macro" -version = "0.20.8" +version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a668eda54683121533a393014d8692171709ff57a7d61f187b6e782719f8933f" +checksum = "733cabb43482b1a1b53eee8583c2b9e8684d592215ea83efd305dd31bc2f0178" dependencies = [ "darling_core", "quote", @@ -476,9 +482,9 @@ dependencies = [ [[package]] name = "dash-mpd" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "876a00c22923799ac46365eb528c10134f979bf58ced5e3113de5b98d9835290" +checksum = "4618a5e165bf47b084963611bcf1d568c681f52d8a237e8862a0cd8c546ba255" dependencies = [ "base64 0.22.1", "base64-serde", @@ -555,9 +561,9 @@ dependencies = [ [[package]] name = "either" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" +checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" [[package]] name = "encode_unicode" @@ -733,15 +739,15 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "h2" -version = "0.4.4" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "816ec7294445779408f36fe57bc5b7fc1cf59664059096c65f905c1c61f58069" +checksum = "fa82e28a107a8cc405f0839610bdc9b15f1e25ec7d696aa5cf173edbcb1486ab" dependencies = [ + "atomic-waker", "bytes", "fnv", "futures-core", "futures-sink", - "futures-util", "http", "indexmap 2.2.6", "slab", @@ -979,9 +985,9 @@ dependencies = [ [[package]] name = "instant" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ "cfg-if", ] @@ -1043,9 +1049,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.154" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "libredox" @@ -1059,9 +1065,9 @@ dependencies = [ [[package]] name = "linux-raw-sys" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "log" @@ -1099,9 +1105,9 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" +checksum = "87dfd01fe195c66b572b37921ad8803d010623c0aca821bea2302239d155cdae" dependencies = [ "adler", ] @@ -1120,7 +1126,7 @@ dependencies = [ [[package]] name = "native-tls" version = "0.2.11" -source = "git+https://github.com/crunchy-labs/rust-not-so-native-tls.git?rev=fdba246#fdba246a79986607cbdf573733445498bb6da2a9" +source = "git+https://github.com/crunchy-labs/rust-not-so-native-tls.git?rev=b7969a8#b7969a88210096e0570e29d42fb13533baf62aa6" dependencies = [ "libc", "log", @@ -1253,9 +1259,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-src" -version = "300.2.3+3.2.1" +version = "300.3.0+3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cff92b6f71555b61bb9315f7c64da3ca43d87531622120fea0195fc761b4843" +checksum = "eba8804a1c5765b18c4b3f907e6897ebabeedebc9830e1a0046c4a4cf44663e1" dependencies = [ "cc", ] @@ -1346,9 +1352,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.82" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ad3d49ab951a01fbaafe34f2ec74122942fe18a3f9814c3268f1bb72042131b" +checksum = "0b33eb56c327dec362a9e55b3ad14f9d2f0904fb5a5b03b513ab5465399e9f43" dependencies = [ "unicode-ident", ] @@ -1514,8 +1520,7 @@ checksum = "b833d8d034ea094b1ea68aa6d5c740e0d04bad9d16568d08ba6f76823a114316" [[package]] name = "rsubs-lib" version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43e1a7f184bc76407dbaa67bd2aeea8a15430d7e1e498070963336d03ebedee" +source = "git+https://github.com/crunchy-labs/rsubs-lib.git?rev=1c51f60#1c51f60b8c48f1a8f7b261372b237d89bdc17dd4" dependencies = [ "regex", "serde", @@ -1613,9 +1618,9 @@ checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" [[package]] name = "rustls-webpki" -version = "0.102.3" +version = "0.102.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3bce581c0dd41bce533ce695a1437fa16a7ab5ac3ccfa99fe1a620a7885eabf" +checksum = "ff448f7e92e913c4b7d4c6d8e4540a1724b319b4152b8aef6d4cf8339712b33e" dependencies = [ "ring", "rustls-pki-types", @@ -1672,18 +1677,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.201" +version = "1.0.202" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "780f1cebed1629e4753a1a38a3c72d30b97ec044f0aef68cb26650a3c5cf363c" +checksum = "226b61a0d411b2ba5ff6d7f73a476ac4f8bb900373459cd00fab8512828ba395" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.201" +version = "1.0.202" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5e405930b9796f1c00bee880d03fc7e0bb4b9a11afc776885ffe84320da2865" +checksum = "6048858004bcff69094cd972ed40a32500f153bd3be9f716b2eed2e8217c4838" dependencies = [ "proc-macro2", "quote", @@ -1822,12 +1827,6 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe895eb47f22e2ddd4dabc02bce419d2e643c8e3b585c78158b349195bc24d82" -[[package]] -name = "strsim" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" - [[package]] name = "strsim" version = "0.11.1" @@ -1842,9 +1841,9 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "syn" -version = "2.0.63" +version = "2.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf5be731623ca1a1fb7d8be6f261a3be6d3e2337b8a1f97be944d020c8fcb704" +checksum = "d2863d96a84c6439701d7a38f9de935ec562c8832cc55d1dde0f513b52fad106" dependencies = [ "proc-macro2", "quote", @@ -1901,18 +1900,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.60" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "579e9083ca58dd9dcf91a9923bb9054071b9ebbd800b342194c9feb0ee89fc18" +checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.60" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2470041c06ec3ac1ab38d0356a6119054dedaea53e12fbefc0de730a1c08524" +checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ "proc-macro2", "quote", diff --git a/pkgs/by-name/cr/crunchy-cli/package.nix b/pkgs/by-name/cr/crunchy-cli/package.nix index 059b28b1a4e0..7a618986734c 100644 --- a/pkgs/by-name/cr/crunchy-cli/package.nix +++ b/pkgs/by-name/cr/crunchy-cli/package.nix @@ -10,19 +10,20 @@ rustPlatform.buildRustPackage rec { pname = "crunchy-cli"; - version = "3.6.2"; + version = "3.6.4"; src = fetchFromGitHub { owner = "crunchy-labs"; repo = "crunchy-cli"; rev = "v${version}"; - hash = "sha256-gBkM+bcYfQNadFdC0lelaZmHi73zZvoq5HbgndMhbHk="; + hash = "sha256-ujR/ZTQoNdxVuGd8fie7JwVINqcjwAwyou+iCihYOY0="; }; cargoLock = { lockFile = ./Cargo.lock; outputHashes = { - "native-tls-0.2.11" = "sha256-+NeXsxuThKNOzVLBItKcuTAM/0zR/BzJGMKkuq99gBM="; + "native-tls-0.2.11" = "sha256-r+uvpwf1qgOVYuh+3xYOOsDWyCJnyG4Qc8i7RV2nzy4="; + "rsubs-lib-0.3.0" = "sha256-hn0/KxUHgmC3hs8sAMkJKxR7WIjc8YGq9DJU2SriO1A="; }; }; From 3d475651936f23c61d7f9dab707ca0c04ae8b342 Mon Sep 17 00:00:00 2001 From: nhnn Date: Tue, 21 May 2024 19:27:45 +0300 Subject: [PATCH 069/114] nixos/filesender: init module --- .../manual/release-notes/rl-2405.section.md | 2 + nixos/modules/module-list.nix | 1 + nixos/modules/services/web-apps/filesender.md | 49 ++++ .../modules/services/web-apps/filesender.nix | 253 ++++++++++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/filesender.nix | 137 ++++++++++ pkgs/by-name/fi/filesender/package.nix | 10 +- .../filesender/separate_mutable_paths.patch | 16 +- 8 files changed, 458 insertions(+), 11 deletions(-) create mode 100644 nixos/modules/services/web-apps/filesender.md create mode 100644 nixos/modules/services/web-apps/filesender.nix create mode 100644 nixos/tests/filesender.nix diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md index 3399e7a7ef44..14143c3037c6 100644 --- a/nixos/doc/manual/release-notes/rl-2405.section.md +++ b/nixos/doc/manual/release-notes/rl-2405.section.md @@ -197,6 +197,8 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m - [your_spotify](https://github.com/Yooooomi/your_spotify), a self hosted Spotify tracking dashboard. Available as [services.your_spotify](#opt-services.your_spotify.enable) +- [FileSender](https://filesender.org/), a file sharing software. Available as [services.filesender](#opt-services.filesender.enable). + ## Backward Incompatibilities {#sec-release-24.05-incompatibilities} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index bd5b79f19faa..70482bffed56 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1353,6 +1353,7 @@ ./services/web-apps/dolibarr.nix ./services/web-apps/engelsystem.nix ./services/web-apps/ethercalc.nix + ./services/web-apps/filesender.nix ./services/web-apps/firefly-iii.nix ./services/web-apps/flarum.nix ./services/web-apps/fluidd.nix diff --git a/nixos/modules/services/web-apps/filesender.md b/nixos/modules/services/web-apps/filesender.md new file mode 100644 index 000000000000..44d066761b9a --- /dev/null +++ b/nixos/modules/services/web-apps/filesender.md @@ -0,0 +1,49 @@ +# FileSender {#module-services-filesender} + +[FileSender](https://filesender.org/software/) is a software that makes it easy to send and receive big files. + +## Quickstart {#module-services-filesender-quickstart} + +FileSender uses [SimpleSAMLphp](https://simplesamlphp.org/) for authentication, which needs to be configured separately. + +Minimal working instance of FileSender that uses password-authentication would look like this: + +```nix +{ + networking.firewall.allowedTCPPorts = [ 80 443 ]; + services.filesender = { + enable = true; + localDomain = "filesender.example.com"; + configureNginx = true; + database.createLocally = true; + + settings = { + auth_sp_saml_authentication_source = "default"; + auth_sp_saml_uid_attribute = "uid"; + storage_filesystem_path = ""; + admin = "admin"; + admin_email = "admin@example.com"; + email_reply_to = "noreply@example.com"; + }; + }; + services.simplesamlphp.filesender = { + settings = { + "module.enable".exampleauth = true; + }; + authSources = { + admin = [ "core:AdminPassword" ]; + default = format.lib.mkMixedArray [ "exampleauth:UserPass" ] { + "admin:admin123" = { + uid = [ "admin" ]; + cn = [ "admin" ]; + mail = [ "admin@example.com" ]; + }; + }; + }; + }; +} +``` + +::: {.warning} +Example above uses hardcoded clear-text password, in production you should use other authentication method like LDAP. You can check supported authentication methods [in SimpleSAMLphp documentation](https://simplesamlphp.org/docs/stable/simplesamlphp-idp.html). +::: diff --git a/nixos/modules/services/web-apps/filesender.nix b/nixos/modules/services/web-apps/filesender.nix new file mode 100644 index 000000000000..bc8d465643f2 --- /dev/null +++ b/nixos/modules/services/web-apps/filesender.nix @@ -0,0 +1,253 @@ +{ + config, + lib, + pkgs, + ... +}: +let + format = pkgs.formats.php { finalVariable = "config"; }; + + cfg = config.services.filesender; + simpleSamlCfg = config.services.simplesamlphp.filesender; + fpm = config.services.phpfpm.pools.filesender; + + filesenderConfigDirectory = pkgs.runCommand "filesender-config" { } '' + mkdir $out + cp ${format.generate "config.php" cfg.settings} $out/config.php + ''; +in +{ + meta = { + maintainers = with lib.maintainers; [ nhnn ]; + doc = ./filesender.md; + }; + + options.services.filesender = with lib; { + enable = mkEnableOption "FileSender"; + package = mkPackageOption pkgs "filesender" { }; + user = mkOption { + description = "User under which filesender runs."; + type = types.str; + default = "filesender"; + }; + database = { + createLocally = mkOption { + type = types.bool; + default = true; + description = '' + Create the PostgreSQL database and database user locally. + ''; + }; + hostname = mkOption { + type = types.str; + default = "/run/postgresql"; + description = "Database hostname."; + }; + port = mkOption { + type = types.port; + default = 5432; + description = "Database port."; + }; + name = mkOption { + type = types.str; + default = "filesender"; + description = "Database name."; + }; + user = mkOption { + type = types.str; + default = "filesender"; + description = "Database user."; + }; + passwordFile = mkOption { + type = types.nullOr types.path; + default = null; + example = "/run/keys/filesender-dbpassword"; + description = '' + A file containing the password corresponding to + [](#opt-services.filesender.database.user). + ''; + }; + }; + settings = mkOption { + type = types.submodule { + freeformType = format.type; + options = { + site_url = mkOption { + type = types.str; + description = "Site URL. Used in emails, to build URLs for logging in, logging out, build URL for upload endpoint for web workers, to include scripts etc."; + }; + admin = mkOption { + type = types.commas; + description = '' + UIDs (as per the configured saml_uid_attribute) of FileSender administrators. + Accounts with these UIDs can access the Admin page through the web UI. + ''; + }; + admin_email = mkOption { + type = types.commas; + description = '' + Email address of FileSender administrator(s). + Emails regarding disk full etc. are sent here. + You should use a role-address here. + ''; + }; + storage_filesystem_path = mkOption { + type = types.nullOr types.str; + description = "When using storage type filesystem this is the absolute path to the file system where uploaded files are stored until they expire. Your FileSender storage root."; + }; + log_facilities = mkOption { + type = format.type; + default = [ { type = "error_log"; } ]; + description = "Defines where FileSender logging is sent. You can sent logging to a file, to syslog or to the default PHP log facility (as configured through your webserver's PHP module). The directive takes an array of one or more logging targets. Logging can be sent to multiple targets simultaneously. Each logging target is a list containing the name of the logging target and a number of attributes which vary per log target. See below for the exact definiation of each log target."; + }; + }; + }; + default = { }; + description = '' + Configuration options used by FileSender. + See [](https://docs.filesender.org/filesender/v2.0/admin/configuration/) + for available options. + ''; + }; + configureNginx = mkOption { + type = types.bool; + default = true; + description = "Configure nginx as a reverse proxy for FileSender."; + }; + localDomain = mkOption { + type = types.str; + example = "filesender.example.org"; + description = "The domain serving your FileSender instance."; + }; + poolSettings = mkOption { + type = + with types; + attrsOf (oneOf [ + str + int + bool + ]); + default = { + "pm" = "dynamic"; + "pm.max_children" = "32"; + "pm.start_servers" = "2"; + "pm.min_spare_servers" = "2"; + "pm.max_spare_servers" = "4"; + "pm.max_requests" = "500"; + }; + description = '' + Options for FileSender's PHP pool. See the documentation on `php-fpm.conf` for details on configuration directives. + ''; + }; + }; + config = lib.mkIf cfg.enable { + services.simplesamlphp.filesender = { + phpfpmPool = "filesender"; + localDomain = cfg.localDomain; + settings.baseurlpath = lib.mkDefault "https://${cfg.localDomain}/saml"; + }; + + services.phpfpm = { + pools.filesender = { + user = cfg.user; + group = config.services.nginx.group; + phpEnv = { + FILESENDER_CONFIG_DIR = toString filesenderConfigDirectory; + SIMPLESAMLPHP_CONFIG_DIR = toString simpleSamlCfg.configDir; + }; + settings = { + "listen.owner" = config.services.nginx.user; + "listen.group" = config.services.nginx.group; + } // cfg.poolSettings; + }; + }; + + services.nginx = lib.mkIf cfg.configureNginx { + enable = true; + virtualHosts.${cfg.localDomain} = { + root = "${cfg.package}/www"; + extraConfig = '' + index index.php; + ''; + locations = { + "/".extraConfig = '' + try_files $uri $uri/ /index.php?args; + ''; + "~ [^/]\\.php(/|$)" = { + extraConfig = '' + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:${fpm.socket}; + include ${pkgs.nginx}/conf/fastcgi.conf; + fastcgi_intercept_errors on; + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + ''; + }; + "~ /\\.".extraConfig = "deny all;"; + }; + }; + }; + + services.postgresql = lib.mkIf cfg.database.createLocally { + enable = true; + ensureDatabases = [ cfg.database.name ]; + ensureUsers = [ + { + name = cfg.database.user; + ensureDBOwnership = true; + } + ]; + }; + + services.filesender.settings = lib.mkMerge [ + (lib.mkIf cfg.database.createLocally { + db_host = "/run/postgresql"; + db_port = "5432"; + db_password = "."; # FileSender requires it even when on UNIX socket auth. + }) + (lib.mkIf (!cfg.database.createLocally) { + db_host = cfg.database.hostname; + db_port = toString cfg.database.port; + db_password = format.lib.mkRaw "file_get_contents('${cfg.database.passwordFile}')"; + }) + { + site_url = lib.mkDefault "https://${cfg.localDomain}"; + db_type = "pgsql"; + db_username = cfg.database.user; + db_database = cfg.database.name; + "auth_sp_saml_simplesamlphp_url" = "/saml"; + "auth_sp_saml_simplesamlphp_location" = "${simpleSamlCfg.libDir}"; + } + ]; + + systemd.services.filesender-initdb = { + description = "Init filesender DB"; + + wantedBy = [ + "multi-user.target" + "phpfpm-filesender.service" + ]; + after = [ "postgresql.service" ]; + + restartIfChanged = true; + + serviceConfig = { + Environment = [ + "FILESENDER_CONFIG_DIR=${toString filesenderConfigDirectory}" + "SIMPLESAMLPHP_CONFIG_DIR=${toString simpleSamlCfg.configDir}" + ]; + Type = "oneshot"; + Group = config.services.nginx.group; + User = "filesender"; + ExecStart = "${fpm.phpPackage}/bin/php ${cfg.package}/scripts/upgrade/database.php"; + }; + }; + + users.extraUsers.filesender = lib.mkIf (cfg.user == "filesender") { + home = "/var/lib/filesender"; + group = config.services.nginx.group; + createHome = true; + isSystemUser = true; + }; + }; +} diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 3e4cfce7ae87..8146a9b86026 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -312,6 +312,7 @@ in { fenics = handleTest ./fenics.nix {}; ferm = handleTest ./ferm.nix {}; ferretdb = handleTest ./ferretdb.nix {}; + filesender = handleTest ./filesender.nix {}; filesystems-overlayfs = runTest ./filesystems-overlayfs.nix; firefly-iii = handleTest ./firefly-iii.nix {}; firefox = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox; }; diff --git a/nixos/tests/filesender.nix b/nixos/tests/filesender.nix new file mode 100644 index 000000000000..9274ddbf7e90 --- /dev/null +++ b/nixos/tests/filesender.nix @@ -0,0 +1,137 @@ +import ./make-test-python.nix ({ pkgs, lib, ... }: { + name = "filesender"; + meta = { + maintainers = with lib.maintainers; [ nhnn ]; + broken = pkgs.stdenv.isAarch64; # selenium.common.exceptions.WebDriverException: Message: Unsupported platform/architecture combination: linux/aarch64 + }; + + nodes.filesender = { ... }: let + format = pkgs.formats.php { }; + in { + networking.firewall.allowedTCPPorts = [ 80 ]; + + services.filesender.enable = true; + services.filesender.localDomain = "filesender"; + services.filesender.settings = { + auth_sp_saml_authentication_source = "default"; + auth_sp_saml_uid_attribute = "uid"; + storage_filesystem_path = "/tmp"; + site_url = "http://filesender"; + force_ssl = false; + admin = ""; + admin_email = "admin@localhost"; + email_reply_to = "noreply@localhost"; + }; + services.simplesamlphp.filesender = { + settings = { + baseurlpath = "http://filesender/saml"; + "module.enable".exampleauth = true; + }; + authSources = { + admin = [ "core:AdminPassword" ]; + default = format.lib.mkMixedArray [ "exampleauth:UserPass" ] { + "user:password" = { + uid = [ "user" ]; + cn = [ "user" ]; + mail = [ "user@nixos.org" ]; + }; + }; + }; + }; + }; + + nodes.client = + { pkgs + , nodes + , ... + }: + let + filesenderIP = (builtins.head (nodes.filesender.networking.interfaces.eth1.ipv4.addresses)).address; + in + { + networking.hosts.${filesenderIP} = [ "filesender" ]; + + environment.systemPackages = + let + username = "user"; + password = "password"; + browser-test = + pkgs.writers.writePython3Bin "browser-test" + { + libraries = [ pkgs.python3Packages.selenium ]; + flakeIgnore = [ "E124" "E501" ]; + } '' + from selenium.webdriver.common.by import By + from selenium.webdriver import Firefox + from selenium.webdriver.firefox.options import Options + from selenium.webdriver.firefox.firefox_profile import FirefoxProfile + from selenium.webdriver.firefox.service import Service + from selenium.webdriver.support.ui import WebDriverWait + from selenium.webdriver.support import expected_conditions as EC + from subprocess import STDOUT + import string + import random + import logging + import time + selenium_logger = logging.getLogger("selenium") + selenium_logger.setLevel(logging.DEBUG) + selenium_logger.addHandler(logging.StreamHandler()) + profile = FirefoxProfile() + profile.set_preference("browser.download.folderList", 2) + profile.set_preference("browser.download.manager.showWhenStarting", False) + profile.set_preference("browser.download.dir", "/tmp/firefox") + profile.set_preference("browser.helperApps.neverAsk.saveToDisk", "text/plain;text/txt") + options = Options() + options.profile = profile + options.add_argument('--headless') + service = Service(log_output=STDOUT) + driver = Firefox(options=options) + driver.set_window_size(1024, 768) + driver.implicitly_wait(30) + driver.get('http://filesender/') + wait = WebDriverWait(driver, 20) + wait.until(EC.title_contains("FileSender")) + driver.find_element(By.ID, "btn_logon").click() + wait.until(EC.title_contains("Enter your username and password")) + driver.find_element(By.ID, 'username').send_keys( + '${username}' + ) + driver.find_element(By.ID, 'password').send_keys( + '${password}' + ) + driver.find_element(By.ID, "submit_button").click() + wait.until(EC.title_contains("FileSender")) + wait.until(EC.presence_of_element_located((By.ID, "topmenu_logoff"))) + test_string = "".join(random.choices(string.ascii_uppercase + string.digits, k=20)) + with open("/tmp/test_file.txt", "w") as file: + file.write(test_string) + driver.find_element(By.ID, "files").send_keys("/tmp/test_file.txt") + time.sleep(2) + driver.find_element(By.CSS_SELECTOR, '.start').click() + wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, ".download_link"))) + download_link = driver.find_element(By.CSS_SELECTOR, '.download_link > textarea').get_attribute('value').strip() + driver.get(download_link) + wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, ".download"))) + driver.find_element(By.CSS_SELECTOR, '.download').click() + wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, ".ui-dialog-buttonset > button:nth-child(2)"))) + driver.find_element(By.CSS_SELECTOR, ".ui-dialog-buttonset > button:nth-child(2)").click() + driver.close() + driver.quit() + ''; + in + [ + pkgs.firefox-unwrapped + pkgs.geckodriver + browser-test + ]; + }; + + testScript = '' + start_all() + filesender.wait_for_file("/run/phpfpm/filesender.sock") + filesender.wait_for_open_port(80) + if "If you have received an invitation to access this site as a guest" not in client.wait_until_succeeds("curl -sS -f http://filesender"): + raise Exception("filesender returned invalid html") + client.succeed("browser-test") + ''; +}) diff --git a/pkgs/by-name/fi/filesender/package.nix b/pkgs/by-name/fi/filesender/package.nix index 10816401b7db..6cf4f36fd870 100644 --- a/pkgs/by-name/fi/filesender/package.nix +++ b/pkgs/by-name/fi/filesender/package.nix @@ -4,14 +4,14 @@ lib, nixosTests, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "filesender"; version = "2.48"; src = fetchFromGitHub { owner = "filesender"; repo = "filesender"; - rev = "filesender-${version}"; + rev = "filesender-${finalAttrs.version}"; hash = "sha256-lXA9XZ5gbfut2EQ5bF2w8rhAEM++8rQseWviKwfRWGk="; }; @@ -22,8 +22,12 @@ stdenv.mkDerivation rec { ]; installPhase = '' + runHook preInstall + mkdir -p $out/ cp -R . $out/ + + runHook postInstall ''; passthru.tests = { @@ -36,4 +40,4 @@ stdenv.mkDerivation rec { license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ nhnn ]; }; -} +}) diff --git a/pkgs/by-name/fi/filesender/separate_mutable_paths.patch b/pkgs/by-name/fi/filesender/separate_mutable_paths.patch index cc618211cb3f..c320e5872168 100644 --- a/pkgs/by-name/fi/filesender/separate_mutable_paths.patch +++ b/pkgs/by-name/fi/filesender/separate_mutable_paths.patch @@ -1,5 +1,5 @@ diff --git a/classes/utils/Config.class.php b/classes/utils/Config.class.php -index a4d819bc..3c2ed287 100644 +index a4d819bc..318defdf 100644 --- a/classes/utils/Config.class.php +++ b/classes/utils/Config.class.php @@ -30,7 +30,7 @@ @@ -16,7 +16,7 @@ index a4d819bc..3c2ed287 100644 // Check if main config exists - $main_config_file = FILESENDER_BASE.'/config/config.php'; -+ $main_config_file = FILESENDER_CONFIG_DIR.'/config/config.php'; ++ $main_config_file = FILESENDER_CONFIG_DIR.'/config.php'; if (!file_exists($main_config_file)) { throw new ConfigFileMissingException($main_config_file); } @@ -25,7 +25,7 @@ index a4d819bc..3c2ed287 100644 // load password file if it is there - $pass_config_file = FILESENDER_BASE.'/config/config-passwords.php'; -+ $pass_config_file = FILESENDER_CONFIG_DIR.'/config/config-passwords.php'; ++ $pass_config_file = FILESENDER_CONFIG_DIR.'/config-passwords.php'; if (file_exists($pass_config_file)) { $config = array(); include_once($pass_config_file); @@ -34,7 +34,7 @@ index a4d819bc..3c2ed287 100644 } - $config_file = FILESENDER_BASE.'/config/'.$virtualhost.'/config.php'; -+ $config_file = FILESENDER_CONFIG_DIR.'/config/'.$virtualhost.'/config.php'; ++ $config_file = FILESENDER_CONFIG_DIR.$virtualhost.'/config.php'; if (!file_exists($config_file)) { throw new ConfigFileMissingException($config_file); } // Should exist even if empty @@ -43,7 +43,7 @@ index a4d819bc..3c2ed287 100644 foreach ($regex_and_configs as $regex => $extra_config_name) { if (preg_match('`'.$regex.'`', $auth_attrs[$attr])) { - $extra_config_file = FILESENDER_BASE.'/config/config-' . $extra_config_name . '.php'; -+ $extra_config_file = FILESENDER_CONFIG_DIR.'/config/config-' . $extra_config_name . '.php'; ++ $extra_config_file = FILESENDER_CONFIG_DIR.'/config-' . $extra_config_name . '.php'; if (file_exists($extra_config_file)) { $config = array(); include_once($extra_config_file); @@ -52,7 +52,7 @@ index a4d819bc..3c2ed287 100644 $overrides_cfg = self::get('config_overrides'); if ($overrides_cfg) { - $overrides_file = FILESENDER_BASE.'/config/'.($virtualhost ? $virtualhost.'/' : '').'config_overrides.json'; -+ $overrides_file = FILESENDER_CONFIG_DIR.'/config/'.($virtualhost ? $virtualhost.'/' : '').'config_overrides.json'; ++ $overrides_file = FILESENDER_CONFIG_DIR.($virtualhost ? $virtualhost.'/' : '').'config_overrides.json'; $overrides = file_exists($overrides_file) ? json_decode(trim(file_get_contents($overrides_file))) : new StdClass(); @@ -61,7 +61,7 @@ index a4d819bc..3c2ed287 100644 { $virtualhosts = array(); - foreach (scandir(FILESENDER_BASE.'/config') as $item) { -+ foreach (scandir(FILESENDER_CONFIG_DIR.'/config') as $item) { ++ foreach (scandir(FILESENDER_CONFIG_DIR) as $item) { if (!preg_match('`^(.+)\.conf\.php$`', $item, $match)) { continue; } @@ -103,7 +103,7 @@ index 5c1e7f61..b1fb57e4 100644 +if(!defined('FILESENDER_BASE') || !defined("FILESENDER_CONFIG_DIR")) die('Missing environment'); -if(!file_exists(FILESENDER_BASE.'/config/config.php')) -++if(!file_exists(FILESENDER_CONFIG_DIR.'/config.php')) ++if(!file_exists(FILESENDER_CONFIG_DIR.'/config.php')) die('Configuration file not found'); ConfigValidator::addCheck('site_url', 'string'); From 346073c3e6ea43ca6a6d37f4212e710dffc4fb05 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 06:12:56 +0000 Subject: [PATCH 070/114] kops: 1.28.4 -> 1.29.0 --- pkgs/applications/networking/cluster/kops/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/kops/default.nix b/pkgs/applications/networking/cluster/kops/default.nix index 7f051075a5b3..bcd0b78f7a52 100644 --- a/pkgs/applications/networking/cluster/kops/default.nix +++ b/pkgs/applications/networking/cluster/kops/default.nix @@ -62,8 +62,8 @@ rec { }; kops_1_28 = mkKops rec { - version = "1.28.4"; - sha256 = "sha256-nknsrLdV7tQKLOir5RM3LRhTS+dyiAc1GjbByJzjwCo="; + version = "1.29.0"; + sha256 = "sha256-YneB9pc4IR+tYPRFE5CS+4JK/kPOHMo5/70A3k1x1tg="; rev = "v${version}"; }; } From d2077863046ece7c8442de0c2b32abdc9ee3ee68 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 06:25:24 +0000 Subject: [PATCH 071/114] python311Packages.weaviate-client: 4.6.2 -> 4.6.3 --- pkgs/development/python-modules/weaviate-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/weaviate-client/default.nix b/pkgs/development/python-modules/weaviate-client/default.nix index 8e5b16ef0015..d9916af5069d 100644 --- a/pkgs/development/python-modules/weaviate-client/default.nix +++ b/pkgs/development/python-modules/weaviate-client/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "weaviate-client"; - version = "4.6.2"; + version = "4.6.3"; pyproject = true; disabled = pythonOlder "3.8"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "weaviate"; repo = "weaviate-python-client"; rev = "refs/tags/v${version}"; - hash = "sha256-BegAiAOhVafH7NWVgayRbdLKBYjWmD5zC6P7tU11XKM="; + hash = "sha256-v8I0ovH99q5uYlnbZsQYgL9mg3n9i59W2n6/d9IiKyQ="; }; pythonRelaxDeps = [ From 3909137ad69f82e09647e674c7c24527ecb62956 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 06:25:50 +0000 Subject: [PATCH 072/114] pv-migrate: 1.8.0 -> 2.0.1 --- pkgs/applications/networking/cluster/pv-migrate/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/pv-migrate/default.nix b/pkgs/applications/networking/cluster/pv-migrate/default.nix index c2d38e2a7c89..0d7b6db8a706 100644 --- a/pkgs/applications/networking/cluster/pv-migrate/default.nix +++ b/pkgs/applications/networking/cluster/pv-migrate/default.nix @@ -2,18 +2,18 @@ buildGoModule rec { pname = "pv-migrate"; - version = "1.8.0"; + version = "2.0.1"; src = fetchFromGitHub { owner = "utkuozdemir"; repo = pname; rev = "v${version}"; - sha256 = "sha256-HeK8/IZTqkrJxfmNIYOm8/jY3Fbof8t7/emdHONvMZo="; + sha256 = "sha256-QD/yacQOII1AS9VHB/2cTgoxLioyKYoROSizkHooX9w="; }; subPackages = [ "cmd/pv-migrate" ]; - vendorHash = "sha256-q8/Rb26ZY/Rn3FnESnAvPr+LrIvFFlSJnN6c0k8+sHg="; + vendorHash = "sha256-NXL7LaGSfiJW9lQrZyh5Iw1QvQ9T8omfafADm4PlGik="; ldflags = [ "-s" From 4ea05703b3efc8150632491c394b8353e534a1de Mon Sep 17 00:00:00 2001 From: Jeremy Schlatter Date: Tue, 21 May 2024 23:13:23 -0700 Subject: [PATCH 073/114] hvm: correct license and update description HVM1 had an MIT license, but HVM2 has an Apache license. HVM1: https://github.com/HigherOrderCO/HVM1/blob/master/LICENSE HVM2: https://github.com/HigherOrderCO/HVM/blob/main/LICENSE Updated description from hvm repo: https://github.com/HigherOrderCO/HVM/ --- pkgs/development/compilers/hvm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/hvm/default.nix b/pkgs/development/compilers/hvm/default.nix index 1c720e297fb6..b640d4e11c2d 100644 --- a/pkgs/development/compilers/hvm/default.nix +++ b/pkgs/development/compilers/hvm/default.nix @@ -24,10 +24,10 @@ rustPlatform.buildRustPackage rec { RUSTC_BOOTSTRAP = true; meta = with lib; { - description = "A pure functional compile target that is lazy, non-garbage-collected, and parallel"; + description = "A massively parallel, optimal functional runtime in Rust"; mainProgram = "hvm"; homepage = "https://github.com/higherorderco/hvm"; - license = licenses.mit; + license = licenses.asl20; maintainers = with maintainers; [ figsoda ]; }; } From 42e8db26fb807458e5ec4bc5d2693deb144aa265 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 May 2024 02:37:29 +0000 Subject: [PATCH 074/114] prometheus-node-exporter: 1.8.0 -> 1.8.1 --- pkgs/servers/monitoring/prometheus/node-exporter.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/monitoring/prometheus/node-exporter.nix b/pkgs/servers/monitoring/prometheus/node-exporter.nix index 4a9b0b934537..d3b7c6786f84 100644 --- a/pkgs/servers/monitoring/prometheus/node-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/node-exporter.nix @@ -5,14 +5,14 @@ buildGoModule rec { pname = "node_exporter"; - version = "1.8.0"; + version = "1.8.1"; rev = "v${version}"; src = fetchFromGitHub { inherit rev; owner = "prometheus"; repo = "node_exporter"; - hash = "sha256-TC7F/LQnn6OIhvWLy75MQyVGS7DlgJLbbaAUZUZTvEo="; + hash = "sha256-dg4JSJx5xXEOLLb5xEgrNeDmh/En9G6qKA9G+3v9PH0="; }; vendorHash = "sha256-sly8AJk+jNZG8ijTBF1Pd5AOOUJJxIG8jHwBUdlt8fM="; From 49e67fc13b95a1afb3189864556c151e27800cfa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 08:39:12 +0200 Subject: [PATCH 075/114] python312Packages.crc16: refactor --- .../python-modules/crc16/default.nix | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/crc16/default.nix b/pkgs/development/python-modules/crc16/default.nix index eda1987a5b07..059bc0b438e3 100644 --- a/pkgs/development/python-modules/crc16/default.nix +++ b/pkgs/development/python-modules/crc16/default.nix @@ -1,19 +1,37 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, pythonOlder +}: buildPythonPackage rec { pname = "crc16"; version = "0.1.1"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "15nkx0pa4lskwin84flpk8fsw3jqg6wic6v3s83syjqg76h6my61"; + hash = "sha256-wfhqoDkPS68H0mMbFrl5WA6uHZqXOoJs5FNToi7o05Y="; }; + build-system = [ + setuptools + ]; + + # Tests are outdated + doCheck = false; + + pythonImportsCheck = [ + "crc16" + ]; + meta = with lib; { - homepage = "https://code.google.com/archive/p/pycrc16/"; description = "Python library for calculating CRC16"; - license = licenses.lgpl3; + homepage = "https://code.google.com/archive/p/pycrc16/"; + license = licenses.lgpl3Plus; maintainers = with maintainers; [ abbradar ]; }; } From 06beba13000efdbae85d9782fd6231317643ac84 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 08:39:33 +0200 Subject: [PATCH 076/114] python312Packages.crc16: format with nixfmt --- .../python-modules/crc16/default.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/crc16/default.nix b/pkgs/development/python-modules/crc16/default.nix index 059bc0b438e3..6ef211c06fba 100644 --- a/pkgs/development/python-modules/crc16/default.nix +++ b/pkgs/development/python-modules/crc16/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-wfhqoDkPS68H0mMbFrl5WA6uHZqXOoJs5FNToi7o05Y="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; # Tests are outdated doCheck = false; - pythonImportsCheck = [ - "crc16" - ]; + pythonImportsCheck = [ "crc16" ]; meta = with lib; { description = "Python library for calculating CRC16"; From 665ff2481c48aa3902c3b342aaa83257d3dbe0d3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 08:41:48 +0200 Subject: [PATCH 077/114] python312Packages.pyoppleio: refactor --- .../python-modules/pyoppleio/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyoppleio/default.nix b/pkgs/development/python-modules/pyoppleio/default.nix index 4487647ca81d..485d95d52d15 100644 --- a/pkgs/development/python-modules/pyoppleio/default.nix +++ b/pkgs/development/python-modules/pyoppleio/default.nix @@ -3,12 +3,13 @@ , crc16 , fetchPypi , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "pyoppleio"; version = "1.0.7"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -17,7 +18,11 @@ buildPythonPackage rec { hash = "sha256-S1w3pPqhX903kkXUq9ALz0+zRvNGOimLughRRVKjV8E="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ crc16 ]; @@ -30,9 +35,9 @@ buildPythonPackage rec { meta = with lib; { description = "Library for interacting with OPPLE lights"; - mainProgram = "oppleio"; homepage = "https://github.com/jedmeng/python-oppleio"; - license = with licenses; [ asl20 ]; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; + mainProgram = "oppleio"; }; } From e3210f0388727cf8b523321737e5429c5840708f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 08:42:01 +0200 Subject: [PATCH 078/114] python312Packages.pyoppleio: format with nixfmt --- .../python-modules/pyoppleio/default.nix | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/pyoppleio/default.nix b/pkgs/development/python-modules/pyoppleio/default.nix index 485d95d52d15..b9ef0e23a73f 100644 --- a/pkgs/development/python-modules/pyoppleio/default.nix +++ b/pkgs/development/python-modules/pyoppleio/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, crc16 -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + crc16, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-S1w3pPqhX903kkXUq9ALz0+zRvNGOimLughRRVKjV8E="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - crc16 - ]; + dependencies = [ crc16 ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pyoppleio" - ]; + pythonImportsCheck = [ "pyoppleio" ]; meta = with lib; { description = "Library for interacting with OPPLE lights"; From ef4341d0b17834e31abe2d2cd018bbf79a658e60 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 08:55:44 +0200 Subject: [PATCH 079/114] python312Packages.tencentcloud-sdk-python: 3.0.1151 -> 3.0.1152 Diff: https://github.com/TencentCloud/tencentcloud-sdk-python/compare/refs/tags/3.0.1151...3.0.1152 Changelog: https://github.com/TencentCloud/tencentcloud-sdk-python/blob/3.0.1152/CHANGELOG.md --- .../python-modules/tencentcloud-sdk-python/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix b/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix index 4f03293b2dba..1eee4a02da4f 100644 --- a/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix +++ b/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "tencentcloud-sdk-python"; - version = "3.0.1151"; + version = "3.0.1152"; pyproject = true; disabled = pythonOlder "3.9"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "TencentCloud"; repo = "tencentcloud-sdk-python"; rev = "refs/tags/${version}"; - hash = "sha256-JxxTfpb+03rBv/RIZgRpASq+WEjsAzDhtNL78FqU/Oc="; + hash = "sha256-pmmZnTvZwpVD/ECjKzA6LQ2c7McYznJMlKabcYwh3LY="; }; build-system = [ setuptools ]; From f66ba6a0ac04ef072ff2e3a72486cb055e922fef Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 09:16:29 +0200 Subject: [PATCH 080/114] cnspec: 11.4.3 -> 11.5.0 Diff: https://github.com/mondoohq/cnspec/compare/refs/tags/v11.4.3...v11.5.0 Changelog: https://github.com/mondoohq/cnspec/releases/tag/v11.5.0 --- pkgs/tools/security/cnspec/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/cnspec/default.nix b/pkgs/tools/security/cnspec/default.nix index 2835576a8d6a..d534a4977a14 100644 --- a/pkgs/tools/security/cnspec/default.nix +++ b/pkgs/tools/security/cnspec/default.nix @@ -6,18 +6,18 @@ buildGoModule rec { pname = "cnspec"; - version = "11.4.3"; + version = "11.5.0"; src = fetchFromGitHub { owner = "mondoohq"; repo = "cnspec"; rev = "refs/tags/v${version}"; - hash = "sha256-vLkGysRhcSzSu++p71hZLbA0RNCDcukC3HqPrUugd/s="; + hash = "sha256-MQrWZ3nFE/gEU7/AoSIr91LMteo/+68MDwiJBxiosvM="; }; proxyVendor = true; - vendorHash = "sha256-wL0cXNfJ8qyonUQRE7w2cRoqGLa6NGhv3EPFie/9/Z4="; + vendorHash = "sha256-1ytyebfUyeAQcx1HPxn6X0p4t5VlB4uflZJF1f+HhPU="; subPackages = [ "apps/cnspec" ]; From c706ed98fe6d112d09fa34a0ab0bd245f545ed2c Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 22 May 2024 08:32:44 +0200 Subject: [PATCH 081/114] passExtensions.pass-import: 3.2 -> 3.5 Diff: https://github.com/roddhjav/pass-import/compare/v3.2...v3.5 Changelog: https://github.com/roddhjav/pass-import/blob/v3.5/CHANGELOG.rst --- .../tools/security/pass/extensions/import.nix | 27 +++++++------------ 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/pkgs/tools/security/pass/extensions/import.nix b/pkgs/tools/security/pass/extensions/import.nix index cbba33c1373a..0be41525ea28 100644 --- a/pkgs/tools/security/pass/extensions/import.nix +++ b/pkgs/tools/security/pass/extensions/import.nix @@ -1,5 +1,5 @@ { lib -, fetchFromGitHub +, fetchurl , fetchpatch , python3Packages , gnupg @@ -8,30 +8,23 @@ python3Packages.buildPythonApplication rec { pname = "pass-import"; - version = "3.2"; + version = "3.5"; - src = fetchFromGitHub { - owner = "roddhjav"; - repo = "pass-import"; - rev = "v${version}"; - sha256 = "0hrpg7yiv50xmbajfy0zdilsyhbj5iv0qnlrgkfv99q1dvd5qy56"; + src = fetchurl { + url = "https://github.com/roddhjav/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; + hash = "sha256-+wrff3OxPkAGu1Mn4Kl0KN4FmvIAb+MnaERcD5ScDNc="; }; - patches = [ - (fetchpatch { - name = "support-for-pykeepass-4.0.3.patch"; - url = "https://github.com/roddhjav/pass-import/commit/f1b167578916d971ee4f99be99ba0e86ef49015e.patch"; - hash = "sha256-u6bJbV3/QTfRaPauKSyCWNodpy6CKsreMXUZWKRbee0="; - }) - ]; - propagatedBuildInputs = with python3Packages; [ cryptography defusedxml + jsonpath-ng pyaml pykeepass python-magic # similar API to "file-magic", but already in nixpkgs. + requests secretstorage + zxcvbn ]; nativeCheckInputs = [ @@ -46,12 +39,12 @@ python3Packages.buildPythonApplication rec { postInstall = '' mkdir -p $out/lib/password-store/extensions - cp ${src}/import.bash $out/lib/password-store/extensions/import.bash + cp import.bash $out/lib/password-store/extensions/import.bash wrapProgram $out/lib/password-store/extensions/import.bash \ --prefix PATH : "${python3Packages.python.withPackages (_: propagatedBuildInputs)}/bin" \ --prefix PYTHONPATH : "$out/${python3Packages.python.sitePackages}" \ --run "export PREFIX" - cp -r ${src}/share $out/ + cp -r share $out/ ''; postCheck = '' From 69d5bc06b128f2dd1503db4e542b988b5cc57111 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 09:46:41 +0200 Subject: [PATCH 082/114] aeacus: limit platform support --- pkgs/by-name/ae/aeacus/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ae/aeacus/package.nix b/pkgs/by-name/ae/aeacus/package.nix index d172e7c50177..91b858f7765b 100644 --- a/pkgs/by-name/ae/aeacus/package.nix +++ b/pkgs/by-name/ae/aeacus/package.nix @@ -31,5 +31,6 @@ buildGoModule rec { license = licenses.gpl2Only; maintainers = with maintainers; [ fab ]; mainProgram = "aeacus"; + platforms = platforms.linux; }; } From 502975133250732baeb95ed4927150c80f6fbf59 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 09:48:00 +0200 Subject: [PATCH 083/114] aeacus: format with nixfmt --- pkgs/by-name/ae/aeacus/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ae/aeacus/package.nix b/pkgs/by-name/ae/aeacus/package.nix index 91b858f7765b..07a75a2d3a3c 100644 --- a/pkgs/by-name/ae/aeacus/package.nix +++ b/pkgs/by-name/ae/aeacus/package.nix @@ -1,6 +1,7 @@ -{ lib -, buildGoModule -, fetchFromGitHub +{ + lib, + buildGoModule, + fetchFromGitHub, }: buildGoModule rec { From d97c2b087243449b85189246ac4d74bb5bb14c9a Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 22 May 2024 11:15:04 +0300 Subject: [PATCH 084/114] kdePackages.kwin: set TZDIR in the wrapper --- pkgs/kde/plasma/kwin/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/kde/plasma/kwin/default.nix b/pkgs/kde/plasma/kwin/default.nix index 7c3b0ce2bbe1..abef3f7113c0 100644 --- a/pkgs/kde/plasma/kwin/default.nix +++ b/pkgs/kde/plasma/kwin/default.nix @@ -33,6 +33,12 @@ mkKdeDerivation { patchShebangs src/plugins/strip-effect-metadata.py ''; + # TZDIR may be unset when running through the kwin_wayland wrapper, + # but we need it for the lockscreen clock to render + qtWrapperArgs = [ + "--set-default TZDIR /etc/zoneinfo" + ]; + extraNativeBuildInputs = [pkg-config python3]; extraBuildInputs = [ qtquick3d From e0a07d84b8c1b69df3510cd3b0f923e98e843ec8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:17:40 +0200 Subject: [PATCH 085/114] killerbee: refactor --- pkgs/by-name/ki/killerbee/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix index d483da652ff9..d5929fca29a3 100644 --- a/pkgs/by-name/ki/killerbee/package.nix +++ b/pkgs/by-name/ki/killerbee/package.nix @@ -16,7 +16,7 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0="; }; - nativeBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ setuptools ]; @@ -24,7 +24,7 @@ python3.pkgs.buildPythonApplication rec { libgcrypt ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ pyserial pyusb rangeparser @@ -38,6 +38,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "IEEE 802.15.4/ZigBee Security Research Toolkit"; homepage = "https://github.com/riverloopsec/killerbee"; + changelog = "https://github.com/riverloopsec/killerbee/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; }; From 3afead06bdd4db2d06a547e7912bbef17ea9f45d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:18:37 +0200 Subject: [PATCH 086/114] killerbee: format with nixfmt --- pkgs/by-name/ki/killerbee/package.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix index d5929fca29a3..3fd58b08b267 100644 --- a/pkgs/by-name/ki/killerbee/package.nix +++ b/pkgs/by-name/ki/killerbee/package.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, libgcrypt -, python3 +{ + lib, + fetchFromGitHub, + libgcrypt, + python3, }: python3.pkgs.buildPythonApplication rec { @@ -16,13 +17,9 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-WM0Z6sd8S71F8FfhhoUq3MSD/2uvRTY/FsBP7VGGtb0="; }; - build-system = with python3.pkgs; [ - setuptools - ]; + build-system = with python3.pkgs; [ setuptools ]; - buildInputs = with python3.pkgs; [ - libgcrypt - ]; + buildInputs = with python3.pkgs; [ libgcrypt ]; dependencies = with python3.pkgs; [ pyserial @@ -31,9 +28,7 @@ python3.pkgs.buildPythonApplication rec { scapy ]; - pythonImportsCheck = [ - "killerbee" - ]; + pythonImportsCheck = [ "killerbee" ]; meta = with lib; { description = "IEEE 802.15.4/ZigBee Security Research Toolkit"; From bf6276ffa8727001423f6a447b08e0c8756de2f6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:19:19 +0200 Subject: [PATCH 087/114] killerbee: limit platform support --- pkgs/by-name/ki/killerbee/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ki/killerbee/package.nix b/pkgs/by-name/ki/killerbee/package.nix index 3fd58b08b267..040aa252e847 100644 --- a/pkgs/by-name/ki/killerbee/package.nix +++ b/pkgs/by-name/ki/killerbee/package.nix @@ -36,5 +36,6 @@ python3.pkgs.buildPythonApplication rec { changelog = "https://github.com/riverloopsec/killerbee/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; + platforms = platforms.linux; }; } From 7daf6faa8a9fa8d1716225e17ebdc118aed9a267 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:33:20 +0200 Subject: [PATCH 088/114] nray: limit platform support --- pkgs/by-name/nr/nray/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/nr/nray/package.nix b/pkgs/by-name/nr/nray/package.nix index 1641e1c4df87..bfbe6d969ba3 100644 --- a/pkgs/by-name/nr/nray/package.nix +++ b/pkgs/by-name/nr/nray/package.nix @@ -33,5 +33,6 @@ buildGoModule rec { license = licenses.gpl3Only; maintainers = with maintainers; [ fab ]; mainProgram = "nray"; + platforms = platforms.linux; }; } From f2709d40e9c09c4fd0e28e671ced730b1d10ba9d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:51:39 +0200 Subject: [PATCH 089/114] python312Packages.alpha-vantage: refactor - disable tests (https://github.com/RomelTorres/alpha_vantage/issues/344) - add changelog to meta - update build-system --- .../python-modules/alpha-vantage/default.nix | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/alpha-vantage/default.nix b/pkgs/development/python-modules/alpha-vantage/default.nix index b98c2508458e..9fd0812a493a 100644 --- a/pkgs/development/python-modules/alpha-vantage/default.nix +++ b/pkgs/development/python-modules/alpha-vantage/default.nix @@ -7,21 +7,29 @@ , pytestCheckHook , requests , requests-mock +, setuptools +, pythonOlder }: buildPythonPackage rec { pname = "alpha-vantage"; version = "2.3.1"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "RomelTorres"; repo = "alpha_vantage"; - rev = version; - sha256 = "0cyw6zw7c7r076rmhnmg905ihwb9r7g511n6gdlph06v74pdls8d"; + rev = "refs/tags/${version}"; + hash = "sha256-DWnaLjnbAHhpe8aGUN7JaXEYC0ivWlizOSAfdvg33DM="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ aiohttp requests ]; @@ -33,18 +41,18 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - # Tests require network access - "test_alpha_vantage/test_integration_alphavantage.py" - "test_alpha_vantage/test_integration_alphavantage_async.py" - ]; + # https://github.com/RomelTorres/alpha_vantage/issues/344 + doCheck = false; - pythonImportsCheck = [ "alpha_vantage" ]; + pythonImportsCheck = [ + "alpha_vantage" + ]; meta = with lib; { description = "Python module for the Alpha Vantage API"; homepage = "https://github.com/RomelTorres/alpha_vantage"; - license = with licenses; [ mit ]; + changelog = "https://github.com/RomelTorres/alpha_vantage/releases/tag/${version}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; } From 8f4b9c287f60001abf65002dcc7c78bf251cbeb8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:52:43 +0200 Subject: [PATCH 090/114] python312Packages.alpha-vantage: format with nixfmt --- .../python-modules/alpha-vantage/default.nix | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/alpha-vantage/default.nix b/pkgs/development/python-modules/alpha-vantage/default.nix index 9fd0812a493a..b68fc39bc137 100644 --- a/pkgs/development/python-modules/alpha-vantage/default.nix +++ b/pkgs/development/python-modules/alpha-vantage/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pandas -, pytestCheckHook -, requests -, requests-mock -, setuptools -, pythonOlder +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pandas, + pytestCheckHook, + requests, + requests-mock, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-DWnaLjnbAHhpe8aGUN7JaXEYC0ivWlizOSAfdvg33DM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -44,9 +43,7 @@ buildPythonPackage rec { # https://github.com/RomelTorres/alpha_vantage/issues/344 doCheck = false; - pythonImportsCheck = [ - "alpha_vantage" - ]; + pythonImportsCheck = [ "alpha_vantage" ]; meta = with lib; { description = "Python module for the Alpha Vantage API"; From 639029c8582018742cef3014b4a898355f999b02 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:56:06 +0200 Subject: [PATCH 091/114] ospd-openvas: format with nixfmt --- pkgs/tools/security/ospd-openvas/default.nix | 23 +++++++------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/pkgs/tools/security/ospd-openvas/default.nix b/pkgs/tools/security/ospd-openvas/default.nix index 9b20f221447e..99d76dfd040c 100644 --- a/pkgs/tools/security/ospd-openvas/default.nix +++ b/pkgs/tools/security/ospd-openvas/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchFromGitHub -, python3 +{ + lib, + fetchFromGitHub, + python3, }: python3.pkgs.buildPythonApplication rec { @@ -20,13 +21,9 @@ python3.pkgs.buildPythonApplication rec { "python-gnupg" ]; - build-system = with python3.pkgs; [ - poetry-core - ]; + build-system = with python3.pkgs; [ poetry-core ]; - nativeBuildInputs = with python3.pkgs; [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ]; propagatedBuildInputs = with python3.pkgs; [ defusedxml @@ -40,13 +37,9 @@ python3.pkgs.buildPythonApplication rec { sentry-sdk ]; - nativeCheckInputs = with python3.pkgs; [ - pytestCheckHook - ]; + nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ]; - pythonImportsCheck = [ - "ospd_openvas" - ]; + pythonImportsCheck = [ "ospd_openvas" ]; meta = with lib; { description = "OSP server implementation to allow GVM to remotely control an OpenVAS Scanner"; From d051d569ef8ef0f3a748c9351116247d562fb83c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 10:56:51 +0200 Subject: [PATCH 092/114] ospd-openvas: limit platform support --- pkgs/tools/security/ospd-openvas/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/security/ospd-openvas/default.nix b/pkgs/tools/security/ospd-openvas/default.nix index 99d76dfd040c..f047958c2492 100644 --- a/pkgs/tools/security/ospd-openvas/default.nix +++ b/pkgs/tools/security/ospd-openvas/default.nix @@ -47,5 +47,6 @@ python3.pkgs.buildPythonApplication rec { changelog = "https://github.com/greenbone/ospd-openvas/releases/tag/v${version}"; license = licenses.agpl3Only; maintainers = with maintainers; [ fab ]; + platforms = platforms.linux; }; } From 32fd9eb65927828e296ae935e2ac8cbb4a43dfa9 Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 22 May 2024 12:04:19 +0300 Subject: [PATCH 093/114] kdePackages.bluedevil: the tarball is fixed --- pkgs/kde/generated/sources/plasma.json | 6 +++--- pkgs/kde/plasma/bluedevil/default.nix | 14 +------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/pkgs/kde/generated/sources/plasma.json b/pkgs/kde/generated/sources/plasma.json index 5ff7a54f873b..a33d287efa95 100644 --- a/pkgs/kde/generated/sources/plasma.json +++ b/pkgs/kde/generated/sources/plasma.json @@ -1,8 +1,8 @@ { "bluedevil": { - "version": "6.0.5", - "url": "mirror://kde/stable/plasma/6.0.5/bluedevil-6.0.5.tar.xz", - "hash": "sha256-mJHTxteC62ofaevsRO0PSG8sfrkKIUOU0rbMbq/1psc=" + "version": "6.0.5.1", + "url": "mirror://kde/stable/plasma/6.0.5/bluedevil-6.0.5.1.tar.xz", + "hash": "sha256-Zvzi1J9qxxa1UeMDD47T9xvuwEKNofma9+lZvJD1POI=" }, "breeze": { "version": "6.0.5", diff --git a/pkgs/kde/plasma/bluedevil/default.nix b/pkgs/kde/plasma/bluedevil/default.nix index 8d6f01a2e13b..993d121d1f37 100644 --- a/pkgs/kde/plasma/bluedevil/default.nix +++ b/pkgs/kde/plasma/bluedevil/default.nix @@ -1,21 +1,9 @@ { mkKdeDerivation, - fetchFromGitLab, - sources, shared-mime-info, }: -mkKdeDerivation rec { +mkKdeDerivation { pname = "bluedevil"; - # Upstream tarball is broken, so fetch from Invent temporarily. - # FIXME: remove in next release. - src = fetchFromGitLab { - domain = "invent.kde.org"; - owner = "plasma"; - repo = "bluedevil"; - rev = "v${sources.${pname}.version}"; - hash = "sha256-3scHXPZ6dSWa2yea89R1u4jbkr6IFP6jvTLEC4O5uYY="; - }; - extraNativeBuildInputs = [shared-mime-info]; } From 54f21fa4a02696cc1771d35d676609578c194612 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:15:00 +0200 Subject: [PATCH 094/114] python312Packages.boiboite-opener-framework: format with nixfmt --- .../boiboite-opener-framework/default.nix | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/boiboite-opener-framework/default.nix b/pkgs/development/python-modules/boiboite-opener-framework/default.nix index e7a0b017f405..b7bcf73b92ba 100644 --- a/pkgs/development/python-modules/boiboite-opener-framework/default.nix +++ b/pkgs/development/python-modules/boiboite-opener-framework/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, scapy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + scapy, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { scapy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bof" - ]; + pythonImportsCheck = [ "bof" ]; disabledTests = [ # Tests are using netcat and cat to do UDP connections From 613c928662f679a19f68350a2e218d60e21b8abb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:19:17 +0200 Subject: [PATCH 095/114] python312Packages.boiboite-opener-framework: refactor --- .../python-modules/boiboite-opener-framework/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/boiboite-opener-framework/default.nix b/pkgs/development/python-modules/boiboite-opener-framework/default.nix index b7bcf73b92ba..095b92134f98 100644 --- a/pkgs/development/python-modules/boiboite-opener-framework/default.nix +++ b/pkgs/development/python-modules/boiboite-opener-framework/default.nix @@ -7,12 +7,13 @@ pythonOlder, pythonRelaxDepsHook, scapy, + setuptools, }: buildPythonPackage rec { pname = "boiboite-opener-framework"; version = "1.2.1"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -28,7 +29,9 @@ buildPythonPackage rec { --replace "scapy==2.5.0rc1" "scapy" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ packaging scapy ]; From 1bb2460feed65cc5aa9bdd49e5f18c8b30716275 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:19:43 +0200 Subject: [PATCH 096/114] python312Packages.boiboite-opener-framework: limit platform support --- .../python-modules/boiboite-opener-framework/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/boiboite-opener-framework/default.nix b/pkgs/development/python-modules/boiboite-opener-framework/default.nix index 095b92134f98..b86989bbbd71 100644 --- a/pkgs/development/python-modules/boiboite-opener-framework/default.nix +++ b/pkgs/development/python-modules/boiboite-opener-framework/default.nix @@ -75,5 +75,6 @@ buildPythonPackage rec { changelog = "https://github.com/Orange-Cyberdefense/bof/releases/tag/${version}"; license = licenses.gpl3Only; maintainers = with maintainers; [ fab ]; + platforms = platforms.linux; }; } From 736a5be628786dfc56f7e4be722b6a34a9173bc3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:23:39 +0200 Subject: [PATCH 097/114] websecprobe: format with nixfmt --- pkgs/by-name/we/websecprobe/package.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/we/websecprobe/package.nix b/pkgs/by-name/we/websecprobe/package.nix index aecc77881557..4d03176b6343 100644 --- a/pkgs/by-name/we/websecprobe/package.nix +++ b/pkgs/by-name/we/websecprobe/package.nix @@ -1,6 +1,7 @@ -{ lib -, python3 -, fetchPypi +{ + lib, + python3, + fetchPypi, }: python3.pkgs.buildPythonApplication rec { @@ -14,9 +15,7 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-RX4tc6JaUVaNx8nidn8eMcbsmbcSY+VZbup6c6P7oOs="; }; - build-system = with python3.pkgs; [ - setuptools - ]; + build-system = with python3.pkgs; [ setuptools ]; dependencies = with python3.pkgs; [ requests @@ -27,9 +26,7 @@ python3.pkgs.buildPythonApplication rec { mv $out/bin/WebSecProbe $out/bin/$pname ''; - pythonImportsCheck = [ - "WebSecProbe" - ]; + pythonImportsCheck = [ "WebSecProbe" ]; meta = with lib; { description = "Web Security Assessment Tool"; From 2bae695f9c14767754ac0275954724c81a15ee88 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:24:30 +0200 Subject: [PATCH 098/114] websecprobe: limit platform support --- pkgs/by-name/we/websecprobe/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/we/websecprobe/package.nix b/pkgs/by-name/we/websecprobe/package.nix index 4d03176b6343..893954cd77db 100644 --- a/pkgs/by-name/we/websecprobe/package.nix +++ b/pkgs/by-name/we/websecprobe/package.nix @@ -35,5 +35,6 @@ python3.pkgs.buildPythonApplication rec { license = licenses.mit; maintainers = with maintainers; [ fab ]; mainProgram = "websecprobe"; + platforms = platforms.linux; }; } From fb2bb52254589a69e820799bfa6bea4a5844ca02 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:26:26 +0200 Subject: [PATCH 099/114] xeol: format with nixfmt --- pkgs/by-name/xe/xeol/package.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/xe/xeol/package.nix b/pkgs/by-name/xe/xeol/package.nix index d783e5c79454..1cb653f1266e 100644 --- a/pkgs/by-name/xe/xeol/package.nix +++ b/pkgs/by-name/xe/xeol/package.nix @@ -1,6 +1,7 @@ -{ lib -, buildGoModule -, fetchFromGitHub +{ + lib, + buildGoModule, + fetchFromGitHub, }: buildGoModule rec { @@ -16,9 +17,7 @@ buildGoModule rec { vendorHash = "sha256-9zDzwiVEVsfgVzSrouNtLYpjumoWGlfSDpGWbj+zCGQ="; - subPackages = [ - "cmd/xeol/" - ]; + subPackages = [ "cmd/xeol/" ]; ldflags = [ "-w" From a5acd098449bd6bef78ed7c1bb907f78798d8328 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:27:12 +0200 Subject: [PATCH 100/114] xeol: limit platform support --- pkgs/by-name/xe/xeol/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/xe/xeol/package.nix b/pkgs/by-name/xe/xeol/package.nix index 1cb653f1266e..6f3d17f3fce6 100644 --- a/pkgs/by-name/xe/xeol/package.nix +++ b/pkgs/by-name/xe/xeol/package.nix @@ -35,5 +35,6 @@ buildGoModule rec { license = licenses.asl20; maintainers = with maintainers; [ fab ]; mainProgram = "xeol"; + platforms = platforms.linux; }; } From f8a88fd22c62202e2b5a3b89b704970878a51c1b Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 22 May 2024 11:25:53 +0200 Subject: [PATCH 101/114] nixos/test-driver: adjust to ruff changes --- nixos/lib/test-driver/default.nix | 2 +- nixos/lib/test-driver/pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/lib/test-driver/default.nix b/nixos/lib/test-driver/default.nix index 7e1d0ad70d7d..7a88694b3167 100644 --- a/nixos/lib/test-driver/default.nix +++ b/nixos/lib/test-driver/default.nix @@ -47,7 +47,7 @@ python3Packages.buildPythonApplication { echo -e "\x1b[32m## run mypy\x1b[0m" mypy test_driver extract-docstrings.py echo -e "\x1b[32m## run ruff\x1b[0m" - ruff . + ruff check . echo -e "\x1b[32m## run black\x1b[0m" black --check --diff . ''; diff --git a/nixos/lib/test-driver/pyproject.toml b/nixos/lib/test-driver/pyproject.toml index 9d9ff7c0a97b..714139bc1b25 100644 --- a/nixos/lib/test-driver/pyproject.toml +++ b/nixos/lib/test-driver/pyproject.toml @@ -19,8 +19,8 @@ test_driver = ["py.typed"] [tool.ruff] line-length = 88 -select = ["E", "F", "I", "U", "N"] -ignore = ["E501"] +lint.select = ["E", "F", "I", "U", "N"] +lint.ignore = ["E501"] # xxx: we can import https://pypi.org/project/types-colorama/ here [[tool.mypy.overrides]] From 8a26ddc1ebb121f50e111247b5c2855ef0caa877 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:32:14 +0200 Subject: [PATCH 102/114] Revert "python3Packages.weconnect-mqtt: 0.48.4 -> 0.49.0" This reverts commit 3bf8c24d7425fe0e8548416e549a10863816c732. --- pkgs/development/python-modules/weconnect-mqtt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/weconnect-mqtt/default.nix b/pkgs/development/python-modules/weconnect-mqtt/default.nix index 003614876b98..ffbddd623a7c 100644 --- a/pkgs/development/python-modules/weconnect-mqtt/default.nix +++ b/pkgs/development/python-modules/weconnect-mqtt/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "weconnect-mqtt"; - version = "0.49.0"; + version = "0.48.4"; pyproject = true; disabled = pythonOlder "3.8"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "tillsteinbach"; repo = "WeConnect-mqtt"; rev = "refs/tags/v${version}"; - hash = "sha256-V96fdy6h012SbP3tyOMniAwLf/1+iKzTc9WnevAVwTI="; + hash = "sha256-Yv6CAGTDi4P9pImLxVk2QkZ014iqQ8UMBUeiyZWnYiQ="; }; postPatch = '' From a9e84f8a8aa43ed9f972342df8501a01f95bc170 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:34:58 +0200 Subject: [PATCH 103/114] python312Packages.weconnect-mqtt: refactor --- .../python-modules/weconnect-mqtt/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/weconnect-mqtt/default.nix b/pkgs/development/python-modules/weconnect-mqtt/default.nix index ffbddd623a7c..10cbfb2071ce 100644 --- a/pkgs/development/python-modules/weconnect-mqtt/default.nix +++ b/pkgs/development/python-modules/weconnect-mqtt/default.nix @@ -1,12 +1,13 @@ { lib , buildPythonPackage , fetchFromGitHub -, pytestCheckHook -, pythonOlder , paho-mqtt +, pytestCheckHook , python-dateutil -, weconnect +, pythonOlder +, pythonRelaxDepsHook , setuptools +, weconnect }: buildPythonPackage rec { @@ -33,11 +34,19 @@ buildPythonPackage rec { --replace-fail "pytest-cov" "" ''; - nativeBuildInputs = [ + pythonRelaxDeps = [ + "python-dateutil" + ]; + + build-system = [ setuptools ]; - propagatedBuildInputs = [ + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + dependencies = [ paho-mqtt python-dateutil weconnect @@ -53,10 +62,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python client that publishes data from Volkswagen WeConnect"; - mainProgram = "weconnect-mqtt"; homepage = "https://github.com/tillsteinbach/WeConnect-mqtt"; changelog = "https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; + mainProgram = "weconnect-mqtt"; }; } From ce98385ced4791213d78494884dd15888e98cd77 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:35:21 +0200 Subject: [PATCH 104/114] python312Packages.weconnect-mqtt: format with nixfmt --- .../python-modules/weconnect-mqtt/default.nix | 41 ++++++++----------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/pkgs/development/python-modules/weconnect-mqtt/default.nix b/pkgs/development/python-modules/weconnect-mqtt/default.nix index 10cbfb2071ce..30e5accbb3cf 100644 --- a/pkgs/development/python-modules/weconnect-mqtt/default.nix +++ b/pkgs/development/python-modules/weconnect-mqtt/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, paho-mqtt -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, weconnect +{ + lib, + buildPythonPackage, + fetchFromGitHub, + paho-mqtt, + pytestCheckHook, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + weconnect, }: buildPythonPackage rec { @@ -34,17 +35,11 @@ buildPythonPackage rec { --replace-fail "pytest-cov" "" ''; - pythonRelaxDeps = [ - "python-dateutil" - ]; + pythonRelaxDeps = [ "python-dateutil" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ paho-mqtt @@ -52,13 +47,9 @@ buildPythonPackage rec { weconnect ] ++ weconnect.optional-dependencies.Images; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "weconnect_mqtt" - ]; + pythonImportsCheck = [ "weconnect_mqtt" ]; meta = with lib; { description = "Python client that publishes data from Volkswagen WeConnect"; From 37f301664c129e4c861a50ed96e6f172506f7c0e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:40:16 +0200 Subject: [PATCH 105/114] python312Packages.webdriver-manager: refactor --- pkgs/development/python-modules/webdriver-manager/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/webdriver-manager/default.nix b/pkgs/development/python-modules/webdriver-manager/default.nix index 6680fa7eea6b..6bdb7119fb81 100644 --- a/pkgs/development/python-modules/webdriver-manager/default.nix +++ b/pkgs/development/python-modules/webdriver-manager/default.nix @@ -25,11 +25,11 @@ buildPythonPackage rec { hash = "sha256-PdUlloJ4DncnktKQHofn/OLVrgSVyWhaeEEhl3Hgjek="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ packaging python-dotenv requests From 5be9282033be86f6c4c4448031d86951cbbee675 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:40:31 +0200 Subject: [PATCH 106/114] python312Packages.webdriver-manager: format with nixfmt --- .../webdriver-manager/default.nix | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/webdriver-manager/default.nix b/pkgs/development/python-modules/webdriver-manager/default.nix index 6bdb7119fb81..bb1f18ddea93 100644 --- a/pkgs/development/python-modules/webdriver-manager/default.nix +++ b/pkgs/development/python-modules/webdriver-manager/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, pybrowsers -, pytestCheckHook -, python-dotenv -, pythonOlder -, requests -, selenium -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + pybrowsers, + pytestCheckHook, + python-dotenv, + pythonOlder, + requests, + selenium, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-PdUlloJ4DncnktKQHofn/OLVrgSVyWhaeEEhl3Hgjek="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ packaging @@ -41,9 +40,7 @@ buildPythonPackage rec { selenium ]; - pythonImportsCheck = [ - "webdriver_manager" - ]; + pythonImportsCheck = [ "webdriver_manager" ]; disabledTestPaths = [ # Tests require network access and browsers available From 9324b2d7cfa1a4f3d270d6d44dab16572964208a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:43:16 +0200 Subject: [PATCH 107/114] python312Packages.webdriver-manager: limit platform support --- pkgs/development/python-modules/webdriver-manager/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/webdriver-manager/default.nix b/pkgs/development/python-modules/webdriver-manager/default.nix index bb1f18ddea93..411d5b9b78da 100644 --- a/pkgs/development/python-modules/webdriver-manager/default.nix +++ b/pkgs/development/python-modules/webdriver-manager/default.nix @@ -26,6 +26,8 @@ buildPythonPackage rec { hash = "sha256-PdUlloJ4DncnktKQHofn/OLVrgSVyWhaeEEhl3Hgjek="; }; + __darwinAllowLocalNetworking = true; + build-system = [ setuptools ]; dependencies = [ @@ -66,5 +68,6 @@ buildPythonPackage rec { changelog = "https://github.com/SergeyPirogov/webdriver_manager/blob/${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; + platforms = platforms.linux; }; } From 5c185ec69b6a61526f51801ce6becf94e67cbe57 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:46:12 +0200 Subject: [PATCH 108/114] python312Packages.tololib: refactor --- pkgs/development/python-modules/tololib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tololib/default.nix b/pkgs/development/python-modules/tololib/default.nix index ed530f95d191..6dbc402ff10f 100644 --- a/pkgs/development/python-modules/tololib/default.nix +++ b/pkgs/development/python-modules/tololib/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { hash = "sha256-TxWKV2nrnCxZmj6+wBDMSdJRvKV+MsPFbOyIlUJYJ3Q="; }; - nativeBuildInputs = [ + build-system = [ setuptools-scm ]; @@ -44,10 +44,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices"; - mainProgram = "tolo-cli"; homepage = "https://gitlab.com/MatthiasLohr/tololib"; changelog = "https://gitlab.com/MatthiasLohr/tololib/-/blob/v${version}/CHANGELOG.md"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; + mainProgram = "tolo-cli"; }; } From 24df8ccd27c7844f02fa816690bae2248ba3b683 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:53:43 +0200 Subject: [PATCH 109/114] python312Packages.tololib: disable tests on darwin --- pkgs/development/python-modules/tololib/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/tololib/default.nix b/pkgs/development/python-modules/tololib/default.nix index 6dbc402ff10f..07b7d49d0bec 100644 --- a/pkgs/development/python-modules/tololib/default.nix +++ b/pkgs/development/python-modules/tololib/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitLab , fetchpatch @@ -33,15 +34,13 @@ buildPythonPackage rec { export PATH="$PATH:$out/bin"; ''; - disabledTests = [ - # Test requires network access - "test_discovery" - ]; - pythonImportsCheck = [ "tololib" ]; + # Network discovery doesn't work in the sandbox for darwin + doCheck = !stdenv.isDarwin; + meta = with lib; { description = "Python Library for Controlling TOLO Sauna/Steam Bath Devices"; homepage = "https://gitlab.com/MatthiasLohr/tololib"; From 4b5413d9b329b147dac6d60b6f258c70235b4102 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 11:54:06 +0200 Subject: [PATCH 110/114] python312Packages.tololib: format with nixfmt --- .../python-modules/tololib/default.nix | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/tololib/default.nix b/pkgs/development/python-modules/tololib/default.nix index 07b7d49d0bec..2ab0dbd7c89a 100644 --- a/pkgs/development/python-modules/tololib/default.nix +++ b/pkgs/development/python-modules/tololib/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitLab -, fetchpatch -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitLab, + fetchpatch, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -22,21 +23,15 @@ buildPythonPackage rec { hash = "sha256-TxWKV2nrnCxZmj6+wBDMSdJRvKV+MsPFbOyIlUJYJ3Q="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export PATH="$PATH:$out/bin"; ''; - pythonImportsCheck = [ - "tololib" - ]; + pythonImportsCheck = [ "tololib" ]; # Network discovery doesn't work in the sandbox for darwin doCheck = !stdenv.isDarwin; From 7484c85f9299c6bcec273cdd83cca2580c7332dd Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 22 May 2024 12:40:51 +0200 Subject: [PATCH 111/114] brainstem: remove package The SDK tarballs are not guaranteed to stay around: > We keep all release artifacts, but we do not keep them publicly > available; nor do we guarantee their availability. The links I have > provided are also not guaranteed. As I mentioned we can generally > provide these upon request. This means, this expression is likely to fail in the near future, so it's unsuitable to be packaged in nixpkgs. It's better to keep it wherever it's used (and vendor the tarballs there). --- pkgs/by-name/br/brainstem/package.nix | 90 --------------------------- 1 file changed, 90 deletions(-) delete mode 100644 pkgs/by-name/br/brainstem/package.nix diff --git a/pkgs/by-name/br/brainstem/package.nix b/pkgs/by-name/br/brainstem/package.nix deleted file mode 100644 index dcfe3d523dc8..000000000000 --- a/pkgs/by-name/br/brainstem/package.nix +++ /dev/null @@ -1,90 +0,0 @@ -{ stdenv -, lib -, autoPatchelfHook -, fetchzip -, curl -, systemd -, zlib -, writeText -, withUpdater ? true -, ... -}: - -let - version = "2.10.5"; - # Upstream has a udev.sh script asking for mode and group, but with uaccess we - # don't need any of that and can make it entirely static. - # For any rule adding the uaccess tag to be effective, the name of the file it - # is defined in has to lexically precede 73-seat-late.rules. - udevRule = writeText "60-brainstem.rules" '' - # Acroname Brainstem control devices - SUBSYSTEM=="usb", ATTRS{idVendor}=="24ff", TAG+="uaccess" - - # Acroname recovery devices (pb82, pb242, pb167) - SUBSYSTEM=="tty", ATTRS{idVendor}=="0424", ATTRS{idProduct}=="274e", TAG+="uaccess" - SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", TAG+="uaccess" - KERNEL=="hidraw*", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0130", TAG+="uaccess" - ''; - - src = fetchzip { - url = "https://acroname.com/sites/default/files/software/brainstem_sdk/${version}/brainstem_sdk_${version}_Ubuntu_LTS_22.04_x86_64.tgz"; - hash = "sha256-S6u9goxTMCI12sffP/WKUF7bv0pLeNmNog7Hle+vpR4="; - # There's no "brainstem" parent directory in the archive. - stripRoot = false; - }; -in - -stdenv.mkDerivation { - pname = "brainstem"; - inherit version src; - - nativeBuildInputs = [ autoPatchelfHook ]; - buildInputs = [ - # libudev - (lib.getLib systemd) - # libstdc++.so libgcc_s.so - stdenv.cc.cc.lib - ] ++ lib.optionals withUpdater [ - # libcurl.so.4 - curl - # libz.so.1 - zlib - ]; - - # Unpack the CLI tools, documentation, library and C headers. - # There's also a python .whl, containing more libraries, which might be used - # to support more architectures, too, but let's only do that if we need it. - installPhase = '' - mkdir -p $out/bin - install -m744 cli/AcronameHubCLI $out/bin - install -m744 cli/Updater $out/bin/AcronameHubUpdater - - mkdir -p $out/lib/udev/rules.d - cp ${udevRule} $out/lib/udev/rules.d/60-brainstem.rules - - mkdir -p $doc - cp docs/* $doc/ - cp {license,version}.txt $doc/ - - mkdir -p $lib/lib - cp api/lib/libBrainStem2.* $lib/lib - - mkdir -p $dev/include - cp -R api/lib/BrainStem2 $dev/include/ - ''; - - outputs = [ "out" "lib" "dev" "doc" ]; - - meta = with lib; { - description = "BrainStem Software Development Kit"; - longDescription = '' - The BrainStem SDK provides a library to access and control Acroname smart - USB switches, as well as a CLI interface, and a firmware updater. - ''; - homepage = "https://acroname.com/software/brainstem-development-kit"; - platforms = [ "x86_64-linux" ]; - license = licenses.unfree; - maintainers = with maintainers; [ flokli ]; - mainProgram = "AcronameHubCLI"; - }; -} From 6b7fc06bc541043db92206a59f54a18346b9fafc Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 22 May 2024 13:00:08 +0200 Subject: [PATCH 112/114] qt6.qtmultimedia: fix build on darwin --- .../libraries/qt-6/modules/qtmultimedia.nix | 2 + ...n-revert-replace-deprecated-constant.patch | 50 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch diff --git a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix b/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix index ba24fbe9294b..39ac1245118a 100644 --- a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix +++ b/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix @@ -39,6 +39,8 @@ qtModule { patches = [ ../patches/fix-qtgui-include-incorrect-case.patch + # Remove new constants since macOS 12+, since we build Qt with the macOS 11 SDK + ../patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ ../patches/qtmultimedia-windows-no-uppercase-libs.patch ../patches/qtmultimedia-windows-resolve-function-name.patch diff --git a/pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch b/pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch new file mode 100644 index 000000000000..3196a6e4158c --- /dev/null +++ b/pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch @@ -0,0 +1,50 @@ +diff --git a/src/multimedia/darwin/qdarwinmediadevices.mm b/src/multimedia/darwin/qdarwinmediadevices.mm +index b0a108935..881066928 100644 +--- a/src/multimedia/darwin/qdarwinmediadevices.mm ++++ b/src/multimedia/darwin/qdarwinmediadevices.mm +@@ -42,7 +42,7 @@ static AudioDeviceID defaultAudioDevice(QAudioDevice::Mode mode) + const AudioObjectPropertyAddress propertyAddress = { + selector, + kAudioObjectPropertyScopeGlobal, +- kAudioObjectPropertyElementMain, ++ kAudioObjectPropertyElementMaster, + }; + + if (auto audioDevice = getAudioObject(kAudioObjectSystemObject, propertyAddress, +@@ -77,7 +77,7 @@ static QList availableAudioDevices(QAudioDevice::Mode mode) + + const AudioObjectPropertyAddress audioDevicesPropertyAddress = { + kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, +- kAudioObjectPropertyElementMain ++ kAudioObjectPropertyElementMaster + }; + + if (auto audioDevices = getAudioData( +@@ -130,11 +130,11 @@ static OSStatus audioDeviceChangeListener(AudioObjectID id, UInt32, + + static constexpr AudioObjectPropertyAddress listenerAddresses[] = { + { kAudioHardwarePropertyDefaultInputDevice, kAudioObjectPropertyScopeGlobal, +- kAudioObjectPropertyElementMain }, ++ kAudioObjectPropertyElementMaster }, + { kAudioHardwarePropertyDefaultOutputDevice, kAudioObjectPropertyScopeGlobal, +- kAudioObjectPropertyElementMain }, ++ kAudioObjectPropertyElementMaster }, + { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, +- kAudioObjectPropertyElementMain } ++ kAudioObjectPropertyElementMaster } + }; + + static void setAudioListeners(QDarwinMediaDevices &instance) +diff --git a/src/multimedia/darwin/qmacosaudiodatautils_p.h b/src/multimedia/darwin/qmacosaudiodatautils_p.h +index 8cc2f8440..5cd6fced2 100644 +--- a/src/multimedia/darwin/qmacosaudiodatautils_p.h ++++ b/src/multimedia/darwin/qmacosaudiodatautils_p.h +@@ -44,7 +44,7 @@ void printUnableToReadWarning(const char *logName, AudioObjectID objectID, const + + inline static AudioObjectPropertyAddress + makePropertyAddress(AudioObjectPropertySelector selector, QAudioDevice::Mode mode, +- AudioObjectPropertyElement element = kAudioObjectPropertyElementMain) ++ AudioObjectPropertyElement element = kAudioObjectPropertyElementMaster) + { + return { selector, + mode == QAudioDevice::Input ? kAudioDevicePropertyScopeInput From 462eb9cbf07354069808c628e1102a24dae23ddd Mon Sep 17 00:00:00 2001 From: Siddhartha Sahu <867424+sdht0@users.noreply.github.com> Date: Wed, 22 May 2024 07:12:36 -0400 Subject: [PATCH 113/114] gptfdisk: 1.0.9 -> 1.0.10 (#297099) --- pkgs/tools/system/gptfdisk/default.nix | 15 +--- pkgs/tools/system/gptfdisk/popt-1-19.patch | 84 ---------------------- pkgs/tools/system/gptfdisk/uuid.patch | 11 --- 3 files changed, 2 insertions(+), 108 deletions(-) delete mode 100644 pkgs/tools/system/gptfdisk/popt-1-19.patch delete mode 100644 pkgs/tools/system/gptfdisk/uuid.patch diff --git a/pkgs/tools/system/gptfdisk/default.nix b/pkgs/tools/system/gptfdisk/default.nix index 254aa3e82c42..2718be70c71f 100644 --- a/pkgs/tools/system/gptfdisk/default.nix +++ b/pkgs/tools/system/gptfdisk/default.nix @@ -2,26 +2,15 @@ stdenv.mkDerivation rec { pname = "gptfdisk"; - version = "1.0.9"; + version = "1.0.10"; src = fetchurl { # https://www.rodsbooks.com/gdisk/${name}.tar.gz also works, but the home # page clearly implies a preference for using SourceForge's bandwidth: url = "mirror://sourceforge/gptfdisk/${pname}-${version}.tar.gz"; - sha256 = "sha256-2v6tJpP6646Ll4MrI0B/btWzIZvBeE9ILdhVd04tUMI="; + sha256 = "sha256-Kr7WG8bSuexJiXPARAuLgEt6ctcUQGm1qSCbKtaTooI="; }; - patches = [ - # issues with popt 1.19 (from upstream but not yet released): - # https://github.com/rpm-software-management/popt/issues/80 - ./popt-1-19.patch - - # fix UUID generation (from upstream but not yet released): - # https://sourceforge.net/p/gptfdisk/code/ci/6a8416cbd12d55f882bb751993b94f72d338d96f/ - # https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1853985.html - ./uuid.patch - ]; - postPatch = '' patchShebangs gdisk_test.sh '' + lib.optionalString stdenv.isDarwin '' diff --git a/pkgs/tools/system/gptfdisk/popt-1-19.patch b/pkgs/tools/system/gptfdisk/popt-1-19.patch deleted file mode 100644 index 234c664c962c..000000000000 --- a/pkgs/tools/system/gptfdisk/popt-1-19.patch +++ /dev/null @@ -1,84 +0,0 @@ -commit 5d5e76d369a412bfb3d2cebb5fc0a7509cef878d -Author: Rod Smith -Date: Fri Apr 15 18:10:14 2022 -0400 - - Fix failure & crash of sgdisk when compiled with latest popt (commit 740; presumably eventually release 1.19) - -diff --git a/NEWS b/NEWS -index c7add56..9e153fd 100644 ---- a/NEWS -+++ b/NEWS -@@ -1,3 +1,11 @@ -+1.0.10 (?/??/2022): -+------------------- -+ -+- Fixed problem that caused sgdisk to crash with errors about being unable -+ to read the disk's partition table when compiled with the latest popt -+ (commit 740, which is pre-release as I type; presumably version 1.19 and -+ later once released). -+ - 1.0.9 (4/14/2022): - ------------------ - -diff --git a/gptcl.cc b/gptcl.cc -index 34c9421..0d578eb 100644 ---- a/gptcl.cc -+++ b/gptcl.cc -@@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) { - } // while - - // Assume first non-option argument is the device filename.... -- device = (char*) poptGetArg(poptCon); -+ device = strdup((char*) poptGetArg(poptCon)); - poptResetContext(poptCon); - - if (device != NULL) { -diff --git a/support.h b/support.h -index 8ba9ad1..f91f1bc 100644 ---- a/support.h -+++ b/support.h -@@ -8,7 +8,7 @@ - #include - #include - --#define GPTFDISK_VERSION "1.0.9" -+#define GPTFDISK_VERSION "1.0.9.1" - - #if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__) - // Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64 - -commit f5de3401b974ce103ffd93af8f9d43505a04aaf9 -Author: Damian Kurek -Date: Thu Jul 7 03:39:16 2022 +0000 - - Fix NULL dereference when duplicating string argument - - poptGetArg can return NULL if there are no additional arguments, which - makes strdup dereference NULL on strlen - -diff --git a/gptcl.cc b/gptcl.cc -index 0d578eb..ab95239 100644 ---- a/gptcl.cc -+++ b/gptcl.cc -@@ -155,10 +155,11 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) { - } // while - - // Assume first non-option argument is the device filename.... -- device = strdup((char*) poptGetArg(poptCon)); -- poptResetContext(poptCon); -+ device = (char*) poptGetArg(poptCon); - - if (device != NULL) { -+ device = strdup(device); -+ poptResetContext(poptCon); - JustLooking(); // reset as necessary - BeQuiet(); // Tell called functions to be less verbose & interactive - if (LoadPartitions((string) device)) { -@@ -498,6 +499,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) { - cerr << "Error encountered; not saving changes.\n"; - retval = 4; - } // if -+ free(device); - } // if (device != NULL) - poptFreeContext(poptCon); - return retval; diff --git a/pkgs/tools/system/gptfdisk/uuid.patch b/pkgs/tools/system/gptfdisk/uuid.patch deleted file mode 100644 index 110c3d106b43..000000000000 --- a/pkgs/tools/system/gptfdisk/uuid.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/guid.cc -+++ b/guid.cc -@@ -141,7 +141,7 @@ void GUIDData::Zero(void) { - void GUIDData::Randomize(void) { - int i, uuidGenerated = 0; - --#ifdef _UUID_UUID_H -+#if defined (_UUID_UUID_H) || defined (_UL_LIBUUID_UUID_H) - uuid_generate(uuidData); - ReverseBytes(&uuidData[0], 4); - ReverseBytes(&uuidData[4], 2); From 07a26ae742db8bbddcfd455b75528643b3c80f5a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 May 2024 03:19:00 +0200 Subject: [PATCH 114/114] nixos/garage: support 0.9.0+ data_dir format https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#data_dir --- nixos/modules/services/web-servers/garage.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-servers/garage.nix b/nixos/modules/services/web-servers/garage.nix index d2a5109e266a..425695b601e5 100644 --- a/nixos/modules/services/web-servers/garage.nix +++ b/nixos/modules/services/web-servers/garage.nix @@ -49,8 +49,15 @@ in data_dir = mkOption { default = "/var/lib/garage/data"; - type = types.path; - description = "The main data storage, put this on your large storage (e.g. high capacity HDD)"; + example = [ { + path = "/var/lib/garage/data"; + capacity = "2T"; + } ]; + type = with types; either path (listOf attrs); + description = '' + The directory in which Garage will store the data blocks of objects. This folder can be placed on an HDD. + Since v0.9.0, Garage supports multiple data directories, refer to https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#data_dir for the exact format. + ''; }; }; };