From 34941a6aa430580d3ebda1f6cb17f58fa13d9ae8 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 18 Nov 2024 16:09:35 -0500 Subject: [PATCH 01/46] step-ca: 0.27.5 -> 0.28.0 Diff: https://github.com/smallstep/certificates/compare/refs/tags/v0.27.5...v0.28.0 Changelog: https://github.com/smallstep/certificates/releases/tag/v0.28.0 --- pkgs/by-name/st/step-ca/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/st/step-ca/package.nix b/pkgs/by-name/st/step-ca/package.nix index 911c479c7189..355ca94f8334 100644 --- a/pkgs/by-name/st/step-ca/package.nix +++ b/pkgs/by-name/st/step-ca/package.nix @@ -13,16 +13,16 @@ buildGoModule rec { pname = "step-ca"; - version = "0.27.5"; + version = "0.28.0"; src = fetchFromGitHub { owner = "smallstep"; repo = "certificates"; rev = "refs/tags/v${version}"; - hash = "sha256-0KIAO9KPP9Lrrw9IIaRdlmmfJ0mwQK0ne//Zofu3TfE="; + hash = "sha256-FmhfsfRq6pxDhGDsNqY2IQczHk8NYEdxNaN2hfbhDYw="; }; - vendorHash = "sha256-yi4mbuCaT6ydnZwhqqhqMI7bF6IwHm0UqfR5JM81/Ik="; + vendorHash = "sha256-ZziypdQJaQHdL5/bcX6P5VHGVtbcl+twtlOg7DlmLZM="; ldflags = [ "-w" From 21dea5914a26d212c263da3620db79e47dd4646b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 19 Nov 2024 06:54:14 +0000 Subject: [PATCH 02/46] waypipe: 0.9.1 -> 0.9.2 Changes: https://gitlab.freedesktop.org/mstoeckl/waypipe/-/releases/v0.9.2 --- pkgs/by-name/wa/waypipe/package.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/wa/waypipe/package.nix b/pkgs/by-name/wa/waypipe/package.nix index 122f3f6bdf1b..cef986ddae01 100644 --- a/pkgs/by-name/wa/waypipe/package.nix +++ b/pkgs/by-name/wa/waypipe/package.nix @@ -1,26 +1,29 @@ { lib, stdenv, fetchFromGitLab , meson, ninja, pkg-config, scdoc , mesa, lz4, zstd, ffmpeg, libva +, wayland, wayland-scanner }: stdenv.mkDerivation rec { pname = "waypipe"; - version = "0.9.1"; + version = "0.9.2"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "mstoeckl"; repo = "waypipe"; rev = "v${version}"; - hash = "sha256-4I8ohllhIA3/LNgFAKH5GwwHKO5QKNex0+Be0OOgR14="; + hash = "sha256-DW+WWwuav0lxnoV55L8RrX0enRURRnHMljtwEC0+9t4="; }; strictDeps = true; depsBuildBuild = [ pkg-config ]; - nativeBuildInputs = [ meson ninja pkg-config scdoc ]; + nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ]; buildInputs = [ # Optional dependencies: mesa lz4 zstd ffmpeg libva + + wayland ]; meta = with lib; { From 4f681fdcdddbf722c7362146656181091bd3641d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 19 Nov 2024 14:42:03 +0000 Subject: [PATCH 03/46] amiri: 1.000 -> 1.001 --- pkgs/by-name/am/amiri/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/am/amiri/package.nix b/pkgs/by-name/am/amiri/package.nix index de65e7fb18b7..8f2985952c65 100644 --- a/pkgs/by-name/am/amiri/package.nix +++ b/pkgs/by-name/am/amiri/package.nix @@ -2,11 +2,11 @@ stdenvNoCC.mkDerivation rec { pname = "amiri"; - version = "1.000"; + version = "1.001"; src = fetchzip { url = "https://github.com/alif-type/amiri/releases/download/${version}/Amiri-${version}.zip"; - hash = "sha256-WXxKLYIIKe01WWZrI1aLOv65wRgn7aqHl6Codf4foVw="; + hash = "sha256-YwiDY5/Ty5Pwj3d8+UafUNLVZ3omRtFRWQCLn2RkheM="; }; installPhase = '' From 6e397f45c204e2b713ed063966287dc9144d28a1 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 20 Nov 2024 10:33:56 +0900 Subject: [PATCH 04/46] rainfrog: 0.2.9 -> 0.2.10 --- pkgs/by-name/ra/rainfrog/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ra/rainfrog/package.nix b/pkgs/by-name/ra/rainfrog/package.nix index 11d0e510a960..38e86fa8e56a 100644 --- a/pkgs/by-name/ra/rainfrog/package.nix +++ b/pkgs/by-name/ra/rainfrog/package.nix @@ -7,7 +7,7 @@ stdenv, }: let - version = "0.2.9"; + version = "0.2.10"; in rustPlatform.buildRustPackage { inherit version; @@ -17,10 +17,10 @@ rustPlatform.buildRustPackage { owner = "achristmascarl"; repo = "rainfrog"; rev = "refs/tags/v${version}"; - hash = "sha256-PiJRVf+rpYFWRmys7Ca2lLfe5F9/ksIzkpKs6CQWu+A="; + hash = "sha256-hIhg6OeWCp27OPHg10ifjsSvPrBHQMnn4P3CmyYmdDk="; }; - cargoHash = "sha256-L0gXxV/3+5oRV/Ipm4sRqr9dh9AEChWhtILO3PaNxYY="; + cargoHash = "sha256-MYqVo+7xQzF55rEqUJNcB1SAEoxowHl+vOINCyr59nA="; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin ( with darwin.apple_sdk.frameworks; From 009bee2d92ae7204fff2056b105472c3ddf4db4d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 20 Nov 2024 06:39:22 +0000 Subject: [PATCH 05/46] ncdu: 2.6 -> 2.7 Changes: https://dev.yorhel.nl/ncdu/changes2 --- pkgs/tools/misc/ncdu/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/ncdu/default.nix b/pkgs/tools/misc/ncdu/default.nix index d3b5ad2e4a43..860ba48900d1 100644 --- a/pkgs/tools/misc/ncdu/default.nix +++ b/pkgs/tools/misc/ncdu/default.nix @@ -12,11 +12,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "ncdu"; - version = "2.6"; + version = "2.7"; src = fetchurl { url = "https://dev.yorhel.nl/download/ncdu-${finalAttrs.version}.tar.gz"; - hash = "sha256-P0cevTi1bmDauAwn468dgmZmlX8C2ehBmxSdqvet5QU="; + hash = "sha256-shjMFKK7mFLPlR204hrsiYDnqMOsoJfjqjQX8g65MAA="; }; nativeBuildInputs = [ From 58600bbcf92de75d1820c7713cecf500910b4148 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 20 Nov 2024 17:02:37 +0000 Subject: [PATCH 06/46] notepad-next: 0.8 -> 0.9 --- pkgs/applications/editors/notepad-next/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/notepad-next/default.nix b/pkgs/applications/editors/notepad-next/default.nix index 2a20691351d1..aecdc76d9c68 100644 --- a/pkgs/applications/editors/notepad-next/default.nix +++ b/pkgs/applications/editors/notepad-next/default.nix @@ -2,13 +2,13 @@ mkDerivation rec { pname = "notepad-next"; - version = "0.8"; + version = "0.9"; src = fetchFromGitHub { owner = "dail8859"; repo = "NotepadNext"; rev = "v${version}"; - hash = "sha256-fwHTsTKcVaeIv0NQQBjzfXscGDfXr3X/yH07YnYh3fU="; + hash = "sha256-3BCLPY104zxALd3wFH8e9PitjmFbPcOfKsLqXowXqnY="; # External dependencies - https://github.com/dail8859/NotepadNext/issues/135 fetchSubmodules = true; }; From 4814bb478f7cf133b9b596927eaec9c8bb68d850 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 20 Nov 2024 20:36:07 +0000 Subject: [PATCH 07/46] seclists: 2024.3 -> 2024.4 --- pkgs/by-name/se/seclists/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/se/seclists/package.nix b/pkgs/by-name/se/seclists/package.nix index 8ed7f7b15b47..f16eb981f109 100644 --- a/pkgs/by-name/se/seclists/package.nix +++ b/pkgs/by-name/se/seclists/package.nix @@ -5,13 +5,13 @@ stdenvNoCC.mkDerivation { pname = "seclists"; - version = "2024.3"; + version = "2024.4"; src = fetchFromGitHub { owner = "danielmiessler"; repo = "SecLists"; - rev = "2024.3"; - hash = "sha256-Ffd4jpV8F6rtMQVqsu+8X/QU5rwbKXv0zkOCmUuhP8I="; + rev = "2024.4"; + hash = "sha256-mGXCMmHbNKxXNDcfr0rtsyfmX4tygeIN5XKQYip5O8Y="; }; installPhase = '' From ff51f58e1d14f6a66c37e2d523e77ab9a55144d3 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 5 Nov 2024 21:16:42 +0100 Subject: [PATCH 08/46] tesseract: format --- .../graphics/tesseract/tesseract5.nix | 50 ++++++++++++------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/pkgs/applications/graphics/tesseract/tesseract5.nix b/pkgs/applications/graphics/tesseract/tesseract5.nix index a8563a09e4c0..9edae016961e 100644 --- a/pkgs/applications/graphics/tesseract/tesseract5.nix +++ b/pkgs/applications/graphics/tesseract/tesseract5.nix @@ -1,6 +1,20 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config -, curl, leptonica, libarchive, libpng, libtiff, icu, pango, opencl-headers -, Accelerate, CoreGraphics, CoreVideo +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + pkg-config, + curl, + leptonica, + libarchive, + libpng, + libtiff, + icu, + pango, + opencl-headers, + Accelerate, + CoreGraphics, + CoreVideo, }: stdenv.mkDerivation rec { @@ -21,20 +35,22 @@ stdenv.mkDerivation rec { autoreconfHook ]; - buildInputs = [ - curl - leptonica - libarchive - libpng - libtiff - icu - pango - opencl-headers - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - Accelerate - CoreGraphics - CoreVideo - ]; + buildInputs = + [ + curl + leptonica + libarchive + libpng + libtiff + icu + pango + opencl-headers + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + Accelerate + CoreGraphics + CoreVideo + ]; meta = { description = "OCR engine"; From 936c762b8e8c3907109af8e9203896baefaa8c58 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 15 Nov 2024 18:01:40 +0100 Subject: [PATCH 09/46] tesseract: add patrickdag as maintainer --- pkgs/applications/graphics/tesseract/tesseract5.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/tesseract/tesseract5.nix b/pkgs/applications/graphics/tesseract/tesseract5.nix index 9edae016961e..4915c759287a 100644 --- a/pkgs/applications/graphics/tesseract/tesseract5.nix +++ b/pkgs/applications/graphics/tesseract/tesseract5.nix @@ -56,7 +56,7 @@ stdenv.mkDerivation rec { description = "OCR engine"; homepage = "https://github.com/tesseract-ocr/tesseract"; license = lib.licenses.asl20; - maintainers = [ ]; + maintainers = with lib.maintainers; [ patrickdag ]; platforms = lib.platforms.unix; mainProgram = "tesseract"; }; From 494d5c1958a9e27043bf3c3341fea01b107cd91b Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 22 Nov 2024 14:49:21 +0100 Subject: [PATCH 10/46] pytesseract: disable tests broken on tesseract 5.5.0 --- pkgs/development/python-modules/pytesseract/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pytesseract/default.nix b/pkgs/development/python-modules/pytesseract/default.nix index 23a26fd52a1b..a12730c9f584 100644 --- a/pkgs/development/python-modules/pytesseract/default.nix +++ b/pkgs/development/python-modules/pytesseract/default.nix @@ -37,6 +37,11 @@ buildPythonPackage rec { packaging pillow ]; + disabledTests = [ + # https://github.com/madmaze/pytesseract/pull/559 + "incorrect_tessdata_dir" + "invalid_tessdata_dir" + ]; nativeCheckInputs = [ pytestCheckHook ]; From efad6261977a853c42bc262e695fa11f6c56b900 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 5 Nov 2024 21:20:51 +0100 Subject: [PATCH 11/46] tesseract: 5.3.4 -> 5.5.0 --- pkgs/applications/graphics/tesseract/tesseract5.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/graphics/tesseract/tesseract5.nix b/pkgs/applications/graphics/tesseract/tesseract5.nix index 4915c759287a..22059873e4bb 100644 --- a/pkgs/applications/graphics/tesseract/tesseract5.nix +++ b/pkgs/applications/graphics/tesseract/tesseract5.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + nix-update-script, autoreconfHook, pkg-config, curl, @@ -11,7 +12,6 @@ libtiff, icu, pango, - opencl-headers, Accelerate, CoreGraphics, CoreVideo, @@ -19,13 +19,13 @@ stdenv.mkDerivation rec { pname = "tesseract"; - version = "5.3.4"; + version = "5.5.0"; src = fetchFromGitHub { owner = "tesseract-ocr"; repo = "tesseract"; rev = version; - sha256 = "sha256-IKxzDhSM+BPsKyQP3mADAkpRSGHs4OmdFIA+Txt084M="; + sha256 = "sha256-qyckAQZs3gR1NBqWgE+COSKXhv3kPF+iHVQrt6OPi8s="; }; enableParallelBuilding = true; @@ -44,7 +44,6 @@ stdenv.mkDerivation rec { libtiff icu pango - opencl-headers ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Accelerate @@ -52,6 +51,7 @@ stdenv.mkDerivation rec { CoreVideo ]; + passthru.updateScript = nix-update-script { }; meta = { description = "OCR engine"; homepage = "https://github.com/tesseract-ocr/tesseract"; From 9f4511da1a65ca98c1ac112f65f6474a59d4ba4b Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 23 Nov 2024 11:28:48 +0800 Subject: [PATCH 12/46] trunk-io: format with nixfmt --- pkgs/by-name/tr/trunk-io/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/tr/trunk-io/package.nix b/pkgs/by-name/tr/trunk-io/package.nix index cb02c0b393d0..ab9bb662aace 100644 --- a/pkgs/by-name/tr/trunk-io/package.nix +++ b/pkgs/by-name/tr/trunk-io/package.nix @@ -1,4 +1,8 @@ -{ lib, stdenv, fetchurl }: +{ + lib, + stdenv, + fetchurl, +}: stdenv.mkDerivation (finalAttrs: { pname = "trunk-io"; From 92222bebc30c3cbdf1ae70c6e8dc5eeae8824d03 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 23 Nov 2024 11:30:31 +0800 Subject: [PATCH 13/46] trunk-io: 1.3.2 -> 1.3.4 --- pkgs/by-name/tr/trunk-io/package.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/tr/trunk-io/package.nix b/pkgs/by-name/tr/trunk-io/package.nix index ab9bb662aace..6e965dc48b1e 100644 --- a/pkgs/by-name/tr/trunk-io/package.nix +++ b/pkgs/by-name/tr/trunk-io/package.nix @@ -6,11 +6,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "trunk-io"; - version = "1.3.2"; + version = "1.3.4"; src = fetchurl { url = "https://trunk.io/releases/launcher/${finalAttrs.version}/trunk"; - hash = "sha256-zrfnPWHFoFQkVtxPedKrL1Y1xLZSDX3JuF0qgo/hhnE="; + hash = "sha256-ifvdjHtjZJ7rFHlBV1e4mJA8BB5ztJt4Ao29ZOyjCHo="; }; dontUnpack = true; @@ -23,11 +23,11 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = ./update.sh; - meta = with lib; { + meta = { homepage = "https://trunk.io/"; description = "Developer experience toolkit used to check, test, merge, and monitor code"; - license = licenses.unfree; - platforms = platforms.linux ++ platforms.darwin; - maintainers = with maintainers; [ aaronjheng ]; + license = lib.licenses.unfree; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + maintainers = with lib.maintainers; [ aaronjheng ]; }; }) From 3e8d408a5e789f3feefc6424026bc5eb70f71892 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sun, 24 Nov 2024 10:45:01 +0800 Subject: [PATCH 14/46] mysql-shell{,_8,-innovation}: format with nixfmt --- pkgs/development/tools/mysql-shell/8.nix | 127 ++++++++++-------- .../tools/mysql-shell/innovation.nix | 127 ++++++++++-------- 2 files changed, 144 insertions(+), 110 deletions(-) diff --git a/pkgs/development/tools/mysql-shell/8.nix b/pkgs/development/tools/mysql-shell/8.nix index 79f8f638c08c..702c88de4db1 100644 --- a/pkgs/development/tools/mysql-shell/8.nix +++ b/pkgs/development/tools/mysql-shell/8.nix @@ -1,37 +1,42 @@ -{ lib -, stdenv -, pkg-config -, cmake -, fetchurl -, git -, cctools -, darwin -, makeWrapper -, bison -, openssl -, protobuf -, curl -, zlib -, libssh -, zstd -, lz4 -, readline -, libtirpc -, rpcsvc-proto -, libedit -, libevent -, icu -, re2 -, ncurses -, libfido2 -, python3 -, cyrus_sasl -, openldap -, antlr +{ + lib, + stdenv, + pkg-config, + cmake, + fetchurl, + git, + cctools, + darwin, + makeWrapper, + bison, + openssl, + protobuf, + curl, + zlib, + libssh, + zstd, + lz4, + readline, + libtirpc, + rpcsvc-proto, + libedit, + libevent, + icu, + re2, + ncurses, + libfido2, + python3, + cyrus_sasl, + openldap, + antlr, }: let - pythonDeps = with python3.pkgs; [ certifi paramiko pyyaml ]; + pythonDeps = with python3.pkgs; [ + certifi + paramiko + pyyaml + ]; mysqlShellVersion = "8.4.3"; mysqlServerVersion = "8.4.3"; @@ -70,32 +75,44 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace cmake/libutils.cmake --replace-fail /usr/bin/libtool libtool ''; - nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ] + nativeBuildInputs = + [ + pkg-config + cmake + git + bison + makeWrapper + ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools darwin.DarwinTools ]; + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + cctools + darwin.DarwinTools + ]; - buildInputs = [ - curl - libedit - libssh - lz4 - openssl - protobuf - readline - zlib - zstd - libevent - icu - re2 - ncurses - libfido2 - cyrus_sasl - openldap - python3 - antlr.runtime.cpp - ] ++ pythonDeps - ++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ]; + buildInputs = + [ + curl + libedit + libssh + lz4 + openssl + protobuf + readline + zlib + zstd + libevent + icu + re2 + ncurses + libfido2 + cyrus_sasl + openldap + python3 + antlr.runtime.cpp + ] + ++ pythonDeps + ++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ]; preConfigure = '' # Build MySQL diff --git a/pkgs/development/tools/mysql-shell/innovation.nix b/pkgs/development/tools/mysql-shell/innovation.nix index 573245955006..75bd98d9681a 100644 --- a/pkgs/development/tools/mysql-shell/innovation.nix +++ b/pkgs/development/tools/mysql-shell/innovation.nix @@ -1,37 +1,42 @@ -{ lib -, stdenv -, pkg-config -, cmake -, fetchurl -, git -, cctools -, darwin -, makeWrapper -, bison -, openssl -, protobuf -, curl -, zlib -, libssh -, zstd -, lz4 -, readline -, libtirpc -, rpcsvc-proto -, libedit -, libevent -, icu -, re2 -, ncurses -, libfido2 -, python3 -, cyrus_sasl -, openldap -, antlr +{ + lib, + stdenv, + pkg-config, + cmake, + fetchurl, + git, + cctools, + darwin, + makeWrapper, + bison, + openssl, + protobuf, + curl, + zlib, + libssh, + zstd, + lz4, + readline, + libtirpc, + rpcsvc-proto, + libedit, + libevent, + icu, + re2, + ncurses, + libfido2, + python3, + cyrus_sasl, + openldap, + antlr, }: let - pythonDeps = with python3.pkgs; [ certifi paramiko pyyaml ]; + pythonDeps = with python3.pkgs; [ + certifi + paramiko + pyyaml + ]; mysqlShellVersion = "9.1.0"; mysqlServerVersion = "9.1.0"; @@ -70,32 +75,44 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace cmake/libutils.cmake --replace-fail /usr/bin/libtool libtool ''; - nativeBuildInputs = [ pkg-config cmake git bison makeWrapper ] + nativeBuildInputs = + [ + pkg-config + cmake + git + bison + makeWrapper + ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools darwin.DarwinTools ]; + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + cctools + darwin.DarwinTools + ]; - buildInputs = [ - curl - libedit - libssh - lz4 - openssl - protobuf - readline - zlib - zstd - libevent - icu - re2 - ncurses - libfido2 - cyrus_sasl - openldap - python3 - antlr.runtime.cpp - ] ++ pythonDeps - ++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ]; + buildInputs = + [ + curl + libedit + libssh + lz4 + openssl + protobuf + readline + zlib + zstd + libevent + icu + re2 + ncurses + libfido2 + cyrus_sasl + openldap + python3 + antlr.runtime.cpp + ] + ++ pythonDeps + ++ lib.optionals stdenv.hostPlatform.isLinux [ libtirpc ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ]; preConfigure = '' # Build MySQL From 2a6bf99e788af5397f6fca43359002685e6d8a30 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 24 Nov 2024 14:58:40 -0800 Subject: [PATCH 15/46] linuxPackages.openafs: Patch for Linux kernel 6.12. Signed-off-by: Anders Kaseorg --- pkgs/servers/openafs/1.8/module.nix | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/servers/openafs/1.8/module.nix b/pkgs/servers/openafs/1.8/module.nix index 077a592bd024..d0e600f056ec 100644 --- a/pkgs/servers/openafs/1.8/module.nix +++ b/pkgs/servers/openafs/1.8/module.nix @@ -20,17 +20,32 @@ let modDestDir = "$out/lib/modules/${kernel.modDirVersion}/extra/openafs"; kernelBuildDir = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; - fetchBase64Patch = args: (fetchpatch args).overrideAttrs (o: { - postFetch = "mv $out p; base64 -d p > $out; " + o.postFetch; - }); - in stdenv.mkDerivation { pname = "openafs"; version = "${version}-${kernel.modDirVersion}"; inherit src; - patches = [ ]; + patches = [ + # Linux: Define Clear/Set PageError macros as NOPs + (fetchpatch { + url = "https://gerrit.openafs.org/changes/15964/revisions/917d071a1b3c3e23c984ca8e5501ddccd62a01b6/patch"; + decode = "base64 -d"; + hash = "sha256-WqAHRN1YZj7Cz4X4iF1K3DJC1h8nXlnA9gveClL3KHc="; + }) + # Linux: Refactor afs_linux_write_begin() variants + (fetchpatch { + url = "https://gerrit.openafs.org/changes/15965/revisions/c955b666b904b96620df10328a9a37c2fb5f2ed6/patch"; + decode = "base64 -d"; + hash = "sha256-U2W+8YrD1K7Pb/Jq08uBcuPnGkVvcSyTpwaWWcTbq0w="; + }) + # Linux: Use folios for aops->write_begin/end + (fetchpatch { + url = "https://gerrit.openafs.org/changes/15966/revisions/d1706bdc5080b86b1876d10f062c369e8d898188/patch"; + decode = "base64 -d"; + hash = "sha256-jY+r9LO/4g6K9J1stxNCa38nyr1/J3beOhG9YilEbzg="; + }) + ]; nativeBuildInputs = [ autoconf automake flex libtool_2 perl which bison ] ++ kernel.moduleBuildDependencies; From fe48be2ab5fd81ae4d751bb35776ff13674e5c6c Mon Sep 17 00:00:00 2001 From: Alexander Braverman Masis Date: Mon, 25 Nov 2024 14:59:31 -0500 Subject: [PATCH 16/46] formats.libconfig: add support for dashes --- pkgs/pkgs-lib/formats/libconfig/src/src/main.rs | 2 +- pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix | 3 +++ .../pkgs-lib/formats/libconfig/test/comprehensive/expected.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/pkgs-lib/formats/libconfig/src/src/main.rs b/pkgs/pkgs-lib/formats/libconfig/src/src/main.rs index 4da45f647d46..941dbcaa5a78 100644 --- a/pkgs/pkgs-lib/formats/libconfig/src/src/main.rs +++ b/pkgs/pkgs-lib/formats/libconfig/src/src/main.rs @@ -24,7 +24,7 @@ fn validate_setting_name(key: &str) -> bool { (first_char.is_alphabetic() || first_char == '*') && key[1..] .chars() - .all(|c| c.is_alphanumeric() || c == '_' || c == '*') + .all(|c| c.is_alphanumeric() || c == '_' || c == '*' || c == '-') } const SPECIAL_TYPES: [&str; 5] = ["octal", "hex", "float", "list", "array"]; diff --git a/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix b/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix index 7b0df23ee663..e14fcce2f099 100644 --- a/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix +++ b/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix @@ -14,6 +14,9 @@ let simple_top_level_attr = "1.0"; nested.attrset.has.a.integer.value = 100; some_floaty = 29.95; + ## dashes in key names + top-level-dash = "pass"; + nested.level-dash = "pass"; ## Same syntax here on these two, but they should get serialized differently: # > A list may have zero or more elements, each of which can be a scalar value, an array, a group, or another list. list1d = libconfig.lib.mkList [ 1 "mixed!" 5 2 ]; diff --git a/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/expected.txt b/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/expected.txt index ef6e09f8111a..0bdf80f8a749 100644 --- a/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/expected.txt +++ b/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/expected.txt @@ -1,6 +1,6 @@ array1d=[1, 5, 2];array2d=([1, 2], [2, 1]);list1d=(1, "mixed!", 5, 2);list2d=(1, (1, 1.2, "foo"), ("bar", 1.2, 1));nasty_string="\"@ \\ ^*bf -0\";'''$";nested={attrset={has={a={integer={value=100;};};};};};simple_top_level_attr="1.0";some_floaty=29.95;weirderTypes={ +0\";'''$";nested={attrset={has={a={integer={value=100;};};};};level-dash="pass";};simple_top_level_attr="1.0";some_floaty=29.95;top-level-dash="pass";weirderTypes={ @include "@include_file@" array_of_ints=[0732, 0xa3, 1234];bigint=9223372036854775807;float=0.0012;hex=0x1fc3;list_of_weird_types=(3.141592654, 9223372036854775807, 0x1fc3, 027, 1.2e-32, 1.0);octal=027;pi=3.141592654;}; From 7413190665da7b15b0170bc94bc38ea41e9501e9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 27 Nov 2024 00:46:30 +0100 Subject: [PATCH 17/46] python312Packages.libuuu: init at 1.5.82 --- .../python-modules/libuuu/default.nix | 64 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 66 insertions(+) create mode 100644 pkgs/development/python-modules/libuuu/default.nix diff --git a/pkgs/development/python-modules/libuuu/default.nix b/pkgs/development/python-modules/libuuu/default.nix new file mode 100644 index 000000000000..2cd77ce3b699 --- /dev/null +++ b/pkgs/development/python-modules/libuuu/default.nix @@ -0,0 +1,64 @@ +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + autoPatchelfHook, + pytestCheckHook, + udev, +}: + +buildPythonPackage rec { + pname = "libuuu"; + version = "1.5.182"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-k6JwGxYeFbGNl7zcuKN6SbRq8Z4yD1dXXL3ORyGqhYE="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + nativeBuildInputs = lib.optionals stdenv.isLinux [ + autoPatchelfHook + ]; + + buildInputs = lib.optionals stdenv.isLinux [ + udev + ]; + + dependencies = [ + setuptools-scm + ]; + + pythonImportsCheck = [ + "libuuu" + ]; + + # Prevent tests to load the plugin from the source files instead of the installed ones + preCheck = '' + rm -rf libuuu + ''; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Python wraper for libuuu"; + homepage = "https://github.com/nxp-imx/mfgtools/tree/master/wrapper"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ GaetanLepage ]; + badPlatforms = [ + # The pypi archive does not contain the pre-built library for these platforms + "aarch64-linux" + "x86_64-darwin" + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index eaa610cde265..071a5ec5fbde 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7348,6 +7348,8 @@ self: super: with self; { inherit (pkgs) libusbsio; }; + libuuu = callPackage ../development/python-modules/libuuu { }; + libversion = callPackage ../development/python-modules/libversion { inherit (pkgs) libversion; }; From 72632208708613e908dfd911c8cfafe1d4bb0b91 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 27 Nov 2024 00:18:49 +0100 Subject: [PATCH 18/46] python312Packages.spsdk: 2.2.1 -> 2.4.0 Diff: https://github.com/nxp-mcuxpresso/spsdk/compare/2.2.1...v2.4.0 Changelog: https://github.com/nxp-mcuxpresso/spsdk/releases/tag/v2.4.0 --- .../python-modules/spsdk/default.nix | 68 ++++++++++++++----- 1 file changed, 50 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/spsdk/default.nix b/pkgs/development/python-modules/spsdk/default.nix index 26dfd177e285..81109c3cb811 100644 --- a/pkgs/development/python-modules/spsdk/default.nix +++ b/pkgs/development/python-modules/spsdk/default.nix @@ -2,6 +2,12 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system + setuptools, + setuptools-scm, + + # dependencies asn1crypto, bincopy, bitstring, @@ -13,8 +19,10 @@ cryptography, deepmerge, fastjsonschema, + filelock, hexdump, libusbsio, + libuuu, oscrypto, packaging, platformdirs, @@ -23,30 +31,41 @@ pyserial, requests, ruamel-yaml, - setuptools-scm, sly, - spsdk, - testers, typing-extensions, + + # tests ipykernel, pytest-notebook, pytestCheckHook, voluptuous, + versionCheckHook, }: buildPythonPackage rec { pname = "spsdk"; - version = "2.2.1"; + version = "2.4.0"; pyproject = true; src = fetchFromGitHub { owner = "nxp-mcuxpresso"; repo = "spsdk"; - rev = "refs/tags/${version}"; - hash = "sha256-qFgG9jdF667EtMqXGGk/oxTEi+6J2s/3gKokP+JaFVw="; + rev = "refs/tags/v${version}"; + hash = "sha256-WRR4YyA4HaYoyOZSt/RYivhH2E/20DKLXExWg2yOL48="; }; - build-system = [ setuptools-scm ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "setuptools>=72.1,<74" "setuptools" + + substituteInPlace setup.py \ + --replace-fail "setuptools>=72.1,<74" "setuptools" + ''; + + build-system = [ + setuptools + setuptools-scm + ]; pythonRelaxDeps = [ "cryptography" @@ -55,9 +74,11 @@ buildPythonPackage rec { "typing-extensions" ]; - # Remove unneeded unfree package. pyocd-pemicro is only used when - # generating a pyinstaller package, which we don't do. - pythonRemoveDeps = [ "pyocd-pemicro" ]; + pythonRemoveDeps = [ + # Remove unneeded unfree package. pyocd-pemicro is only used when + # generating a pyinstaller package, which we don't do. + "pyocd-pemicro" + ]; dependencies = [ asn1crypto @@ -71,8 +92,10 @@ buildPythonPackage rec { cryptography deepmerge fastjsonschema + filelock hexdump libusbsio + libuuu oscrypto packaging platformdirs @@ -85,23 +108,32 @@ buildPythonPackage rec { typing-extensions ]; + pythonImportsCheck = [ "spsdk" ]; + + preInstallCheck = '' + export HOME="$(mktemp -d)" + ''; + nativeCheckInputs = [ ipykernel pytest-notebook pytestCheckHook voluptuous + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + + disabledTests = [ + # Missing rotk private key + "test_general_notebooks" ]; - pythonImportsCheck = [ "spsdk" ]; - - passthru.tests.version = testers.testVersion { package = spsdk; }; - - meta = with lib; { - changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/${src.rev}/docs/release_notes.rst"; + meta = { + changelog = "https://github.com/nxp-mcuxpresso/spsdk/blob/v${version}/docs/release_notes.rst"; description = "NXP Secure Provisioning SDK"; homepage = "https://github.com/nxp-mcuxpresso/spsdk"; - license = licenses.bsd3; - maintainers = with maintainers; [ + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ frogamic sbruder ]; From 6cb5eb6735a2aa073ad7d4d4829b810aca88ea46 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 27 Nov 2024 16:40:27 +0000 Subject: [PATCH 19/46] python312Packages.influxdb3-python: 0.9.0 -> 0.10.0 --- pkgs/development/python-modules/influxdb3-python/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/influxdb3-python/default.nix b/pkgs/development/python-modules/influxdb3-python/default.nix index da12de464ff8..b34777add45b 100644 --- a/pkgs/development/python-modules/influxdb3-python/default.nix +++ b/pkgs/development/python-modules/influxdb3-python/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "influxdb3-python"; - version = "0.9.0"; + version = "0.10.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "InfluxCommunity"; repo = "influxdb3-python"; rev = "refs/tags/v${version}"; - hash = "sha256-4P+bQEldyBNh4qsIkoZLXnUOrQ5wVGbr55xbS0oQMMM="; + hash = "sha256-b+AxR6TFHrejSeU6el5beCFscKIsyaonMDC8jZWShRM="; }; postPatch = '' From 998c477262fbb4a2d96a509a1df938a53c1fa0c1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 27 Nov 2024 20:29:40 +0100 Subject: [PATCH 20/46] gnmic: fix version reporting Fix #359543 --- pkgs/by-name/gn/gnmic/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/gn/gnmic/package.nix b/pkgs/by-name/gn/gnmic/package.nix index 145f094aaaf8..e30006dcc4d5 100644 --- a/pkgs/by-name/gn/gnmic/package.nix +++ b/pkgs/by-name/gn/gnmic/package.nix @@ -21,9 +21,9 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X" "github.com/openconfig/gnmic/app.version=${version}" - "-X" "github.com/openconfig/gnmic/app.commit=${src.rev}" - "-X" "github.com/openconfig/gnmic/app.date=1970-01-01T00:00:00Z" + "-X" "github.com/openconfig/gnmic/pkg/app.version=${version}" + "-X" "github.com/openconfig/gnmic/pkg/app.commit=${src.rev}" + "-X" "github.com/openconfig/gnmic/pkg/app.date=1970-01-01T00:00:00Z" ]; subPackages = [ "." ]; From 238f0190ba7e6caa681162e371566cfdd22e2983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 27 Nov 2024 12:26:39 -0800 Subject: [PATCH 21/46] python312Packages.aemet-opendata: 0.5.5 -> 0.6.3 Diff: https://github.com/Noltari/AEMET-OpenData/compare/refs/tags/0.5.5...0.6.3 Changelog: https://github.com/Noltari/AEMET-OpenData/releases/tag/0.6.0 https://github.com/Noltari/AEMET-OpenData/releases/tag/0.6.1 https://github.com/Noltari/AEMET-OpenData/releases/tag/0.6.2 https://github.com/Noltari/AEMET-OpenData/releases/tag/0.6.3 --- pkgs/development/python-modules/aemet-opendata/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aemet-opendata/default.nix b/pkgs/development/python-modules/aemet-opendata/default.nix index f720809863ab..6d7a66005713 100644 --- a/pkgs/development/python-modules/aemet-opendata/default.nix +++ b/pkgs/development/python-modules/aemet-opendata/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "aemet-opendata"; - version = "0.5.5"; + version = "0.6.3"; pyproject = true; disabled = pythonOlder "3.11"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "Noltari"; repo = "AEMET-OpenData"; rev = "refs/tags/${version}"; - hash = "sha256-RX2FnXUALE4l5RG+L6KUBR57IlhRUSOxNc9JQMDDgvw="; + hash = "sha256-fGl3nHU2MlSKFWh4lkpXWad7ivMhxkIsbODcZOemYaQ="; }; build-system = [ setuptools ]; From ac08a31d7feaffabc06142042df1e5776ea16d78 Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:31:07 +0100 Subject: [PATCH 22/46] discord: add `pipewire` to fix screensharing --- .../networking/instant-messengers/discord/linux.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/networking/instant-messengers/discord/linux.nix b/pkgs/applications/networking/instant-messengers/discord/linux.nix index 8d745b0bd81e..a7c41de91166 100644 --- a/pkgs/applications/networking/instant-messengers/discord/linux.nix +++ b/pkgs/applications/networking/instant-messengers/discord/linux.nix @@ -51,6 +51,7 @@ libappindicator-gtk3, libdbusmenu, writeScript, + pipewire, python3, runCommand, libunity, @@ -146,6 +147,7 @@ stdenv.mkDerivation rec { nspr libxcb pango + pipewire libXScrnSaver libappindicator-gtk3 libdbusmenu From a8ae141ee912559c7c0578ee6e9ffbd77abdbd4d Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:31:23 +0100 Subject: [PATCH 23/46] discord-canary: 0.0.527 -> 0.0.528 --- .../networking/instant-messengers/discord/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/discord/default.nix b/pkgs/applications/networking/instant-messengers/discord/default.nix index 3ed460f960f3..40e1b478bad9 100644 --- a/pkgs/applications/networking/instant-messengers/discord/default.nix +++ b/pkgs/applications/networking/instant-messengers/discord/default.nix @@ -11,7 +11,7 @@ let { stable = "0.0.76"; ptb = "0.0.118"; - canary = "0.0.527"; + canary = "0.0.528"; development = "0.0.50"; } else @@ -34,7 +34,7 @@ let }; canary = fetchurl { url = "https://canary.dl2.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz"; - hash = "sha256-pe1CRsXMxXw+j4pBUT/63ZSBe7Mm0g+Tbyn1dAnxp7o="; + hash = "sha256-ajQHWSpjpuadFlT5WVXsSZf5Ng8ta4SyGbZp7TTb+8Q="; }; development = fetchurl { url = "https://development.dl2.discordapp.net/apps/linux/${version}/discord-development-${version}.tar.gz"; From 07fb8bb1a6e8c05ee6c8169a80cc167a2e5f74fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 27 Nov 2024 22:35:56 +0100 Subject: [PATCH 24/46] level-zero: 1.18.3 -> 1.19.2 Diff: https://github.com/oneapi-src/level-zero/compare/refs/tags/v1.18.3...v1.19.2 Changelog: https://github.com/oneapi-src/level-zero/blob/v1.19.2/CHANGELOG.md --- pkgs/by-name/le/level-zero/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/le/level-zero/package.nix b/pkgs/by-name/le/level-zero/package.nix index a92eb386830e..1be331ffa0c4 100644 --- a/pkgs/by-name/le/level-zero/package.nix +++ b/pkgs/by-name/le/level-zero/package.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation rec { pname = "level-zero"; - version = "1.18.3"; + version = "1.19.2"; src = fetchFromGitHub { owner = "oneapi-src"; repo = "level-zero"; rev = "refs/tags/v${version}"; - hash = "sha256-ep9RYHnqmOEqfdFtYzOZnv0aWu4TA8JMyWOj0E2uSYk="; + hash = "sha256-MnTPu7jsjHR+PDHzj/zJiBKi9Ou/cjJvrf87yMdSnz0="; }; nativeBuildInputs = [ cmake addDriverRunpath ]; From bd1f484c05055a197371649e9cd7b9bfabf7a956 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Wed, 27 Nov 2024 22:51:53 +0100 Subject: [PATCH 25/46] lomiri.lomiri-url-dispatcher: Fix libexec binary location in services --- .../lomiri/services/lomiri-url-dispatcher/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix b/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix index d26ae0780da2..f94b6f971f8b 100644 --- a/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix +++ b/pkgs/desktops/lomiri/services/lomiri-url-dispatcher/default.nix @@ -125,6 +125,12 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ (lib.cmakeBool "LOCAL_INSTALL" true) (lib.cmakeBool "enable_mirclient" false) + # libexec has binaries that services will run + # To reduce size for non-Lomiri situations that pull this package in (i.e. ayatana indicators) + # we want only the solib in lib output + # But service files have LIBEXECDIR path hardcoded, which would need manual fixing if using moveToOutput in fixup + # Just tell it to put libexec stuff into other output + (lib.cmakeFeature "CMAKE_INSTALL_LIBEXECDIR" "${placeholder "out"}/libexec") ]; doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; @@ -153,7 +159,6 @@ stdenv.mkDerivation (finalAttrs: { postFixup = '' moveToOutput share $out - moveToOutput libexec $out ''; passthru = { From 61d15c60fcdc02b4ada71b91e69b70ae71cd88ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 8 Aug 2024 22:37:07 +0200 Subject: [PATCH 26/46] nixos/mailman: add option to expand the uwsgi settings --- nixos/modules/services/mail/mailman.nix | 33 ++++++++++++++++--------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index 95b77da250b2..b54a4037de13 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -263,6 +263,15 @@ in { serve = { enable = lib.mkEnableOption "automatic nginx and uwsgi setup for mailman-web"; + uwsgiSettings = lib.mkOption { + default = { }; + example = { uwsgi.buffer-size = 8192; }; + inherit (pkgs.formats.json {}) type; + description = '' + Extra configuration to merge into uwsgi config. + ''; + }; + virtualRoot = lib.mkOption { default = "/"; example = lib.literalExpression "/lists"; @@ -570,18 +579,20 @@ in { }; mailman-uwsgi = lib.mkIf cfg.serve.enable (let - uwsgiConfig.uwsgi = { - type = "normal"; - plugins = ["python3"]; - home = webEnv; - http = "127.0.0.1:18507"; - } - // (if cfg.serve.virtualRoot == "/" - then { module = "mailman_web.wsgi:application"; } - else { - mount = "${cfg.serve.virtualRoot}=mailman_web.wsgi:application"; - manage-script-name = true; + uwsgiConfig = lib.recursiveUpdate { + uwsgi = { + type = "normal"; + plugins = ["python3"]; + home = webEnv; + http = "127.0.0.1:18507"; + } + // (if cfg.serve.virtualRoot == "/" + then { module = "mailman_web.wsgi:application"; } + else { + mount = "${cfg.serve.virtualRoot}=mailman_web.wsgi:application"; + manage-script-name = true; }); + } cfg.serve.uwsgiSettings; uwsgiConfigFile = pkgs.writeText "uwsgi-mailman.json" (builtins.toJSON uwsgiConfig); in { wantedBy = ["multi-user.target"]; From 2861fbe572497784934999dde2a07ac5a57a4e02 Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Thu, 28 Nov 2024 01:55:44 +0100 Subject: [PATCH 27/46] basedpyright: 1.21.1 -> 1.22.0 --- pkgs/by-name/ba/basedpyright/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ba/basedpyright/package.nix b/pkgs/by-name/ba/basedpyright/package.nix index 01c8e8df6abc..995df52160e5 100644 --- a/pkgs/by-name/ba/basedpyright/package.nix +++ b/pkgs/by-name/ba/basedpyright/package.nix @@ -16,13 +16,13 @@ buildNpmPackage rec { pname = "basedpyright"; - version = "1.21.1"; + version = "1.22.0"; src = fetchFromGitHub { owner = "detachhead"; repo = "basedpyright"; rev = "refs/tags/v${version}"; - hash = "sha256-RwckZqEL5U60XSYul74p9Ezg+N8FrnLkRFpdxIa7/34="; + hash = "sha256-/I8KCQnjFbE64h2rQuLV31IsVTQhuDxiobQwtx0HRPM="; }; npmDepsHash = "sha256-hCZ68sLpQs/7SYVf3pMAHfstRm1C/d80j8fESIFdhnw="; From 142f3a52bc423ed4a8552b685a8bb86e3581807e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Esteban=20Concepci=C3=B3n?= Date: Wed, 20 Nov 2024 00:54:23 +0100 Subject: [PATCH 28/46] gf: unstable-2023-08-09 -> 0-unstable-2024-08-21; include extensions and add plugin support List of changes: https://github.com/nakst/gf/compare/4190211d63c1e5378a9e841d22fa2b96a1099e68..40f2ae604f3b94b7f818680ac53d4683c629bcf3 --- pkgs/by-name/gf/gf/package.nix | 61 +++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/gf/gf/package.nix b/pkgs/by-name/gf/gf/package.nix index 4b7c40bf983d..7a3ce5677280 100644 --- a/pkgs/by-name/gf/gf/package.nix +++ b/pkgs/by-name/gf/gf/package.nix @@ -1,45 +1,58 @@ -{ lib -, stdenv -, makeWrapper -, fetchFromGitHub -, libX11 -, pkg-config -, gdb -, freetype -, freetypeSupport ? true -, extensions ? [ ] +{ + lib, + stdenv, + makeWrapper, + fetchFromGitHub, + libX11, + pkg-config, + gdb, + freetype, + freetypeSupport ? true, + withExtensions ? true, + extraFlags ? "", + pluginsFile ? null, }: stdenv.mkDerivation { pname = "gf"; - version = "unstable-2023-08-09"; + version = "0-unstable-2024-08-21"; src = fetchFromGitHub { repo = "gf"; owner = "nakst"; - rev = "4190211d63c1e5378a9e841d22fa2b96a1099e68"; - hash = "sha256-28Xgw/KxwZ94r/TXsdISeUtXHSips4irB0D+tEefMYE="; + rev = "40f2ae604f3b94b7f818680ac53d4683c629bcf3"; + hash = "sha256-Z8hW/GQjnnojoLeetrBlMnAJ9sP9ELv1lSQJjYPxtRc="; }; - nativeBuildInputs = [ makeWrapper pkg-config ]; - buildInputs = [ libX11 gdb ] - ++ lib.optional freetypeSupport freetype; + nativeBuildInputs = [ + makeWrapper + pkg-config + ]; + buildInputs = [ + libX11 + gdb + ] ++ lib.optional freetypeSupport freetype; patches = [ ./build-use-optional-freetype-with-pkg-config.patch ]; - postPatch = lib.forEach extensions (ext: '' - cp ${ext} ./${ext.name or (builtins.baseNameOf ext)} - ''); + postPatch = [ + (lib.optionalString withExtensions '' + cp ./extensions_v5/extensions.cpp . + '') + (lib.optionalString (pluginsFile != null) '' + cp ${pluginsFile} ./plugins.cpp + '') + ]; - preConfigure = '' - patchShebangs build.sh - ''; + preConfigure = '' + patchShebangs build.sh + ''; buildPhase = '' runHook preBuild - extra_flags=-DUI_FREETYPE_SUBPIXEL ./build.sh + extra_flags="${extraFlags} -DUI_FREETYPE_SUBPIXEL" ./build.sh runHook postBuild ''; @@ -51,7 +64,7 @@ stdenv.mkDerivation { ''; postFixup = '' - wrapProgram $out/bin/gf2 --prefix PATH : ${lib.makeBinPath[ gdb ]} + wrapProgram $out/bin/gf2 --prefix PATH : ${lib.makeBinPath [ gdb ]} ''; meta = with lib; { From 17399d3824abc5b64e9a3af22784a8cf55cba507 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Thu, 28 Nov 2024 17:32:17 +0800 Subject: [PATCH 29/46] fastnlo-toolkit: nixfmt --- pkgs/by-name/fa/fastnlo-toolkit/package.nix | 32 ++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/fa/fastnlo-toolkit/package.nix b/pkgs/by-name/fa/fastnlo-toolkit/package.nix index 820afcbd8f68..65cdc94622c6 100644 --- a/pkgs/by-name/fa/fastnlo-toolkit/package.nix +++ b/pkgs/by-name/fa/fastnlo-toolkit/package.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, fetchurl -, boost -, gfortran -, lhapdf -, ncurses -, perl -, python ? null -, swig -, yoda -, zlib -, withPython ? false +{ + lib, + stdenv, + fetchurl, + boost, + gfortran, + lhapdf, + ncurses, + perl, + python ? null, + swig, + yoda, + zlib, + withPython ? false, }: stdenv.mkDerivation rec { @@ -33,8 +34,7 @@ stdenv.mkDerivation rec { gfortran.cc.lib lhapdf yoda - ] ++ lib.optional withPython python - ++ lib.optional (withPython && python.isPy3k) ncurses; + ] ++ lib.optional withPython python ++ lib.optional (withPython && python.isPy3k) ncurses; propagatedBuildInputs = [ zlib @@ -67,7 +67,7 @@ stdenv.mkDerivation rec { # None of our currently packaged versions of swig are C++17-friendly # Use a workaround from https://github.com/swig/swig/issues/1538 - env.CXXFLAGS="-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES"; + env.CXXFLAGS = "-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES"; meta = with lib; { homepage = "http://fastnlo.hepforge.org"; From d3021e5509bdd7a6969b4f9928cc6aa5858540f1 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Thu, 28 Nov 2024 17:34:57 +0800 Subject: [PATCH 30/46] python312Packagesfastnlo-toolkit: fix build --- pkgs/by-name/fa/fastnlo-toolkit/package.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fa/fastnlo-toolkit/package.nix b/pkgs/by-name/fa/fastnlo-toolkit/package.nix index 65cdc94622c6..3b1a011e10ff 100644 --- a/pkgs/by-name/fa/fastnlo-toolkit/package.nix +++ b/pkgs/by-name/fa/fastnlo-toolkit/package.nix @@ -20,9 +20,16 @@ stdenv.mkDerivation rec { src = fetchurl { url = "https://fastnlo.hepforge.org/code/v25/fastnlo_toolkit-${version}.tar.gz"; - sha256 = "sha256-7aIMYCOkHC/17CHYiEfrxvtSJxTDivrS7BQ32cGiEy0="; + hash = "sha256-7aIMYCOkHC/17CHYiEfrxvtSJxTDivrS7BQ32cGiEy0="; }; + postPatch = '' + substituteInPlace py-compile \ + --replace-fail "import sys, os, py_compile, imp" "import sys, os, py_compile, importlib" \ + --replace-fail "imp." "importlib." \ + --replace-fail "hasattr(imp" "hasattr(importlib" + ''; + patches = [ # Compatibility with YODA 2.x ./yoda2_support.patch @@ -36,9 +43,14 @@ stdenv.mkDerivation rec { yoda ] ++ lib.optional withPython python ++ lib.optional (withPython && python.isPy3k) ncurses; - propagatedBuildInputs = [ - zlib - ] ++ lib.optional withPython swig; + propagatedBuildInputs = + [ + zlib + ] + ++ lib.optional withPython [ + swig + python.pkgs.distutils + ]; preConfigure = '' substituteInPlace ./fastnlotoolkit/Makefile.in \ From b22393b73f76f9341fddeae675f538f00acfe12c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 28 Nov 2024 12:07:59 +0100 Subject: [PATCH 31/46] python312Packages.qcodes: 0.50.0 -> 0.50.1 Diff: https://github.com/microsoft/Qcodes/compare/refs/tags/v0.50.0...v0.50.1 Changelog: https://github.com/QCoDeS/Qcodes/releases/tag/v0.50.1 --- pkgs/development/python-modules/qcodes/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/qcodes/default.nix b/pkgs/development/python-modules/qcodes/default.nix index 863725b5fd04..864fce11cb15 100644 --- a/pkgs/development/python-modules/qcodes/default.nix +++ b/pkgs/development/python-modules/qcodes/default.nix @@ -59,14 +59,14 @@ buildPythonPackage rec { pname = "qcodes"; - version = "0.50.0"; + version = "0.50.1"; pyproject = true; src = fetchFromGitHub { owner = "microsoft"; repo = "Qcodes"; rev = "refs/tags/v${version}"; - hash = "sha256-pOzIhqI4XmJm3GiGN2+zOALEogyB4qDgB71TJoLKd+4="; + hash = "sha256-oNJVOz2FMMhUkYIajeWwRmHzLcXu5qTSQzjk0gciOnE="; }; build-system = [ From f34a78551414deb7a8260f3660ae7142c4aab3dd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 16:46:15 +0000 Subject: [PATCH 32/46] croc: 10.1.0 -> 10.1.1 --- pkgs/by-name/cr/croc/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/cr/croc/package.nix b/pkgs/by-name/cr/croc/package.nix index 37ed74621b55..cfd0d2c7f057 100644 --- a/pkgs/by-name/cr/croc/package.nix +++ b/pkgs/by-name/cr/croc/package.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "croc"; - version = "10.1.0"; + version = "10.1.1"; src = fetchFromGitHub { owner = "schollz"; repo = pname; rev = "v${version}"; - hash = "sha256-xHvFs5j4icsGJsmXGg+WCQRTIx5I6ixEgRqKiYwAZio="; + hash = "sha256-+60s0NMSXRUlYDdoxPeEZYx1EMfMODNA/A7rkje5x7o="; }; - vendorHash = "sha256-xTXWy8L+i3XbsnFqtSU6B/3e5zEXLjIAyKO7zslcr9o="; + vendorHash = "sha256-/cTYfGpGbtPvIwriqemDatcMf+cP76eD6OV0oGQenAk="; subPackages = [ "." ]; From 265b3aa46a81596ec8dac3c3574893c6605863e2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 19:04:09 +0000 Subject: [PATCH 33/46] php81Packages.grumphp: 2.6.0 -> 2.9.0 --- pkgs/development/php-packages/grumphp/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/php-packages/grumphp/default.nix b/pkgs/development/php-packages/grumphp/default.nix index 40d7a9c0dd69..41d10a3dd352 100644 --- a/pkgs/development/php-packages/grumphp/default.nix +++ b/pkgs/development/php-packages/grumphp/default.nix @@ -6,16 +6,16 @@ php.buildComposerProject2 (finalAttrs: { pname = "grumphp"; - version = "2.6.0"; + version = "2.9.0"; src = fetchFromGitHub { owner = "phpro"; repo = "grumphp"; rev = "v${finalAttrs.version}"; - hash = "sha256-W4LNzdgWxXDPL46/C8SX99lpRMp/xL5q5v6vX3H80XU="; + hash = "sha256-6SO5LUK39pEVcJqL86CwuyU7xpi8ydJxin5sHqBYwmg="; }; - vendorHash = "sha256-9oInSBlN6hDe9Bj/ISP/7O9Q1xp4tXRm99XhsrJog0E="; + vendorHash = "sha256-pupoPA4VZKACv4nPiRIwe1BOXojnnXrjKOpq0JGl9Uc="; meta = { changelog = "https://github.com/phpro/grumphp/releases/tag/v${finalAttrs.version}"; From 99d776a64ce3cd3c4a2a058cd72eb97dd5e5781d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 19:57:36 +0000 Subject: [PATCH 34/46] phpactor: 2024.11.05.0 -> 2024.11.28.0 --- pkgs/by-name/ph/phpactor/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ph/phpactor/package.nix b/pkgs/by-name/ph/phpactor/package.nix index 7a171733b480..c97d5bafcbac 100644 --- a/pkgs/by-name/ph/phpactor/package.nix +++ b/pkgs/by-name/ph/phpactor/package.nix @@ -7,16 +7,16 @@ php.buildComposerProject2 (finalAttrs: { pname = "phpactor"; - version = "2024.11.05.0"; + version = "2024.11.28.0"; src = fetchFromGitHub { owner = "phpactor"; repo = "phpactor"; rev = finalAttrs.version; - hash = "sha256-/h7Apqo0N4aQvLfzfV/v35npo1wwOOZksokJKhCp8oA="; + hash = "sha256-1n5b5qmyVSBEptRGX+G4O79Ibm+MHGNWLtOcQIRhr+A="; }; - vendorHash = "sha256-nfy2H6isjW7m0UdPaX9Kqt2iwA2IwOhHE+xmqJ2t1qo="; + vendorHash = "sha256-TuHZkZLklBgI56mEHRZOLRFBGjHqWe2sVAA33IyqdH4="; nativeBuildInputs = [ installShellFiles ]; From acd9b02b6dccd71313ff1accbb03994df98cb7d9 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 27 Nov 2024 21:27:30 +0100 Subject: [PATCH 35/46] =?UTF-8?q?webkitgtk=5F6=5F0:=202.46.3=20=E2=86=92?= =?UTF-8?q?=202.46.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/WebKit/WebKit/compare/webkitgtk-2.46.3...webkitgtk-2.46.4 https://webkitgtk.org/security/WSA-2024-0007.html https://webkitgtk.org/2024/11/27/webkitgtk2.46.4-released.html CVE-2024-44308, CVE-2024-44309 --- pkgs/development/libraries/webkitgtk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix index 5a47eda36425..153ba7901460 100644 --- a/pkgs/development/libraries/webkitgtk/default.nix +++ b/pkgs/development/libraries/webkitgtk/default.nix @@ -79,7 +79,7 @@ # https://webkitgtk.org/2024/10/04/webkitgtk-2.46.html recommends building with clang. clangStdenv.mkDerivation (finalAttrs: { pname = "webkitgtk"; - version = "2.46.3"; + version = "2.46.4"; name = "${finalAttrs.pname}-${finalAttrs.version}+abi=${if lib.versionAtLeast gtk3.version "4.0" then "6.0" else "4.${if lib.versions.major libsoup.version == "2" then "0" else "1"}"}"; outputs = [ "out" "dev" "devdoc" ]; @@ -90,7 +90,7 @@ clangStdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://webkitgtk.org/releases/webkitgtk-${finalAttrs.version}.tar.xz"; - hash = "sha256-heCfpv+f6klni6mXXbxk6jJCgz+Pin1qiTey8pL8so0="; + hash = "sha256-Dv9fCrCihy7IffYrwy4yicivYlcWrHHpSymNdOA3QXY="; }; patches = lib.optionals clangStdenv.hostPlatform.isLinux [ From ae933cb7df57095a299187f6d17486097af74813 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 28 Nov 2024 21:13:07 +0100 Subject: [PATCH 36/46] vscode-extensions.github.copilot: 1.243.1191 -> 1.246.1233 --- pkgs/applications/editors/vscode/extensions/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/vscode/extensions/default.nix b/pkgs/applications/editors/vscode/extensions/default.nix index e6cf84fa1cf4..1b92461c778c 100644 --- a/pkgs/applications/editors/vscode/extensions/default.nix +++ b/pkgs/applications/editors/vscode/extensions/default.nix @@ -2071,8 +2071,8 @@ let mktplcRef = { publisher = "github"; name = "copilot"; - version = "1.243.1191"; # compatible with vscode ^1.95 - hash = "sha256-tMUFMi+lBZZQA/8UTyoqQ5s+xnWKh39V8GYErO9ZuSo="; + version = "1.246.1233"; # compatible with vscode ^1.95 + hash = "sha256-Pz46qTCGtn7q7UqCzwkQbuEEkH6tKxZV1HKSUs9WA8M="; }; meta = { From 47048ebe1e895f1ba08127a0275456aa153bdcdb Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 28 Nov 2024 21:43:05 +0100 Subject: [PATCH 37/46] vscode-extensions.visualjj.visualjj: 0.12.5 -> 0.13.0 --- .../vscode/extensions/visualjj.visualjj/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix b/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix index f80ebe74680a..a79b3ec37db7 100644 --- a/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix +++ b/pkgs/applications/editors/vscode/extensions/visualjj.visualjj/default.nix @@ -6,28 +6,28 @@ }: let - version = "0.12.5"; + version = "0.13.0"; sources = { "x86_64-linux" = { arch = "linux-x64"; url = "https://download.visualjj.com/visualjj-linux-x64-${version}.vsix"; - hash = "sha256-wby6xz+pKVZDoAdF3Onkc6/rqMN8zh/b+9Phd7Q9yyo="; + hash = "sha256-mhfn/Lw/W1T2PaIglwrO/7VacDutT6Tgs133ePHL7W4="; }; "x86_64-darwin" = { arch = "darwin-x64"; url = "https://download.visualjj.com/visualjj-darwin-x64-${version}.vsix"; - hash = "sha256-MrnXlvdE17yq8UdFPLOBE7z9hEIZ4mDj56SxXHZTttI="; + hash = "sha256-feghMmcqzFM/Ttk8s4fp8et9Suw2kKLocptzwEcB2Sw="; }; "aarch64-linux" = { arch = "linux-arm64"; url = "https://download.visualjj.com/visualjj-linux-arm64-${version}.vsix"; - hash = "sha256-F3u1NF1JqZhcJjW9MCIV9iwuhSX1MJ2d/8ndghpUqPI="; + hash = "sha256-bfBj/A41FFMwMAEVw77nEDyk0+fYvi2Tg1Ufihxi9F8="; }; "aarch64-darwin" = { arch = "darwin-arm64"; url = "https://download.visualjj.com/visualjj-darwin-arm64-${version}.vsix"; - hash = "sha256-rgqArEjpS0Kc89MUBmdbBtK0l94fJfw8vRSwuz3CJC4="; + hash = "sha256-xzf3WrH7BTiaX6NC2n9nLCKuBlFzRDYaSR73VGM7Ldc="; }; }; in From edd47f7c850c41445313fec14a9959c728fceb8e Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 28 Nov 2024 21:45:40 +0100 Subject: [PATCH 38/46] nixfmt-rfc-style: 2024-08-16 -> 2024-11-26 (#359904) Changes: - https://github.com/NixOS/nixfmt/pull/233 and https://github.com/NixOS/nixfmt/pull/257 fix the poor formatting of `mkRenamedOptionModule` code. - https://github.com/NixOS/nixfmt/pull/240 deprecates passing directories as CLI args, instead using [treefmt](https://github.com/numtide/treefmt) is recommended. - https://github.com/NixOS/nixfmt/pull/246 fixes some problems with floats. - https://github.com/NixOS/nixfmt/pull/247 fixes trailing spaces not always being stripped. - https://github.com/NixOS/nixfmt/pull/248 ensures that the ownership of files isn't changed when formatting them. - https://github.com/NixOS/nixfmt/pull/249 fixes some poor formatting of some attribute selections. - https://github.com/NixOS/nixfmt/pull/262 ensures that 64-bit integers don't get trimmed on 32-bit platforms. - https://github.com/NixOS/nixfmt/pull/264 adds a `--filename` flag to allow setting the filename in error messages when formatting standard input. - https://github.com/NixOS/nixfmt/pull/243 added [installation and integration docs](https://github.com/NixOS/nixfmt?tab=readme-ov-file#installation-and-usage-instructions). - https://github.com/NixOS/nixfmt/pull/238 created a [`.pre-commit-hooks.yaml`](https://github.com/NixOS/nixfmt/blob/master/.pre-commit-hooks.yaml) for integration with [pre-commit](https://pre-commit.com/) --- pkgs/by-name/ni/nixfmt-rfc-style/date.txt | 2 +- pkgs/by-name/ni/nixfmt-rfc-style/generated-package.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ni/nixfmt-rfc-style/date.txt b/pkgs/by-name/ni/nixfmt-rfc-style/date.txt index 13c4c3859027..3dad4f57ae5d 100644 --- a/pkgs/by-name/ni/nixfmt-rfc-style/date.txt +++ b/pkgs/by-name/ni/nixfmt-rfc-style/date.txt @@ -1 +1 @@ -2024-08-16 +2024-11-26 diff --git a/pkgs/by-name/ni/nixfmt-rfc-style/generated-package.nix b/pkgs/by-name/ni/nixfmt-rfc-style/generated-package.nix index 7a87d26cbf6d..8383170af553 100644 --- a/pkgs/by-name/ni/nixfmt-rfc-style/generated-package.nix +++ b/pkgs/by-name/ni/nixfmt-rfc-style/generated-package.nix @@ -9,8 +9,8 @@ mkDerivation { pname = "nixfmt"; version = "0.6.0"; src = fetchzip { - url = "https://github.com/nixos/nixfmt/archive/14be7e665024f1a8c31d748b22f5e215856d3479.tar.gz"; - sha256 = "017a1069sy4bhc2wchgd5hl6c106spf0zq5dcg65mf4flba1xs0j"; + url = "https://github.com/nixos/nixfmt/archive/cb92834560306868e4020dd643f09482587c6e7a.tar.gz"; + sha256 = "0fg2mdjny6i90bivw5d4wxl522azmcmikcak2ffgrq69qhjv21f6"; }; isLibrary = true; isExecutable = true; @@ -20,7 +20,7 @@ mkDerivation { ]; executableHaskellDepends = [ base bytestring cmdargs directory file-embed filepath - safe-exceptions text unix + safe-exceptions text transformers unix ]; jailbreak = true; homepage = "https://github.com/NixOS/nixfmt"; From 115b31f2a3631a1cd63c76b9a83574c0d8be9d24 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 20:56:18 +0000 Subject: [PATCH 39/46] php81Packages.phpstan: 1.11.8 -> 2.0.2 --- pkgs/development/php-packages/phpstan/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/php-packages/phpstan/default.nix b/pkgs/development/php-packages/phpstan/default.nix index 5701261ea371..f77c7803fd88 100644 --- a/pkgs/development/php-packages/phpstan/default.nix +++ b/pkgs/development/php-packages/phpstan/default.nix @@ -6,16 +6,16 @@ php.buildComposerProject2 (finalAttrs: { pname = "phpstan"; - version = "1.11.8"; + version = "2.0.2"; src = fetchFromGitHub { owner = "phpstan"; repo = "phpstan-src"; rev = "refs/tags/${finalAttrs.version}"; - hash = "sha256-wF2OqJ0kg+wEjSq8mAyF5em5RAqjyXqKFkdAjxOrePM="; + hash = "sha256-sLta3LnGtbJ4CMzQ+GRhI13orBvo4Q/kEtCDWcJRSI4="; }; - vendorHash = "sha256-IHnPhV4H8xkonjllOGMmB0zibaGapc8XBrg4km/jKb4="; + vendorHash = "sha256-t9KTZUj3FYH9lpQikesZpq180HqQB8hqE0xyneFgbRA="; composerStrictValidation = false; meta = { From 3c02da2176bc41d67d75fb804465ee42e3ed1287 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 21:07:25 +0000 Subject: [PATCH 40/46] n98-magerun2: 7.4.0 -> 7.5.0 --- pkgs/by-name/n9/n98-magerun2/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/n9/n98-magerun2/package.nix b/pkgs/by-name/n9/n98-magerun2/package.nix index 5c4a430ff973..2e9349be5365 100644 --- a/pkgs/by-name/n9/n98-magerun2/package.nix +++ b/pkgs/by-name/n9/n98-magerun2/package.nix @@ -6,16 +6,16 @@ php.buildComposerProject2 (finalAttrs: { pname = "n98-magerun2"; - version = "7.4.0"; + version = "7.5.0"; src = fetchFromGitHub { owner = "netz98"; repo = "n98-magerun2"; rev = finalAttrs.version; - hash = "sha256-OPvyZ0r7Zt4PC+rmRtBm9EkbaE4PeovnUHrhzXUqT8E="; + hash = "sha256-1wHRzh/Fdxdgx70fIPNOIpqBX9IvYPJnV7CZ5hLQ0qE="; }; - vendorHash = "sha256-604n3Z4R2+zca+NN75Y7afa2Y6Y6ussxE+MEQsDLWsg="; + vendorHash = "sha256-KULTijHG5717dDOfvB4yR+ztrB+mbYaosgmg8aV/GAs="; meta = { changelog = "https://magerun.net/category/magerun/"; From bfe7bb410f3cad92dd291ba3a97831f7aa04972e Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Wed, 20 Nov 2024 14:54:00 +1300 Subject: [PATCH 41/46] nixos/printing: fix ShellCheck issues ShellCheck reports the following: > SC2174 (warning): When used with -p, -m only applies to the deepest > directory. Avoid this warning by splitting `mkdir -m MODE -p DIR` into `(umask MASK && mkdir -p DIR)`. --- nixos/modules/services/printing/cupsd.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix index a1fb0b3951e4..c916839f126c 100644 --- a/nixos/modules/services/printing/cupsd.nix +++ b/nixos/modules/services/printing/cupsd.nix @@ -384,14 +384,11 @@ in preStart = lib.optionalString cfg.stateless '' rm -rf /var/cache/cups /var/lib/cups /var/spool/cups '' + '' - mkdir -m 0700 -p /var/cache/cups - mkdir -m 0700 -p /var/spool/cups - mkdir -m 0755 -p ${cfg.tempDir} - - mkdir -m 0755 -p /var/lib/cups + (umask 077 && mkdir -p /var/cache/cups /var/spool/cups) + (umask 022 && mkdir -p ${cfg.tempDir} /var/lib/cups) # While cups will automatically create self-signed certificates if accessed via TLS, # this directory to store the certificates needs to be created manually. - mkdir -m 0700 -p /var/lib/cups/ssl + (umask 077 && mkdir -p /var/lib/cups/ssl) # Backwards compatibility if [ ! -L /etc/cups ]; then From 5706049cf6a0beb57326b1c6d5914ee3372da552 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 26 Nov 2024 06:30:48 +0000 Subject: [PATCH 42/46] diffstat: 1.66 -> 1.67 Changes: https://invisible-island.net/diffstat/CHANGES.html#t20241111 --- pkgs/by-name/di/diffstat/package.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/di/diffstat/package.nix b/pkgs/by-name/di/diffstat/package.nix index 0e5b8d9a7174..a853c2b3d43c 100644 --- a/pkgs/by-name/di/diffstat/package.nix +++ b/pkgs/by-name/di/diffstat/package.nix @@ -1,17 +1,19 @@ -{ fetchurl, lib, stdenv }: +{ fetchurl, lib, stdenv, zstd }: stdenv.mkDerivation rec { pname = "diffstat"; - version = "1.66"; + version = "1.67"; src = fetchurl { urls = [ "ftp://ftp.invisible-island.net/diffstat/diffstat-${version}.tgz" "https://invisible-mirror.net/archives/diffstat/diffstat-${version}.tgz" ]; - sha256 = "sha256-9UUxu+Mujg+kYfAYtB469Ra2MggBcvNh8F5QNn7Ltp4="; + hash = "sha256-dg7QyZxtZDI41BuA5gJ4zxaD/7lKKDlUrH7xaMhSdmo="; }; + buildInputs = [ zstd ]; + meta = with lib; { description = "Read output of diff and display a histogram of the changes"; mainProgram = "diffstat"; From d5845527960ef61b02b25d3596f6d4ea1a6dbd6a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 26 Nov 2024 06:52:18 +0000 Subject: [PATCH 43/46] diffstat: add a trivial updater --- pkgs/by-name/di/diffstat/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/di/diffstat/package.nix b/pkgs/by-name/di/diffstat/package.nix index a853c2b3d43c..aafe1ad1e918 100644 --- a/pkgs/by-name/di/diffstat/package.nix +++ b/pkgs/by-name/di/diffstat/package.nix @@ -1,4 +1,4 @@ -{ fetchurl, lib, stdenv, zstd }: +{ fetchurl, lib, stdenv, zstd, directoryListingUpdater }: stdenv.mkDerivation rec { pname = "diffstat"; @@ -14,6 +14,10 @@ stdenv.mkDerivation rec { buildInputs = [ zstd ]; + passthru.updateScript = directoryListingUpdater { + url = "https://invisible-island.net/archives/diffstat/"; + }; + meta = with lib; { description = "Read output of diff and display a histogram of the changes"; mainProgram = "diffstat"; From 199ab2b32194fd3995ae34223bcac0f8d02f2db6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 11:01:07 +0000 Subject: [PATCH 44/46] terraform-providers.mongodbatlas: 1.21.1 -> 1.22.0 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 8eb02081b06f..8a3b19030d52 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -822,13 +822,13 @@ "vendorHash": "sha256-a9v1nVG3NiuyHwJGhIKKKXFDp4/Cb533EJxrfqK9h/A=" }, "mongodbatlas": { - "hash": "sha256-ztdzVTCQDPOgXVv/39SDfaNM4wR/zh5ReikEGz4S8Jw=", + "hash": "sha256-0CIHc3cIdhxX2T8dkccOLVFCgY3c1kz6vxlzmEN8YK0=", "homepage": "https://registry.terraform.io/providers/mongodb/mongodbatlas", "owner": "mongodb", "repo": "terraform-provider-mongodbatlas", - "rev": "v1.21.1", + "rev": "v1.22.0", "spdx": "MPL-2.0", - "vendorHash": "sha256-DJXpVYF1AQ5q4ASJFsIyag6OTFxpRSealN98859G5Ls=" + "vendorHash": "sha256-jHm6fDk8zjrZcWKHOKhhFmRICBwx/d7BD4Ycy8gcQWU=" }, "namecheap": { "hash": "sha256-g3i7jZBOl2umsyRk1z7Radv8a9Ry6oQ8oorv3YbY7Xo=", From f8b32a49213a9ccc1c1a38379aa071c532f1e29c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 11:28:12 +0000 Subject: [PATCH 45/46] terraform-providers.yandex: 0.130.0 -> 0.133.0 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 8a3b19030d52..ced7a87e08ad 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -1418,12 +1418,12 @@ "vendorHash": "sha256-GRnVhGpVgFI83Lg34Zv1xgV5Kp8ioKTFV5uaqS80ATg=" }, "yandex": { - "hash": "sha256-DPEVUFPcJKZyid7E2Guk04nffnujsyo34MQ+ORlpfqA=", + "hash": "sha256-prXoM9pZDbuWs99y7kXyv+D6pUghzbM6kbbl6L4tXT8=", "homepage": "https://registry.terraform.io/providers/yandex-cloud/yandex", "owner": "yandex-cloud", "repo": "terraform-provider-yandex", - "rev": "v0.130.0", + "rev": "v0.133.0", "spdx": "MPL-2.0", - "vendorHash": "sha256-JeIDE4RvJQ5PTNyoFrcAV4E8HTDh4YUjUkkYdtri+gk=" + "vendorHash": "sha256-Dl9h+6gVpCg6hwhC348LKjCK88BQk/rZR2I4yujrZFk=" } } From 970e93b9f82e2a0f3675757eb0bfc73297cc6370 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 28 Nov 2024 13:05:54 +0000 Subject: [PATCH 46/46] terraform-providers.doppler: 1.11.0 -> 1.12.0 --- .../networking/cluster/terraform-providers/providers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index ced7a87e08ad..96fb2d16fa2b 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -390,11 +390,11 @@ "vendorHash": "sha256-XxltOTtCgmJ9wZX8Yw39HkwVVZb58kZjAH7jfKPhjKM=" }, "doppler": { - "hash": "sha256-bi2vpG2+iYYQcS6sqram2Pdulk4cHiQNCoT4Q1Z8pJM=", + "hash": "sha256-pqZKqy08PnXfm88eYzDIYqC4rnwUPehfRVMcSX0gaqc=", "homepage": "https://registry.terraform.io/providers/DopplerHQ/doppler", "owner": "DopplerHQ", "repo": "terraform-provider-doppler", - "rev": "v1.11.0", + "rev": "v1.12.0", "spdx": "Apache-2.0", "vendorHash": "sha256-UvpSfCelEsV9gjRWHxdYvVe3HAnYWWY5KYLVYiqc/So=" },