From 8d680a8c59f9ba3bc73d533862b06b9121068511 Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Thu, 19 Dec 2024 14:38:32 -0700 Subject: [PATCH 01/95] calibre-web: fix ebook conversion missing config_binariesdir setting --- nixos/modules/services/web-apps/calibre-web.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/calibre-web.nix b/nixos/modules/services/web-apps/calibre-web.nix index 0ca9ed2fbcf3..646ef6afd8c0 100644 --- a/nixos/modules/services/web-apps/calibre-web.nix +++ b/nixos/modules/services/web-apps/calibre-web.nix @@ -121,6 +121,7 @@ in ] ++ optional (cfg.options.calibreLibrary != null) "config_calibre_dir = '${cfg.options.calibreLibrary}'" ++ optional cfg.options.enableBookConversion "config_converterpath = '${pkgs.calibre}/bin/ebook-convert'" + ++ optional cfg.options.enableBookConversion "config_binariesdir = '${pkgs.calibre}/bin/'" ++ optional cfg.options.enableKepubify "config_kepubifypath = '${pkgs.kepubify}/bin/kepubify'" ); in From 0d894d40bb0cc450ab55a48c7b63bbe504989202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Thu, 6 Mar 2025 16:31:01 +0000 Subject: [PATCH 02/95] nginxModules.njs: fix build --- pkgs/servers/http/nginx/modules.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/http/nginx/modules.nix b/pkgs/servers/http/nginx/modules.nix index 2565cfc465e6..004ba2a6b997 100644 --- a/pkgs/servers/http/nginx/modules.nix +++ b/pkgs/servers/http/nginx/modules.nix @@ -1,5 +1,6 @@ { lib , config +, nixosTests , fetchFromGitHub , fetchFromGitLab , fetchhg @@ -518,17 +519,19 @@ let self = { mkdir -p "$(dirname "$NJS_SOURCE_DIR")" cp --recursive "${src}" "$NJS_SOURCE_DIR" chmod -R u+rwX,go+rX "$NJS_SOURCE_DIR" - export configureFlags="''${configureFlags/"${src}"/"$NJS_SOURCE_DIR/nginx"}" + export configureFlags="''${configureFlags/"${src}"/"$NJS_SOURCE_DIR/nginx"} --with-ld-opt='-lz'" unset NJS_SOURCE_DIR ''; - inputs = [ which ]; + inputs = [ which zlib ]; + + passthru.tests = nixosTests.nginx-njs; meta = with lib; { description = "Subset of the JavaScript language that allows extending nginx functionality"; homepage = "https://nginx.org/en/docs/njs/"; license = with licenses; [ bsd2 ]; - maintainers = [ ]; + maintainers = with maintainers; [ jvanbruegge ]; }; }; From a907e4e08e295d1e5dfa1a6085bc09e8f8bde8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Thu, 6 Mar 2025 16:31:46 +0000 Subject: [PATCH 03/95] nginxModules.njs: 0.8.7 -> 0.8.9 --- pkgs/servers/http/nginx/modules.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/http/nginx/modules.nix b/pkgs/servers/http/nginx/modules.nix index 004ba2a6b997..c1babafac454 100644 --- a/pkgs/servers/http/nginx/modules.nix +++ b/pkgs/servers/http/nginx/modules.nix @@ -508,8 +508,8 @@ let self = { src = fetchFromGitHub { owner = "nginx"; repo = "njs"; - rev = "0.8.7"; - hash = "sha256-VEXzP+cN5hnDeniccwY7GIi4x460rnWO/o7ja3DyRCc="; + rev = "0.8.9"; + hash = "sha256-TalS9EJP+vB1o3BKaTvXXnudjKhNOcob3kDAyeKej3c="; }; # njs module sources have to be writable during nginx build, so we copy them From 801eacddccaa6e016ff9285add97844c6a8ff8eb Mon Sep 17 00:00:00 2001 From: Mathieu Fenniak Date: Sun, 9 Mar 2025 12:42:27 -0600 Subject: [PATCH 04/95] replace multiple optional w/ one optionals import optionals --- nixos/modules/services/web-apps/calibre-web.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/web-apps/calibre-web.nix b/nixos/modules/services/web-apps/calibre-web.nix index 646ef6afd8c0..9b62d515b0e7 100644 --- a/nixos/modules/services/web-apps/calibre-web.nix +++ b/nixos/modules/services/web-apps/calibre-web.nix @@ -3,7 +3,7 @@ let cfg = config.services.calibre-web; - inherit (lib) concatStringsSep mkEnableOption mkIf mkOption optional optionalString types; + inherit (lib) concatStringsSep mkEnableOption mkIf mkOption optional optionals optionalString types; in { options = { @@ -120,8 +120,10 @@ in "config_reverse_proxy_login_header_name = '${cfg.options.reverseProxyAuth.header}'" ] ++ optional (cfg.options.calibreLibrary != null) "config_calibre_dir = '${cfg.options.calibreLibrary}'" - ++ optional cfg.options.enableBookConversion "config_converterpath = '${pkgs.calibre}/bin/ebook-convert'" - ++ optional cfg.options.enableBookConversion "config_binariesdir = '${pkgs.calibre}/bin/'" + ++ optionals cfg.options.enableBookConversion [ + "config_converterpath = '${pkgs.calibre}/bin/ebook-convert'" + "config_binariesdir = '${pkgs.calibre}/bin/'" + ] ++ optional cfg.options.enableKepubify "config_kepubifypath = '${pkgs.kepubify}/bin/kepubify'" ); in From b7545634839c7a664a8b6ac8d1d59c0f8041e8fe Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 12 Mar 2025 05:50:21 +0000 Subject: [PATCH 05/95] bino3d: 2.4 -> 2.5 --- pkgs/applications/video/bino3d/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/bino3d/default.nix b/pkgs/applications/video/bino3d/default.nix index cb539aacb37f..d827b14f5869 100644 --- a/pkgs/applications/video/bino3d/default.nix +++ b/pkgs/applications/video/bino3d/default.nix @@ -14,12 +14,12 @@ stdenv.mkDerivation (finalAttrs: { pname = "bino"; - version = "2.4"; + version = "2.5"; src = fetchgit { url = "https://git.marlam.de/git/bino.git"; rev = "bino-${finalAttrs.version}"; - hash = "sha256-h7sS+5he8dKl9ipdM1Vs1WC6U+Pi/QMVSdTbT9E59lU="; + hash = "sha256-vGPbSYTfRy414xVcLIvOnN4Te36HWVz7DQegNhYb3u4="; }; nativeBuildInputs = [ From 5ba08717b99fa4ef99f9f7640f53f6bc42d0022d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 14 Mar 2025 04:07:15 +0000 Subject: [PATCH 06/95] libwpe-fdo: 1.14.3 -> 1.16.0 --- pkgs/development/libraries/libwpe/fdo.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libwpe/fdo.nix b/pkgs/development/libraries/libwpe/fdo.nix index b7f09b7ebb7b..789c698216c1 100644 --- a/pkgs/development/libraries/libwpe/fdo.nix +++ b/pkgs/development/libraries/libwpe/fdo.nix @@ -17,11 +17,11 @@ stdenv.mkDerivation rec { pname = "wpebackend-fdo"; - version = "1.14.3"; + version = "1.16.0"; src = fetchurl { url = "https://wpewebkit.org/releases/wpebackend-fdo-${version}.tar.xz"; - sha256 = "sha256-EBIYQllahQKR2z6C89sLmYTfB5Ai04bOQsK4UIFZ3Gw="; + sha256 = "sha256-vt3zISMtW9CBBsF528YA+M6I6zYgtKWaYykGO3j2RjU="; }; depsBuildBuild = [ From 33edad6f3bde48ae6bd070c2496cfe0994bf5951 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 14 Mar 2025 06:36:49 +0000 Subject: [PATCH 07/95] streamlit: 1.42.2 -> 1.43.2 --- pkgs/development/python-modules/streamlit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/streamlit/default.nix b/pkgs/development/python-modules/streamlit/default.nix index 4a15f13f0ab3..42cf1421611d 100644 --- a/pkgs/development/python-modules/streamlit/default.nix +++ b/pkgs/development/python-modules/streamlit/default.nix @@ -28,14 +28,14 @@ buildPythonPackage rec { pname = "streamlit"; - version = "1.42.2"; + version = "1.43.2"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; - hash = "sha256-YgJtvctIJ5CTP2WLCW191Y+nDaicHwb7w2WLkdzU2rI="; + hash = "sha256-86+ir2N9ABVMakxWDS/eJW19yMwfMqU88gVwwJZ4Qbw="; }; build-system = [ From 1e54b4734c585df1c4aebf15b2da3c4502cad198 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 14 Mar 2025 14:26:49 +0000 Subject: [PATCH 08/95] android-udev-rules: 20241109 -> 20250314 --- pkgs/by-name/an/android-udev-rules/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/an/android-udev-rules/package.nix b/pkgs/by-name/an/android-udev-rules/package.nix index 61f952a98dcc..a1dcffe21cd8 100644 --- a/pkgs/by-name/an/android-udev-rules/package.nix +++ b/pkgs/by-name/an/android-udev-rules/package.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation rec { pname = "android-udev-rules"; - version = "20241109"; + version = "20250314"; src = fetchFromGitHub { owner = "M0Rf30"; repo = "android-udev-rules"; rev = version; - hash = "sha256-WHAm9hDpXsn+Isrc5nNgw7G5DKBJb7X0ILx6lG5Y7YQ="; + hash = "sha256-QADyZ3FHVuxX/PfsRt2ijwJRCksQb1Hz5lSgYJlyb1Q="; }; installPhase = '' From e4469e8b3ac2db25102441dc84149a4ca7fdc033 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 14 Mar 2025 18:37:56 +0000 Subject: [PATCH 09/95] zwave-js-server: 1.40.3 -> 3.0.0 --- pkgs/by-name/zw/zwave-js-server/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/zw/zwave-js-server/package.nix b/pkgs/by-name/zw/zwave-js-server/package.nix index f40a1341d687..c0152506c7ad 100644 --- a/pkgs/by-name/zw/zwave-js-server/package.nix +++ b/pkgs/by-name/zw/zwave-js-server/package.nix @@ -6,16 +6,16 @@ buildNpmPackage rec { pname = "zwave-js-server"; - version = "1.40.3"; + version = "3.0.0"; src = fetchFromGitHub { owner = "zwave-js"; repo = "zwave-js-server"; rev = version; - hash = "sha256-fk9UBtdbU9ZVoqCXXeeGpaiGhU9/pcR87NP1S86axSM="; + hash = "sha256-vY/afOza0ewOqlhbp6uMf/mw9nvQLN0lEFmHekxpJVA="; }; - npmDepsHash = "sha256-iSrgrgepUZzlBvwMe6lmFUW4i6DVx1Bq4I4UBph/oNA="; + npmDepsHash = "sha256-HgXFFA1aa25vRpw4ujj6aeIX75soDYv3TaM5bQOfEv4="; # For some reason the zwave-js dependency is in devDependencies npmFlags = [ "--include=dev" ]; From 4573a3162c691f7c7df8e8c4a5f937adfb8e2c21 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 15 Mar 2025 01:37:50 +0000 Subject: [PATCH 10/95] networkmanager_dmenu: 2.5.0 -> 2.6.0 --- pkgs/by-name/ne/networkmanager_dmenu/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ne/networkmanager_dmenu/package.nix b/pkgs/by-name/ne/networkmanager_dmenu/package.nix index 97acb7b35c1a..7e39c745d1c9 100644 --- a/pkgs/by-name/ne/networkmanager_dmenu/package.nix +++ b/pkgs/by-name/ne/networkmanager_dmenu/package.nix @@ -14,13 +14,13 @@ let in stdenv.mkDerivation rec { pname = "networkmanager_dmenu"; - version = "2.5.0"; + version = "2.6.0"; src = fetchFromGitHub { owner = "firecat53"; repo = "networkmanager-dmenu"; rev = "v${version}"; - sha256 = "sha256-aw6TwRtlb9x/JOuJqPZTZB2+srlnteEOmYiOPS1tAbM="; + sha256 = "sha256-Iy8Bi6aXtNXFfuQmRhLo50cs7pMx1l+OIv019Dqj6ow="; }; nativeBuildInputs = [ gobject-introspection ]; From cbe04943d1901e88d98e8691732e1bc0147c1b40 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 15 Mar 2025 21:02:36 +0000 Subject: [PATCH 11/95] firehol: 3.1.7 -> 3.1.8 --- pkgs/applications/networking/firehol/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/firehol/default.nix b/pkgs/applications/networking/firehol/default.nix index d5af0443de12..bc358bc4d036 100644 --- a/pkgs/applications/networking/firehol/default.nix +++ b/pkgs/applications/networking/firehol/default.nix @@ -23,13 +23,13 @@ stdenv.mkDerivation rec { pname = "firehol"; - version = "3.1.7"; + version = "3.1.8"; src = fetchFromGitHub { owner = "firehol"; repo = "firehol"; rev = "v${version}"; - sha256 = "sha256-gq7l7QoUsK+j5DUn84kD9hlUTC4hz3ds3gNJc1tRygs="; + sha256 = "sha256-6O3AoQs7Qzcin8VXQgJfCVsNOI74H6fE1DgqdY+e4bA="; }; patches = [ From 0c6d283b53758c586ca258ed12b1faaa1a63d0c4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 16 Mar 2025 04:14:56 +0000 Subject: [PATCH 12/95] metacubexd: 1.176.2 -> 1.186.1 --- pkgs/by-name/me/metacubexd/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/me/metacubexd/package.nix b/pkgs/by-name/me/metacubexd/package.nix index 74716cb8c213..9a91ffca6e05 100644 --- a/pkgs/by-name/me/metacubexd/package.nix +++ b/pkgs/by-name/me/metacubexd/package.nix @@ -8,13 +8,13 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "metacubexd"; - version = "1.176.2"; + version = "1.186.1"; src = fetchFromGitHub { owner = "MetaCubeX"; repo = "metacubexd"; rev = "v${finalAttrs.version}"; - hash = "sha256-pvVtTN3hMwQJEV1a83Hb7KDnzEPSoxDCxIgAIvFrm88="; + hash = "sha256-AcqtDdEdtkxwm99CQzLGtDE9PSdRHJIO2gAUextqtSs="; }; nativeBuildInputs = [ @@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: { pnpmDeps = pnpm_9.fetchDeps { inherit (finalAttrs) pname version src; - hash = "sha256-xDcqGvM8J6miDwiwNQODnPVq63flitva6/nPLYa9cgY="; + hash = "sha256-PmVMNSYOffo8ExNIoTkDllRXF+Kau/6QBNkYQn1DKXE="; }; buildPhase = '' From 1b3fbe4340d94c842c03bd076cc802d7d81777c0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 16 Mar 2025 10:41:34 +0000 Subject: [PATCH 13/95] azure-cli-extensions.application-insights: 1.2.2 -> 1.2.3 --- pkgs/by-name/az/azure-cli/extensions-manual.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-manual.nix b/pkgs/by-name/az/azure-cli/extensions-manual.nix index f9191d4ac0e4..3c761df5acef 100644 --- a/pkgs/by-name/az/azure-cli/extensions-manual.nix +++ b/pkgs/by-name/az/azure-cli/extensions-manual.nix @@ -16,9 +16,9 @@ { application-insights = mkAzExtension rec { pname = "application-insights"; - version = "1.2.2"; + version = "1.2.3"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/application_insights-${version}-py2.py3-none-any.whl"; - hash = "sha256-ijmPj8jG+s+855jly3m5wEz5myS8pxU/Scf7lRP2VvI="; + hash = "sha256-yUHCMtBDZmNuE1TP4AcIUhAT+IpbHnR0DYBH7EbZBZk="; description = "Support for managing Application Insights components and querying metrics, events, and logs from such components"; propagatedBuildInputs = with python3Packages; [ isodate ]; meta.maintainers = with lib.maintainers; [ andreasvoss ]; From 65a511718109c34a9876e92f080e44893d1d288c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 17 Mar 2025 01:49:58 +0000 Subject: [PATCH 14/95] fluidd: 1.32.4 -> 1.33.0 --- pkgs/by-name/fl/fluidd/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fl/fluidd/package.nix b/pkgs/by-name/fl/fluidd/package.nix index 90f8c6f67afc..44c9e9ebd42b 100644 --- a/pkgs/by-name/fl/fluidd/package.nix +++ b/pkgs/by-name/fl/fluidd/package.nix @@ -8,13 +8,13 @@ buildNpmPackage rec { pname = "fluidd"; - version = "1.32.4"; + version = "1.33.0"; src = fetchFromGitHub { owner = "fluidd-core"; repo = "fluidd"; tag = "v${version}"; - hash = "sha256-5siU1BunQ1tcF8pg0trKkynJXmLdCS1rFo7J0WX8V30="; + hash = "sha256-z1qb3n+BlvQhw6fKvfZ6s/uSdWbXAJ8xqvQRdLPnD+M="; }; patches = [ @@ -23,7 +23,7 @@ buildNpmPackage rec { }) ]; - npmDepsHash = "sha256-+MfqmMZ2fiijr4X2S2TQfo25mVGpnZtZYOxCfPH4gFY="; + npmDepsHash = "sha256-RpnZLJzxMmwo/XsXOWshw8xCpXG6GuhsaTb4rnXt/D0="; installPhase = '' mkdir -p $out/share/fluidd From 7d6c9f3cf810d4fd200549d1c6ab0fd7787a207d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 17 Mar 2025 07:45:37 +0000 Subject: [PATCH 15/95] onedrive: 2.5.4 -> 2.5.5 --- pkgs/by-name/on/onedrive/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/on/onedrive/package.nix b/pkgs/by-name/on/onedrive/package.nix index b68944dd20dc..2d5ca17c04ee 100644 --- a/pkgs/by-name/on/onedrive/package.nix +++ b/pkgs/by-name/on/onedrive/package.nix @@ -18,13 +18,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "onedrive"; - version = "2.5.4"; + version = "2.5.5"; src = fetchFromGitHub { owner = "abraunegg"; repo = "onedrive"; rev = "v${finalAttrs.version}"; - hash = "sha256-KJ+6Yo5tod36yMihBamdzCGzVOTItN9OgUd05pAyTxc="; + hash = "sha256-SoTkphmxWVAeSfqO7Vqm8bdPAP1hK57zFNR6N5elEOM="; }; outputs = [ From e01a88dbef3fd5a264a4c2e6c16ade6435b12f24 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 17 Mar 2025 07:51:46 +0000 Subject: [PATCH 16/95] osv-scanner: 1.9.2 -> 2.0.0 --- pkgs/by-name/os/osv-scanner/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/os/osv-scanner/package.nix b/pkgs/by-name/os/osv-scanner/package.nix index 3e5e88634dd5..717b0871ea86 100644 --- a/pkgs/by-name/os/osv-scanner/package.nix +++ b/pkgs/by-name/os/osv-scanner/package.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "osv-scanner"; - version = "1.9.2"; + version = "2.0.0"; src = fetchFromGitHub { owner = "google"; repo = "osv-scanner"; tag = "v${version}"; - hash = "sha256-Db5AgFvyrUOlW+1rcw8jPUzTBwQcFelLk5Rqk9HsbCo="; + hash = "sha256-iYbCCGZDTUbyW1XvQIpLZEtuzwUhTBAf3EfAwRX9qYU="; }; - vendorHash = "sha256-4e+aEOo/hu2lC0c1sT8XJXdjrlcsqmPjpgvvdakHnmc="; + vendorHash = "sha256-saD4RehZrKSC5V3A5r5prlq+080BFbhEp1Jo1rCbSHI="; subPackages = [ "cmd/osv-scanner" From 9d18236490844b22c5b6032d64124d7ed5660db2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 17 Mar 2025 08:46:47 +0000 Subject: [PATCH 17/95] libppd: 2.1.0 -> 2.1.1 --- pkgs/by-name/li/libppd/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libppd/package.nix b/pkgs/by-name/li/libppd/package.nix index 1284f0e0cf24..c268cd552028 100644 --- a/pkgs/by-name/li/libppd/package.nix +++ b/pkgs/by-name/li/libppd/package.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation rec { pname = "libppd"; - version = "2.1.0"; + version = "2.1.1"; src = fetchFromGitHub { owner = "OpenPrinting"; repo = "libppd"; rev = version; - hash = "sha256-vT4h3dnMu4yHNk0ExGZjuChdu0kAcxsla7vJupZpLaY="; + hash = "sha256-8ofCv+tKgBk9GoGD4lmBPB/S4ABZ6cWGOk/KqDsEzNk="; }; nativeBuildInputs = [ From 1292ebb377247de443ed98e9fc7f79c8dd41dc57 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 18 Mar 2025 00:40:51 +0000 Subject: [PATCH 18/95] couchdb3: 3.4.2 -> 3.4.3 --- pkgs/servers/http/couchdb/3.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/http/couchdb/3.nix b/pkgs/servers/http/couchdb/3.nix index 0b65c8e45d5d..88b9a7b5d5db 100644 --- a/pkgs/servers/http/couchdb/3.nix +++ b/pkgs/servers/http/couchdb/3.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation rec { pname = "couchdb"; - version = "3.4.2"; + version = "3.4.3"; src = fetchurl { url = "mirror://apache/couchdb/source/${version}/apache-${pname}-${version}.tar.gz"; - hash = "sha256-0n/yoTNWAAKWqYq4hMrz0XWSfPIXJ5Y/+Q+rOnR1RM8="; + hash = "sha256-A1dRG2/tcOPmT051ql18wgAMsPJk7zAXArGBZCf3LyA="; }; postPatch = '' From 322cc86f1371f781618b6acf6cc27d072d878bc8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 18 Mar 2025 23:22:12 +0000 Subject: [PATCH 19/95] web-ext: 8.4.0 -> 8.5.0 --- pkgs/by-name/we/web-ext/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/we/web-ext/package.nix b/pkgs/by-name/we/web-ext/package.nix index 41e6089a8422..401aff4d5867 100644 --- a/pkgs/by-name/we/web-ext/package.nix +++ b/pkgs/by-name/we/web-ext/package.nix @@ -8,16 +8,16 @@ buildNpmPackage rec { pname = "web-ext"; - version = "8.4.0"; + version = "8.5.0"; src = fetchFromGitHub { owner = "mozilla"; repo = "web-ext"; rev = version; - hash = "sha256-zPOXl/7v/yP1ggqSKruGli/FC8Vf7i4J3LZey4WC/Lc="; + hash = "sha256-RT/K/fYMys1RAvnusAMuHtfZ7gndYf3FPuHBYCklBpw="; }; - npmDepsHash = "sha256-tU/NTeMjUyw1ftXLTP3HpLQqfzTNVwgY3oKvuIZXPxw="; + npmDepsHash = "sha256-O8DmeT0wRNpuPU1K6kH97D9+mxOxCchAUrvOVPq4VPc="; npmBuildFlags = [ "--production" ]; From a92c607faf81bdb860005020c729e58747f1bba0 Mon Sep 17 00:00:00 2001 From: Jana Traue Date: Wed, 19 Mar 2025 08:42:47 +0100 Subject: [PATCH 20/95] photoprism: 240711-2197af848 -> 250228-43447fa38 https://github.com/photoprism/photoprism/releases/tag/240915-e1280b2fb https://github.com/photoprism/photoprism/releases/tag/250223-b79d21907 https://github.com/photoprism/photoprism/releases/tag/250224-834c16bc7 https://github.com/photoprism/photoprism/releases/tag/250228-43447fa38 --- pkgs/by-name/ph/photoprism/backend.nix | 2 +- pkgs/by-name/ph/photoprism/frontend.nix | 2 +- pkgs/by-name/ph/photoprism/package.nix | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ph/photoprism/backend.nix b/pkgs/by-name/ph/photoprism/backend.nix index 898171820c7d..369b17c49640 100644 --- a/pkgs/by-name/ph/photoprism/backend.nix +++ b/pkgs/by-name/ph/photoprism/backend.nix @@ -33,7 +33,7 @@ buildGoModule rec { substituteInPlace internal/commands/passwd.go --replace '/bin/stty' "${coreutils}/bin/stty" ''; - vendorHash = "sha256-6xE1j/Vh9ltE6TpBkvjK4rzLyXv8OJzy84vf9Iqw3yU="; + vendorHash = "sha256-eKMcSqAJ+11+50A/3vOC1UJ/Z517J4wdrmkyfRkpBGE="; subPackages = [ "cmd/photoprism" ]; diff --git a/pkgs/by-name/ph/photoprism/frontend.nix b/pkgs/by-name/ph/photoprism/frontend.nix index c297335d103a..e7298999cf89 100644 --- a/pkgs/by-name/ph/photoprism/frontend.nix +++ b/pkgs/by-name/ph/photoprism/frontend.nix @@ -13,7 +13,7 @@ buildNpmPackage { cd frontend ''; - npmDepsHash = "sha256-y2Mj0sJP2urTDrsVPReVFi7G9fLjuKz76vDPLvkaMFA="; + npmDepsHash = "sha256-1bo/mJ6cmidd3oduLFMNOBHUB18yvYPyEocoUE/ziyo="; installPhase = '' runHook preInstall diff --git a/pkgs/by-name/ph/photoprism/package.nix b/pkgs/by-name/ph/photoprism/package.nix index 14c8b832876b..b880230a4076 100644 --- a/pkgs/by-name/ph/photoprism/package.nix +++ b/pkgs/by-name/ph/photoprism/package.nix @@ -17,14 +17,14 @@ }: let - version = "240711-2197af848"; + version = "250228-43447fa38"; pname = "photoprism"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - hash = "sha256-ihDv5c5RUjDbFcAHJjzp/8qCwKfA+rlFXPziaYarzs8="; + hash = "sha256-7WN3XRASKdRZODXkHiKUcYITUtIS1o6b0xoqfL3i5xs="; }; libtensorflow = callPackage ./libtensorflow.nix { }; From e58fb6b16f60c0da5ac00beedf1f97b334224f47 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 19 Mar 2025 17:16:42 +0000 Subject: [PATCH 21/95] aws-sam-cli: 1.134.0 -> 1.135.0 --- pkgs/by-name/aw/aws-sam-cli/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-sam-cli/package.nix b/pkgs/by-name/aw/aws-sam-cli/package.nix index 7565be53919a..35d50ba68d77 100644 --- a/pkgs/by-name/aw/aws-sam-cli/package.nix +++ b/pkgs/by-name/aw/aws-sam-cli/package.nix @@ -11,14 +11,14 @@ python3.pkgs.buildPythonApplication rec { pname = "aws-sam-cli"; - version = "1.134.0"; + version = "1.135.0"; pyproject = true; src = fetchFromGitHub { owner = "aws"; repo = "aws-sam-cli"; tag = "v${version}"; - hash = "sha256-CuXJHKHFE1HOs3fQPofWPJI1/+mtkXBGEmO7bIQD5lA="; + hash = "sha256-ccYpEznuU6d7gDyrDiuUmvdCJutXI7SAH2PH9Vdq8Fs="; }; build-system = with python3.pkgs; [ setuptools ]; From c021d09d1d87172572393977b0a564358b09d07a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 19 Mar 2025 19:24:12 +0000 Subject: [PATCH 22/95] ccid: 1.6.1 -> 1.6.2 --- pkgs/by-name/cc/ccid/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/cc/ccid/package.nix b/pkgs/by-name/cc/ccid/package.nix index 9da29d3b9c45..9f4f625ae237 100644 --- a/pkgs/by-name/cc/ccid/package.nix +++ b/pkgs/by-name/cc/ccid/package.nix @@ -15,11 +15,11 @@ stdenv.mkDerivation rec { pname = "ccid"; - version = "1.6.1"; + version = "1.6.2"; src = fetchurl { url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.xz"; - hash = "sha256-LsqPsH6P58DTna6sp7l81zxA7Ztyc4okrT3L38kY4eo="; + hash = "sha256-QZWEEJUBV+Yi+dkcnnjHtwjbdOIvcRkMWB0k0gVk1Ek="; }; postPatch = '' From 0edf09400e6df236978d018635a0e481137e63ef Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 20 Mar 2025 05:33:44 +0000 Subject: [PATCH 23/95] prometheus-pihole-exporter: 1.0.0 -> 1.0.1 --- pkgs/servers/monitoring/prometheus/pihole-exporter.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/monitoring/prometheus/pihole-exporter.nix b/pkgs/servers/monitoring/prometheus/pihole-exporter.nix index 58f8d21f5824..60dea11316c7 100644 --- a/pkgs/servers/monitoring/prometheus/pihole-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/pihole-exporter.nix @@ -6,16 +6,16 @@ buildGoModule rec { pname = "pihole-exporter"; - version = "1.0.0"; + version = "1.0.1"; src = fetchFromGitHub { owner = "eko"; repo = pname; rev = "v${version}"; - sha256 = "sha256-Sum27hjs0Jvi1UWGeQcR8z9zmZ/I40uBFpKeHgHfFrA="; + sha256 = "sha256-7gomafTMK8rk+QFw3Vm8KUgNFqiUDILeTwNFa7vdgAw="; }; - vendorHash = "sha256-7f/upTF3/w40wWGdcw0h3kOPlo8ZeyRna6FapnF2X0s="; + vendorHash = "sha256-GB/wVB97aV+CV9Xtv0EofQQR+qOmtwrBFBogU+2S+Po="; meta = with lib; { description = "Prometheus exporter for PI-Hole's Raspberry PI ad blocker"; From 7dee90bf30b137c2cf11c721f1131558e4bc02d0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 20 Mar 2025 05:54:16 +0000 Subject: [PATCH 24/95] python312Packages.nipype: 1.9.2 -> 1.10.0 --- pkgs/development/python-modules/nipype/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/nipype/default.nix b/pkgs/development/python-modules/nipype/default.nix index fd4b616682f3..7820a4dee171 100644 --- a/pkgs/development/python-modules/nipype/default.nix +++ b/pkgs/development/python-modules/nipype/default.nix @@ -41,13 +41,13 @@ buildPythonPackage rec { pname = "nipype"; - version = "1.9.2"; + version = "1.10.0"; disabled = pythonOlder "3.7"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-pQO9QbZY8ITRBCUv1yjvdfGhmYAm/quYsWOZiWVOA0M="; + hash = "sha256-GeXWzvpwmXGY94vGZe9NPTy1MyW1uYpy5Rrvra9rPg4="; }; postPatch = '' From 28297fcd325011e4fe0aee51752c036e0e59bab3 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 01:12:53 +0100 Subject: [PATCH 25/95] node-env.nix: use each nodejs' python instead of python2 Node v18, v20, v22 and v23 all use some version of python3 --- pkgs/development/node-packages/node-env.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/node-packages/node-env.nix b/pkgs/development/node-packages/node-env.nix index 4123ca029664..373b730698f7 100644 --- a/pkgs/development/node-packages/node-env.nix +++ b/pkgs/development/node-packages/node-env.nix @@ -1,9 +1,9 @@ # This file originates from node2nix -{lib, stdenv, nodejs, python2, pkgs, libtool, runCommand, writeTextFile, writeShellScript}: +{lib, stdenv, nodejs, pkgs, libtool, runCommand, writeTextFile, writeShellScript, ...}: let - python = if nodejs ? python then nodejs.python else python2; + inherit (nodejs) python; # Create a tar wrapper that filters all the 'Ignoring unknown extended header keyword' noise tarWrapper = runCommand "tarWrapper" {} '' From 3814cd057750aec2ea3ea82b5f42bd69dfeb346d Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 01:00:16 +0100 Subject: [PATCH 26/95] elmPackages.node: remove reference to python2 pkgs.nodejs_18 uses python311, which means pkgs.python2 will never be used --- .../development/compilers/elm/packages/node/node-composition.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/compilers/elm/packages/node/node-composition.nix b/pkgs/development/compilers/elm/packages/node/node-composition.nix index f23ba8e11e71..e095e45b97db 100644 --- a/pkgs/development/compilers/elm/packages/node/node-composition.nix +++ b/pkgs/development/compilers/elm/packages/node/node-composition.nix @@ -13,7 +13,6 @@ let inherit (pkgs) stdenv lib - python2 runCommand writeTextFile writeShellScript From b6ecdd7c8f9f8400ab18ea1390dbf49a8deed9d3 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 01:06:38 +0100 Subject: [PATCH 27/95] base16-builder: remove reference to python2 pkgs.nodejs_18 uses python311, which means pkgs.python2 will never be used --- pkgs/misc/base16-builder/node-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/misc/base16-builder/node-packages.nix b/pkgs/misc/base16-builder/node-packages.nix index b4bd9d9d41d2..1d201f032168 100644 --- a/pkgs/misc/base16-builder/node-packages.nix +++ b/pkgs/misc/base16-builder/node-packages.nix @@ -6,7 +6,7 @@ let nodeEnv = import ../../development/node-packages/node-env.nix { - inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript; + inherit (pkgs) stdenv lib runCommand writeTextFile writeShellScript; inherit pkgs nodejs; libtool = if pkgs.stdenv.hostPlatform.isDarwin then pkgs.cctools or pkgs.darwin.cctools else null; }; From 3450d8ba82c5600bd19e2d96f8d69df0a6264030 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 01:09:01 +0100 Subject: [PATCH 28/95] mx-puppet-discord: remove reference to python2 pkgs.nodejs_18 uses python311, which means pkgs.python2 will never be used --- pkgs/servers/mx-puppet-discord/node-composition.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/servers/mx-puppet-discord/node-composition.nix b/pkgs/servers/mx-puppet-discord/node-composition.nix index 12460bea17a1..e7922d509acb 100644 --- a/pkgs/servers/mx-puppet-discord/node-composition.nix +++ b/pkgs/servers/mx-puppet-discord/node-composition.nix @@ -13,7 +13,6 @@ let inherit (pkgs) stdenv lib - python2 runCommand writeTextFile writeShellScript From a06ebb3b609ec2740849211b93d4551d7e4f0b91 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 01:11:08 +0100 Subject: [PATCH 29/95] ethercalc: remove reference to python2 pkgs.nodejs_20 uses python3, which means pkgs.python2 will never be used --- pkgs/servers/web-apps/ethercalc/node-packages.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/servers/web-apps/ethercalc/node-packages.nix b/pkgs/servers/web-apps/ethercalc/node-packages.nix index 1042cdba2cb6..0d1f60098bb6 100644 --- a/pkgs/servers/web-apps/ethercalc/node-packages.nix +++ b/pkgs/servers/web-apps/ethercalc/node-packages.nix @@ -13,7 +13,6 @@ let inherit (pkgs) stdenv lib - python2 runCommand writeTextFile writeShellScript From ba862e80fd1b1732c7c9f1c654a0691ceca6242e Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 02:02:35 +0100 Subject: [PATCH 30/95] onlykey: remove reference to python2 pkgs.nodejs_18 uses python311, which means pkgs.python2 will never be used --- pkgs/tools/security/onlykey/onlykey.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/tools/security/onlykey/onlykey.nix b/pkgs/tools/security/onlykey/onlykey.nix index 05d8f84ddebb..1814e4887f8c 100644 --- a/pkgs/tools/security/onlykey/onlykey.nix +++ b/pkgs/tools/security/onlykey/onlykey.nix @@ -13,7 +13,6 @@ let inherit (pkgs) stdenv lib - python2 runCommand writeTextFile writeShellScript From 136d3b96d2c34220dbfa597008eef0054061cc66 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 01:58:31 +0100 Subject: [PATCH 31/95] composition.nix: remove reference to python2 pkgs.nodejs_22 uses python3, which means pkgs.python2 will never be used --- pkgs/development/node-packages/composition.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/node-packages/composition.nix b/pkgs/development/node-packages/composition.nix index 659c43a1feec..6d49245bff5d 100644 --- a/pkgs/development/node-packages/composition.nix +++ b/pkgs/development/node-packages/composition.nix @@ -13,7 +13,6 @@ let inherit (pkgs) stdenv lib - python2 runCommand writeTextFile writeShellScript From f86abd8bb1a9a962415089db938ef1e43dd7f1ac Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Fri, 21 Mar 2025 01:47:55 +0100 Subject: [PATCH 32/95] node-env.nix: remove ellipsis --- pkgs/development/node-packages/node-env.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/node-packages/node-env.nix b/pkgs/development/node-packages/node-env.nix index 373b730698f7..b1ba5526816d 100644 --- a/pkgs/development/node-packages/node-env.nix +++ b/pkgs/development/node-packages/node-env.nix @@ -1,6 +1,6 @@ # This file originates from node2nix -{lib, stdenv, nodejs, pkgs, libtool, runCommand, writeTextFile, writeShellScript, ...}: +{lib, stdenv, nodejs, pkgs, libtool, runCommand, writeTextFile, writeShellScript}: let inherit (nodejs) python; From 2719cec3fea42ca1f111e9ae1f1c1d0c07ad4ad3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 22 Mar 2025 09:39:26 +0000 Subject: [PATCH 33/95] flutter_rust_bridge_codegen: 2.8.0 -> 2.9.0 --- pkgs/by-name/fl/flutter_rust_bridge_codegen/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fl/flutter_rust_bridge_codegen/package.nix b/pkgs/by-name/fl/flutter_rust_bridge_codegen/package.nix index 6f8e64b3faf0..9897087b6870 100644 --- a/pkgs/by-name/fl/flutter_rust_bridge_codegen/package.nix +++ b/pkgs/by-name/fl/flutter_rust_bridge_codegen/package.nix @@ -6,18 +6,18 @@ }: rustPlatform.buildRustPackage rec { pname = "flutter_rust_bridge_codegen"; - version = "2.8.0"; + version = "2.9.0"; src = fetchFromGitHub { owner = "fzyzcjy"; repo = "flutter_rust_bridge"; rev = "v${version}"; - hash = "sha256-amjfreJq/GC/Xou39i2IIIGI1ukpiWRx3bddxVQB6dk="; + hash = "sha256-pvKCiv7hUgetTXXp+NCs04Qo9xWaLUE2T1yHENhTGl4="; fetchSubmodules = true; }; useFetchCargoVendor = true; - cargoHash = "sha256-zRiyLFDRqhi6TUt/UfWvgJ2hqWdUz8jxUCvN5RDp1Bk="; + cargoHash = "sha256-efMA8VJaQlqClAmjJ3zIYLUfnuj62vEIBKsz0l3CWxA="; cargoBuildFlags = "--package flutter_rust_bridge_codegen"; cargoTestFlags = "--package flutter_rust_bridge_codegen"; From 2aea1f78e2b4293545ff438ae1d13d9c7a824367 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 22 Mar 2025 09:58:57 +0000 Subject: [PATCH 34/95] python312Packages.pygnmi: 0.8.14 -> 0.8.15 --- pkgs/development/python-modules/pygnmi/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pygnmi/default.nix b/pkgs/development/python-modules/pygnmi/default.nix index cedae6dd3efb..d47cc165ebd7 100644 --- a/pkgs/development/python-modules/pygnmi/default.nix +++ b/pkgs/development/python-modules/pygnmi/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "pygnmi"; - version = "0.8.14"; + version = "0.8.15"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "akarneliuk"; repo = "pygnmi"; tag = "v${version}"; - sha256 = "sha256-ncp/OwELy/QOvGhLUZW2qTQZsckWI4CGrlEAZ20RtQI="; + sha256 = "sha256-2QPUyPGTtXlO6A05mmb/jofRidXfKq0xvH7lv1f9OQk="; }; propagatedBuildInputs = [ @@ -43,7 +43,7 @@ buildPythonPackage rec { description = "Pure Python gNMI client to manage network functions and collect telemetry"; mainProgram = "pygnmicli"; homepage = "https://github.com/akarneliuk/pygnmi"; - changelog = "https://github.com/akarneliuk/pygnmi/releases/tag/v${version}"; + changelog = "https://github.com/akarneliuk/pygnmi/releases/tag/${src.tag}"; license = licenses.bsd3; maintainers = [ ]; }; From 9b5a61afd520097fedec00a50809165366618e93 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 22 Mar 2025 20:18:56 +0000 Subject: [PATCH 35/95] python312Packages.google-cloud-speech: 2.31.0 -> 2.31.1 --- .../python-modules/google-cloud-speech/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-speech/default.nix b/pkgs/development/python-modules/google-cloud-speech/default.nix index 5f7d42c2d116..9e068f6edc42 100644 --- a/pkgs/development/python-modules/google-cloud-speech/default.nix +++ b/pkgs/development/python-modules/google-cloud-speech/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "google-cloud-speech"; - version = "2.31.0"; + version = "2.31.1"; pyproject = true; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "google_cloud_speech"; inherit version; - hash = "sha256-15mMJqlF9Ykzxg4tOAPtBZPrQWusnUOBwDBZ0QJy7wM="; + hash = "sha256-/fDTUMBke1ZpRUAr2K7vK3r9pnq7UgbrTbTtQfkjtA8="; }; build-system = [ setuptools ]; From 2dad8350338b3c313da4ca4bdbaceb2ec2308a26 Mon Sep 17 00:00:00 2001 From: hot burger <33610620+hotburger@users.noreply.github.com> Date: Sat, 22 Mar 2025 15:11:17 -0700 Subject: [PATCH 36/95] nextcloud-occ: work with sudo disabled --- nixos/modules/services/web-apps/nextcloud.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index de6ebeaf5170..0585c0684a23 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -130,10 +130,17 @@ let --quiet \ ${command} elif [[ "$USER" != nextcloud ]]; then - exec /run/wrappers/bin/sudo \ - --preserve-env=CREDENTIALS_DIRECTORY \ - --user=nextcloud \ - ${command} + if [[ -x /run/wrappers/bin/sudo ]]; then + exec /run/wrappers/bin/sudo \ + --preserve-env=CREDENTIALS_DIRECTORY \ + --user=nextcloud \ + ${command} + else + exec ${lib.getExe' pkgs.util-linux "runuser"} \ + --whitelist-environment=CREDENTIALS_DIRECTORY \ + --user=nextcloud \ + ${command} + fi else exec ${command} fi From 6169a5e158d0a919ec26a8a67ad5c10b3ec5903d Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Sat, 22 Mar 2025 17:32:13 +0100 Subject: [PATCH 37/95] python3Packages.geeknote: drop Depends on the Python2 library evernote, and is disabled for any Python version that is not Python27. --- .../python-modules/geeknote/default.nix | 48 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 pkgs/development/python-modules/geeknote/default.nix diff --git a/pkgs/development/python-modules/geeknote/default.nix b/pkgs/development/python-modules/geeknote/default.nix deleted file mode 100644 index 1aeeabd92f29..000000000000 --- a/pkgs/development/python-modules/geeknote/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - isPy27, - thrift, - beautifulsoup4, - markdown2, - sqlalchemy, - html2text, - evernote, -}: - -buildPythonPackage { - version = "2015-05-11"; - format = "setuptools"; - pname = "geeknote"; - disabled = !isPy27; - - src = fetchFromGitHub { - owner = "VitaliyRodnenko"; - repo = "geeknote"; - rev = "8489a87d044e164edb321ba9acca8d4631de3dca"; - sha256 = "0l16v4xnyqnsf84b1pma0jmdyxvmfwcv3sm8slrv3zv7zpmcm3lf"; - }; - - /* - build with tests fails with "Can not create application dirictory : - /homeless-shelter/.geeknotebuilder". - */ - doCheck = false; - - propagatedBuildInputs = [ - thrift - beautifulsoup4 - markdown2 - sqlalchemy - html2text - evernote - ]; - - meta = with lib; { - description = "Work with Evernote from command line"; - homepage = "http://www.geeknote.me"; - license = licenses.gpl1Only; - maintainers = with maintainers; [ hbunke ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 9b3bfa0d88b8..3a7c989cd7ae 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -262,6 +262,7 @@ mapAliases ({ gbulb = throw "gbulb has been removed as it is unmaintained and no longer compatible with PyGObject 3.50."; # added 2024-10-14 gcs-oauth2-boto-plugin = throw "gcs-oauth2-boto-plugin was removed as it depends on the removed boto package"; # Added 2024-09-22 gdtoolkit = throw "gdtoolkit has been promoted to a top-level attribute name: `pkgs.gdtoolkit`"; # added 2023-02-15 + geeknote = throw "geeknote depends on the Python2-only library evernote"; # Added 2025-03-22 GeoIP = geoip; # added 2023-02-19 gigalixir = throw "gigalixir has been promoted to a top-level attribute name: `pkgs.gigalixir`"; # Added 2022-10-02 gitdb2 = throw "gitdb2 has been deprecated, use gitdb instead."; # added 2020-03-14 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f49f6b5d1ca9..9a0d830ac66b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5236,8 +5236,6 @@ self: super: with self; { python3 = python; }); - geeknote = callPackage ../development/python-modules/geeknote { }; - gehomesdk = callPackage ../development/python-modules/gehomesdk { }; gekitchen = callPackage ../development/python-modules/gekitchen { }; From 9d77d960fd02b565314d978efefa12d2ec2d3364 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Sat, 22 Mar 2025 17:21:03 +0100 Subject: [PATCH 38/95] python3Packages.evernote: drop Intended for use with Python 2X, and the GitHub repository for building the wheel has not seen an update in 7 years. The repository referenced in Pypi's project description references a Python3 compatible SDK, but the link 404s. Should the link become active, then this project can be readded. --- .../python-modules/evernote/default.nix | 28 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 pkgs/development/python-modules/evernote/default.nix diff --git a/pkgs/development/python-modules/evernote/default.nix b/pkgs/development/python-modules/evernote/default.nix deleted file mode 100644 index 9d9b9cc9ad02..000000000000 --- a/pkgs/development/python-modules/evernote/default.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - isPy27, - oauth2, -}: - -buildPythonPackage rec { - pname = "evernote"; - version = "1.25.3"; - format = "setuptools"; - disabled = !isPy27; # some dependencies do not work with py3 - - src = fetchPypi { - inherit pname version; - sha256 = "796847e0b7517e729041c5187fa1665c3f6fc0491cb4d71fb95a62c4f22e64eb"; - }; - - propagatedBuildInputs = [ oauth2 ]; - - meta = with lib; { - description = "Evernote SDK for Python"; - homepage = "https://dev.evernote.com"; - license = licenses.asl20; - maintainers = with maintainers; [ hbunke ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 3a7c989cd7ae..16fd0e297547 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -208,6 +208,7 @@ mapAliases ({ et_xmlfile = et-xmlfile; # added 2023-10-16 etebase-server = throw "pkgs.python3.etebase-server has been removed, use pkgs.etebase-server"; # added 2024-07-16 ev3dev2 = python-ev3dev2; # added 2023-06-19 + evernote = throw "evernote is intended for use with Python 2.X"; eyeD3 = eyed3; # added 2024-01-03 Fabric = fabric; # addedd 2023-02-19 face_recognition = face-recognition; # added 2022-10-15 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9a0d830ac66b..b0c49256ac2a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4417,8 +4417,6 @@ self: super: with self; { events = callPackage ../development/python-modules/events { }; - evernote = callPackage ../development/python-modules/evernote { }; - evohome-async = callPackage ../development/python-modules/evohome-async { }; evolutionhttp = callPackage ../development/python-modules/evolutionhttp { }; From e3b683229306d3da00faa5ae63a99758963a4e5d Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Sun, 23 Mar 2025 01:09:12 +0100 Subject: [PATCH 39/95] python3Packages.modestmaps: drop modestmaps was never enabled for anything except Python27. As of 1.4.7, Python3 support has been added, but I doubt any there is any active interest in this package currently. It may be readded should interest renew itself. --- .../python-modules/modestmaps/default.nix | 27 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 pkgs/development/python-modules/modestmaps/default.nix diff --git a/pkgs/development/python-modules/modestmaps/default.nix b/pkgs/development/python-modules/modestmaps/default.nix deleted file mode 100644 index 24c4ef2b0bcd..000000000000 --- a/pkgs/development/python-modules/modestmaps/default.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - pillow, - isPy27, -}: - -buildPythonPackage rec { - pname = "modestmaps"; - version = "1.4.7"; - disabled = !isPy27; - - src = fetchPypi { - pname = "ModestMaps"; - inherit version; - sha256 = "698442a170f02923f8ea55f18526b56c17178162e44304f896a8a5fd65ab4457"; - }; - - propagatedBuildInputs = [ pillow ]; - - meta = with lib; { - description = "Library for building interactive maps"; - homepage = "http://modestmaps.com"; - license = licenses.bsd3; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 16fd0e297547..24b863a2a611 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -390,6 +390,7 @@ mapAliases ({ mitmproxy-wireguard = throw "mitmproxy-wireguard has been removed because it was replaced by upstream with mitmproxy-rs"; # added 2023-11-06 mkdocs-awesome-pages-plugin = mkdocs-awesome-nav; # added 2025-03-10 mkdocs-minify = mkdocs-minify-plugin; # added 2023-11-28 + modestmaps = throw "modestmaps is unmaintained and was never enabled for anything except Python27"; # Added 2025-03-23 mox = throw "mox was removed because it is unmaintained"; # added 2023-02-21 mox3 = throw "mox3 was removed because it is unmaintained"; # added 2024-08-30 mrkd = throw "mrkd has been promoted to a top-level attribute name: `pkgs.mrkd`"; # added 2023-08-01 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b0c49256ac2a..6b5796e83ff9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8632,8 +8632,6 @@ self: super: with self; { moderngl-window = callPackage ../development/python-modules/moderngl-window { }; - modestmaps = callPackage ../development/python-modules/modestmaps { }; - mohawk = callPackage ../development/python-modules/mohawk { }; molbar = callPackage ../development/python-modules/molbar { }; From 2cc5727af97baace4f04f5915ba6e245b9b5a081 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Sun, 23 Mar 2025 01:15:06 +0100 Subject: [PATCH 40/95] gython3Packages.tilestache: drop tilestache is supposedly Python3 compatible but was marked as disabled for everything except Python27. Because of this, I'd rather move to remove it, and the package may be readded should interest renew itself. --- .../python-modules/tilestache/default.nix | 40 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 pkgs/development/python-modules/tilestache/default.nix diff --git a/pkgs/development/python-modules/tilestache/default.nix b/pkgs/development/python-modules/tilestache/default.nix deleted file mode 100644 index 23fe0e26ea7c..000000000000 --- a/pkgs/development/python-modules/tilestache/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - modestmaps, - pillow, - pycairo, - python-mapnik, - simplejson, - werkzeug, - isPy27, -}: - -buildPythonPackage rec { - pname = "tilestache"; - version = "1.51.14"; - format = "setuptools"; - disabled = !isPy27; - - src = fetchPypi { - pname = "TileStache"; - inherit version; - sha256 = "1qjrabl6qr7i6yj6v647ck92abcyklb0vmb6h6kj7x8v2cj5xbvk"; - }; - - propagatedBuildInputs = [ - modestmaps - pillow - pycairo - python-mapnik - simplejson - werkzeug - ]; - - meta = with lib; { - description = "Tile server for rendered geographic data"; - homepage = "http://tilestache.org"; - license = licenses.bsd3; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 24b863a2a611..643b45e33527 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -710,6 +710,7 @@ mapAliases ({ tensorflow-estimator_2 = tensorflow-estimator; # added 2021-11-25 tensorflow-tensorboard = tensorboard; # added 2022-03-06 tensorflow-tensorboard_2 = tensorflow-tensorboard; # added 2021-11-25 + tilestache = throw "tilestache is unmaintained and Python3 compatibility is unknown"; # Added 2025-03-23 Theano = theano; # added 2023-02-19 TheanoWithCuda = theanoWithCuda; # added 2023-02-19 TheanoWithoutCuda = theanoWithoutCuda; # added 2023-02-19 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6b5796e83ff9..31f281d266cd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16666,8 +16666,6 @@ self: super: with self; { tiler = callPackage ../development/python-modules/tiler { }; - tilestache = callPackage ../development/python-modules/tilestache { }; - tilt-ble = callPackage ../development/python-modules/tilt-ble { }; timeago = callPackage ../development/python-modules/timeago { }; From a4df9193336594a898de8385b79184da32868949 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Sun, 23 Mar 2025 01:31:26 +0100 Subject: [PATCH 41/95] python3Packages.python-wifi: drop The PyPi repository shows only Python2 support, and the package was disabled for everything that was not Python27. --- .../python-modules/python-wifi/default.nix | 30 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 32 deletions(-) delete mode 100644 pkgs/development/python-modules/python-wifi/default.nix diff --git a/pkgs/development/python-modules/python-wifi/default.nix b/pkgs/development/python-modules/python-wifi/default.nix deleted file mode 100644 index 2dfd18079c72..000000000000 --- a/pkgs/development/python-modules/python-wifi/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - isPy27, -}: - -buildPythonPackage rec { - pname = "python-wifi"; - version = "0.6.1"; - format = "setuptools"; - disabled = !isPy27; - - src = fetchPypi { - inherit pname version; - extension = "tar.bz2"; - sha256 = "149c3dznb63d82143cz5hqdim0mqjysz6p3yk0zv271vq3xnmzvv"; - }; - - meta = with lib; { - description = "Read & write wireless card capabilities using the Linux Wireless Extensions"; - homepage = "http://pythonwifi.tuxfamily.org/"; - # From the README: "pythonwifi is licensed under LGPLv2+, however, the - # examples (e.g. iwconfig.py and iwlist.py) are licensed under GPLv2+." - license = with licenses; [ - lgpl2Plus - gpl2Plus - ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 643b45e33527..b5c0f3e5fc52 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -595,6 +595,7 @@ mapAliases ({ python-Levenshtein = levenshtein; python-pushover = throw "python-pushover has been removed, since it is unmaintained and is broken"; # added 2023-07-03 python-subunit = subunit; # added 2021-09-10 + python-wifi = throw "python-wifi does not support Python3"; pytest_xdist = pytest-xdist; # added 2021-01-04 python_simple_hipchat = python-simple-hipchat; # added 2021-07-21 pytoml = throw "pytoml has been removed because it is unmaintained and is superseded by toml"; # Added 2023-04-11 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 31f281d266cd..954ba1904f95 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13787,8 +13787,6 @@ self: super: with self; { python-whois = callPackage ../development/python-modules/python-whois { }; - python-wifi = callPackage ../development/python-modules/python-wifi { }; - python-wink = callPackage ../development/python-modules/python-wink { }; python-xmp-toolkit = callPackage ../development/python-modules/python-xmp-toolkit { }; From 76fba3ef796f012caba0cc4de148dda25557b120 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Sun, 23 Mar 2025 01:35:14 +0100 Subject: [PATCH 42/95] python3Packages.pychart: drop The package was never enabled for anything except Python27, the latest Pypi release is from 2009, and the homepage linked there has disappeared. --- .../python-modules/pychart/default.nix | 25 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 -- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 pkgs/development/python-modules/pychart/default.nix diff --git a/pkgs/development/python-modules/pychart/default.nix b/pkgs/development/python-modules/pychart/default.nix deleted file mode 100644 index c6fa67c0912e..000000000000 --- a/pkgs/development/python-modules/pychart/default.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - isPy27, -}: - -buildPythonPackage rec { - pname = "pychart"; - version = "1.39"; - format = "setuptools"; - - disabled = !isPy27; - - src = fetchPypi { - inherit pname version; - sha256 = "882650928776a7ca72e67054a9e0ac98f78645f279c0cfb5910db28f03f07c2e"; - }; - - meta = with lib; { - description = "Library for creating high quality encapsulated Postscript, PDF, PNG, or SVG charts"; - homepage = "https://pypi.python.org/pypi/PyChart"; - license = licenses.gpl2; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index b5c0f3e5fc52..38e8d05eb3d2 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -492,6 +492,7 @@ mapAliases ({ pyalmond = throw "pyalmond has been removed, since its API endpoints have been shutdown"; # added 2023-02-02 pyblake2 = throw "pyblake2 is deprecated in favor of hashlib"; # added 2023-04-23 pyblock = throw "pyblock has been removed, since it is abandoned and broken"; # added 2023-06-20 + pychart = throw "pychart does not support Python3"; # added 2025-03-23 pycontracts = throw "pycontracts has been removed, since upstream is no longer active and it is broken on modern Python versions."; # added 2024-08-09 pydns = py3dns; # added 2024-10-25 pydrive = throw "pydrive is broken and deprecated and has been replaced with pydrive2."; # added 2022-06-01 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 954ba1904f95..adb36a6e790b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11816,8 +11816,6 @@ self: super: with self; { pychannels = callPackage ../development/python-modules/pychannels { }; - pychart = callPackage ../development/python-modules/pychart { }; - pychm = callPackage ../development/python-modules/pychm { }; pychromecast = callPackage ../development/python-modules/pychromecast { }; From b47e6d8fe97d4cac09b91ff47bdbf443d6fa0297 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 23 Mar 2025 08:25:13 +0000 Subject: [PATCH 43/95] kubelogin: 0.1.9 -> 0.2.7 --- pkgs/by-name/ku/kubelogin/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ku/kubelogin/package.nix b/pkgs/by-name/ku/kubelogin/package.nix index d8068053e2f6..eb184bcb2cb1 100644 --- a/pkgs/by-name/ku/kubelogin/package.nix +++ b/pkgs/by-name/ku/kubelogin/package.nix @@ -10,16 +10,16 @@ buildGoModule rec { pname = "kubelogin"; - version = "0.1.9"; + version = "0.2.7"; src = fetchFromGitHub { owner = "Azure"; repo = pname; rev = "v${version}"; - sha256 = "sha256-u9Fj2YkHVbFHpxrrxdYrRBvbGsLvxQQlsPHf4++L0g0="; + sha256 = "sha256-upToPltob3P8EwDUbl9F3COGCxnz6NZNrZ/wxv5pBQU="; }; - vendorHash = "sha256-HYUI0x4fCA8nhIHPguGCJ+F36fxb7m97bgyigwiXWd8="; + vendorHash = "sha256-d4zXjMr34DUXHNBe8jGhlQ/gdsaR2hGWxZEfUKXvKCQ="; ldflags = [ "-X main.gitTag=v${version}" From c1f20fe5fbc39341ffc7838dcbd306e89ea38999 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 23 Mar 2025 17:26:41 +0000 Subject: [PATCH 44/95] mirrord: 3.134.2 -> 3.136.0 --- pkgs/by-name/mi/mirrord/manifest.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/mi/mirrord/manifest.json b/pkgs/by-name/mi/mirrord/manifest.json index 7e78f1dc6442..8ce5d1aa22f8 100644 --- a/pkgs/by-name/mi/mirrord/manifest.json +++ b/pkgs/by-name/mi/mirrord/manifest.json @@ -1,21 +1,21 @@ { - "version": "3.134.2", + "version": "3.136.0", "assets": { "x86_64-linux": { - "url": "https://github.com/metalbear-co/mirrord/releases/download/3.134.2/mirrord_linux_x86_64", - "hash": "sha256-RrHB4/FLcIK1C0U0d6Vs2UxNTKCmcZT1ubBhqL1+rCQ=" + "url": "https://github.com/metalbear-co/mirrord/releases/download/3.136.0/mirrord_linux_x86_64", + "hash": "sha256-MV6S23Ly0g2FPAhp2+RIMSC8D+s6NakVbMqLSwEr/2o=" }, "aarch64-linux": { - "url": "https://github.com/metalbear-co/mirrord/releases/download/3.134.2/mirrord_linux_aarch64", - "hash": "sha256-pohyE3VHFvkJ1YR1VkDrkrbqS4V10feFPNFfSpGZ2Ro=" + "url": "https://github.com/metalbear-co/mirrord/releases/download/3.136.0/mirrord_linux_aarch64", + "hash": "sha256-zwistetfQCucaQ3yE1XHNChDhVCnSUq2ttl4XMnAQJU=" }, "aarch64-darwin": { - "url": "https://github.com/metalbear-co/mirrord/releases/download/3.134.2/mirrord_mac_universal", - "hash": "sha256-BFCQ/QrzMGhB0y422by9L7/nmLv4mDzxMkhtQGSQBwg=" + "url": "https://github.com/metalbear-co/mirrord/releases/download/3.136.0/mirrord_mac_universal", + "hash": "sha256-eSHJvtbCBxegYUjfplyBND2kinEqr5LlXJs9mm2U9wI=" }, "x86_64-darwin": { - "url": "https://github.com/metalbear-co/mirrord/releases/download/3.134.2/mirrord_mac_universal", - "hash": "sha256-BFCQ/QrzMGhB0y422by9L7/nmLv4mDzxMkhtQGSQBwg=" + "url": "https://github.com/metalbear-co/mirrord/releases/download/3.136.0/mirrord_mac_universal", + "hash": "sha256-eSHJvtbCBxegYUjfplyBND2kinEqr5LlXJs9mm2U9wI=" } } } From eae75b9123b25148b2dc88637f4a6bc74b1a108c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Mar 2025 02:08:49 +0000 Subject: [PATCH 45/95] weaviate: 1.29.0 -> 1.29.1 --- pkgs/by-name/we/weaviate/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/we/weaviate/package.nix b/pkgs/by-name/we/weaviate/package.nix index 54b39716769a..ef0e55faacb4 100644 --- a/pkgs/by-name/we/weaviate/package.nix +++ b/pkgs/by-name/we/weaviate/package.nix @@ -6,16 +6,16 @@ buildGoModule rec { pname = "weaviate"; - version = "1.29.0"; + version = "1.29.1"; src = fetchFromGitHub { owner = "weaviate"; repo = "weaviate"; rev = "v${version}"; - hash = "sha256-tyztq4oXN9tPVSqQme8IG3dcba7ytblVW98jU6Nao5M="; + hash = "sha256-Akg0iY5M3X6ztKxhNEkhi03VnbNpNW7/Vcbv2KB6X54="; }; - vendorHash = "sha256-WfqYmqEjgZwQgFKW97oIEaBXTKqOOFKviuYTRyqVQP0="; + vendorHash = "sha256-U2ean49ESKmcQ3fTtd6y9MwfWPr6tolvgioyKbQsBmU="; subPackages = [ "cmd/weaviate-server" ]; From 1e968b37d65423cfa5f18d9ac0c7647789b1a576 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Mar 2025 04:19:55 +0000 Subject: [PATCH 46/95] luau: 0.664 -> 0.666 --- pkgs/by-name/lu/luau/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/lu/luau/package.nix b/pkgs/by-name/lu/luau/package.nix index e20e7930de13..5fba70890b06 100644 --- a/pkgs/by-name/lu/luau/package.nix +++ b/pkgs/by-name/lu/luau/package.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation rec { pname = "luau"; - version = "0.664"; + version = "0.666"; src = fetchFromGitHub { owner = "luau-lang"; repo = "luau"; rev = version; - hash = "sha256-VmeUO7zkBG0NojzpnfR+eVzoRhNpJh+7HwEunL/Ylqw="; + hash = "sha256-++4PwlCxNq31T0UQUHcvrUnY/ADdnQCtekGiGTPRmv0="; }; nativeBuildInputs = [ cmake ]; From 6bdf27a8ae077734267f54d096a373aef4de6a54 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Mar 2025 05:26:07 +0000 Subject: [PATCH 47/95] sby: 0.50 -> 0.51 --- pkgs/by-name/sb/sby/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sb/sby/package.nix b/pkgs/by-name/sb/sby/package.nix index 157b6f3583b8..cc4af8a03439 100644 --- a/pkgs/by-name/sb/sby/package.nix +++ b/pkgs/by-name/sb/sby/package.nix @@ -19,13 +19,13 @@ in stdenv.mkDerivation rec { pname = "sby"; - version = "0.50"; + version = "0.51"; src = fetchFromGitHub { owner = "YosysHQ"; repo = "sby"; tag = "v${version}"; - hash = "sha256-srLziLdTjKd8NC5YBbAR1iD1EcJAL3HUp6O7Z2drdsI="; + hash = "sha256-U9aIZ+D5BhAPWuyQgAvwO6Bu8na2KnYLVPoDHi18jj4="; }; nativeCheckInputs = [ From 0ae5c5772a05ecc11fe2fd627bb075dcc45e6a91 Mon Sep 17 00:00:00 2001 From: Jana Traue Date: Mon, 24 Mar 2025 08:06:34 +0100 Subject: [PATCH 48/95] photoprism: 250228-43447fa38 -> 250321-57590c48b https://github.com/photoprism/photoprism/releases/tag/250321-57590c48b --- pkgs/by-name/ph/photoprism/backend.nix | 2 +- pkgs/by-name/ph/photoprism/frontend.nix | 2 +- pkgs/by-name/ph/photoprism/package.nix | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ph/photoprism/backend.nix b/pkgs/by-name/ph/photoprism/backend.nix index 369b17c49640..b3ea28f0b780 100644 --- a/pkgs/by-name/ph/photoprism/backend.nix +++ b/pkgs/by-name/ph/photoprism/backend.nix @@ -33,7 +33,7 @@ buildGoModule rec { substituteInPlace internal/commands/passwd.go --replace '/bin/stty' "${coreutils}/bin/stty" ''; - vendorHash = "sha256-eKMcSqAJ+11+50A/3vOC1UJ/Z517J4wdrmkyfRkpBGE="; + vendorHash = "sha256-eHdnTpcVBSvGR9ZiK6A32jfjik8VClDTkv92bD8EIgA="; subPackages = [ "cmd/photoprism" ]; diff --git a/pkgs/by-name/ph/photoprism/frontend.nix b/pkgs/by-name/ph/photoprism/frontend.nix index e7298999cf89..5cb90ae8ef68 100644 --- a/pkgs/by-name/ph/photoprism/frontend.nix +++ b/pkgs/by-name/ph/photoprism/frontend.nix @@ -13,7 +13,7 @@ buildNpmPackage { cd frontend ''; - npmDepsHash = "sha256-1bo/mJ6cmidd3oduLFMNOBHUB18yvYPyEocoUE/ziyo="; + npmDepsHash = "sha256-3cytU/QaPSsGu/984AEh3YsdV4H5cjf/br3NSc5Zd1M="; installPhase = '' runHook preInstall diff --git a/pkgs/by-name/ph/photoprism/package.nix b/pkgs/by-name/ph/photoprism/package.nix index b880230a4076..158aa87830e7 100644 --- a/pkgs/by-name/ph/photoprism/package.nix +++ b/pkgs/by-name/ph/photoprism/package.nix @@ -17,14 +17,14 @@ }: let - version = "250228-43447fa38"; + version = "250321-57590c48b"; pname = "photoprism"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - hash = "sha256-7WN3XRASKdRZODXkHiKUcYITUtIS1o6b0xoqfL3i5xs="; + hash = "sha256-tJA1Q8kcX4UYDCV+rmHyd5gfEU8WkoaqNfx1/0Iy3l8="; }; libtensorflow = callPackage ./libtensorflow.nix { }; From 65748e762197483fce6c84542d793d56b62feedb Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Tue, 25 Mar 2025 17:01:56 +0100 Subject: [PATCH 49/95] fdr: drop Archive does not contain source code, only binaries except for one python file. Said Python file contains auto-generated swig code that accounts for Python 2.6 and Python 2.2. --- .../science/programming/fdr/default.nix | 80 ------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 - 3 files changed, 1 insertion(+), 82 deletions(-) delete mode 100644 pkgs/applications/science/programming/fdr/default.nix diff --git a/pkgs/applications/science/programming/fdr/default.nix b/pkgs/applications/science/programming/fdr/default.nix deleted file mode 100644 index 899a7ca3f137..000000000000 --- a/pkgs/applications/science/programming/fdr/default.nix +++ /dev/null @@ -1,80 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - qtbase, - qtx11extras, - ncurses5, - xorg, - zlib, - python27Packages, -}: -stdenv.mkDerivation { - pname = "fdr"; - version = "4.2.7"; - src = fetchurl { - url = "https://dl.cocotec.io/fdr/fdr-3814-linux-x86_64.tar.gz"; - sha256 = "0cajz1gz4slq9nfhm8dqdgxl0kc950838n0lrf8jw4vl54gv6chh"; - }; - - libPath = lib.makeLibraryPath [ - stdenv.cc.cc - python27Packages.python - qtbase - qtx11extras - ncurses5 - xorg.libX11 - xorg.libXft - zlib - ]; - - dontConfigure = true; - installPhase = '' - mkdir -p "$out" - - # shipped Qt is buggy - rm lib/libQt* - rm -r lib/qt_plugins - - cp -r * "$out" - ln -s ${ncurses5.out}/lib/libtinfo.so.5 $out/lib/libtinfo.so.5 - ln -s ${qtbase.bin}/${qtbase.qtPluginPrefix} $out/lib/qt_plugins - ln -s ${zlib.out}/lib/libz.so.1 $out/lib/libz.so.1 - - for b in fdr4 _fdr4 refines _refines cspmprofiler cspmexplorerprof - do - patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ - --set-rpath "$libPath:$out/lib" \ - "$out/bin/$b" - done - - for l in corei7/librefines.so \ - libcspm_process_compiler.so \ - libcsp_operators.so \ - _fdr.so \ - libfdr.so \ - libfdr_java.so \ - libprocess_compiler.so \ - librefines_gui.so \ - librefines_licensing.so \ - libboost_date_time.so.1.60.0 \ - libboost_filesystem.so.1.60.0 \ - libboost_iostreams.so.1.60.0 \ - libboost_program_options.so.1.60.0 \ - libboost_serialization.so.1.60.0 \ - libboost_system.so.1.60.0 - do - patchelf --set-rpath "$libPath:$out/lib" \ - "$out/lib/$l" - done - ''; - - meta = with lib; { - homepage = "https://cocotec.io/fdr/"; - description = "CSP refinement checker"; - license = licenses.unfreeRedistributable; - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - platforms = platforms.linux; - maintainers = with maintainers; [ nickhu ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 741dca6e8c2b..df71bc431c9c 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -469,6 +469,7 @@ mapAliases { fastnlo = throw "'fastnlo' has been renamed to/replaced by 'fastnlo-toolkit'"; # Converted to throw 2024-10-17 fastnlo_toolkit = fastnlo-toolkit; # Added 2024-01-03 fcitx5-catppuccin = catppuccin-fcitx5; # Added 2024-06-19 + fdr = throw "fdr has been removed, as it cannot be built from source and depends on Python 2.x"; # Added 2025-03-19 inherit (luaPackages) fennel; # Added 2022-09-24 ferdi = throw "'ferdi' has been removed, upstream does not exist anymore and the package is insecure"; # Added 2024-08-22 fetchFromGithub = throw "You meant fetchFromGitHub, with a capital H"; # preserve diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db392a2b84ea..c54d96816dd3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13186,8 +13186,6 @@ with pkgs; evolution = callPackage ../applications/networking/mailreaders/evolution/evolution { }; evolutionWithPlugins = callPackage ../applications/networking/mailreaders/evolution/evolution/wrapper.nix { plugins = [ evolution evolution-ews ]; }; - fdr = libsForQt5.callPackage ../applications/science/programming/fdr { }; - fetchmail = callPackage ../applications/misc/fetchmail { }; fetchmail_7 = callPackage ../applications/misc/fetchmail/v7.nix { }; From e5b8cfe76e1c16abe58304850a98d61633e830b5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 26 Mar 2025 05:22:25 +0000 Subject: [PATCH 50/95] passt: 2024_12_11.09478d5 -> 2025_03_20.32f6212 --- pkgs/by-name/pa/passt/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pa/passt/package.nix b/pkgs/by-name/pa/passt/package.nix index 651ec40b198f..4e7b55de973e 100644 --- a/pkgs/by-name/pa/passt/package.nix +++ b/pkgs/by-name/pa/passt/package.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "passt"; - version = "2024_12_11.09478d5"; + version = "2025_03_20.32f6212"; src = fetchurl { url = "https://passt.top/passt/snapshot/passt-${finalAttrs.version}.tar.gz"; - hash = "sha256-IE0BMM24lrl5NHeQGkAZZVwmAsvkhDN64pARdEiOM6s="; + hash = "sha256-TRtFwBUUOnRwcLtB3vwU5nG/ufi9D36waXW5Yuboowk="; }; postPatch = '' From 8a7395af7cd8ccd843923dec92ace14e34752c2d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 27 Mar 2025 08:45:33 +0000 Subject: [PATCH 51/95] azure-cli-extensions.vm-repair: 2.0.3 -> 2.1.1 --- pkgs/by-name/az/azure-cli/extensions-manual.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-manual.nix b/pkgs/by-name/az/azure-cli/extensions-manual.nix index f9191d4ac0e4..795101d63ee5 100644 --- a/pkgs/by-name/az/azure-cli/extensions-manual.nix +++ b/pkgs/by-name/az/azure-cli/extensions-manual.nix @@ -140,9 +140,9 @@ vm-repair = mkAzExtension rec { pname = "vm-repair"; - version = "2.0.3"; + version = "2.1.1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/vm_repair-${version}-py2.py3-none-any.whl"; - hash = "sha256-ynbq8XyoC6LR7N/x6Ztl74Gu4otTN+QiWLmvy7OfGA0="; + hash = "sha256-3Pgwppp4IssNYhJ+USQNwMEp91XdZDwNlnNWzVWrHFM="; description = "Support for repairing Azure Virtual Machines"; propagatedBuildInputs = with python3Packages; [ opencensus ]; meta.maintainers = with lib.maintainers; [ ]; From f80595531c7750ac1a68b6aa648c53defda596f4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 17 Mar 2025 04:37:10 +0000 Subject: [PATCH 52/95] elasticsearch-curator: 8.0.18 -> 8.0.20 --- pkgs/by-name/el/elasticsearch-curator/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/el/elasticsearch-curator/package.nix b/pkgs/by-name/el/elasticsearch-curator/package.nix index 0f9e01609770..ceb56e9b4d12 100644 --- a/pkgs/by-name/el/elasticsearch-curator/package.nix +++ b/pkgs/by-name/el/elasticsearch-curator/package.nix @@ -9,14 +9,14 @@ python3.pkgs.buildPythonApplication rec { pname = "elasticsearch-curator"; - version = "8.0.18"; + version = "8.0.20"; pyproject = true; src = fetchFromGitHub { owner = "elastic"; repo = "curator"; tag = "v${version}"; - hash = "sha256-J0RHCWr0l1Vm/rcmcH3w0E0U+S9AvM0XMO89rnG38mY="; + hash = "sha256-oeQ36CvR/v0Mvo+aGL+dYHTgEsq9TesZoBMdoePmgnI="; }; pythonRelaxDeps = [ "es-client" ]; From 3151935795c6e680b951cc0a7612950ef1e9a9dd Mon Sep 17 00:00:00 2001 From: awwpotato Date: Sun, 23 Mar 2025 18:24:26 -0700 Subject: [PATCH 53/95] mandown: adopt and modernize --- pkgs/by-name/ma/mandown/package.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ma/mandown/package.nix b/pkgs/by-name/ma/mandown/package.nix index 8d0d50a64691..645398c90d0c 100644 --- a/pkgs/by-name/ma/mandown/package.nix +++ b/pkgs/by-name/ma/mandown/package.nix @@ -2,28 +2,30 @@ lib, rustPlatform, fetchCrate, + nix-update-script, }: - -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "mandown"; version = "1.1.0"; src = fetchCrate { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-a+1tm9YlBuroTtgCL0nTjASaPiJHif89pRH0CWw7RjM="; }; useFetchCargoVendor = true; cargoHash = "sha256-ZyjoAvsqUyHgfEsG3+CvJatmBt0AJ2ga6HRJ8Y7her0="; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { description = "Markdown to groff (man page) converter"; homepage = "https://gitlab.com/kornelski/mandown"; - license = with licenses; [ + license = with lib.licenses; [ asl20 # or mit ]; - maintainers = [ ]; + maintainers = [ lib.maintainers.awwpotato ]; mainProgram = "mandown"; }; -} +}) From f017696dd8ed34a8cfd7dfe53ee22b1b4294cfdd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 28 Mar 2025 02:27:46 +0000 Subject: [PATCH 54/95] ipxe: 1.21.1-unstable-2025-02-28 -> 1.21.1-unstable-2025-03-27 --- pkgs/by-name/ip/ipxe/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ip/ipxe/package.nix b/pkgs/by-name/ip/ipxe/package.nix index b13a4f11df31..683af773a1ed 100644 --- a/pkgs/by-name/ip/ipxe/package.nix +++ b/pkgs/by-name/ip/ipxe/package.nix @@ -48,7 +48,7 @@ in stdenv.mkDerivation (finalAttrs: { pname = "ipxe"; - version = "1.21.1-unstable-2025-02-28"; + version = "1.21.1-unstable-2025-03-27"; nativeBuildInputs = [ mtools @@ -65,8 +65,8 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "ipxe"; repo = "ipxe"; - rev = "be3a78eaf804a2c437aa055d5c1e2f4a1310a0c1"; - hash = "sha256-W1nLhFc3OttPbDyf8e7OM+kHQajamvNJ550YdTwlOHA="; + rev = "09fbebc084bddcb5bc7277f1644154ab35e6a334"; + hash = "sha256-7F7SYSvSiY23xZbiJdzjiSDMnfeB4gWNodlHVgm9MyE="; }; # Calling syslinux on a FAT image isn't going to work on Aarch64. From 99cb66fe0467f67a01ea3e63fcee271e9114063f Mon Sep 17 00:00:00 2001 From: bstanderline <153822813+bstanderline@users.noreply.github.com> Date: Fri, 28 Mar 2025 10:41:29 +0000 Subject: [PATCH 55/95] zabbix70: 7.0.10 -> 7.0.11 --- pkgs/servers/monitoring/zabbix/versions.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/monitoring/zabbix/versions.nix b/pkgs/servers/monitoring/zabbix/versions.nix index 36c8ff67ad31..46b1bc0323f4 100644 --- a/pkgs/servers/monitoring/zabbix/versions.nix +++ b/pkgs/servers/monitoring/zabbix/versions.nix @@ -1,7 +1,7 @@ generic: { v70 = generic { - version = "7.0.10"; - hash = "sha256-7tY+06QNva7EgTnBVu1SbbYLUIXbSlzJWpG08ISyGUg="; + version = "7.0.11"; + hash = "sha256-r9VNy3bRuFvJAL+ZQEbKjCAS3+AvetnWAwFjLxFVuGU="; vendorHash = null; }; v64 = generic { From 6a68f122dfbcd223a01419b81b909ee3601383be Mon Sep 17 00:00:00 2001 From: bstanderline <153822813+bstanderline@users.noreply.github.com> Date: Fri, 28 Mar 2025 11:46:32 +0000 Subject: [PATCH 56/95] maintainers: add bstanderline --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 9be2825a93ba..a6a419b673bf 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3632,6 +3632,11 @@ githubId = 200617; name = "Ben Sima"; }; + bstanderline = { + name = "bstanderline"; + github = "bstanderline"; + githubId = 153822813; + }; btlvr = { email = "btlvr@protonmail.com"; github = "btlvr"; From 666bcfd7a351c2c964fbf600eb22e44ffce4bbd5 Mon Sep 17 00:00:00 2001 From: bstanderline <153822813+bstanderline@users.noreply.github.com> Date: Fri, 28 Mar 2025 12:02:18 +0000 Subject: [PATCH 57/95] zabbix: add bstanderline as maintainer --- pkgs/servers/monitoring/zabbix/agent.nix | 1 + pkgs/servers/monitoring/zabbix/agent2.nix | 5 ++++- pkgs/servers/monitoring/zabbix/proxy.nix | 5 ++++- pkgs/servers/monitoring/zabbix/server.nix | 1 + pkgs/servers/monitoring/zabbix/web.nix | 5 ++++- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/monitoring/zabbix/agent.nix b/pkgs/servers/monitoring/zabbix/agent.nix index 02b6fb71734b..ae6e5618167d 100644 --- a/pkgs/servers/monitoring/zabbix/agent.nix +++ b/pkgs/servers/monitoring/zabbix/agent.nix @@ -48,6 +48,7 @@ import ./versions.nix ( license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ + bstanderline mmahut psyanticy ]; diff --git a/pkgs/servers/monitoring/zabbix/agent2.nix b/pkgs/servers/monitoring/zabbix/agent2.nix index 0d9fda84b234..b1bf7cd6f22f 100644 --- a/pkgs/servers/monitoring/zabbix/agent2.nix +++ b/pkgs/servers/monitoring/zabbix/agent2.nix @@ -83,7 +83,10 @@ import ./versions.nix ( homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; - maintainers = with lib.maintainers; [ aanderse ]; + maintainers = with lib.maintainers; [ + aanderse + bstanderline + ]; platforms = lib.platforms.unix; }; } diff --git a/pkgs/servers/monitoring/zabbix/proxy.nix b/pkgs/servers/monitoring/zabbix/proxy.nix index 7b60782669d5..93e6244808d8 100644 --- a/pkgs/servers/monitoring/zabbix/proxy.nix +++ b/pkgs/servers/monitoring/zabbix/proxy.nix @@ -126,7 +126,10 @@ import ./versions.nix ( homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; - maintainers = with lib.maintainers; [ mmahut ]; + maintainers = with lib.maintainers; [ + bstanderline + mmahut + ]; platforms = lib.platforms.linux; }; } diff --git a/pkgs/servers/monitoring/zabbix/server.nix b/pkgs/servers/monitoring/zabbix/server.nix index c68e1bb44a0e..39065ed6756c 100644 --- a/pkgs/servers/monitoring/zabbix/server.nix +++ b/pkgs/servers/monitoring/zabbix/server.nix @@ -126,6 +126,7 @@ import ./versions.nix ( license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ + bstanderline mmahut psyanticy ]; diff --git a/pkgs/servers/monitoring/zabbix/web.nix b/pkgs/servers/monitoring/zabbix/web.nix index a77cfe3b7dd6..7cbefe782637 100644 --- a/pkgs/servers/monitoring/zabbix/web.nix +++ b/pkgs/servers/monitoring/zabbix/web.nix @@ -33,7 +33,10 @@ import ./versions.nix ( homepage = "https://www.zabbix.com/"; license = if (lib.versions.major version >= "7") then lib.licenses.agpl3Only else lib.licenses.gpl2Plus; - maintainers = with lib.maintainers; [ mmahut ]; + maintainers = with lib.maintainers; [ + bstanderline + mmahut + ]; platforms = lib.platforms.linux; }; } From 2181d55fb84c53da6c8be6640e79e8b00e4ab9f2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 28 Mar 2025 19:21:43 +0000 Subject: [PATCH 58/95] myks: 4.6.0 -> 4.6.1 --- pkgs/by-name/my/myks/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/my/myks/package.nix b/pkgs/by-name/my/myks/package.nix index 3554ce93254e..d7bd6f1e1cb1 100644 --- a/pkgs/by-name/my/myks/package.nix +++ b/pkgs/by-name/my/myks/package.nix @@ -9,16 +9,16 @@ buildGoModule rec { pname = "myks"; - version = "4.6.0"; + version = "4.6.1"; src = fetchFromGitHub { owner = "mykso"; repo = "myks"; tag = "v${version}"; - hash = "sha256-qtBE0kNNhCQ4o3NY/ylhA/AKCoIpCMXlWReONV1klm0="; + hash = "sha256-xHWiE0SCv5LbObAa4Ha/U1uTFe9z11nhpB/eMj5qYoA="; }; - vendorHash = "sha256-U4mHGkbl5nygQfakIRmyS5z85bulO7+MjKhbQmv9ZB8="; + vendorHash = "sha256-tgshaSrh5o28uiSMF7sv4AP57xYkaHq6B8sQTrnteqQ="; subPackages = "."; From b86e92c05d6331bd40d6fe6bbae59af965acc68a Mon Sep 17 00:00:00 2001 From: Eduwardo Horibe Date: Mon, 24 Mar 2025 21:46:35 -0300 Subject: [PATCH 59/95] orca-slicer: fixing build on GCC < 14 --- pkgs/by-name/or/orca-slicer/package.nix | 47 ++++++++++++++----------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/or/orca-slicer/package.nix b/pkgs/by-name/or/orca-slicer/package.nix index 223064576721..ac79481e65e6 100644 --- a/pkgs/by-name/or/orca-slicer/package.nix +++ b/pkgs/by-name/or/orca-slicer/package.nix @@ -145,27 +145,32 @@ stdenv.mkDerivation (finalAttrs: { NLOPT = nlopt; - NIX_CFLAGS_COMPILE = toString [ - "-Wno-ignored-attributes" - "-I${opencv.out}/include/opencv4" - "-Wno-error=template-id-cdtor" - "-Wno-error=incompatible-pointer-types" - "-Wno-template-id-cdtor" - "-Wno-uninitialized" - "-Wno-unused-result" - "-Wno-deprecated-declarations" - "-Wno-use-after-free" - "-Wno-format-overflow" - "-Wno-stringop-overflow" - "-DBOOST_ALLOW_DEPRECATED_HEADERS" - "-DBOOST_MATH_DISABLE_STD_FPCLASSIFY" - "-DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS" - "-DBOOST_MATH_DISABLE_FLOAT128" - "-DBOOST_MATH_NO_QUAD_SUPPORT" - "-DBOOST_MATH_MAX_FLOAT128_DIGITS=0" - "-DBOOST_CSTDFLOAT_NO_LIBQUADMATH_SUPPORT" - "-DBOOST_MATH_DISABLE_FLOAT128_BUILTIN_FPCLASSIFY" - ]; + NIX_CFLAGS_COMPILE = toString ( + [ + "-Wno-ignored-attributes" + "-I${opencv.out}/include/opencv4" + "-Wno-error=incompatible-pointer-types" + "-Wno-template-id-cdtor" + "-Wno-uninitialized" + "-Wno-unused-result" + "-Wno-deprecated-declarations" + "-Wno-use-after-free" + "-Wno-format-overflow" + "-Wno-stringop-overflow" + "-DBOOST_ALLOW_DEPRECATED_HEADERS" + "-DBOOST_MATH_DISABLE_STD_FPCLASSIFY" + "-DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS" + "-DBOOST_MATH_DISABLE_FLOAT128" + "-DBOOST_MATH_NO_QUAD_SUPPORT" + "-DBOOST_MATH_MAX_FLOAT128_DIGITS=0" + "-DBOOST_CSTDFLOAT_NO_LIBQUADMATH_SUPPORT" + "-DBOOST_MATH_DISABLE_FLOAT128_BUILTIN_FPCLASSIFY" + ] + # Making it compatible with GCC 14+, see https://github.com/SoftFever/OrcaSlicer/pull/7710 + ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "14") [ + "-Wno-error=template-id-cdtor" + ] + ); NIX_LDFLAGS = toString [ (lib.optionalString withSystemd "-ludev") From d6ff4388b202e1d0a0f4d36dd36c19989c1eac43 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Fri, 21 Mar 2025 12:27:47 +0800 Subject: [PATCH 60/95] clash-verge-rev: 2.1.2 -> 2.2.2 --- pkgs/by-name/cl/clash-verge-rev/package.nix | 14 +++++++------- pkgs/by-name/cl/clash-verge-rev/unwrapped.nix | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/cl/clash-verge-rev/package.nix b/pkgs/by-name/cl/clash-verge-rev/package.nix index 474cee254696..ca8ba21bae81 100644 --- a/pkgs/by-name/cl/clash-verge-rev/package.nix +++ b/pkgs/by-name/cl/clash-verge-rev/package.nix @@ -14,25 +14,25 @@ }: let pname = "clash-verge-rev"; - version = "2.1.2"; + version = "2.2.2"; src = fetchFromGitHub { owner = "clash-verge-rev"; repo = "clash-verge-rev"; tag = "v${version}"; - hash = "sha256-rsl3hBywToemthNrG80Mv+JagA4g4S7HukOaRpMKJi8="; + hash = "sha256-CiVwFSCbCxFm8naogpL73gUp8HNHwcIiygSVon4WNZk="; }; src-service = fetchFromGitHub { owner = "clash-verge-rev"; repo = "clash-verge-service"; - rev = "bfd7d597b13d49cf49b64676c2719f1ed9599d22"; # no meaningful tags in this repo. The only way is updating manully every time. - hash = "sha256-LdM0VIVsDPGnHEGwbRFh4/ACTdpVyDnu6dYLLvVbwpc="; + rev = "ffcccc6095e052534980230f9e0ca97db2675062"; # no meaningful tags in this repo. The only way is updating manully every time. + hash = "sha256-AbUflPcuSuUigRQB0i52mfVu5sIep1vMZGVMZyznwXY="; }; - service-cargo-hash = "sha256-mJEk4OAEcuTk5NCzPcWwSlvysqR/9s8p9OGiXWBZvdg="; - npm-hash = "sha256-1OT9Iv9AF4svaOnWNQfOUdo8EUkG0+PU+y8nprc6YjU="; - vendor-hash = "sha256-myvFXaS+QdBRHPpcLEmhg1wgheWb4uXv+QXQf5HA51M="; + service-cargo-hash = "sha256-lMOQznPlkHIMSm5nOLuGP9qJXt3CXnd+q8nCu+Xbbt8="; + npm-hash = "sha256-v9+1NjXo/1ogmep+4IP+9qoUR1GJz87VGeOoMzQ1Rfw="; + vendor-hash = "sha256-nU3bIxD5zggTScNGH3HmnnXUGkLMwnQbIBVI1DmIpFs="; service = callPackage ./service.nix { inherit diff --git a/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix b/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix index 973c650e0b5a..bf0cae5f8eaf 100644 --- a/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix +++ b/pkgs/by-name/cl/clash-verge-rev/unwrapped.nix @@ -4,6 +4,7 @@ src, libayatana-appindicator, vendor-hash, + fetchpatch, glib, webui, pkg-config, @@ -29,7 +30,20 @@ rustPlatform.buildRustPackage { OPENSSL_NO_VENDOR = 1; }; + patches = [ + (fetchpatch { + name = "fix-service-mode-mihomo-check.patch"; + url = "https://github.com/clash-verge-rev/clash-verge-rev/commit/16d4f9fe7ee95b7312a10bf216c818c3e144dea7.patch"; + hash = "sha256-FQHm1jjo0W1IokMDJGWVMVV9DWItG1prX+TIysL12DA="; + }) + ]; + + prePatch = '' + cd .. + ''; + postPatch = '' + cd src-tauri substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \ --replace-fail "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1" From 6623d9c023dfff4bec00bad541b243c1d9e4a95b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 05:33:05 +0000 Subject: [PATCH 61/95] servo: 0-unstable-2025-03-18 -> 0-unstable-2025-03-29 --- pkgs/by-name/se/servo/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/se/servo/package.nix b/pkgs/by-name/se/servo/package.nix index 0f4666648a55..62faa989d3dd 100644 --- a/pkgs/by-name/se/servo/package.nix +++ b/pkgs/by-name/se/servo/package.nix @@ -62,13 +62,13 @@ in rustPlatform.buildRustPackage { pname = "servo"; - version = "0-unstable-2025-03-18"; + version = "0-unstable-2025-03-29"; src = fetchFromGitHub { owner = "servo"; repo = "servo"; - rev = "8d39d7706aee50971e848a5e31fc6bfd7ef552c1"; - hash = "sha256-PdkES7tvECVoJWa78t/K4ab+brqCLHY47c+TnDNQ3Ps="; + rev = "5d1c64dba9cf3e65f770370eb17f00ad4114edce"; + hash = "sha256-0DuS2WfgWgnxh5qDc/XNL28XxXKnYPQW7F2m4OlANck="; # Breaks reproducibility depending on whether the picked commit # has other ref-names or not, which may change over time, i.e. with # "ref-names: HEAD -> main" as long this commit is the branch HEAD @@ -79,7 +79,7 @@ rustPlatform.buildRustPackage { }; useFetchCargoVendor = true; - cargoHash = "sha256-mxbRqJ+ex9k1h6wOgjPHWfG8RA0vVRBAqsHtwSRI12Y="; + cargoHash = "sha256-m6lsXHf7SIgbIt8RyhUkJpd1/nJQMSNRS9uTJ6th9ng="; # set `HOME` to a temp dir for write access # Fix invalid option errors during linking (https://github.com/mozilla/nixpkgs-mozilla/commit/c72ff151a3e25f14182569679ed4cd22ef352328) From 8f8677f25a3e1ffa5cab05015ba6f4b623906ca0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 10:09:38 +0000 Subject: [PATCH 62/95] steel: 0.6.0-unstable-2025-03-17 -> 0.6.0-unstable-2025-03-28 --- pkgs/by-name/st/steel/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/st/steel/package.nix b/pkgs/by-name/st/steel/package.nix index 71eb5df05e8b..7b3289bfb5ed 100644 --- a/pkgs/by-name/st/steel/package.nix +++ b/pkgs/by-name/st/steel/package.nix @@ -20,13 +20,13 @@ }: rustPlatform.buildRustPackage { pname = "steel"; - version = "0.6.0-unstable-2025-03-17"; + version = "0.6.0-unstable-2025-03-28"; src = fetchFromGitHub { owner = "mattwparas"; repo = "steel"; - rev = "8482d947369230b3af45e8775b78dad2379f7a1a"; - hash = "sha256-/2j8olMZngr5tKmM0JfxM8oi+CYn05LY5406syq7jak="; + rev = "2f0fba8b16a3fbab083cedcf09974514b3a29d25"; + hash = "sha256-i/bmZFoC3fRocO1KeCPGB9K/0yEAcKlLh56N+r1V7CI="; }; useFetchCargoVendor = true; From 58d5acd400931eebf264d0eda8a3d5d262e53a70 Mon Sep 17 00:00:00 2001 From: Melody Renata Date: Sat, 29 Mar 2025 08:00:51 -0400 Subject: [PATCH 63/95] gallery-dl: 1.29.2 -> 1.29.3 Changelog: https://github.com/mikf/gallery-dl/releases/tag/v1.29.3 Diff: mikf/gallery-dl@v1.29.2...v1.29.3 --- pkgs/by-name/ga/gallery-dl/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ga/gallery-dl/package.nix b/pkgs/by-name/ga/gallery-dl/package.nix index 1f976936aa8c..cded6b78595c 100644 --- a/pkgs/by-name/ga/gallery-dl/package.nix +++ b/pkgs/by-name/ga/gallery-dl/package.nix @@ -8,7 +8,7 @@ let pname = "gallery-dl"; - version = "1.29.2"; + version = "1.29.3"; in python3Packages.buildPythonApplication { inherit pname version; @@ -18,7 +18,7 @@ python3Packages.buildPythonApplication { owner = "mikf"; repo = "gallery-dl"; tag = "v${version}"; - hash = "sha256-vr+qvztNtFMnDzi0GGX10eZCj5EqXj03OnIXudvrumU="; + hash = "sha256-LzMiJxMl6IWtUloWxBAMLvkhnTQpHkz/gjWl5gW2sZ0="; }; build-system = [ python3Packages.setuptools ]; From 605ed28375effa72b03ca6c0723cb06245a38724 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 29 Mar 2025 01:54:04 +0100 Subject: [PATCH 64/95] nixos/dolibarr: pin php version (to 8.3) --- nixos/modules/services/web-apps/dolibarr.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/nixos/modules/services/web-apps/dolibarr.nix b/nixos/modules/services/web-apps/dolibarr.nix index 136720ef67b4..877490652989 100644 --- a/nixos/modules/services/web-apps/dolibarr.nix +++ b/nixos/modules/services/web-apps/dolibarr.nix @@ -312,7 +312,7 @@ in systemd.services."phpfpm-dolibarr".after = mkIf cfg.database.createLocally [ "mysql.service" ]; services.phpfpm.pools.dolibarr = { inherit (cfg) user group; - phpPackage = pkgs.php.buildEnv { + phpPackage = pkgs.php83.buildEnv { extensions = { enabled, all }: enabled ++ [ all.calendar ]; # recommended by dolibarr web application extraConfig = '' @@ -339,13 +339,17 @@ in description = "dolibarr configuration file management via NixOS"; wantedBy = [ "multi-user.target" ]; - script = '' - # extract the 'main instance unique id' secret that the dolibarr installer generated for us, store it in a file for use by our own NixOS generated configuration file - ${pkgs.php}/bin/php -r "include '${cfg.stateDir}/conf.php'; file_put_contents('${cfg.stateDir}/dolibarr_main_instance_unique_id', \$dolibarr_main_instance_unique_id);" + script = + let + php = lib.getExe config.services.phpfpm.pools.dolibarr.phpPackage; + in + '' + # extract the 'main instance unique id' secret that the dolibarr installer generated for us, store it in a file for use by our own NixOS generated configuration file + ${php} -r "include '${cfg.stateDir}/conf.php'; file_put_contents('${cfg.stateDir}/dolibarr_main_instance_unique_id', \$dolibarr_main_instance_unique_id);" - # replace configuration file generated by installer with the NixOS generated configuration file - install -m 440 ${mkConfigFile "conf.php" cfg.settings} '${cfg.stateDir}/conf.php' - ''; + # replace configuration file generated by installer with the NixOS generated configuration file + install -m 440 ${mkConfigFile "conf.php" cfg.settings} '${cfg.stateDir}/conf.php' + ''; serviceConfig = { Type = "oneshot"; From 784721887cdfc5fd52b72ce3075d552afb882e59 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 13:35:03 +0000 Subject: [PATCH 65/95] obs-studio-plugins.obs-tuna: 1.9.9 -> 1.9.10 --- .../video/obs-studio/plugins/obs-tuna/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/obs-studio/plugins/obs-tuna/default.nix b/pkgs/applications/video/obs-studio/plugins/obs-tuna/default.nix index 7aa5e936ef35..87ba04219d6d 100644 --- a/pkgs/applications/video/obs-studio/plugins/obs-tuna/default.nix +++ b/pkgs/applications/video/obs-studio/plugins/obs-tuna/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "obs-tuna"; - version = "1.9.9"; + version = "1.9.10"; nativeBuildInputs = [ cmake @@ -33,7 +33,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "univrsal"; repo = "tuna"; rev = "v${finalAttrs.version}"; - hash = "sha256-qwOAidnCGZSwTahgbyf1K0KgoDvYpqDAQXM3l1lfZXg="; + hash = "sha256-Y4ny8XJIk4KtmRTWdO6tHevT4Ivr1TqkNMNhua499sY="; fetchSubmodules = true; }; From 43709589000f812aabe81c1a24c49a1f47172328 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 14:07:22 +0000 Subject: [PATCH 66/95] exportarr: 2.0.1 -> 2.1.0 --- pkgs/by-name/ex/exportarr/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ex/exportarr/package.nix b/pkgs/by-name/ex/exportarr/package.nix index 275285041b3b..329fa3b7aa90 100644 --- a/pkgs/by-name/ex/exportarr/package.nix +++ b/pkgs/by-name/ex/exportarr/package.nix @@ -7,16 +7,16 @@ buildGoModule rec { pname = "exportarr"; - version = "2.0.1"; + version = "2.1.0"; src = fetchFromGitHub { owner = "onedr0p"; repo = "exportarr"; rev = "v${version}"; - hash = "sha256-A6G1b9hTGp35ZHsDaMAZdH0LkkEyXCWoV6e5Bo3UqI4="; + hash = "sha256-iNcdD2zigBZ2phtCkHRV0GZPrEjopV0K+vin1Zkb3Oo="; }; - vendorHash = "sha256-8MrS/BMSjyWbBM8jVQYDsvLLaolgbP22Vp2PRX33Kfw="; + vendorHash = "sha256-F5WOSsjeOzMaj4Yze11OnqpgL1l87wpgl3OQEGya//M="; subPackages = [ "cmd/exportarr" ]; From 283a9e6e84048b0c2b20f0316d8580113b7ba7ed Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 14:47:55 +0000 Subject: [PATCH 67/95] eigenmath: 337-unstable-2025-03-16 -> 338-unstable-2025-03-27 --- pkgs/by-name/ei/eigenmath/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ei/eigenmath/package.nix b/pkgs/by-name/ei/eigenmath/package.nix index 34cc8b58836b..7ab596da4e6b 100644 --- a/pkgs/by-name/ei/eigenmath/package.nix +++ b/pkgs/by-name/ei/eigenmath/package.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { pname = "eigenmath"; - version = "337-unstable-2025-03-16"; + version = "338-unstable-2025-03-27"; src = fetchFromGitHub { owner = "georgeweigt"; repo = pname; - rev = "622740aa22d11d08016d0ac962aa920f5e38f223"; - hash = "sha256-sFiCYvp+SC8CnkMfoUXpAPFySd5nxiqLRVGiWsZ4FcY="; + rev = "2e4f6f099e7a9984e3d34430f63bc0606f364dd9"; + hash = "sha256-Bp7+0ykgUqELF3KE678pkGneZCDcIfqlZo2g12Nb+Qc="; }; checkPhase = From 1c21aaf6ea4712c1d5e6f5102f1e26eb104b4fd2 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 29 Mar 2025 15:54:43 +0100 Subject: [PATCH 68/95] passt: fix passthru tests --- pkgs/by-name/pa/passt/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/pa/passt/package.nix b/pkgs/by-name/pa/passt/package.nix index 4e7b55de973e..f7a75990f285 100644 --- a/pkgs/by-name/pa/passt/package.nix +++ b/pkgs/by-name/pa/passt/package.nix @@ -5,6 +5,7 @@ , getconf , gitUpdater , testers +, unixtools }: stdenv.mkDerivation (finalAttrs: { @@ -30,6 +31,7 @@ stdenv.mkDerivation (finalAttrs: { passthru = { tests.version = testers.testVersion { package = finalAttrs.finalPackage; + command = "${unixtools.script}/bin/script -c 'passt --version'"; }; updateScript = gitUpdater { From b7d2e507e0762b21b5128c6adb08071124efe6b8 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 16:14:24 +0100 Subject: [PATCH 69/95] nixosTests.wordpress: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/wordpress.nix | 224 +++++++++++++++++++------------------- 2 files changed, 112 insertions(+), 114 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index ede3e3fc3a0e..9f4e15e0d2fa 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -1314,7 +1314,7 @@ in { wmderland = handleTest ./wmderland.nix {}; workout-tracker = handleTest ./workout-tracker.nix {}; wpa_supplicant = import ./wpa_supplicant.nix { inherit pkgs runTest; }; - wordpress = handleTest ./wordpress.nix {}; + wordpress = runTest ./wordpress.nix; wrappers = handleTest ./wrappers.nix {}; writefreely = handleTest ./web-apps/writefreely.nix {}; wstunnel = runTest ./wstunnel.nix; diff --git a/nixos/tests/wordpress.nix b/nixos/tests/wordpress.nix index 4961a6027565..c7988c111ac4 100644 --- a/nixos/tests/wordpress.nix +++ b/nixos/tests/wordpress.nix @@ -1,123 +1,121 @@ -import ./make-test-python.nix ( - { lib, pkgs, ... }: +{ lib, config, ... }: - rec { - name = "wordpress"; - meta = with pkgs.lib.maintainers; { - maintainers = [ - flokli - grahamc # under duress! - mmilata +rec { + name = "wordpress"; + meta = with lib.maintainers; { + maintainers = [ + flokli + grahamc # under duress! + mmilata + ]; + }; + + nodes = + lib.foldl + ( + a: version: + let + package = config.node.pkgs."wordpress_${version}"; + in + a + // { + "wp${version}_httpd" = _: { + services.httpd.adminAddr = "webmaster@site.local"; + services.httpd.logPerVirtualHost = true; + + services.wordpress.webserver = "httpd"; + services.wordpress.sites = { + "site1.local" = { + database.tablePrefix = "site1_"; + inherit package; + }; + "site2.local" = { + database.tablePrefix = "site2_"; + inherit package; + }; + }; + + networking.firewall.allowedTCPPorts = [ 80 ]; + networking.hosts."127.0.0.1" = [ + "site1.local" + "site2.local" + ]; + }; + + "wp${version}_nginx" = _: { + services.wordpress.webserver = "nginx"; + services.wordpress.sites = { + "site1.local" = { + database.tablePrefix = "site1_"; + inherit package; + }; + "site2.local" = { + database.tablePrefix = "site2_"; + inherit package; + }; + }; + + networking.firewall.allowedTCPPorts = [ 80 ]; + networking.hosts."127.0.0.1" = [ + "site1.local" + "site2.local" + ]; + }; + + "wp${version}_caddy" = _: { + services.wordpress.webserver = "caddy"; + services.wordpress.sites = { + "site1.local" = { + database.tablePrefix = "site1_"; + inherit package; + }; + "site2.local" = { + database.tablePrefix = "site2_"; + inherit package; + }; + }; + + networking.firewall.allowedTCPPorts = [ 80 ]; + networking.hosts."127.0.0.1" = [ + "site1.local" + "site2.local" + ]; + }; + } + ) + { } + [ + "6_7" ]; - }; - nodes = - lib.foldl - ( - a: version: - let - package = pkgs."wordpress_${version}"; - in - a - // { - "wp${version}_httpd" = _: { - services.httpd.adminAddr = "webmaster@site.local"; - services.httpd.logPerVirtualHost = true; + testScript = '' + import re - services.wordpress.webserver = "httpd"; - services.wordpress.sites = { - "site1.local" = { - database.tablePrefix = "site1_"; - inherit package; - }; - "site2.local" = { - database.tablePrefix = "site2_"; - inherit package; - }; - }; + start_all() - networking.firewall.allowedTCPPorts = [ 80 ]; - networking.hosts."127.0.0.1" = [ - "site1.local" - "site2.local" - ]; - }; + ${lib.concatStrings ( + lib.mapAttrsToList (name: value: '' + ${name}.wait_for_unit("${(value null).services.wordpress.webserver}") + '') nodes + )} - "wp${version}_nginx" = _: { - services.wordpress.webserver = "nginx"; - services.wordpress.sites = { - "site1.local" = { - database.tablePrefix = "site1_"; - inherit package; - }; - "site2.local" = { - database.tablePrefix = "site2_"; - inherit package; - }; - }; + site_names = ["site1.local", "site2.local"] - networking.firewall.allowedTCPPorts = [ 80 ]; - networking.hosts."127.0.0.1" = [ - "site1.local" - "site2.local" - ]; - }; + for machine in (${lib.concatStringsSep ", " (builtins.attrNames nodes)}): + for site_name in site_names: + machine.wait_for_unit(f"phpfpm-wordpress-{site_name}") - "wp${version}_caddy" = _: { - services.wordpress.webserver = "caddy"; - services.wordpress.sites = { - "site1.local" = { - database.tablePrefix = "site1_"; - inherit package; - }; - "site2.local" = { - database.tablePrefix = "site2_"; - inherit package; - }; - }; + with subtest("website returns welcome screen"): + assert "Welcome to the famous" in machine.succeed(f"curl -L {site_name}") - networking.firewall.allowedTCPPorts = [ 80 ]; - networking.hosts."127.0.0.1" = [ - "site1.local" - "site2.local" - ]; - }; - } - ) - { } - [ - "6_7" - ]; + with subtest("wordpress-init went through"): + info = machine.get_unit_info(f"wordpress-init-{site_name}") + assert info["Result"] == "success" - testScript = '' - import re - - start_all() - - ${lib.concatStrings ( - lib.mapAttrsToList (name: value: '' - ${name}.wait_for_unit("${(value null).services.wordpress.webserver}") - '') nodes - )} - - site_names = ["site1.local", "site2.local"] - - for machine in (${lib.concatStringsSep ", " (builtins.attrNames nodes)}): - for site_name in site_names: - machine.wait_for_unit(f"phpfpm-wordpress-{site_name}") - - with subtest("website returns welcome screen"): - assert "Welcome to the famous" in machine.succeed(f"curl -L {site_name}") - - with subtest("wordpress-init went through"): - info = machine.get_unit_info(f"wordpress-init-{site_name}") - assert info["Result"] == "success" - - with subtest("secret keys are set"): - pattern = re.compile(r"^define.*NONCE_SALT.{64,};$", re.MULTILINE) - assert pattern.search( - machine.succeed(f"cat /var/lib/wordpress/{site_name}/secret-keys.php") - ) - ''; - } -) + with subtest("secret keys are set"): + pattern = re.compile(r"^define.*NONCE_SALT.{64,};$", re.MULTILINE) + assert pattern.search( + machine.succeed(f"cat /var/lib/wordpress/{site_name}/secret-keys.php") + ) + ''; +} From 8b661bb892f892378d4b31fea882af6ca866d787 Mon Sep 17 00:00:00 2001 From: emaryn Date: Sat, 29 Mar 2025 23:31:54 +0800 Subject: [PATCH 70/95] siesta: 4.1.5 -> 5.2.2 --- .../science/chemistry/siesta/default.nix | 55 ++++++++++--------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/pkgs/applications/science/chemistry/siesta/default.nix b/pkgs/applications/science/chemistry/siesta/default.nix index 2d662a407dc8..c88b85be9e3e 100644 --- a/pkgs/applications/science/chemistry/siesta/default.nix +++ b/pkgs/applications/science/chemistry/siesta/default.nix @@ -8,48 +8,56 @@ useMpi ? false, mpi, fetchFromGitLab, + cmake, + pkg-config, + readline, + ninja, + elpa, }: -stdenv.mkDerivation rec { - version = "4.1.5"; +stdenv.mkDerivation (finalAttrs: { pname = "siesta"; + version = "5.2.2"; src = fetchFromGitLab { owner = "siesta-project"; repo = "siesta"; - rev = "v${version}"; - sha256 = "0lz8rfl5xwdj17zn7a30ipi7cgjwqki21a7wg9rdg7iwx27bpnmg"; + tag = finalAttrs.version; + hash = "sha256-pud8RlJAT+0TwyPRsbf5D/8FfLjZvPYPf84Xb7UH6os="; + fetchSubmodules = true; }; - postPatch = '' - substituteInPlace Src/siesta_init.F --replace '/bin/rm' 'rm' - ''; - passthru = { inherit mpi; }; - nativeBuildInputs = [ gfortran ]; + nativeBuildInputs = [ + ninja + gfortran + cmake + pkg-config + ]; buildInputs = [ blas lapack + readline + elpa ] ++ lib.optionals useMpi [ mpi scalapack ]; - enableParallelBuilding = false; # Started making trouble with gcc-11 + NIX_LDFLAGS = "-lm"; - # Must do manually because siesta does not do the regular - # ./configure; make; make install - configurePhase = '' - cd Obj - sh ../Src/obj_setup.sh - cp gfortran.make arch.make - ''; + cmakeFlags = [ + "-DCMAKE_INSTALL_INCLUDEDIR=include" + "-DCMAKE_INSTALL_LIBDIR=lib" + ]; + + enableParallelBuilding = false; # Started making trouble with gcc-11 preBuild = '' @@ -76,12 +84,7 @@ stdenv.mkDerivation rec { '' ); - installPhase = '' - mkdir -p $out/bin - cp -a siesta $out/bin - ''; - - meta = with lib; { + meta = { description = "First-principles materials simulation code using DFT"; mainProgram = "siesta"; longDescription = '' @@ -98,8 +101,8 @@ stdenv.mkDerivation rec { and all-electron methods. ''; homepage = "https://siesta-project.org/siesta/"; - license = licenses.gpl2; + license = lib.licenses.gpl2; platforms = [ "x86_64-linux" ]; - maintainers = [ maintainers.costrouc ]; + maintainers = [ lib.maintainers.costrouc ]; }; -} +}) From 4f57c255accbc637770323f592f137252b3c53fb Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 17:29:12 +0100 Subject: [PATCH 71/95] nixosTests.unit-php: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/web-servers/unit-php.nix | 102 +++++++++++++-------------- 2 files changed, 51 insertions(+), 53 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index ede3e3fc3a0e..473cfb4c3062 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -1257,7 +1257,7 @@ in { umurmur = handleTest ./umurmur.nix {}; unbound = handleTest ./unbound.nix {}; unifi = handleTest ./unifi.nix {}; - unit-php = handleTest ./web-servers/unit-php.nix {}; + unit-php = runTest ./web-servers/unit-php.nix; unit-perl = handleTest ./web-servers/unit-perl.nix {}; upnp.iptables = handleTest ./upnp.nix { useNftables = false; }; upnp.nftables = handleTest ./upnp.nix { useNftables = true; }; diff --git a/nixos/tests/web-servers/unit-php.nix b/nixos/tests/web-servers/unit-php.nix index fcf0224639da..ae7503ad0ffa 100644 --- a/nixos/tests/web-servers/unit-php.nix +++ b/nixos/tests/web-servers/unit-php.nix @@ -1,62 +1,60 @@ -import ../make-test-python.nix ( - { pkgs, ... }: - let - testdir = pkgs.writeTextDir "www/info.php" " Date: Sat, 22 Mar 2025 15:14:30 +0000 Subject: [PATCH 72/95] snakefmt: 0.10.2 -> 0.11.0 --- pkgs/by-name/sn/snakefmt/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sn/snakefmt/package.nix b/pkgs/by-name/sn/snakefmt/package.nix index ba565b5c20b3..b2972cd6697e 100644 --- a/pkgs/by-name/sn/snakefmt/package.nix +++ b/pkgs/by-name/sn/snakefmt/package.nix @@ -8,14 +8,14 @@ python3.pkgs.buildPythonApplication rec { pname = "snakefmt"; - version = "0.10.2"; + version = "0.11.0"; pyproject = true; - disabled = python3.pythonOlder "3.8.1"; + disabled = python3.pythonOlder "3.11"; src = fetchPypi { inherit pname version; - hash = "sha256-QoalkDtm2n5SdjxegYTaTtyVETt1j0RIUogE+1T5t1o="; + hash = "sha256-r8O5LhA8/agP/35381f2zB2rdCJy7nY0K6NC8w5yHzA="; }; build-system = [ python3.pkgs.poetry-core ]; From 6e751da348fd6f9ef76f50d4f26d6aeb73c6cba0 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 29 Mar 2025 13:35:34 +0100 Subject: [PATCH 73/95] snakefmt: relax dependencies --- pkgs/by-name/sn/snakefmt/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/sn/snakefmt/package.nix b/pkgs/by-name/sn/snakefmt/package.nix index b2972cd6697e..44735da75e42 100644 --- a/pkgs/by-name/sn/snakefmt/package.nix +++ b/pkgs/by-name/sn/snakefmt/package.nix @@ -27,6 +27,8 @@ python3.pkgs.buildPythonApplication rec { toml ]; + pythonRelaxDeps = [ "black" ]; + pythonImportsCheck = [ "snakefmt" ]; nativeInstallCheckInputs = [ versionCheckHook ]; From 22782bd04bf84ffedd977660f54576dd4254102b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 17:29:17 +0000 Subject: [PATCH 74/95] beam26Packages.elixir-ls: 0.27.1 -> 0.27.2 --- pkgs/development/beam-modules/elixir-ls/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/beam-modules/elixir-ls/default.nix b/pkgs/development/beam-modules/elixir-ls/default.nix index 04eae0082f60..77891bd51268 100644 --- a/pkgs/development/beam-modules/elixir-ls/default.nix +++ b/pkgs/development/beam-modules/elixir-ls/default.nix @@ -11,12 +11,12 @@ let pname = "elixir-ls"; - version = "0.27.1"; + version = "0.27.2"; src = fetchFromGitHub { owner = "elixir-lsp"; repo = "elixir-ls"; rev = "v${version}"; - hash = "sha256-YSu9uN0n8x1833iqvskk/47JnoXJ2Y8RCRmA12YYgDc="; + hash = "sha256-y1QT+wRFc+++OVFJwEheqcDIwaKHlyjbhEjhLJ2rYaI="; }; in mixRelease { From 15d0312a8a5d430c148d39a829f24a379b2e187a Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 19:25:44 +0100 Subject: [PATCH 75/95] icingaweb2: pin php version to 8.3 --- nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix | 2 +- pkgs/servers/icingaweb2/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix index 680257d23b21..880ae5f55994 100644 --- a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix +++ b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix @@ -192,7 +192,7 @@ in ) ); }; - phpPackage = pkgs.php.withExtensions ({ enabled, all }: [ all.imagick ] ++ enabled); + phpPackage = pkgs.php83.withExtensions ({ enabled, all }: [ all.imagick ] ++ enabled); phpOptions = '' date.timezone = "${cfg.timezone}" ''; diff --git a/pkgs/servers/icingaweb2/default.nix b/pkgs/servers/icingaweb2/default.nix index 8a948d00c94c..d36faa6e523e 100644 --- a/pkgs/servers/icingaweb2/default.nix +++ b/pkgs/servers/icingaweb2/default.nix @@ -3,7 +3,7 @@ lib, fetchFromGitHub, makeWrapper, - php, + php83, nixosTests, }: @@ -25,7 +25,7 @@ stdenvNoCC.mkDerivation rec { cp -ra application bin etc library modules public $out cp -ra doc $out/share - wrapProgram $out/bin/icingacli --prefix PATH : "${lib.makeBinPath [ php ]}" + wrapProgram $out/bin/icingacli --prefix PATH : "${lib.makeBinPath [ php83 ]}" ''; passthru.tests = { inherit (nixosTests) icingaweb2; }; From bafb6848e731c8585d33360240b29d3c895d60da Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 19:44:20 +0100 Subject: [PATCH 76/95] agorakit: pin php version to 8.2 --- nixos/modules/services/web-apps/agorakit.nix | 9 +++++---- pkgs/by-name/ag/agorakit/package.nix | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/web-apps/agorakit.nix b/nixos/modules/services/web-apps/agorakit.nix index 583f68ee5881..b7c86d7585dd 100644 --- a/nixos/modules/services/web-apps/agorakit.nix +++ b/nixos/modules/services/web-apps/agorakit.nix @@ -13,6 +13,7 @@ let user = cfg.user; group = cfg.group; + php = lib.getExe pkgs.php82; # shell script for local administration artisan = pkgs.writeScriptBin "agorakit" '' @@ -25,7 +26,7 @@ let exec "$@" fi } - sudo ${lib.getExe pkgs.php} artisan "$@" + sudo ${php} artisan "$@" ''; tlsEnabled = cfg.nginx.addSSL || cfg.nginx.forceSSL || cfg.nginx.onlySSL || cfg.nginx.enableACME; @@ -447,9 +448,9 @@ in fi # migrate & seed db - ${pkgs.php}/bin/php artisan key:generate --force - ${pkgs.php}/bin/php artisan migrate --force - ${pkgs.php}/bin/php artisan config:cache + ${php} artisan key:generate --force + ${php} artisan migrate --force + ${php} artisan config:cache ''; }; diff --git a/pkgs/by-name/ag/agorakit/package.nix b/pkgs/by-name/ag/agorakit/package.nix index 0d23000df9fb..bbf42b287435 100644 --- a/pkgs/by-name/ag/agorakit/package.nix +++ b/pkgs/by-name/ag/agorakit/package.nix @@ -1,11 +1,11 @@ { lib, fetchFromGitHub, - php, + php82, dataDir ? "/var/lib/agorakit", }: -php.buildComposerProject2 (finalAttrs: { +php82.buildComposerProject2 (finalAttrs: { pname = "agorakit"; version = "1.9.3"; From 375292a2d904c5c1845d5f2f474114d514ad25da Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 18:46:44 +0000 Subject: [PATCH 77/95] tsid: 1.7.1 -> 1.8.0 --- pkgs/by-name/ts/tsid/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ts/tsid/package.nix b/pkgs/by-name/ts/tsid/package.nix index 988e95a039ad..73746434696f 100644 --- a/pkgs/by-name/ts/tsid/package.nix +++ b/pkgs/by-name/ts/tsid/package.nix @@ -15,13 +15,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "tsid"; - version = "1.7.1"; + version = "1.8.0"; src = fetchFromGitHub { owner = "stack-of-tasks"; repo = "tsid"; rev = "v${finalAttrs.version}"; - hash = "sha256-id6OCOX01o41Z5kqzwvjYa5uoQZtzhRaFBuOBhbLcTA="; + hash = "sha256-SS6JhU4fuZtTzv/EY31ixwwLOzmO/dN3H5HEMh/URTA="; }; cmakeFlags = [ From ab3b601d8846be3d96c18ebb0be53dd13bcd9a5c Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 20:00:27 +0100 Subject: [PATCH 78/95] rutorrent: pin php version to 8.2 --- nixos/modules/services/web-apps/rutorrent.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/rutorrent.nix b/nixos/modules/services/web-apps/rutorrent.nix index be2af96ae05b..d1c3c2eafe38 100644 --- a/nixos/modules/services/web-apps/rutorrent.nix +++ b/nixos/modules/services/web-apps/rutorrent.nix @@ -211,7 +211,7 @@ in $throttleMaxSpeed = 327625*1024; $pathToExternals = array( - "php" => "${pkgs.php}/bin/php", // Something like /usr/bin/php. If empty, will be found in PATH. + "php" => "${pkgs.php82}/bin/php", // Something like /usr/bin/php. If empty, will be found in PATH. "curl" => "${pkgs.curl}/bin/curl", // Something like /usr/bin/curl. If empty, will be found in PATH. "gzip" => "${pkgs.gzip}/bin/gzip", // Something like /usr/bin/gzip. If empty, will be found in PATH. "id" => "${pkgs.coreutils}/bin/id", // Something like /usr/bin/id. If empty, will be found in PATH. From 69c26f338b1863dfc45819f693abfcb1de582c2d Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 20:07:31 +0100 Subject: [PATCH 79/95] monica: pin php version to 8.3 --- nixos/modules/services/web-apps/monica.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/web-apps/monica.nix b/nixos/modules/services/web-apps/monica.nix index 16263e70c2e8..00bb9bb7de2d 100644 --- a/nixos/modules/services/web-apps/monica.nix +++ b/nixos/modules/services/web-apps/monica.nix @@ -15,6 +15,8 @@ with lib; let user = cfg.user; group = cfg.group; + php = lib.getExe pkgs.php83; + # shell script for local administration artisan = pkgs.writeScriptBin "monica" '' #! ${pkgs.runtimeShell} @@ -26,7 +28,7 @@ with lib; let exec "$@" fi } - sudo ${pkgs.php}/bin/php artisan "$@" + sudo ${php} artisan "$@" ''; tlsEnabled = cfg.nginx.addSSL || cfg.nginx.forceSSL || cfg.nginx.onlySSL || cfg.nginx.enableACME; @@ -419,8 +421,8 @@ in { fi # migrate & seed db - ${pkgs.php}/bin/php artisan key:generate --force - ${pkgs.php}/bin/php artisan setup:production -v --force + ${php} artisan key:generate --force + ${php} artisan setup:production -v --force ''; }; @@ -432,7 +434,7 @@ in { Type = "oneshot"; User = user; WorkingDirectory = "${monica}"; - ExecStart = "${pkgs.php}/bin/php ${monica}/artisan schedule:run -v"; + ExecStart = "${php} ${monica}/artisan schedule:run -v"; }; }; @@ -465,4 +467,3 @@ in { }; }; } - From 0bf5b65bb420de92edf41fdf882ca8c2b3a66a32 Mon Sep 17 00:00:00 2001 From: Nobody_alias_N <165517462+Nobody-alias-N@users.noreply.github.com> Date: Fri, 28 Mar 2025 04:03:37 +0200 Subject: [PATCH 80/95] freetube: 0.23.2 -> 0.23.3 --- pkgs/by-name/fr/freetube/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fr/freetube/package.nix b/pkgs/by-name/fr/freetube/package.nix index b4002ae64ce1..88973a0fa160 100644 --- a/pkgs/by-name/fr/freetube/package.nix +++ b/pkgs/by-name/fr/freetube/package.nix @@ -20,13 +20,13 @@ let in stdenvNoCC.mkDerivation (finalAttrs: { pname = "freetube"; - version = "0.23.2"; + version = "0.23.3"; src = fetchFromGitHub { owner = "FreeTubeApp"; repo = "FreeTube"; tag = "v${finalAttrs.version}-beta"; - hash = "sha256-P0ENx8PDWbqfiBEsWv11R3Q/FE+rAFhhk49VyQgXIz4="; + hash = "sha256-EpcYNUtGbEFvetroo1zAyfKxW70vD1Lk0aJKWcaV39I="; }; # Darwin requires writable Electron dist @@ -49,7 +49,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { yarnOfflineCache = fetchYarnDeps { yarnLock = "${finalAttrs.src}/yarn.lock"; - hash = "sha256-U6H4TMKR+khs5fQtMtIBnHpAzJvHcvMeSD1XUqaov/M="; + hash = "sha256-xiJGzvmfrvvB6/rdwALOxhWSWAZ31cbySYygtG8+QpQ="; }; nativeBuildInputs = [ From 5019e6e3ac061104b5f75762c44bc941e1aad191 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Mar 2025 13:01:24 +0000 Subject: [PATCH 81/95] python312Packages.coiled: 1.86.0 -> 1.90.2 --- pkgs/development/python-modules/coiled/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/coiled/default.nix b/pkgs/development/python-modules/coiled/default.nix index fe11ef7dd8e5..e46e38f083cd 100644 --- a/pkgs/development/python-modules/coiled/default.nix +++ b/pkgs/development/python-modules/coiled/default.nix @@ -39,12 +39,12 @@ buildPythonPackage rec { pname = "coiled"; - version = "1.86.0"; + version = "1.90.2"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-umwAG7+ykCWLqgyQzWdrYUuslyWWP1/uKlsSci50qR4="; + hash = "sha256-5u33FbSB86jR9KIAhR24J0wSz9kRCaOJ0ituEzULHH8="; }; build-system = [ @@ -79,15 +79,12 @@ buildPythonPackage rec { wheel ]; - pythonImportsCheck = [ - "coiled" - ]; + pythonImportsCheck = [ "coiled" ]; nativeCheckInputs = [ versionCheckHook ]; - - versionCheckProgramArg = [ "--version" ]; + versionCheckProgramArg = "--version"; meta = { description = "Python client for coiled.io dask clusters"; From ee495663d0ec679788b45fa4114436bf4c753b47 Mon Sep 17 00:00:00 2001 From: squalus Date: Sat, 29 Mar 2025 13:34:41 -0700 Subject: [PATCH 82/95] osquery: fix update script Correct the file path which was broken by 7d30c4093 --- pkgs/by-name/os/osquery/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/os/osquery/update.py b/pkgs/by-name/os/osquery/update.py index d593154e78a8..3bb24c68a528 100644 --- a/pkgs/by-name/os/osquery/update.py +++ b/pkgs/by-name/os/osquery/update.py @@ -9,7 +9,7 @@ OWNER = 'osquery' REPO = 'osquery' OPENSSL_VERSION_PAT = re.compile(r'^set\(OPENSSL_VERSION "(.*)"\)') OPENSSL_SHA256_PAT = re.compile(r'^set\(OPENSSL_ARCHIVE_SHA256 "(.*)"\)') -INFO_PATH = 'pkgs/tools/system/osquery/info.json' +INFO_PATH = 'pkgs/by-name/os/osquery/info.json' def download_str(url): From e90d9be0a3c7f3adc051bd1fb31b3487a1f2be84 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 21:47:04 +0100 Subject: [PATCH 83/95] nixosTests.monica: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/web-apps/monica.nix | 64 ++++++++++++++++----------------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 473cfb4c3062..b903c446a6a0 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -725,7 +725,7 @@ in { mollysocket = handleTest ./mollysocket.nix { }; monado = handleTest ./monado.nix {}; monetdb = handleTest ./monetdb.nix {}; - monica = handleTest ./web-apps/monica.nix {}; + monica = runTest ./web-apps/monica.nix; mongodb = runTest ./mongodb.nix; mongodb-ce = runTest ({ config, ... }: { imports = [ ./mongodb.nix ]; diff --git a/nixos/tests/web-apps/monica.nix b/nixos/tests/web-apps/monica.nix index bb770828d5f7..9b1995d393d3 100644 --- a/nixos/tests/web-apps/monica.nix +++ b/nixos/tests/web-apps/monica.nix @@ -1,37 +1,35 @@ -import ../make-test-python.nix ( - { pkgs, ... }: - let - cert = pkgs.runCommand "selfSignedCerts" { nativeBuildInputs = [ pkgs.openssl ]; } '' - openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -subj '/CN=localhost' -days 36500 - mkdir -p $out - cp key.pem cert.pem $out - ''; - in - { - name = "monica"; +{ pkgs, ... }: +let + cert = pkgs.runCommand "selfSignedCerts" { nativeBuildInputs = [ pkgs.openssl ]; } '' + openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -nodes -subj '/CN=localhost' -days 36500 + mkdir -p $out + cp key.pem cert.pem $out + ''; +in +{ + name = "monica"; - nodes = { - machine = - { pkgs, ... }: - { - services.monica = { - enable = true; - hostname = "localhost"; - appKeyFile = "${pkgs.writeText "keyfile" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}"; - nginx = { - forceSSL = true; - sslCertificate = "${cert}/cert.pem"; - sslCertificateKey = "${cert}/key.pem"; - }; + nodes = { + machine = + { pkgs, ... }: + { + services.monica = { + enable = true; + hostname = "localhost"; + appKeyFile = "${pkgs.writeText "keyfile" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}"; + nginx = { + forceSSL = true; + sslCertificate = "${cert}/cert.pem"; + sslCertificateKey = "${cert}/key.pem"; }; }; - }; + }; + }; - testScript = '' - start_all() - machine.wait_for_unit("monica-setup.service") - machine.wait_for_open_port(443) - machine.succeed("curl -k --fail https://localhost", timeout=10) - ''; - } -) + testScript = '' + start_all() + machine.wait_for_unit("monica-setup.service") + machine.wait_for_open_port(443) + machine.succeed("curl -k --fail https://localhost", timeout=10) + ''; +} From e6dd7d6641038fd6e3fe57057d4bc5bde5bf04ff Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 21:54:28 +0100 Subject: [PATCH 84/95] nixosTests.icingaweb2: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/icingaweb2.nix | 122 ++++++++++++++++++------------------- 2 files changed, 61 insertions(+), 63 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 473cfb4c3062..e9289bc59439 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -557,7 +557,7 @@ in { hub = handleTest ./git/hub.nix {}; hydra = handleTest ./hydra {}; i3wm = handleTest ./i3wm.nix {}; - icingaweb2 = handleTest ./icingaweb2.nix {}; + icingaweb2 = runTest ./icingaweb2.nix; ifm = handleTest ./ifm.nix {}; iftop = handleTest ./iftop.nix {}; immich = handleTest ./web-apps/immich.nix {}; diff --git a/nixos/tests/icingaweb2.nix b/nixos/tests/icingaweb2.nix index 2039fbcb2bcd..08fc4f262c08 100644 --- a/nixos/tests/icingaweb2.nix +++ b/nixos/tests/icingaweb2.nix @@ -1,76 +1,74 @@ -import ./make-test-python.nix ( - { pkgs, ... }: - { - name = "icingaweb2"; - meta = { - maintainers = pkgs.lib.teams.helsinki-systems.members; - }; +{ pkgs, ... }: +{ + name = "icingaweb2"; + meta = { + maintainers = pkgs.lib.teams.helsinki-systems.members; + }; - nodes = { - icingaweb2 = - { config, pkgs, ... }: - { - services.icingaweb2 = { - enable = true; + nodes = { + icingaweb2 = + { config, pkgs, ... }: + { + services.icingaweb2 = { + enable = true; - modulePackages = with pkgs.icingaweb2Modules; { - particles = theme-particles; - spring = theme-spring; + modulePackages = with pkgs.icingaweb2Modules; { + particles = theme-particles; + spring = theme-spring; + }; + + modules = { + doc.enable = true; + migrate.enable = true; + setup.enable = true; + test.enable = true; + translation.enable = true; + }; + + generalConfig = { + global = { + module_path = "${pkgs.icingaweb2}/modules"; }; + }; - modules = { - doc.enable = true; - migrate.enable = true; - setup.enable = true; - test.enable = true; - translation.enable = true; + authentications = { + icingaweb = { + backend = "external"; }; + }; - generalConfig = { - global = { - module_path = "${pkgs.icingaweb2}/modules"; - }; + groupBackends = { + icingaweb = { + backend = "db"; + resource = "icingaweb_db"; }; + }; - authentications = { - icingaweb = { - backend = "external"; - }; + resources = { + # Not used, so no DB server needed + icingaweb_db = { + type = "db"; + db = "mysql"; + host = "localhost"; + username = "icingaweb2"; + password = "icingaweb2"; + dbname = "icingaweb2"; }; + }; - groupBackends = { - icingaweb = { - backend = "db"; - resource = "icingaweb_db"; - }; - }; - - resources = { - # Not used, so no DB server needed - icingaweb_db = { - type = "db"; - db = "mysql"; - host = "localhost"; - username = "icingaweb2"; - password = "icingaweb2"; - dbname = "icingaweb2"; - }; - }; - - roles = { - Administrators = { - users = "*"; - permissions = "*"; - }; + roles = { + Administrators = { + users = "*"; + permissions = "*"; }; }; }; - }; + }; + }; - testScript = '' - start_all() - icingaweb2.wait_for_unit("multi-user.target") - icingaweb2.succeed("curl -sSf http://icingaweb2/authentication/login") - ''; - } -) + testScript = '' + start_all() + icingaweb2.wait_for_unit("multi-user.target") + icingaweb2.succeed("curl -sSf http://icingaweb2/authentication/login") + ''; +} From 5ae8e39ef773696126f9e9cd6f912299596d2b9c Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:10:14 +0100 Subject: [PATCH 85/95] nixosTests.wiki-js: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/wiki-js.nix | 310 +++++++++++++++++++------------------- 2 files changed, 155 insertions(+), 157 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 9b39343628e2..a2de5b12612d 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -1306,7 +1306,7 @@ in { weblate = handleTest ./web-apps/weblate.nix {}; whisparr = handleTest ./whisparr.nix {}; whoogle-search = handleTest ./whoogle-search.nix {}; - wiki-js = handleTest ./wiki-js.nix {}; + wiki-js = runTest ./wiki-js.nix; wine = handleTest ./wine.nix {}; wireguard = handleTest ./wireguard {}; wg-access-server = handleTest ./wg-access-server.nix {}; diff --git a/nixos/tests/wiki-js.nix b/nixos/tests/wiki-js.nix index 9d5819ceff59..947f3a9afe9d 100644 --- a/nixos/tests/wiki-js.nix +++ b/nixos/tests/wiki-js.nix @@ -1,171 +1,169 @@ -import ./make-test-python.nix ( - { pkgs, lib, ... }: - { - name = "wiki-js"; - meta = with pkgs.lib.maintainers; { - maintainers = [ ma27 ]; +{ pkgs, ... }: +{ + name = "wiki-js"; + meta = with pkgs.lib.maintainers; { + maintainers = [ ma27 ]; + }; + + nodes.machine = + { pkgs, ... }: + { + virtualisation.memorySize = 2047; + services.wiki-js = { + enable = true; + settings.db.host = "/run/postgresql"; + settings.db.user = "wiki-js"; + settings.db.db = "wiki-js"; + settings.logLevel = "debug"; + }; + services.postgresql = { + enable = true; + ensureDatabases = [ "wiki-js" ]; + ensureUsers = [ + { + name = "wiki-js"; + ensureDBOwnership = true; + } + ]; + }; + systemd.services.wiki-js = { + requires = [ "postgresql.service" ]; + after = [ "postgresql.service" ]; + }; + environment.systemPackages = with pkgs; [ jq ]; }; - nodes.machine = - { pkgs, ... }: - { - virtualisation.memorySize = 2047; - services.wiki-js = { - enable = true; - settings.db.host = "/run/postgresql"; - settings.db.user = "wiki-js"; - settings.db.db = "wiki-js"; - settings.logLevel = "debug"; - }; - services.postgresql = { - enable = true; - ensureDatabases = [ "wiki-js" ]; - ensureUsers = [ - { - name = "wiki-js"; - ensureDBOwnership = true; - } - ]; - }; - systemd.services.wiki-js = { - requires = [ "postgresql.service" ]; - after = [ "postgresql.service" ]; - }; - environment.systemPackages = with pkgs; [ jq ]; - }; - - testScript = - let - payloads.finalize = pkgs.writeText "finalize.json" ( - builtins.toJSON { - adminEmail = "webmaster@example.com"; - adminPassword = "notapassword"; - adminPasswordConfirm = "notapassword"; - siteUrl = "http://localhost:3000"; - telemetry = false; + testScript = + let + payloads.finalize = pkgs.writeText "finalize.json" ( + builtins.toJSON { + adminEmail = "webmaster@example.com"; + adminPassword = "notapassword"; + adminPasswordConfirm = "notapassword"; + siteUrl = "http://localhost:3000"; + telemetry = false; + } + ); + payloads.login = pkgs.writeText "login.json" ( + builtins.toJSON [ + { + operationName = null; + extensions = { }; + query = '' + mutation ($username: String!, $password: String!, $strategy: String!) { + authentication { + login(username: $username, password: $password, strategy: $strategy) { + responseResult { + succeeded + errorCode + slug + message + __typename + } + jwt + mustChangePwd + mustProvideTFA + mustSetupTFA + continuationToken + redirect + tfaQRImage + __typename + } + __typename + } + } + ''; + variables = { + password = "notapassword"; + strategy = "local"; + username = "webmaster@example.com"; + }; } - ); - payloads.login = pkgs.writeText "login.json" ( - builtins.toJSON [ - { - operationName = null; - extensions = { }; - query = '' - mutation ($username: String!, $password: String!, $strategy: String!) { - authentication { - login(username: $username, password: $password, strategy: $strategy) { - responseResult { - succeeded - errorCode - slug - message - __typename - } - jwt - mustChangePwd - mustProvideTFA - mustSetupTFA - continuationToken - redirect - tfaQRImage + ] + ); + payloads.content = pkgs.writeText "content.json" ( + builtins.toJSON [ + { + extensions = { }; + operationName = null; + query = '' + mutation ($content: String!, $description: String!, $editor: String!, $isPrivate: Boolean!, $isPublished: Boolean!, $locale: String!, $path: String!, $publishEndDate: Date, $publishStartDate: Date, $scriptCss: String, $scriptJs: String, $tags: [String]!, $title: String!) { + pages { + create(content: $content, description: $description, editor: $editor, isPrivate: $isPrivate, isPublished: $isPublished, locale: $locale, path: $path, publishEndDate: $publishEndDate, publishStartDate: $publishStartDate, scriptCss: $scriptCss, scriptJs: $scriptJs, tags: $tags, title: $title) { + responseResult { + succeeded + errorCode + slug + message + __typename + } + page { + id + updatedAt __typename } __typename } + __typename } - ''; - variables = { - password = "notapassword"; - strategy = "local"; - username = "webmaster@example.com"; - }; - } - ] - ); - payloads.content = pkgs.writeText "content.json" ( - builtins.toJSON [ - { - extensions = { }; - operationName = null; - query = '' - mutation ($content: String!, $description: String!, $editor: String!, $isPrivate: Boolean!, $isPublished: Boolean!, $locale: String!, $path: String!, $publishEndDate: Date, $publishStartDate: Date, $scriptCss: String, $scriptJs: String, $tags: [String]!, $title: String!) { - pages { - create(content: $content, description: $description, editor: $editor, isPrivate: $isPrivate, isPublished: $isPublished, locale: $locale, path: $path, publishEndDate: $publishEndDate, publishStartDate: $publishStartDate, scriptCss: $scriptCss, scriptJs: $scriptJs, tags: $tags, title: $title) { - responseResult { - succeeded - errorCode - slug - message - __typename - } - page { - id - updatedAt - __typename - } - __typename - } - __typename - } - } - ''; - variables = { - content = "# Header\n\nHello world!"; - description = ""; - editor = "markdown"; - isPrivate = false; - isPublished = true; - locale = "en"; - path = "home"; - publishEndDate = ""; - publishStartDate = ""; - scriptCss = ""; - scriptJs = ""; - tags = [ ]; - title = "Hello world"; - }; - } - ] - ); - in - '' - machine.start() - machine.wait_for_unit("multi-user.target") - machine.wait_for_open_port(3000) + } + ''; + variables = { + content = "# Header\n\nHello world!"; + description = ""; + editor = "markdown"; + isPrivate = false; + isPublished = true; + locale = "en"; + path = "home"; + publishEndDate = ""; + publishStartDate = ""; + scriptCss = ""; + scriptJs = ""; + tags = [ ]; + title = "Hello world"; + }; + } + ] + ); + in + '' + machine.start() + machine.wait_for_unit("multi-user.target") + machine.wait_for_open_port(3000) - machine.succeed("curl -sSf localhost:3000") + machine.succeed("curl -sSf localhost:3000") - with subtest("Setup"): - result = machine.succeed( - "curl -sSf localhost:3000/finalize -X POST -d " - + "@${payloads.finalize} -H 'Content-Type: application/json' " - + "| jq .ok | xargs echo" - ) - assert result.strip() == "true", f"Expected true, got {result}" + with subtest("Setup"): + result = machine.succeed( + "curl -sSf localhost:3000/finalize -X POST -d " + + "@${payloads.finalize} -H 'Content-Type: application/json' " + + "| jq .ok | xargs echo" + ) + assert result.strip() == "true", f"Expected true, got {result}" - # During the setup the service gets restarted, so we use this - # to check if the setup is done. - machine.wait_until_fails("curl -sSf localhost:3000") - machine.wait_until_succeeds("curl -sSf localhost:3000") + # During the setup the service gets restarted, so we use this + # to check if the setup is done. + machine.wait_until_fails("curl -sSf localhost:3000") + machine.wait_until_succeeds("curl -sSf localhost:3000") - with subtest("Base functionality"): - auth = machine.succeed( - "curl -sSf localhost:3000/graphql -X POST " - + "-d @${payloads.login} -H 'Content-Type: application/json' " - + "| jq '.[0].data.authentication.login.jwt' | xargs echo" - ).strip() + with subtest("Base functionality"): + auth = machine.succeed( + "curl -sSf localhost:3000/graphql -X POST " + + "-d @${payloads.login} -H 'Content-Type: application/json' " + + "| jq '.[0].data.authentication.login.jwt' | xargs echo" + ).strip() - assert auth + assert auth - create = machine.succeed( - "curl -sSf localhost:3000/graphql -X POST " - + "-d @${payloads.content} -H 'Content-Type: application/json' " - + f"-H 'Authorization: Bearer {auth}' " - + "| jq '.[0].data.pages.create.responseResult.succeeded'|xargs echo" - ) - assert create.strip() == "true", f"Expected true, got {create}" + create = machine.succeed( + "curl -sSf localhost:3000/graphql -X POST " + + "-d @${payloads.content} -H 'Content-Type: application/json' " + + f"-H 'Authorization: Bearer {auth}' " + + "| jq '.[0].data.pages.create.responseResult.succeeded'|xargs echo" + ) + assert create.strip() == "true", f"Expected true, got {create}" - machine.shutdown() - ''; - } -) + machine.shutdown() + ''; +} From 389f2fb908916244829381b618e4e699f410a5c5 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:45:36 +0100 Subject: [PATCH 86/95] nixosTests.nginx: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx.nix | 228 ++++++++++++++++++++------------------ 2 files changed, 123 insertions(+), 107 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 9b39343628e2..aaf1d0fc357b 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -797,7 +797,7 @@ in { nfs3 = handleTest ./nfs { version = 3; }; nfs4 = handleTest ./nfs { version = 4; }; nghttpx = handleTest ./nghttpx.nix {}; - nginx = handleTest ./nginx.nix {}; + nginx = runTest ./nginx.nix; nginx-auth = handleTest ./nginx-auth.nix {}; nginx-etag = handleTest ./nginx-etag.nix {}; nginx-etag-compression = handleTest ./nginx-etag-compression.nix {}; diff --git a/nixos/tests/nginx.nix b/nixos/tests/nginx.nix index 8b1f921ec520..476824e3a9ec 100644 --- a/nixos/tests/nginx.nix +++ b/nixos/tests/nginx.nix @@ -4,134 +4,150 @@ # 2. whether the ETag header is properly generated whenever we're serving # files in Nix store paths # 3. nginx doesn't restart on configuration changes (only reloads) -import ./make-test-python.nix ({ pkgs, ... }: { +{ pkgs, ... }: +{ name = "nginx"; meta = with pkgs.lib.maintainers; { - maintainers = [ mbbx6spp danbst ]; + maintainers = [ + mbbx6spp + danbst + ]; }; nodes = { - webserver = { pkgs, lib, ... }: { - services.nginx.enable = true; - services.nginx.commonHttpConfig = '' - log_format ceeformat '@cee: {"status":"$status",' - '"request_time":$request_time,' - '"upstream_response_time":$upstream_response_time,' - '"pipe":"$pipe","bytes_sent":$bytes_sent,' - '"connection":"$connection",' - '"remote_addr":"$remote_addr",' - '"host":"$host",' - '"timestamp":"$time_iso8601",' - '"request":"$request",' - '"http_referer":"$http_referer",' - '"upstream_addr":"$upstream_addr"}'; - ''; - services.nginx.virtualHosts."0.my.test" = { - extraConfig = '' - access_log syslog:server=unix:/dev/log,facility=user,tag=mytag,severity=info ceeformat; - location /favicon.ico { allow all; access_log off; log_not_found off; } + webserver = + { pkgs, lib, ... }: + { + services.nginx.enable = true; + services.nginx.commonHttpConfig = '' + log_format ceeformat '@cee: {"status":"$status",' + '"request_time":$request_time,' + '"upstream_response_time":$upstream_response_time,' + '"pipe":"$pipe","bytes_sent":$bytes_sent,' + '"connection":"$connection",' + '"remote_addr":"$remote_addr",' + '"host":"$host",' + '"timestamp":"$time_iso8601",' + '"request":"$request",' + '"http_referer":"$http_referer",' + '"upstream_addr":"$upstream_addr"}'; ''; - }; + services.nginx.virtualHosts."0.my.test" = { + extraConfig = '' + access_log syslog:server=unix:/dev/log,facility=user,tag=mytag,severity=info ceeformat; + location /favicon.ico { allow all; access_log off; log_not_found off; } + ''; + }; - services.nginx.virtualHosts.localhost = { - root = pkgs.runCommand "testdir" {} '' - mkdir "$out" - echo hello world > "$out/index.html" - ''; - }; - - services.nginx.enableReload = true; - - specialisation.etagSystem.configuration = { services.nginx.virtualHosts.localhost = { - root = lib.mkForce (pkgs.runCommand "testdir2" {} '' + root = pkgs.runCommand "testdir" { } '' mkdir "$out" - echo content changed > "$out/index.html" - ''); + echo hello world > "$out/index.html" + ''; + }; + + services.nginx.enableReload = true; + + specialisation.etagSystem.configuration = { + services.nginx.virtualHosts.localhost = { + root = lib.mkForce ( + pkgs.runCommand "testdir2" { } '' + mkdir "$out" + echo content changed > "$out/index.html" + '' + ); + }; + }; + + specialisation.justReloadSystem.configuration = { + services.nginx.virtualHosts."1.my.test".listen = [ + { + addr = "127.0.0.1"; + port = 8080; + } + ]; + }; + + specialisation.reloadRestartSystem.configuration = { + services.nginx.package = pkgs.nginxMainline; + }; + + specialisation.reloadWithErrorsSystem.configuration = { + services.nginx.package = pkgs.nginxMainline; + services.nginx.virtualHosts."!@$$(#*%".locations."~@#*$*!)".proxyPass = ";;;"; }; }; - - specialisation.justReloadSystem.configuration = { - services.nginx.virtualHosts."1.my.test".listen = [ { addr = "127.0.0.1"; port = 8080; }]; - }; - - specialisation.reloadRestartSystem.configuration = { - services.nginx.package = pkgs.nginxMainline; - }; - - specialisation.reloadWithErrorsSystem.configuration = { - services.nginx.package = pkgs.nginxMainline; - services.nginx.virtualHosts."!@$$(#*%".locations."~@#*$*!)".proxyPass = ";;;"; - }; - }; }; - testScript = { nodes, ... }: let - etagSystem = "${nodes.webserver.system.build.toplevel}/specialisation/etagSystem"; - justReloadSystem = "${nodes.webserver.system.build.toplevel}/specialisation/justReloadSystem"; - reloadRestartSystem = "${nodes.webserver.system.build.toplevel}/specialisation/reloadRestartSystem"; - reloadWithErrorsSystem = "${nodes.webserver.system.build.toplevel}/specialisation/reloadWithErrorsSystem"; - in '' - url = "http://localhost/index.html" + testScript = + { nodes, ... }: + let + etagSystem = "${nodes.webserver.system.build.toplevel}/specialisation/etagSystem"; + justReloadSystem = "${nodes.webserver.system.build.toplevel}/specialisation/justReloadSystem"; + reloadRestartSystem = "${nodes.webserver.system.build.toplevel}/specialisation/reloadRestartSystem"; + reloadWithErrorsSystem = "${nodes.webserver.system.build.toplevel}/specialisation/reloadWithErrorsSystem"; + in + '' + url = "http://localhost/index.html" - def check_etag(): - etag = webserver.succeed( - f'curl -v {url} 2>&1 | sed -n -e "s/^< etag: *//ip"' - ).rstrip() - http_code = webserver.succeed( - f"curl -w '%{{http_code}}' --head --fail -H 'If-None-Match: {etag}' {url}" - ) - assert http_code.split("\n")[-1] == "304" + def check_etag(): + etag = webserver.succeed( + f'curl -v {url} 2>&1 | sed -n -e "s/^< etag: *//ip"' + ).rstrip() + http_code = webserver.succeed( + f"curl -w '%{{http_code}}' --head --fail -H 'If-None-Match: {etag}' {url}" + ) + assert http_code.split("\n")[-1] == "304" - return etag + return etag - def wait_for_nginx_on_port(port): - webserver.wait_for_unit("nginx") - webserver.wait_for_open_port(port) + def wait_for_nginx_on_port(port): + webserver.wait_for_unit("nginx") + webserver.wait_for_open_port(port) - # nginx can be ready before multi-user.target, in which case switching to - # a different configuration might not realize it needs to restart nginx. - webserver.wait_for_unit("multi-user.target") + # nginx can be ready before multi-user.target, in which case switching to + # a different configuration might not realize it needs to restart nginx. + webserver.wait_for_unit("multi-user.target") - wait_for_nginx_on_port(80) + wait_for_nginx_on_port(80) - with subtest("check ETag if serving Nix store paths"): - old_etag = check_etag() - webserver.succeed( - "${etagSystem}/bin/switch-to-configuration test >&2" - ) - wait_for_nginx_on_port(80) - new_etag = check_etag() - assert old_etag != new_etag + with subtest("check ETag if serving Nix store paths"): + old_etag = check_etag() + webserver.succeed( + "${etagSystem}/bin/switch-to-configuration test >&2" + ) + wait_for_nginx_on_port(80) + new_etag = check_etag() + assert old_etag != new_etag - with subtest("config is reloaded on nixos-rebuild switch"): - webserver.succeed( - "${justReloadSystem}/bin/switch-to-configuration test >&2" - ) - wait_for_nginx_on_port(8080) - webserver.fail("journalctl -u nginx | grep -q -i stopped") - webserver.succeed("journalctl -u nginx | grep -q -i reloaded") + with subtest("config is reloaded on nixos-rebuild switch"): + webserver.succeed( + "${justReloadSystem}/bin/switch-to-configuration test >&2" + ) + wait_for_nginx_on_port(8080) + webserver.fail("journalctl -u nginx | grep -q -i stopped") + webserver.succeed("journalctl -u nginx | grep -q -i reloaded") - with subtest("restart when nginx package changes"): - webserver.succeed( - "${reloadRestartSystem}/bin/switch-to-configuration test >&2" - ) - wait_for_nginx_on_port(80) - webserver.succeed("journalctl -u nginx | grep -q -i stopped") + with subtest("restart when nginx package changes"): + webserver.succeed( + "${reloadRestartSystem}/bin/switch-to-configuration test >&2" + ) + wait_for_nginx_on_port(80) + webserver.succeed("journalctl -u nginx | grep -q -i stopped") - with subtest("nixos-rebuild --switch should fail when there are configuration errors"): - webserver.fail( - "${reloadWithErrorsSystem}/bin/switch-to-configuration test >&2" - ) - webserver.succeed("[[ $(systemctl is-failed nginx-config-reload) == failed ]]") - webserver.succeed("[[ $(systemctl is-failed nginx) == active ]]") - # just to make sure operation is idempotent. During development I had a situation - # when first time it shows error, but stops showing it on subsequent rebuilds - webserver.fail( - "${reloadWithErrorsSystem}/bin/switch-to-configuration test >&2" - ) - ''; -}) + with subtest("nixos-rebuild --switch should fail when there are configuration errors"): + webserver.fail( + "${reloadWithErrorsSystem}/bin/switch-to-configuration test >&2" + ) + webserver.succeed("[[ $(systemctl is-failed nginx-config-reload) == failed ]]") + webserver.succeed("[[ $(systemctl is-failed nginx) == active ]]") + # just to make sure operation is idempotent. During development I had a situation + # when first time it shows error, but stops showing it on subsequent rebuilds + webserver.fail( + "${reloadWithErrorsSystem}/bin/switch-to-configuration test >&2" + ) + ''; +} From fa5141395f7866b91a4aeacfcdbe168ac9bb571a Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:47:25 +0100 Subject: [PATCH 87/95] nixosTests.nginx-auth: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx-auth.nix | 90 +++++++++++++++++++------------------- 2 files changed, 45 insertions(+), 47 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index aaf1d0fc357b..d1105cca178e 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -798,7 +798,7 @@ in { nfs4 = handleTest ./nfs { version = 4; }; nghttpx = handleTest ./nghttpx.nix {}; nginx = runTest ./nginx.nix; - nginx-auth = handleTest ./nginx-auth.nix {}; + nginx-auth = runTest ./nginx-auth.nix; nginx-etag = handleTest ./nginx-etag.nix {}; nginx-etag-compression = handleTest ./nginx-etag-compression.nix {}; nginx-globalredirect = handleTest ./nginx-globalredirect.nix {}; diff --git a/nixos/tests/nginx-auth.nix b/nixos/tests/nginx-auth.nix index eb04b2571941..1042eee2e0ab 100644 --- a/nixos/tests/nginx-auth.nix +++ b/nixos/tests/nginx-auth.nix @@ -1,54 +1,52 @@ -import ./make-test-python.nix ( - { pkgs, ... }: - { - name = "nginx-auth"; +{ pkgs, ... }: +{ + name = "nginx-auth"; - nodes = { - webserver = - { pkgs, lib, ... }: - { - services.nginx = - let - root = pkgs.runCommand "testdir" { } '' - mkdir "$out" - echo hello world > "$out/index.html" - ''; - in - { - enable = true; + nodes = { + webserver = + { pkgs, lib, ... }: + { + services.nginx = + let + root = pkgs.runCommand "testdir" { } '' + mkdir "$out" + echo hello world > "$out/index.html" + ''; + in + { + enable = true; - virtualHosts.lockedroot = { - inherit root; - basicAuth.alice = "pwofa"; - }; + virtualHosts.lockedroot = { + inherit root; + basicAuth.alice = "pwofa"; + }; - virtualHosts.lockedsubdir = { - inherit root; - locations."/sublocation/" = { - alias = "${root}/"; - basicAuth.bob = "pwofb"; - }; + virtualHosts.lockedsubdir = { + inherit root; + locations."/sublocation/" = { + alias = "${root}/"; + basicAuth.bob = "pwofb"; }; }; - }; - }; + }; + }; + }; - testScript = '' - webserver.wait_for_unit("nginx") - webserver.wait_for_open_port(80) + testScript = '' + webserver.wait_for_unit("nginx") + webserver.wait_for_open_port(80) - webserver.fail("curl --fail --resolve lockedroot:80:127.0.0.1 http://lockedroot") - webserver.succeed( - "curl --fail --resolve lockedroot:80:127.0.0.1 http://alice:pwofa@lockedroot" - ) + webserver.fail("curl --fail --resolve lockedroot:80:127.0.0.1 http://lockedroot") + webserver.succeed( + "curl --fail --resolve lockedroot:80:127.0.0.1 http://alice:pwofa@lockedroot" + ) - webserver.succeed("curl --fail --resolve lockedsubdir:80:127.0.0.1 http://lockedsubdir") - webserver.fail( - "curl --fail --resolve lockedsubdir:80:127.0.0.1 http://lockedsubdir/sublocation/index.html" - ) - webserver.succeed( - "curl --fail --resolve lockedsubdir:80:127.0.0.1 http://bob:pwofb@lockedsubdir/sublocation/index.html" - ) - ''; - } -) + webserver.succeed("curl --fail --resolve lockedsubdir:80:127.0.0.1 http://lockedsubdir") + webserver.fail( + "curl --fail --resolve lockedsubdir:80:127.0.0.1 http://lockedsubdir/sublocation/index.html" + ) + webserver.succeed( + "curl --fail --resolve lockedsubdir:80:127.0.0.1 http://bob:pwofb@lockedsubdir/sublocation/index.html" + ) + ''; +} From a186de0fa1ce0d45cf92d588653e801bcce0cd04 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:48:17 +0100 Subject: [PATCH 88/95] nixosTests.nginx-etag: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx-etag.nix | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index d1105cca178e..c7b7954ddc82 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -799,7 +799,7 @@ in { nghttpx = handleTest ./nghttpx.nix {}; nginx = runTest ./nginx.nix; nginx-auth = runTest ./nginx-auth.nix; - nginx-etag = handleTest ./nginx-etag.nix {}; + nginx-etag = runTest ./nginx-etag.nix; nginx-etag-compression = handleTest ./nginx-etag-compression.nix {}; nginx-globalredirect = handleTest ./nginx-globalredirect.nix {}; nginx-http3 = handleTest ./nginx-http3.nix {}; diff --git a/nixos/tests/nginx-etag.nix b/nixos/tests/nginx-etag.nix index e1154466d796..88aaefd0e476 100644 --- a/nixos/tests/nginx-etag.nix +++ b/nixos/tests/nginx-etag.nix @@ -1,4 +1,5 @@ -import ./make-test-python.nix { +{ ... }: +{ name = "nginx-etag"; nodes = { @@ -85,7 +86,7 @@ import ./make-test-python.nix { testScript = { nodes, ... }: let - inherit (nodes.server.config.system.build) toplevel; + inherit (nodes.server.system.build) toplevel; newSystem = "${toplevel}/specialisation/pass-checks"; in '' From 8638fa379f9965190c6112537de8381fe468fb4d Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:49:32 +0100 Subject: [PATCH 89/95] nixosTests.nginx-etag-compression: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx-etag-compression.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index c7b7954ddc82..ab4be5b9fa5a 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -800,7 +800,7 @@ in { nginx = runTest ./nginx.nix; nginx-auth = runTest ./nginx-auth.nix; nginx-etag = runTest ./nginx-etag.nix; - nginx-etag-compression = handleTest ./nginx-etag-compression.nix {}; + nginx-etag-compression = runTest ./nginx-etag-compression.nix; nginx-globalredirect = handleTest ./nginx-globalredirect.nix {}; nginx-http3 = handleTest ./nginx-http3.nix {}; nginx-mime = handleTest ./nginx-mime.nix {}; diff --git a/nixos/tests/nginx-etag-compression.nix b/nixos/tests/nginx-etag-compression.nix index b012c8b1c15c..a194c6fd26b4 100644 --- a/nixos/tests/nginx-etag-compression.nix +++ b/nixos/tests/nginx-etag-compression.nix @@ -1,4 +1,5 @@ -import ./make-test-python.nix { +{ ... }: +{ name = "nginx-etag-compression"; nodes.machine = From 69df9598cb29bcef8903ba0ba083b01212a5396d Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:50:31 +0100 Subject: [PATCH 90/95] nixosTests.nginx-globalredirect: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx-globalredirect.nix | 46 +++++++++++++--------------- 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index ab4be5b9fa5a..dc07c5e2da65 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -801,7 +801,7 @@ in { nginx-auth = runTest ./nginx-auth.nix; nginx-etag = runTest ./nginx-etag.nix; nginx-etag-compression = runTest ./nginx-etag-compression.nix; - nginx-globalredirect = handleTest ./nginx-globalredirect.nix {}; + nginx-globalredirect = runTest ./nginx-globalredirect.nix; nginx-http3 = handleTest ./nginx-http3.nix {}; nginx-mime = handleTest ./nginx-mime.nix {}; nginx-modsecurity = handleTest ./nginx-modsecurity.nix {}; diff --git a/nixos/tests/nginx-globalredirect.nix b/nixos/tests/nginx-globalredirect.nix index 42dda6ccaab5..ba1c0623593b 100644 --- a/nixos/tests/nginx-globalredirect.nix +++ b/nixos/tests/nginx-globalredirect.nix @@ -1,29 +1,27 @@ -import ./make-test-python.nix ( - { pkgs, ... }: - { - name = "nginx-globalredirect"; +{ ... }: +{ + name = "nginx-globalredirect"; - nodes = { - webserver = - { pkgs, lib, ... }: - { - services.nginx = { - enable = true; - virtualHosts.localhost = { - globalRedirect = "other.example.com"; - # Add an exception - locations."/noredirect".return = "200 'foo'"; - }; + nodes = { + webserver = + { pkgs, lib, ... }: + { + services.nginx = { + enable = true; + virtualHosts.localhost = { + globalRedirect = "other.example.com"; + # Add an exception + locations."/noredirect".return = "200 'foo'"; }; }; - }; + }; + }; - testScript = '' - webserver.wait_for_unit("nginx") - webserver.wait_for_open_port(80) + testScript = '' + webserver.wait_for_unit("nginx") + webserver.wait_for_open_port(80) - webserver.succeed("curl --fail -si http://localhost/alf | grep '^Location:.*/alf'") - webserver.fail("curl --fail -si http://localhost/noredirect | grep '^Location:'") - ''; - } -) + webserver.succeed("curl --fail -si http://localhost/alf | grep '^Location:.*/alf'") + webserver.fail("curl --fail -si http://localhost/noredirect | grep '^Location:'") + ''; +} From af2b019d25c3712ade22985a1741354aeb3b12eb Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:51:25 +0100 Subject: [PATCH 91/95] nixosTests.nginx-mime: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx-mime.nix | 44 ++++++++++++++++++-------------------- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index dc07c5e2da65..7a3fb5e5ebe8 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -803,7 +803,7 @@ in { nginx-etag-compression = runTest ./nginx-etag-compression.nix; nginx-globalredirect = runTest ./nginx-globalredirect.nix; nginx-http3 = handleTest ./nginx-http3.nix {}; - nginx-mime = handleTest ./nginx-mime.nix {}; + nginx-mime = runTest ./nginx-mime.nix; nginx-modsecurity = handleTest ./nginx-modsecurity.nix {}; nginx-moreheaders = handleTest ./nginx-moreheaders.nix {}; nginx-njs = handleTest ./nginx-njs.nix {}; diff --git a/nixos/tests/nginx-mime.nix b/nixos/tests/nginx-mime.nix index 157b9f13f142..9752fc01370b 100644 --- a/nixos/tests/nginx-mime.nix +++ b/nixos/tests/nginx-mime.nix @@ -1,26 +1,24 @@ -import ./make-test-python.nix ( - { lib, pkgs, ... }: - { - name = "nginx-mime"; - meta.maintainers = with pkgs.lib.maintainers; [ izorkin ]; +{ lib, pkgs, ... }: +{ + name = "nginx-mime"; + meta.maintainers = with pkgs.lib.maintainers; [ izorkin ]; - nodes = { - server = - { pkgs, ... }: - { - services.nginx = { - enable = true; - virtualHosts."localhost" = { }; - }; + nodes = { + server = + { pkgs, ... }: + { + services.nginx = { + enable = true; + virtualHosts."localhost" = { }; }; - }; + }; + }; - testScript = '' - server.start() - server.wait_for_unit("nginx") - # Check optimal size of types_hash - server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'") - server.shutdown() - ''; - } -) + testScript = '' + server.start() + server.wait_for_unit("nginx") + # Check optimal size of types_hash + server.fail("journalctl --unit nginx --grep 'could not build optimal types_hash'") + server.shutdown() + ''; +} From 9a3d7473c4815f5d0189263e983d0eef0639c795 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:52:25 +0100 Subject: [PATCH 92/95] nixosTests.nginx-modsecurity: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx-modsecurity.nix | 92 +++++++++++++++---------------- 2 files changed, 46 insertions(+), 48 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7a3fb5e5ebe8..2e4b011ea1bb 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -804,7 +804,7 @@ in { nginx-globalredirect = runTest ./nginx-globalredirect.nix; nginx-http3 = handleTest ./nginx-http3.nix {}; nginx-mime = runTest ./nginx-mime.nix; - nginx-modsecurity = handleTest ./nginx-modsecurity.nix {}; + nginx-modsecurity = runTest ./nginx-modsecurity.nix; nginx-moreheaders = handleTest ./nginx-moreheaders.nix {}; nginx-njs = handleTest ./nginx-njs.nix {}; nginx-proxyprotocol = handleTest ./nginx-proxyprotocol {}; diff --git a/nixos/tests/nginx-modsecurity.nix b/nixos/tests/nginx-modsecurity.nix index 892180f1cf73..f6aa58b79859 100644 --- a/nixos/tests/nginx-modsecurity.nix +++ b/nixos/tests/nginx-modsecurity.nix @@ -1,51 +1,49 @@ -import ./make-test-python.nix ( - { pkgs, lib, ... }: - { - name = "nginx-modsecurity"; +{ ... }: +{ + name = "nginx-modsecurity"; - nodes.machine = - { - config, - lib, - pkgs, - ... - }: - { - services.nginx = { - enable = true; - additionalModules = [ pkgs.nginxModules.modsecurity ]; - virtualHosts.localhost = - let - modsecurity_conf = pkgs.writeText "modsecurity.conf" '' - SecRuleEngine On - SecDefaultAction "phase:1,log,auditlog,deny,status:403" - SecDefaultAction "phase:2,log,auditlog,deny,status:403" - SecRule REQUEST_METHOD "HEAD" "id:100, phase:1, block" - SecRule REQUEST_FILENAME "secret.html" "id:101, phase:2, block" - ''; - testroot = pkgs.runCommand "testroot" { } '' - mkdir -p $out - echo "Hello World!" > $out/index.html - echo "s3cret" > $out/secret.html - ''; - in - { - root = testroot; - extraConfig = '' - modsecurity on; - modsecurity_rules_file ${modsecurity_conf}; - ''; - }; - }; + nodes.machine = + { + config, + lib, + pkgs, + ... + }: + { + services.nginx = { + enable = true; + additionalModules = [ pkgs.nginxModules.modsecurity ]; + virtualHosts.localhost = + let + modsecurity_conf = pkgs.writeText "modsecurity.conf" '' + SecRuleEngine On + SecDefaultAction "phase:1,log,auditlog,deny,status:403" + SecDefaultAction "phase:2,log,auditlog,deny,status:403" + SecRule REQUEST_METHOD "HEAD" "id:100, phase:1, block" + SecRule REQUEST_FILENAME "secret.html" "id:101, phase:2, block" + ''; + testroot = pkgs.runCommand "testroot" { } '' + mkdir -p $out + echo "Hello World!" > $out/index.html + echo "s3cret" > $out/secret.html + ''; + in + { + root = testroot; + extraConfig = '' + modsecurity on; + modsecurity_rules_file ${modsecurity_conf}; + ''; + }; }; - testScript = '' - machine.wait_for_unit("nginx") + }; + testScript = '' + machine.wait_for_unit("nginx") - response = machine.wait_until_succeeds("curl -fvvv -s http://127.0.0.1/") - assert "Hello World!" in response + response = machine.wait_until_succeeds("curl -fvvv -s http://127.0.0.1/") + assert "Hello World!" in response - machine.fail("curl -fvvv -X HEAD -s http://127.0.0.1/") - machine.fail("curl -fvvv -s http://127.0.0.1/secret.html") - ''; - } -) + machine.fail("curl -fvvv -X HEAD -s http://127.0.0.1/") + machine.fail("curl -fvvv -s http://127.0.0.1/secret.html") + ''; +} From 1e0be03fb6e447b8c1bb9db4585ed1335933ba75 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sat, 29 Mar 2025 23:53:26 +0100 Subject: [PATCH 93/95] nixosTests.nginx-moreheaders: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/nginx-moreheaders.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 2e4b011ea1bb..d17e1deacd8b 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -805,7 +805,7 @@ in { nginx-http3 = handleTest ./nginx-http3.nix {}; nginx-mime = runTest ./nginx-mime.nix; nginx-modsecurity = runTest ./nginx-modsecurity.nix; - nginx-moreheaders = handleTest ./nginx-moreheaders.nix {}; + nginx-moreheaders = runTest ./nginx-moreheaders.nix; nginx-njs = handleTest ./nginx-njs.nix {}; nginx-proxyprotocol = handleTest ./nginx-proxyprotocol {}; nginx-pubhtml = handleTest ./nginx-pubhtml.nix {}; diff --git a/nixos/tests/nginx-moreheaders.nix b/nixos/tests/nginx-moreheaders.nix index 34bbb211dc9d..446f0ed179e2 100644 --- a/nixos/tests/nginx-moreheaders.nix +++ b/nixos/tests/nginx-moreheaders.nix @@ -1,4 +1,5 @@ -import ./make-test-python.nix { +{ ... }: +{ name = "nginx-more-headers"; nodes = { From c965960d60791d17c4269eeb365323d4ba04a566 Mon Sep 17 00:00:00 2001 From: Marcel Novotny Date: Sun, 30 Mar 2025 00:48:54 +0100 Subject: [PATCH 94/95] maintainers/team-list: add novmar to jitsi team --- maintainers/maintainer-list.nix | 6 ++++++ maintainers/team-list.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index ca469f56f0e2..a970f7ac4387 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17367,6 +17367,12 @@ githubId = 7191115; name = "Nova Leary"; }; + novmar = { + email = "novotny@marnov.cz"; + github = "novmar"; + githubId = 26750149; + name = "Marcel Novotny"; + }; novoxd = { email = "radnovox@gmail.com"; github = "novoxd"; diff --git a/maintainers/team-list.nix b/maintainers/team-list.nix index 842a5960503e..f47833ec5c62 100644 --- a/maintainers/team-list.nix +++ b/maintainers/team-list.nix @@ -597,6 +597,7 @@ with lib.maintainers; jitsi = { members = [ cleeyv + novmar ryantm lassulus yayayayaka From 48e6184ddf9708c76aa97525589fbd941d3d94a1 Mon Sep 17 00:00:00 2001 From: Piotr Kwiecinski <2151333+piotrkwiecinski@users.noreply.github.com> Date: Sun, 30 Mar 2025 01:05:50 +0100 Subject: [PATCH 95/95] nixosTests.dolibarr: migrate to runTest Part of #386873 --- nixos/tests/all-tests.nix | 2 +- nixos/tests/dolibarr.nix | 110 +++++++++++++++++++------------------- 2 files changed, 55 insertions(+), 57 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index f459cf4611d2..98240a9f15e7 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -342,7 +342,7 @@ in { documentation = pkgs.callPackage ../modules/misc/documentation/test.nix { inherit nixosLib; }; doh-proxy-rust = handleTest ./doh-proxy-rust.nix {}; dokuwiki = runTest ./dokuwiki.nix; - dolibarr = handleTest ./dolibarr.nix {}; + dolibarr = runTest ./dolibarr.nix; domination = handleTest ./domination.nix {}; dovecot = handleTest ./dovecot.nix {}; drawterm = discoverTests (import ./drawterm.nix); diff --git a/nixos/tests/dolibarr.nix b/nixos/tests/dolibarr.nix index 5d7098f763f5..5a67a4a66e77 100644 --- a/nixos/tests/dolibarr.nix +++ b/nixos/tests/dolibarr.nix @@ -1,62 +1,60 @@ -import ./make-test-python.nix ( - { pkgs, lib, ... }: - { - name = "dolibarr"; - meta.maintainers = [ ]; +{ ... }: +{ + name = "dolibarr"; + meta.maintainers = [ ]; - nodes.machine = - { ... }: - { - services.dolibarr = { - enable = true; - domain = "localhost"; - nginx = { - forceSSL = false; - enableACME = false; - }; + nodes.machine = + { ... }: + { + services.dolibarr = { + enable = true; + domain = "localhost"; + nginx = { + forceSSL = false; + enableACME = false; }; - - networking.firewall.allowedTCPPorts = [ 80 ]; }; - testScript = '' - from html.parser import HTMLParser - start_all() + networking.firewall.allowedTCPPorts = [ 80 ]; + }; - csrf_token = None - class TokenParser(HTMLParser): - def handle_starttag(self, tag, attrs): - attrs = dict(attrs) # attrs is an assoc list originally - if tag == 'input' and attrs.get('name') == 'token': - csrf_token = attrs.get('value') - print(f'[+] Caught CSRF token: {csrf_token}') - def handle_endtag(self, tag): pass - def handle_data(self, data): pass + testScript = '' + from html.parser import HTMLParser + start_all() - machine.wait_for_unit("phpfpm-dolibarr.service") - machine.wait_for_unit("nginx.service") - machine.wait_for_open_port(80) - # Sanity checks on URLs. - # machine.succeed("curl -fL http://localhost/index.php") - # machine.succeed("curl -fL http://localhost/") - # Perform installation. - machine.succeed('curl -fL -X POST http://localhost/install/check.php -F selectlang=auto') - machine.succeed('curl -fL -X POST http://localhost/install/fileconf.php -F selectlang=auto') - # First time is to write the configuration file correctly. - machine.succeed('curl -fL -X POST http://localhost/install/step1.php -F "testpost=ok" -F "action=set" -F "selectlang=auto"') - # Now, we have a proper conf.php in $stateDir. - assert 'nixos' in machine.succeed("cat /var/lib/dolibarr/conf.php") - machine.succeed('curl -fL -X POST http://localhost/install/step2.php --data "testpost=ok&action=set&dolibarr_main_db_character_set=utf8&dolibarr_main_db_collation=utf8_unicode_ci&selectlang=auto"') - machine.succeed('curl -fL -X POST http://localhost/install/step4.php --data "testpost=ok&action=set&selectlang=auto"') - machine.succeed('curl -fL -X POST http://localhost/install/step5.php --data "testpost=ok&action=set&login=root&pass=hunter2&pass_verif=hunter2&selectlang=auto"') - # Now, we have installed the machine, let's verify we still have the right configuration. - assert 'nixos' in machine.succeed("cat /var/lib/dolibarr/conf.php") - # We do not want any redirect now as we have installed the machine. - machine.succeed('curl -f -X GET http://localhost') - # Test authentication to the webservice. - parser = TokenParser() - parser.feed(machine.succeed('curl -f -X GET http://localhost/index.php?mainmenu=login&username=root')) - machine.succeed(f'curl -f -X POST http://localhost/index.php?mainmenu=login&token={csrf_token}&username=root&password=hunter2') - ''; - } -) + csrf_token = None + class TokenParser(HTMLParser): + def handle_starttag(self, tag, attrs): + attrs = dict(attrs) # attrs is an assoc list originally + if tag == 'input' and attrs.get('name') == 'token': + csrf_token = attrs.get('value') + print(f'[+] Caught CSRF token: {csrf_token}') + def handle_endtag(self, tag): pass + def handle_data(self, data): pass + + machine.wait_for_unit("phpfpm-dolibarr.service") + machine.wait_for_unit("nginx.service") + machine.wait_for_open_port(80) + # Sanity checks on URLs. + # machine.succeed("curl -fL http://localhost/index.php") + # machine.succeed("curl -fL http://localhost/") + # Perform installation. + machine.succeed('curl -fL -X POST http://localhost/install/check.php -F selectlang=auto') + machine.succeed('curl -fL -X POST http://localhost/install/fileconf.php -F selectlang=auto') + # First time is to write the configuration file correctly. + machine.succeed('curl -fL -X POST http://localhost/install/step1.php -F "testpost=ok" -F "action=set" -F "selectlang=auto"') + # Now, we have a proper conf.php in $stateDir. + assert 'nixos' in machine.succeed("cat /var/lib/dolibarr/conf.php") + machine.succeed('curl -fL -X POST http://localhost/install/step2.php --data "testpost=ok&action=set&dolibarr_main_db_character_set=utf8&dolibarr_main_db_collation=utf8_unicode_ci&selectlang=auto"') + machine.succeed('curl -fL -X POST http://localhost/install/step4.php --data "testpost=ok&action=set&selectlang=auto"') + machine.succeed('curl -fL -X POST http://localhost/install/step5.php --data "testpost=ok&action=set&login=root&pass=hunter2&pass_verif=hunter2&selectlang=auto"') + # Now, we have installed the machine, let's verify we still have the right configuration. + assert 'nixos' in machine.succeed("cat /var/lib/dolibarr/conf.php") + # We do not want any redirect now as we have installed the machine. + machine.succeed('curl -f -X GET http://localhost') + # Test authentication to the webservice. + parser = TokenParser() + parser.feed(machine.succeed('curl -f -X GET http://localhost/index.php?mainmenu=login&username=root')) + machine.succeed(f'curl -f -X POST http://localhost/index.php?mainmenu=login&token={csrf_token}&username=root&password=hunter2') + ''; +}