From 8332079faf36609429684be5dc588cf508f30d84 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 22 Nov 2024 03:52:23 +0000 Subject: [PATCH 01/90] python312Packages.pydata-google-auth: 1.8.2 -> 1.9.0 --- .../development/python-modules/pydata-google-auth/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pydata-google-auth/default.nix b/pkgs/development/python-modules/pydata-google-auth/default.nix index 727ac93f47b6..37a1fdae1ee0 100644 --- a/pkgs/development/python-modules/pydata-google-auth/default.nix +++ b/pkgs/development/python-modules/pydata-google-auth/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "pydata-google-auth"; - version = "1.8.2"; + version = "1.9.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -20,7 +20,7 @@ buildPythonPackage rec { repo = "pydata-google-auth"; owner = "pydata"; rev = "refs/tags/${version}"; - hash = "sha256-Wo+tXbzOuz/cW8GuWoSxLA/Lr2S9NMdePa8tIV39mbY="; + hash = "sha256-Vel8xSDX0djNwlICXE/ON3G4m0dWmynl8fHfDhaZhbI="; }; postPatch = '' From d8adb24aeb9343ff3683831672dace0874cbb878 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 22 Nov 2024 18:33:04 +0000 Subject: [PATCH 02/90] python312Packages.glfw: 2.7.0 -> 2.8.0 --- pkgs/development/python-modules/glfw/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/glfw/default.nix b/pkgs/development/python-modules/glfw/default.nix index 56bb2a091748..d021271439d5 100644 --- a/pkgs/development/python-modules/glfw/default.nix +++ b/pkgs/development/python-modules/glfw/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "glfw"; - version = "2.7.0"; + version = "2.8.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "FlorianRhiem"; repo = "pyGLFW"; rev = "refs/tags/v${version}"; - hash = "sha256-9SNq8jKzgzFzonyMYoyjGbz4NDL83dPKWID9m3HZ7B8="; + hash = "sha256-3jcj4YExEtK1ANKDQsq94/NKF6GXXTFTEsXO3Jpf1uQ="; }; # Patch path to GLFW shared object From f79874b0bd798eecf5c0f9f65322039849048ab4 Mon Sep 17 00:00:00 2001 From: Anton Mosich Date: Mon, 2 Dec 2024 11:59:57 +0100 Subject: [PATCH 03/90] mealie: 2.2.0 -> 2.3.0 See https://github.com/mealie-recipes/mealie/releases/tag/v2.3.0 --- pkgs/by-name/me/mealie/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/me/mealie/package.nix b/pkgs/by-name/me/mealie/package.nix index dbfde42f4e02..b3c785eb4575 100644 --- a/pkgs/by-name/me/mealie/package.nix +++ b/pkgs/by-name/me/mealie/package.nix @@ -9,12 +9,12 @@ }: let - version = "2.2.0"; + version = "2.3.0"; src = fetchFromGitHub { owner = "mealie-recipes"; repo = "mealie"; rev = "v${version}"; - hash = "sha256-t4YYvj8dG8o9PVAlDxdxVBi2omBGQ2h53/IVv089778="; + hash = "sha256-GN+uXyZCvDuFmQnXhn0mFans3bvvEw7Uq6V0OeCPEbE="; }; frontend = callPackage (import ./mealie-frontend.nix src version) { }; From 7de0fc5d75c41d5e0fe876d64f1163352d4faeb3 Mon Sep 17 00:00:00 2001 From: misilelab Date: Tue, 10 Dec 2024 13:13:09 +0900 Subject: [PATCH 04/90] portablemc: 4.4.0 -> 4.4.1 Signed-off-by: misilelab --- pkgs/by-name/po/portablemc/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/po/portablemc/package.nix b/pkgs/by-name/po/portablemc/package.nix index 3b3c399d4a9e..f4f3516ae810 100644 --- a/pkgs/by-name/po/portablemc/package.nix +++ b/pkgs/by-name/po/portablemc/package.nix @@ -43,7 +43,7 @@ let in python3Packages.buildPythonApplication rec { pname = "portablemc"; - version = "4.4.0"; + version = "4.4.1"; pyproject = true; disabled = python3Packages.pythonOlder "3.8"; @@ -52,7 +52,7 @@ python3Packages.buildPythonApplication rec { owner = "mindstorm38"; repo = "portablemc"; rev = "refs/tags/v${version}"; - hash = "sha256-JDosvjbpoDC+xJ15ejcMJd+jA09RLR+whVZblMu+ljk="; + hash = "sha256-KE1qf6aIcDjwKzrdKDUmriWfAt+vuriew6ixHKm0xs8="; }; patches = [ From 64ca37859e77c4ed0f746d9519922653d5d9b932 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 14 Dec 2024 02:23:04 +0000 Subject: [PATCH 05/90] libp11: 0.4.12 -> 0.4.13 --- pkgs/by-name/li/libp11/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libp11/package.nix b/pkgs/by-name/li/libp11/package.nix index 5bfaffacfb10..4b12b2bda7dc 100644 --- a/pkgs/by-name/li/libp11/package.nix +++ b/pkgs/by-name/li/libp11/package.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation rec { pname = "libp11"; - version = "0.4.12"; + version = "0.4.13"; src = fetchFromGitHub { owner = "OpenSC"; repo = "libp11"; rev = "${pname}-${version}"; - sha256 = "sha256-Xqjl12xT30ZXWYzPWNN3jWY9pxojhd7Kq0OC7rABt4M="; + sha256 = "sha256-teYXlPtCt6ifQDArbCJWGrYl9pdr6V7HVpU4HXTPIco="; }; configureFlags = [ From 830b83c2aeba5274c8c129b5b62638b7786ad4de Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 20 Dec 2024 17:51:10 +0000 Subject: [PATCH 06/90] nanovna-saver: 0.6.5 -> 0.6.8 --- .../science/electronics/nanovna-saver/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/science/electronics/nanovna-saver/default.nix b/pkgs/applications/science/electronics/nanovna-saver/default.nix index 03693b69ed4c..171e7ac5103a 100644 --- a/pkgs/applications/science/electronics/nanovna-saver/default.nix +++ b/pkgs/applications/science/electronics/nanovna-saver/default.nix @@ -7,13 +7,13 @@ }: python3.pkgs.buildPythonApplication rec { pname = "nanovna-saver"; - version = "0.6.5"; + version = "0.6.8"; src = fetchFromGitHub { owner = "NanoVNA-Saver"; repo = pname; - rev = "refs/tags/v${version}"; - sha256 = "sha256-YoIVYK787okl7XHj+nue38RheC4n+tchJLNbld/qdbU="; + tag = "v${version}"; + sha256 = "sha256-XGm3y0C0bFqKbh2ImbYTKOKSYFJ728mE/1N78/WPJqo="; }; nativeBuildInputs = [ From 9dce2858ed6baa3d7f329623a486b3c4f896c2ca Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 22 Dec 2024 21:11:29 +0000 Subject: [PATCH 07/90] chirp: 0.4.0-unstable-2024-12-16 -> 0.4.0-unstable-2024-12-17 --- pkgs/by-name/ch/chirp/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ch/chirp/package.nix b/pkgs/by-name/ch/chirp/package.nix index d73b0b1ad000..984d459ec3f0 100644 --- a/pkgs/by-name/ch/chirp/package.nix +++ b/pkgs/by-name/ch/chirp/package.nix @@ -11,14 +11,14 @@ python3Packages.buildPythonApplication { pname = "chirp"; - version = "0.4.0-unstable-2024-12-16"; + version = "0.4.0-unstable-2024-12-17"; pyproject = true; src = fetchFromGitHub { owner = "kk7ds"; repo = "chirp"; - rev = "48c33155d141e0444dd4a73e069422c8a25d51b4"; - hash = "sha256-6FKzdf4GS0XpA5HUIAqdrBaeslOrNhaZqpHMRIagkpI="; + rev = "605037deb68994bbb3114c2a35db7a7a7e4755a6"; + hash = "sha256-5AwoXX5Qa4ROjt5wSdcElLJ7ZVguKK3urn0ygVDJiGQ="; }; nativeBuildInputs = [ From 473665a52fc0b976dd5138491aa8d9915d6a856d Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 23 Dec 2024 01:51:48 +0400 Subject: [PATCH 08/90] =?UTF-8?q?python312Packages.aiogram:=203.15.0=20?= =?UTF-8?q?=E2=86=92=203.16.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../development/python-modules/aiogram/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/aiogram/default.nix b/pkgs/development/python-modules/aiogram/default.nix index c7de615170bb..e8ce9d17b34f 100644 --- a/pkgs/development/python-modules/aiogram/default.nix +++ b/pkgs/development/python-modules/aiogram/default.nix @@ -28,7 +28,7 @@ buildPythonPackage rec { pname = "aiogram"; - version = "3.15.0"; + version = "3.16.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -36,8 +36,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "aiogram"; repo = "aiogram"; - rev = "refs/tags/v${version}"; - hash = "sha256-heCebvYP1rrExuD7tAMwSsBsds0cbsPvzHLUtBjNwW0="; + tag = "v${version}"; + hash = "sha256-0kvGEispsDpeTM1NXYb9HylskDONHP48NBn+JyBhSJ4="; }; build-system = [ hatchling ]; @@ -89,11 +89,11 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - meta = with lib; { + meta = { description = "Modern and fully asynchronous framework for Telegram Bot API"; homepage = "https://github.com/aiogram/aiogram"; - changelog = "https://github.com/aiogram/aiogram/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ sikmir ]; + changelog = "https://github.com/aiogram/aiogram/releases/tag/${src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ sikmir ]; }; } From aa044ad5001365935af95a79ff241a740b9fc1f4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 23 Dec 2024 12:38:07 +0000 Subject: [PATCH 09/90] kdePackages.drumstick: 2.9.1 -> 2.10.0 --- pkgs/development/libraries/drumstick/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/drumstick/default.nix b/pkgs/development/libraries/drumstick/default.nix index 3f2b1ba026ab..bb23d1210404 100644 --- a/pkgs/development/libraries/drumstick/default.nix +++ b/pkgs/development/libraries/drumstick/default.nix @@ -25,11 +25,11 @@ let in stdenv.mkDerivation rec { pname = "drumstick"; - version = "2.9.1"; + version = "2.10.0"; src = fetchurl { url = "mirror://sourceforge/drumstick/${version}/${pname}-${version}.tar.bz2"; - hash = "sha256-U5Cm9pTDxC8NzyQfjaC/eBBDUWELV4jq4ov4QGefM9g="; + hash = "sha256-rFoH1daXHiT3LZWQRP+buzMRQSWLJfGMgRtJ9XFy/L0="; }; patches = [ ./drumstick-plugins.patch ]; From d158f4ba41d1b74992f978be80f079eb36c3a201 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 15 Dec 2024 19:11:17 +0800 Subject: [PATCH 10/90] python312Packages.pmdarima: fix build --- .../python-modules/pmdarima/default.nix | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pmdarima/default.nix b/pkgs/development/python-modules/pmdarima/default.nix index 0b03e9bcf6bb..5a98e4569a32 100644 --- a/pkgs/development/python-modules/pmdarima/default.nix +++ b/pkgs/development/python-modules/pmdarima/default.nix @@ -14,25 +14,45 @@ pythonOlder, python, pytest7CheckHook, + setuptools, }: buildPythonPackage rec { pname = "pmdarima"; version = "2.0.4"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "alkaline-ml"; repo = "pmdarima"; - rev = "refs/tags/v${version}"; + tag = "v${version}"; hash = "sha256-LHwPgQRB/vP3hBM8nqafoCrN3ZSRIMWLzqTqDOETOEc="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "numpy==" "numpy>=" \ + --replace-fail "scipy==" "scipy>=" \ + --replace-fail "statsmodels==" "statsmodels>=" + ''; + + env = { + GITHUB_REF = "refs/tags/v${version}"; + }; + + preBuild = '' + python build_tools/get_tag.py + ''; + nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ joblib numpy pandas @@ -60,11 +80,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "pmdarima" ]; - meta = with lib; { + meta = { description = "Statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function"; homepage = "https://github.com/alkaline-ml/pmdarima"; changelog = "https://github.com/alkaline-ml/pmdarima/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ mbalatsko ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ mbalatsko ]; }; } From 3c1d71c5b880265c1cfb61dcf94afc9f09620a1a Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 22 Dec 2024 12:19:07 +0800 Subject: [PATCH 11/90] python311Packages.jenkins-job-builder: 6.4.1 -> 6.4.2 --- .../python-modules/jenkins-job-builder/default.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/jenkins-job-builder/default.nix b/pkgs/development/python-modules/jenkins-job-builder/default.nix index 479abaffd66f..a7b5e7027267 100644 --- a/pkgs/development/python-modules/jenkins-job-builder/default.nix +++ b/pkgs/development/python-modules/jenkins-job-builder/default.nix @@ -11,29 +11,21 @@ stevedore, pytestCheckHook, setuptools, - fetchpatch, testtools, pytest-mock, }: buildPythonPackage rec { pname = "jenkins-job-builder"; - version = "6.4.1"; + version = "6.4.2"; build-system = [ setuptools ]; src = fetchPypi { inherit pname version; - hash = "sha256-Re7rNAcm0cpSx1tmSzTjfDlW7y236lzFKFjVw0uUTmw="; + hash = "sha256-G+DVRd6o3GwTdFNnJkotIidrxexJZSdgCGXTA4KnJJA="; }; - patches = [ - (fetchpatch { - url = "https://opendev.org/jjb/jenkins-job-builder/commit/7bf0dacd80d6da7b8562db05f9187140e42947c8.patch"; - hash = "sha256-2z7axGgVV5Z7A11JiQhlrjjXDKYe+X6NrJEuXd986Do="; - }) - ]; - postPatch = '' export HOME=$(mktemp -d) ''; From 3f74154fa125e6edc5a45f843771e04feafe4d84 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 22 Dec 2024 12:10:43 +0800 Subject: [PATCH 12/90] duplicati: 2.0.8.1 -> 2.1.0.2 --- pkgs/by-name/du/duplicati/package.nix | 34 ++++++++++++++------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/du/duplicati/package.nix b/pkgs/by-name/du/duplicati/package.nix index 83b32d450dd6..aaef3d602b0d 100644 --- a/pkgs/by-name/du/duplicati/package.nix +++ b/pkgs/by-name/du/duplicati/package.nix @@ -7,14 +7,16 @@ makeWrapper, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "duplicati"; - version = "2.0.8.1"; + version = "2.1.0.2"; channel = "beta"; - build_date = "2024-05-07"; + build_date = "2024-11-29"; src = fetchzip { - url = "https://github.com/duplicati/duplicati/releases/download/v${version}-${version}_${channel}_${build_date}/duplicati-${version}_${channel}_${build_date}.zip"; + url = + with finalAttrs; + "https://github.com/duplicati/duplicati/releases/download/v${version}-${version}_${channel}_${build_date}/duplicati-${version}_${channel}_${build_date}.zip"; hash = "sha256-LmW6yGutxP33ghFqyOLKrGDNCQdr8DDFn/IHigsLpzA="; stripRoot = false; }; @@ -22,17 +24,17 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; installPhase = '' - mkdir -p $out/{bin,share/${pname}-${version}} - cp -r * $out/share/${pname}-${version} - makeWrapper "${mono}/bin/mono" $out/bin/duplicati-cli \ - --add-flags "$out/share/${pname}-${version}/Duplicati.CommandLine.exe" \ + mkdir -p $out/{bin,share/duplicati-${finalAttrs.version}} + cp -r * $out/share/duplicati-${finalAttrs.version} + makeWrapper "${lib.getExe mono}" $out/bin/duplicati-cli \ + --add-flags "$out/share/duplicati-${finalAttrs.version}/Duplicati.CommandLine.exe" \ --prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath [ sqlite ] } - makeWrapper "${mono}/bin/mono" $out/bin/duplicati-server \ - --add-flags "$out/share/${pname}-${version}/Duplicati.Server.exe" \ + makeWrapper "${lib.getExe mono}" $out/bin/duplicati-server \ + --add-flags "$out/share/duplicati-${finalAttrs.version}/Duplicati.Server.exe" \ --prefix LD_LIBRARY_PATH : ${ lib.makeLibraryPath [ sqlite @@ -40,15 +42,15 @@ stdenv.mkDerivation rec { } ''; - meta = with lib; { + meta = { description = "Free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers"; homepage = "https://www.duplicati.com/"; - license = licenses.lgpl21; - maintainers = with maintainers; [ + license = lib.licenses.lgpl21; + maintainers = with lib.maintainers; [ nyanloutre bot-wxt1221 ]; - sourceProvenance = with sourceTypes; [ binaryBytecode ]; - platforms = platforms.all; + sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; + platforms = lib.platforms.all; }; -} +}) From 5453e433bb89baede5bc0f1ee8eb2bfe0ca84507 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 23 Dec 2024 18:46:42 +0000 Subject: [PATCH 13/90] nushellPlugins.units: 0.1.3 -> 0.1.4 --- pkgs/shells/nushell/plugins/units.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/shells/nushell/plugins/units.nix b/pkgs/shells/nushell/plugins/units.nix index bf1211e56128..d929d0286071 100644 --- a/pkgs/shells/nushell/plugins/units.nix +++ b/pkgs/shells/nushell/plugins/units.nix @@ -11,15 +11,15 @@ rustPlatform.buildRustPackage rec { pname = "nushell_plugin_units"; - version = "0.1.3"; + version = "0.1.4"; src = fetchFromGitHub { repo = "nu_plugin_units"; owner = "JosephTLyons"; rev = "v${version}"; - hash = "sha256-zPN18ECzh2/l0kxp+Vyp3d9kCq3at/7SqMYbV3WDV3I="; + hash = "sha256-iDRrA8bvufV92ADeG+eF3xu7I/4IinJcSxEkwuhkHlg="; }; - cargoHash = "sha256-6NWyuErdxj7//wW4L7ijW4RiWqdwbeTrelIjpisAGkg="; + cargoHash = "sha256-if8uvDRwr6p5VENdls9mIfECiu/zDybcpkphZLHRHe8="; nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ From eea887fd23d6a9b7240d079d9238cd52ef9cb072 Mon Sep 17 00:00:00 2001 From: Pouya Abbassi Date: Sun, 1 Dec 2024 20:27:22 +0330 Subject: [PATCH 14/90] maintainers: add pouya --- maintainers/maintainer-list.nix | 7 +++++++ pkgs/applications/terminal-emulators/st/siduck76-st.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index e55b7c07349f..2696ff51b979 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -18078,6 +18078,13 @@ github = "potb"; githubId = 10779093; }; + pouya = { + email = "me@pouyacode.net"; + github = "pouya-abbassi"; + githubId = 8519318; + name = "Pouya Abbasi"; + keys = [ { fingerprint = "8CC7 EB15 3563 4205 E9C2 AAD9 AF5A 5A4A D4FD 8797"; } ]; + }; poweredbypie = { name = "poweredbypie"; github = "poweredbypie"; diff --git a/pkgs/applications/terminal-emulators/st/siduck76-st.nix b/pkgs/applications/terminal-emulators/st/siduck76-st.nix index d981ba481e59..478c9b1ea7d5 100644 --- a/pkgs/applications/terminal-emulators/st/siduck76-st.nix +++ b/pkgs/applications/terminal-emulators/st/siduck76-st.nix @@ -46,7 +46,7 @@ stdenv.mkDerivation rec { homepage = "https://github.com/siduck76/st"; description = "Fork of st with many add-ons"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ pouya ]; platforms = platforms.linux; }; } From dbe6cd859a9ef0c7f01a11b875bda257ea4f6634 Mon Sep 17 00:00:00 2001 From: Pouya Abbassi Date: Sun, 1 Dec 2024 20:30:12 +0330 Subject: [PATCH 15/90] st-snazzy: rename from siduck76-st --- .../manual/release-notes/rl-2505.section.md | 3 ++ .../terminal-emulators/st/siduck76-st.nix | 52 ------------------- pkgs/by-name/st/st-snazzy/package.nix | 47 +++++++++++++++++ pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 1 - 5 files changed, 51 insertions(+), 53 deletions(-) delete mode 100644 pkgs/applications/terminal-emulators/st/siduck76-st.nix create mode 100644 pkgs/by-name/st/st-snazzy/package.nix diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index db753bbdf4ae..3f1e22e8c297 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -233,6 +233,9 @@ - `programs.clash-verge.tunMode` was deprecated and removed because now service mode is neccessary to start program. Without `programs.clash-verge.enable`, clash-verge-rev will refuse to start. +- `siduck76-st` has been renamed to `st-snazzy`, like the project's [flake](https://github.com/siduck/st/blob/main/flake.nix). + + ## Other Notable Changes {#sec-release-25.05-notable-changes} diff --git a/pkgs/applications/terminal-emulators/st/siduck76-st.nix b/pkgs/applications/terminal-emulators/st/siduck76-st.nix deleted file mode 100644 index 478c9b1ea7d5..000000000000 --- a/pkgs/applications/terminal-emulators/st/siduck76-st.nix +++ /dev/null @@ -1,52 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - fontconfig, - harfbuzz, - libX11, - libXext, - libXft, - ncurses, - pkg-config, -}: - -stdenv.mkDerivation rec { - pname = "siduck76-st"; - version = "0.pre+unstable=2021-08-20"; - - src = fetchFromGitHub { - owner = "siduck76"; - repo = "st"; - rev = "c9bda1de1f3f94ba507fa0eacc96d6a4f338637f"; - hash = "sha256-5n+QkSlVhhku7adtl7TuWhDl3zdwFaXc7Ot1RaIN54A="; - }; - - nativeBuildInputs = [ - pkg-config - ]; - buildInputs = [ - fontconfig - harfbuzz - libX11 - libXext - libXft - ncurses - ]; - - installPhase = '' - runHook preInstall - - TERMINFO=$out/share/terminfo make install PREFIX=$out - - runHook postInstall - ''; - - meta = with lib; { - homepage = "https://github.com/siduck76/st"; - description = "Fork of st with many add-ons"; - license = licenses.mit; - maintainers = with maintainers; [ pouya ]; - platforms = platforms.linux; - }; -} diff --git a/pkgs/by-name/st/st-snazzy/package.nix b/pkgs/by-name/st/st-snazzy/package.nix new file mode 100644 index 000000000000..2a947e1a81cd --- /dev/null +++ b/pkgs/by-name/st/st-snazzy/package.nix @@ -0,0 +1,47 @@ +{ + lib, + stdenv, + fetchFromGitHub, + fontconfig, + harfbuzz, + libX11, + libXft, + ncurses, + gd, + glib, + pkg-config, +}: + +stdenv.mkDerivation { + pname = "st-snazzy"; + version = "0.8.5-unstable-2024-09-06"; + + src = fetchFromGitHub { + owner = "siduck"; + repo = "st"; + rev = "a7582f96afdee6bf0793cd0d8f84b755fd6aabf6"; + hash = "sha256-wohkmDsm26kqFGQKuY6NuBQsifT7nZNgrLqLFsU+Vog="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + fontconfig + harfbuzz + libX11 + libXft + ncurses + gd + glib + ]; + + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + env.TERMINFO = "${placeholder "out"}/share/terminfo"; + + meta = { + homepage = "https://github.com/siduck/st"; + description = "snazzy terminal (suckless + beautiful)"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ pouya ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 2b5d5afbf31f..4e017dd8154f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1183,6 +1183,7 @@ mapAliases { sexp = sexpp; # Added 2023-07-03 inherit (libsForQt5.mauiPackages) shelf; # added 2022-05-17 shipyard = jumppad; # Added 2023-06-06 + siduck76-st = st-snazzy; # Added 2024-12-24 signal-desktop-beta = throw "signal-desktop-beta has been removed to make the signal-desktop package easier to maintain"; shout = nodePackages.shout; # Added unknown; moved 2024-10-19 sky = throw "'sky' has been removed because its upstream website disappeared"; # Added 2024-07-21 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7057e2550531..ed3751d5ef7d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1572,7 +1572,6 @@ with pkgs; }; xst = callPackage ../applications/terminal-emulators/st/xst.nix { }; mcaimi-st = callPackage ../applications/terminal-emulators/st/mcaimi-st.nix { }; - siduck76-st = callPackage ../applications/terminal-emulators/st/siduck76-st.nix { }; stupidterm = callPackage ../applications/terminal-emulators/stupidterm { gtk = gtk3; From 5d79811c52e51533101eaf2d388aad0464cf5d29 Mon Sep 17 00:00:00 2001 From: Mirko Lenz Date: Mon, 23 Dec 2024 23:31:33 +0100 Subject: [PATCH 16/90] makejinja: 2.6.2 -> 2.7.2 --- pkgs/by-name/ma/makejinja/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ma/makejinja/package.nix b/pkgs/by-name/ma/makejinja/package.nix index e854d85f2e9f..7da8d046afa0 100644 --- a/pkgs/by-name/ma/makejinja/package.nix +++ b/pkgs/by-name/ma/makejinja/package.nix @@ -6,17 +6,17 @@ python3Packages.buildPythonApplication rec { pname = "makejinja"; - version = "2.6.2"; + version = "2.7.2"; pyproject = true; src = fetchFromGitHub { owner = "mirkolenz"; repo = "makejinja"; - rev = "refs/tags/v${version}"; - hash = "sha256-xrXyXFmh9df04I/zcSvQXsyUPrAvbOyyrhx8RNS3Ojs="; + tag = "v${version}"; + hash = "sha256-WyTv4eTsEPn3pCCXUB0YUfv9SyR/6Ml4UU4zt1k5z2c="; }; - build-system = with python3Packages; [ poetry-core ]; + build-system = with python3Packages; [ setuptools ]; dependencies = with python3Packages; From 7a47cb5e0564ed8050d7591029f71ee322757880 Mon Sep 17 00:00:00 2001 From: qubitnano <146656568+qubitnano@users.noreply.github.com> Date: Mon, 23 Dec 2024 23:04:00 -0500 Subject: [PATCH 17/90] shipwright: fix build on gcc14 --- pkgs/by-name/sh/shipwright/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/sh/shipwright/package.nix b/pkgs/by-name/sh/shipwright/package.nix index 97c32fbe7e3e..3b47b20b8929 100644 --- a/pkgs/by-name/sh/shipwright/package.nix +++ b/pkgs/by-name/sh/shipwright/package.nix @@ -6,6 +6,7 @@ lib, fetchFromGitHub, fetchurl, + fetchpatch, copyDesktopItems, makeDesktopItem, python3, @@ -43,6 +44,11 @@ stdenv.mkDerivation (finalAttrs: { patches = [ ./darwin-fixes.patch + (fetchpatch { + name = "gcc14.patch"; + url = "https://github.com/HarbourMasters/Shipwright/commit/1bc15d5bf3042d4fd64e1952eb68c47a7d5d8061.patch"; + hash = "sha256-OpjP+rGqx56DB4W8yzLkxuxSAQa6oXQqtbQ2cNcFjYQ="; + }) ]; # This would get fetched at build time otherwise, see: From 79364694794f80f7cbd25a36e513c8b8bc4d0cfe Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 25 Dec 2024 16:39:46 +0000 Subject: [PATCH 18/90] enzyme: 0.0.168 -> 0.0.170 --- pkgs/by-name/en/enzyme/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/en/enzyme/package.nix b/pkgs/by-name/en/enzyme/package.nix index a6922d67037b..5deaeefbf88a 100644 --- a/pkgs/by-name/en/enzyme/package.nix +++ b/pkgs/by-name/en/enzyme/package.nix @@ -7,13 +7,13 @@ }: llvmPackages.stdenv.mkDerivation rec { pname = "enzyme"; - version = "0.0.168"; + version = "0.0.170"; src = fetchFromGitHub { owner = "EnzymeAD"; repo = "Enzyme"; rev = "v${version}"; - hash = "sha256-Pnx+eC2JSs0BSN6cXD44hjY9LM9EmUf7bZNfiJOIRJU="; + hash = "sha256-8ljzf/opZnZMOcXi5IBMiS2KYlvIjrtSq/Aee2/IUdU="; }; postPatch = '' From 66353ae21cf168861f90e3f53654bc9c24632ee6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 25 Dec 2024 20:30:32 +0000 Subject: [PATCH 19/90] linuxPackages.corefreq: 1.98.7 -> 2.0.0 --- pkgs/os-specific/linux/corefreq/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/corefreq/default.nix b/pkgs/os-specific/linux/corefreq/default.nix index 0f716e145630..406da48fc806 100644 --- a/pkgs/os-specific/linux/corefreq/default.nix +++ b/pkgs/os-specific/linux/corefreq/default.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation rec { pname = "corefreq"; - version = "1.98.7"; + version = "2.0.0"; src = fetchFromGitHub { owner = "cyring"; repo = "CoreFreq"; rev = version; - hash = "sha256-/kvDwIEUbcO80keG3w3x3IfLaXbrbaptUAJxvDh5rlY="; + hash = "sha256-onpr9SsoYifomdSijZ2M5cSShfs8s2q9cbVYN4g3bBo="; }; nativeBuildInputs = kernel.moduleBuildDependencies; From 5d704b31b508e7c208e365a36493b9dd7a0d0964 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 26 Dec 2024 05:02:50 +0000 Subject: [PATCH 20/90] vscode-extensions.chenglou92.rescript-vscode: 1.58.0 -> 1.60.0 --- .../vscode/extensions/chenglou92.rescript-vscode/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix b/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix index 508d2ce2c5a4..e630b5c674d0 100644 --- a/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix +++ b/pkgs/applications/editors/vscode/extensions/chenglou92.rescript-vscode/default.nix @@ -5,7 +5,7 @@ callPackage, }: let - version = "1.58.0"; + version = "1.60.0"; rescript-editor-analysis = callPackage ./rescript-editor-analysis.nix { inherit version; }; arch = if stdenv.hostPlatform.isLinux then @@ -21,7 +21,7 @@ vscode-utils.buildVscodeMarketplaceExtension rec { name = "rescript-vscode"; publisher = "chenglou92"; inherit version; - hash = "sha256-EuEBbtdCaS4l8ykkxyLLMjEnUMs0IsXoc994a8Pw1Ws="; + hash = "sha256-1jdjSxho7TRADAxs4ccLw7Ea430f+L5aBlLDlUwvXHk="; }; postPatch = '' rm -r ${analysisDir} From 6f451c54ff8930b4b3c91b4fb6adab3bb0aac170 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 26 Dec 2024 14:33:40 +0100 Subject: [PATCH 21/90] nas: fix build with gcc14 --- pkgs/by-name/na/nas/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/na/nas/package.nix b/pkgs/by-name/na/nas/package.nix index 30e359960fae..ff2ce23c8bc0 100644 --- a/pkgs/by-name/na/nas/package.nix +++ b/pkgs/by-name/na/nas/package.nix @@ -45,6 +45,12 @@ stdenv.mkDerivation (finalAttrs: { "World" ]; + env.NIX_CFLAGS_COMPILE = toString [ + "-Wno-error=implicit-function-declaration" + "-Wno-error=implicit-int" + "-Wno-error=incompatible-pointer-types" + ]; + installFlags = [ "LDLIBS=-lfl" "DESTDIR=${placeholder "out"}" From 5a24afb63774e13c26cc6ad817a4482445d40c2d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 26 Dec 2024 18:01:30 +0000 Subject: [PATCH 22/90] python312Packages.coinmetrics-api-client: 2024.12.11.19 -> 2024.12.23.19 --- .../python-modules/coinmetrics-api-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/coinmetrics-api-client/default.nix b/pkgs/development/python-modules/coinmetrics-api-client/default.nix index 2d1acee4e2d4..f8ddd7971709 100644 --- a/pkgs/development/python-modules/coinmetrics-api-client/default.nix +++ b/pkgs/development/python-modules/coinmetrics-api-client/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "coinmetrics-api-client"; - version = "2024.12.11.19"; + version = "2024.12.23.19"; pyproject = true; disabled = pythonOlder "3.9"; @@ -27,7 +27,7 @@ buildPythonPackage rec { src = fetchPypi { inherit version; pname = "coinmetrics_api_client"; - hash = "sha256-ETEKQ3PC+wKD92QYKqly4EGge9tJgome0N3Vv7qf214="; + hash = "sha256-AX+UFQ+Usq9MzbnlZjZQXw9cP6fhO78iFsh0KsbZfw4="; }; pythonRelaxDeps = [ "typer" ]; From 7df87075837278a8050a6ecc96b3036b0bc87056 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Thu, 26 Dec 2024 20:25:29 +0000 Subject: [PATCH 23/90] python312Packages.deal: disable failing test test fails due to a bad string match as the single quotes disappeared: "invalid choice: 'unknown' (choose from 'fake')" -> "invalid choice: 'unknown' (choose from fake)" upstream doesn't support reporting issues so disable the test --- pkgs/development/python-modules/deal/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/deal/default.nix b/pkgs/development/python-modules/deal/default.nix index 99c962e5e814..ee77c8ff77c7 100644 --- a/pkgs/development/python-modules/deal/default.nix +++ b/pkgs/development/python-modules/deal/default.nix @@ -71,6 +71,8 @@ buildPythonPackage rec { "test_doctest" "test_no_violations" "test_source_get_lambda_multiline_splitted_dec" + # assert basically correct but fails in string match due to '' removed + "test_unknown_command" ]; disabledTestPaths = [ From 7473e3acec0cae5bdb828ff90f7408c77f96716e Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Thu, 26 Dec 2024 20:38:29 +0000 Subject: [PATCH 24/90] python313Packages.deal: disable failing test --- .../python-modules/deal/default.nix | 51 +++++++++++-------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/pkgs/development/python-modules/deal/default.nix b/pkgs/development/python-modules/deal/default.nix index ee77c8ff77c7..f37377526fdf 100644 --- a/pkgs/development/python-modules/deal/default.nix +++ b/pkgs/development/python-modules/deal/default.nix @@ -12,6 +12,7 @@ pytest-cov-stub, pytestCheckHook, pythonOlder, + pythonAtLeast, sphinx, typeguard, urllib3, @@ -52,28 +53,34 @@ buildPythonPackage rec { vaa ]; - disabledTests = [ - # Tests need internet access - "test_smoke_has" - "test_pure_offline" - "test_raises_doesnt_override_another_contract" - "test_raises_doesnt_override_another_contract_async" - "test_raises_generator" - # AttributeError: module 'vaa' has no attribute 'Error' - "test_source_vaa_scheme" - "test_vaa_scheme_and_custom_exception" - "test_scheme_string_validation_args_correct" - "test_method_chain_decorator_with_scheme_is_fulfilled" - "test_scheme_contract_is_satisfied_when_setting_arg" - "test_scheme_contract_is_satisfied_within_chain" - "test_scheme_errors_rewrite_message" - # assert errors - "test_doctest" - "test_no_violations" - "test_source_get_lambda_multiline_splitted_dec" - # assert basically correct but fails in string match due to '' removed - "test_unknown_command" - ]; + disabledTests = + [ + # Tests need internet access + "test_smoke_has" + "test_pure_offline" + "test_raises_doesnt_override_another_contract" + "test_raises_doesnt_override_another_contract_async" + "test_raises_generator" + # AttributeError: module 'vaa' has no attribute 'Error' + "test_source_vaa_scheme" + "test_vaa_scheme_and_custom_exception" + "test_scheme_string_validation_args_correct" + "test_method_chain_decorator_with_scheme_is_fulfilled" + "test_scheme_contract_is_satisfied_when_setting_arg" + "test_scheme_contract_is_satisfied_within_chain" + "test_scheme_errors_rewrite_message" + # assert errors + "test_doctest" + "test_no_violations" + "test_source_get_lambda_multiline_splitted_dec" + # assert basically correct but fails in string match due to '' removed + "test_unknown_command" + ] + ++ lib.optional (pythonAtLeast "3.13") [ + # assert basically correct but string match fails in due to + # ('pathlib._local', 'Path.write_text') != ('pathlib', 'Path.write_text') + "test_infer" + ]; disabledTestPaths = [ # Test needs internet access From d9759af0da8b88d717014a96d0bab61e4b7f1f58 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Dec 2024 00:03:26 +0000 Subject: [PATCH 25/90] python312Packages.lib4sbom: 0.7.5 -> 0.8.1 --- pkgs/development/python-modules/lib4sbom/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/lib4sbom/default.nix b/pkgs/development/python-modules/lib4sbom/default.nix index e7e581174b61..be76325f2375 100644 --- a/pkgs/development/python-modules/lib4sbom/default.nix +++ b/pkgs/development/python-modules/lib4sbom/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "lib4sbom"; - version = "0.7.5"; + version = "0.8.1"; pyproject = true; disabled = pythonOlder "3.7"; @@ -20,8 +20,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "anthonyharrison"; repo = "lib4sbom"; - rev = "refs/tags/v${version}"; - hash = "sha256-NWrHz4G5Ps5GoZUcx0LiSQzbTZlU4eGYgli6znG+NSs="; + tag = "v${version}"; + hash = "sha256-OxYYHiV7TuPiLyd/rdrGfY3agv0vBcATaod37XYb7DY="; }; build-system = [ setuptools ]; From 22ccb29c574615e2f3b631ed90610bae0e1be9c4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Dec 2024 00:31:17 +0000 Subject: [PATCH 26/90] mainsail: 2.13.1 -> 2.13.2 --- pkgs/by-name/ma/mainsail/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ma/mainsail/package.nix b/pkgs/by-name/ma/mainsail/package.nix index d82882831da8..3f0c7578f18d 100644 --- a/pkgs/by-name/ma/mainsail/package.nix +++ b/pkgs/by-name/ma/mainsail/package.nix @@ -6,16 +6,16 @@ buildNpmPackage rec { pname = "mainsail"; - version = "2.13.1"; + version = "2.13.2"; src = fetchFromGitHub { owner = "mainsail-crew"; repo = "mainsail"; rev = "v${version}"; - hash = "sha256-Ugxy6bbLD0XJwKLW3YOM32GWrK9q8JsrcKGipZNZOsE="; + hash = "sha256-rXavUkoFRw5fWCisdz/eD+wL1Sc+vExyjskVEIN4QNQ="; }; - npmDepsHash = "sha256-mlF8p9s5aGjZz1nfBOOECsW/BhaP2ToQ4f6gUU9sgSI="; + npmDepsHash = "sha256-MzPXDy9sX7Y5dUm3qp3OORdEz8QyL5j4M4eXl0gtopo="; # Prevent Cypress binary download. CYPRESS_INSTALL_BINARY = 0; From 247b3399c0e56904117de0681b732f88030e58e8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Dec 2024 00:55:40 +0000 Subject: [PATCH 27/90] signal-cli: 0.13.10 -> 0.13.11 --- pkgs/by-name/si/signal-cli/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/si/signal-cli/package.nix b/pkgs/by-name/si/signal-cli/package.nix index 015e232c16c3..ab4d4da3232d 100644 --- a/pkgs/by-name/si/signal-cli/package.nix +++ b/pkgs/by-name/si/signal-cli/package.nix @@ -11,12 +11,12 @@ stdenv.mkDerivation rec { pname = "signal-cli"; - version = "0.13.10"; + version = "0.13.11"; # Building from source would be preferred, but is much more involved. src = fetchurl { url = "https://github.com/AsamK/signal-cli/releases/download/v${version}/signal-cli-${version}.tar.gz"; - hash = "sha256-libAHGRdOinL48riMwKtacI5YlRw8JGoqOynVUCGyeA="; + hash = "sha256-biK03oiGCNXxWQpYVloE2SDLMrOMWIV+1RGqps1kTvk="; }; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ From 2fefb81c40b8873972712347dfa21d2111fee8eb Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Dec 2024 02:44:40 +0000 Subject: [PATCH 28/90] python312Packages.manifestoo-core: 1.8.1 -> 1.8.2 --- pkgs/development/python-modules/manifestoo-core/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/manifestoo-core/default.nix b/pkgs/development/python-modules/manifestoo-core/default.nix index ceaef4f91f14..f427fb1ff56a 100644 --- a/pkgs/development/python-modules/manifestoo-core/default.nix +++ b/pkgs/development/python-modules/manifestoo-core/default.nix @@ -11,13 +11,13 @@ buildPythonPackage rec { pname = "manifestoo-core"; - version = "1.8.1"; + version = "1.8.2"; format = "pyproject"; src = fetchPypi { inherit version; pname = "manifestoo_core"; - hash = "sha256-aULT5xxkWEndzEBVcpwvWlIXQYxwfF0VxoI6EHC3JAs="; + hash = "sha256-e/kpgGaaQqPI+4WeHXYpVc01t5vexHlmsDuAoGFShEM="; }; nativeBuildInputs = [ hatch-vcs ]; From dc0ca57d461c31622d82e8c1e03a56635461140b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Dec 2024 09:09:21 +0000 Subject: [PATCH 29/90] monetdb: 11.51.3 -> 11.51.7 --- pkgs/by-name/mo/monetdb/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/mo/monetdb/package.nix b/pkgs/by-name/mo/monetdb/package.nix index deb1f13f48c4..7fa26067a80a 100644 --- a/pkgs/by-name/mo/monetdb/package.nix +++ b/pkgs/by-name/mo/monetdb/package.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "monetdb"; - version = "11.51.3"; + version = "11.51.7"; src = fetchurl { url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${finalAttrs.version}.tar.bz2"; - hash = "sha256-ql6J4e62sL/g6s6cr2xMoxmlsLyovapaGtpcQIZ9tOU="; + hash = "sha256-lWURVG+5NSWBTxXC5slYSedMZC1Z/HGfzZ43tR7z4dE="; }; nativeBuildInputs = [ bison cmake python3 ]; From 2fe93ae27c5a7629a4f8e424da0dbc780f083ed5 Mon Sep 17 00:00:00 2001 From: Mirko Lenz Date: Fri, 27 Dec 2024 13:01:11 +0100 Subject: [PATCH 30/90] makejinja: add meta.changelog --- pkgs/by-name/ma/makejinja/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ma/makejinja/package.nix b/pkgs/by-name/ma/makejinja/package.nix index 7da8d046afa0..cd46437806c7 100644 --- a/pkgs/by-name/ma/makejinja/package.nix +++ b/pkgs/by-name/ma/makejinja/package.nix @@ -46,5 +46,6 @@ python3Packages.buildPythonApplication rec { mirkolenz ]; platforms = lib.platforms.darwin ++ lib.platforms.linux; + changelog = "https://github.com/mirkolenz/makejinja/blob/${src.tag}/CHANGELOG.md"; }; } From c93f306fb2a4a69ce69ffa3ab4648059dc95d71b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Dec 2024 13:30:43 +0000 Subject: [PATCH 31/90] air: 1.61.4 -> 1.61.5 --- pkgs/by-name/ai/air/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ai/air/package.nix b/pkgs/by-name/ai/air/package.nix index e690b06273b8..2a1dba853365 100644 --- a/pkgs/by-name/ai/air/package.nix +++ b/pkgs/by-name/ai/air/package.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "air"; - version = "1.61.4"; + version = "1.61.5"; src = fetchFromGitHub { owner = "air-verse"; repo = "air"; rev = "v${version}"; - hash = "sha256-ML+rdjD20gR8ajyZSs8HEgy1kOFh/MnpnZetQUuZRo0="; + hash = "sha256-QKNXEIMsw3MCfPg3Er9r3ncN6dxI2UsD7G/FcBIrP+Y="; }; vendorHash = "sha256-tct0bWTvZhHslqPAe8uOwBx4z6gLAq57igcbV1tg9OU="; From f88a620c3b428540b7e28fd0ed9facaa4e8ecaa9 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Dec 2024 13:56:07 +0000 Subject: [PATCH 32/90] rain: 1.19.0 -> 1.20.2 --- pkgs/by-name/ra/rain/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ra/rain/package.nix b/pkgs/by-name/ra/rain/package.nix index 5df5e7c559a2..60d4f83ca875 100644 --- a/pkgs/by-name/ra/rain/package.nix +++ b/pkgs/by-name/ra/rain/package.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "rain"; - version = "1.19.0"; + version = "1.20.2"; src = fetchFromGitHub { owner = "aws-cloudformation"; repo = pname; rev = "v${version}"; - sha256 = "sha256-I5h09XbBDrMXQczpNoUENkOp3b4NxBR5Hr58nNVh1JM="; + sha256 = "sha256-T/J01oxiCaZ8vBzSvB3j+dacehHCFs5+46MIoc2DKLU="; }; - vendorHash = "sha256-6xSWaLnE9pD2d49OVjg2IIbhgdJ5R2I0fuRZ4wFudoI="; + vendorHash = "sha256-ML65zg8TVblNcFVmvsiIwxRIfL+jxgUpLx2lVUFHXxI="; subPackages = [ "cmd/rain" ]; From 96eef3faf780294e3f9949460940665e80820ff7 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Fri, 27 Dec 2024 18:39:34 +0100 Subject: [PATCH 33/90] roboto: patch `RobotoCondensed` font to fix `usWidthClass` See https://github.com/googlefonts/roboto-3-classic/issues/130 Upstream patch: https://github.com/googlefonts/roboto-3-classic/pull/131 --- pkgs/by-name/ro/roboto/package.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/by-name/ro/roboto/package.nix b/pkgs/by-name/ro/roboto/package.nix index b22a68fde945..b2b7880f9726 100644 --- a/pkgs/by-name/ro/roboto/package.nix +++ b/pkgs/by-name/ro/roboto/package.nix @@ -2,6 +2,7 @@ lib, stdenvNoCC, fetchzip, + python3Packages, }: stdenvNoCC.mkDerivation rec { @@ -14,9 +15,24 @@ stdenvNoCC.mkDerivation rec { hash = "sha256-ue3PUZinBpcYgSho1Zrw1KHl7gc/GlN1GhWFk6g5QXE="; }; + nativeBuildInputs = [ + python3Packages.fonttools + ]; + installPhase = '' runHook preInstall + # The RobotoCondensed fonts have a usWidthClass value of 5, which is + # incorrect. It should be 3. + # See the corresponding issue at https://github.com/googlefonts/roboto-3-classic/issues/130 + for file in RobotoCondensed*; do + fontname=$(echo $file | sed 's/\.ttf//') + ttx -v -o $fontname.xml $file + substituteInPlace $fontname.xml \ + --replace-fail "" "" + ttx $fontname.xml -o $fontname.ttf + done + install -Dm644 *.ttf -t $out/share/fonts/truetype runHook postInstall From 5ea8221772c87e1779b4f19ccd023c20dc4be64e Mon Sep 17 00:00:00 2001 From: networkException Date: Fri, 27 Dec 2024 23:09:57 +0100 Subject: [PATCH 34/90] nixos/tests/wireguard: fix broken network-online.target checks This patch fixes the networkd and dynamic-refresh-networkd tests not working since 2370696dff55228ca605ee74074b00715573e2b7. --- nixos/tests/wireguard/dynamic-refresh.nix | 3 +++ nixos/tests/wireguard/networkd.nix | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nixos/tests/wireguard/dynamic-refresh.nix b/nixos/tests/wireguard/dynamic-refresh.nix index e0af6bc025aa..2a8fb0598833 100644 --- a/nixos/tests/wireguard/dynamic-refresh.nix +++ b/nixos/tests/wireguard/dynamic-refresh.nix @@ -84,7 +84,10 @@ import ../make-test-python.nix ( '' start_all() + server.systemctl("start network-online.target") server.wait_for_unit("network-online.target") + + client.systemctl("start network-online.target") client.wait_for_unit("network-online.target") client.succeed("ping -n -w 1 -c 1 10.23.42.1") diff --git a/nixos/tests/wireguard/networkd.nix b/nixos/tests/wireguard/networkd.nix index beaba5a4343a..17d164ff77f2 100644 --- a/nixos/tests/wireguard/networkd.nix +++ b/nixos/tests/wireguard/networkd.nix @@ -79,8 +79,11 @@ import ../make-test-python.nix ( testScript = '' start_all() - peer0.wait_for_unit("systemd-networkd-wait-online.service") - peer1.wait_for_unit("systemd-networkd-wait-online.service") + peer0.systemctl("start network-online.target") + peer0.wait_for_unit("network-online.target") + + peer1.systemctl("start network-online.target") + peer1.wait_for_unit("network-online.target") peer1.succeed("ping -c5 fc00::1") peer1.succeed("ping -c5 10.23.42.1") From e7e42de5a7f03e272b677f754f7a75ac968d8266 Mon Sep 17 00:00:00 2001 From: networkException Date: Fri, 27 Dec 2024 23:11:40 +0100 Subject: [PATCH 35/90] nixos/wireguard-networkd: only set PresharedKey credential when given a file This patch fixes an oversight in the initial implementation of using systemd credentials in 6bc8dcc6308d33a0034b3d5afdfa9c9b23a1de80 that would cause a warning to be logged about a missing credential when presharedKeyFile wasn't set. --- nixos/modules/services/networking/wireguard-networkd.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/wireguard-networkd.nix b/nixos/modules/services/networking/wireguard-networkd.nix index ad7de97f1e5a..bcd2e9cf5b52 100644 --- a/nixos/modules/services/networking/wireguard-networkd.nix +++ b/nixos/modules/services/networking/wireguard-networkd.nix @@ -61,7 +61,8 @@ let interfaceName: peer: removeNulls { PublicKey = peer.publicKey; - PresharedKey = "@${presharedKeyCredential interfaceName peer}"; + PresharedKey = + if peer.presharedKeyFile == null then null else "@${presharedKeyCredential interfaceName peer}"; AllowedIPs = peer.allowedIPs; Endpoint = peer.endpoint; PersistentKeepalive = peer.persistentKeepalive; From 9091a7d76ed4a78e1cc359652a8760a406813d00 Mon Sep 17 00:00:00 2001 From: aucub <78630225+aucub@users.noreply.github.com> Date: Fri, 27 Dec 2024 01:42:07 +0800 Subject: [PATCH 36/90] deskflow: flag with knownVulnerabilities --- pkgs/by-name/de/deskflow/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/de/deskflow/package.nix b/pkgs/by-name/de/deskflow/package.nix index 222396e3240e..9fdbfed8b441 100644 --- a/pkgs/by-name/de/deskflow/package.nix +++ b/pkgs/by-name/de/deskflow/package.nix @@ -114,5 +114,12 @@ stdenv.mkDerivation rec { licenses.openssl ]; platforms = lib.platforms.linux; + knownVulnerabilities = [ + "CVE-2021-42072" + "CVE-2021-42073" + "CVE-2021-42074" + "CVE-2021-42075" + "CVE-2021-42076" + ]; }; } From d93e2eb2f0824dc3900aee695e689fa6c775167f Mon Sep 17 00:00:00 2001 From: aucub <78630225+aucub@users.noreply.github.com> Date: Fri, 27 Dec 2024 02:46:22 +0800 Subject: [PATCH 37/90] deskflow: 1.17.2 -> 1.18.0 --- pkgs/by-name/de/deskflow/package.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/de/deskflow/package.nix b/pkgs/by-name/de/deskflow/package.nix index 9fdbfed8b441..116a3fff8845 100644 --- a/pkgs/by-name/de/deskflow/package.nix +++ b/pkgs/by-name/de/deskflow/package.nix @@ -32,20 +32,22 @@ }: stdenv.mkDerivation rec { pname = "deskflow"; - version = "1.17.2"; + version = "1.18.0"; src = fetchFromGitHub { owner = "deskflow"; repo = "deskflow"; - rev = "refs/tags/v${version}"; - hash = "sha256-CHlvL/MC9clFrMxlfIXaCFoTkcLS7QsYK7MXMFW0188="; + tag = "v${version}"; + hash = "sha256-FdpDaJ+pphy2+8prlKst0DjmdbcZOmNp+lKN5xdnvC8="; }; postPatch = '' substituteInPlace src/lib/deskflow/unix/AppUtilUnix.cpp \ --replace-fail "/usr/share/X11/xkb/rules/evdev.xml" "${xkeyboard_config}/share/X11/xkb/rules/evdev.xml" substituteInPlace src/lib/gui/tls/TlsCertificate.cpp \ - --replace-fail "\"openssl\"" "\"${lib.getBin openssl}/bin/openssl\"" + --replace-fail '"openssl"' '"${lib.getBin openssl}/bin/openssl"' + substituteInPlace deploy/linux/deploy.cmake \ + --replace-fail 'message(FATAL_ERROR "Unable to read file /etc/os-release")' 'set(RELEASE_FILE_CONTENTS "")' ''; nativeBuildInputs = [ @@ -117,9 +119,6 @@ stdenv.mkDerivation rec { knownVulnerabilities = [ "CVE-2021-42072" "CVE-2021-42073" - "CVE-2021-42074" - "CVE-2021-42075" - "CVE-2021-42076" ]; }; } From c1eb3b68f8fdbc5e5f17fe9ef069206d4d5ad422 Mon Sep 17 00:00:00 2001 From: networkException Date: Sat, 28 Dec 2024 01:34:11 +0100 Subject: [PATCH 38/90] nixos/wireguard-networkd: escape backslashes in systemd credential names This patch fixes loading issues for pre shared keys for peers without custom names. In this case the peer's public key would be used in the name for the corresponding pre shared key credential, causing a loading error. The networking.wireguard base module already escapes some base64 characters of the public key with escape sequences starting with a backslash. This backslash is now replaced with an underscore for use in the credential names. --- nixos/modules/services/networking/wireguard-networkd.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/wireguard-networkd.nix b/nixos/modules/services/networking/wireguard-networkd.nix index bcd2e9cf5b52..60d86ee43bef 100644 --- a/nixos/modules/services/networking/wireguard-networkd.nix +++ b/nixos/modules/services/networking/wireguard-networkd.nix @@ -22,14 +22,16 @@ let ; inherit (lib.modules) mkIf; inherit (lib.options) literalExpression mkOption; - inherit (lib.strings) hasInfix; + inherit (lib.strings) hasInfix replaceStrings; inherit (lib.trivial) flip pipe; removeNulls = filterAttrs (_: v: v != null); - privateKeyCredential = interfaceName: "wireguard-${interfaceName}-private-key"; + escapeCredentialName = input: replaceStrings [ "\\" ] [ "_" ] input; + + privateKeyCredential = interfaceName: escapeCredentialName "wireguard-${interfaceName}-private-key"; presharedKeyCredential = - interfaceName: peer: "wireguard-${interfaceName}-${peer.name}-preshared-key"; + interfaceName: peer: escapeCredentialName "wireguard-${interfaceName}-${peer.name}-preshared-key"; interfaceCredentials = interfaceName: interface: From 61d11b7ea4e6f0dbc237a1d5e5a7e1957ae774aa Mon Sep 17 00:00:00 2001 From: networkException Date: Sat, 28 Dec 2024 01:41:03 +0100 Subject: [PATCH 39/90] nixos/tests/wireguard: test for pre shared keys working with networkd --- nixos/tests/wireguard/networkd.nix | 10 ++++++++++ nixos/tests/wireguard/snakeoil-keys.nix | 2 ++ 2 files changed, 12 insertions(+) diff --git a/nixos/tests/wireguard/networkd.nix b/nixos/tests/wireguard/networkd.nix index 17d164ff77f2..20305bc2ab12 100644 --- a/nixos/tests/wireguard/networkd.nix +++ b/nixos/tests/wireguard/networkd.nix @@ -39,6 +39,9 @@ import ../make-test-python.nix ( "fc00::2/128" ]; + # !!! Don't do this with real keys. The /nix store is world-readable! + presharedKeyFile = toString (pkgs.writeText "presharedKey" wg-snakeoil-keys.presharedKey); + inherit (wg-snakeoil-keys.peer1) publicKey; }; }; @@ -69,6 +72,9 @@ import ../make-test-python.nix ( endpoint = "192.168.0.1:23542"; persistentKeepalive = 25; + # !!! Don't do this with real keys. The /nix store is world-readable! + presharedKeyFile = toString (pkgs.writeText "presharedKey" wg-snakeoil-keys.presharedKey); + inherit (wg-snakeoil-keys.peer0) publicKey; }; }; @@ -87,6 +93,10 @@ import ../make-test-python.nix ( peer1.succeed("ping -c5 fc00::1") peer1.succeed("ping -c5 10.23.42.1") + + with subtest("Has PSK set"): + peer0.succeed("wg | grep 'preshared key'") + peer1.succeed("wg | grep 'preshared key'") ''; } ) diff --git a/nixos/tests/wireguard/snakeoil-keys.nix b/nixos/tests/wireguard/snakeoil-keys.nix index c979f0e0c8a9..2b51abe53f1e 100644 --- a/nixos/tests/wireguard/snakeoil-keys.nix +++ b/nixos/tests/wireguard/snakeoil-keys.nix @@ -1,4 +1,6 @@ { + presharedKey = "7myEJlGAWLTg83y7Py29pp7REQBVmZfI4xcawjcZpjg="; + peer0 = { privateKey = "OPuVRS2T0/AtHDp3PXkNuLQYDiqJaBEEnYe42BSnJnQ="; publicKey = "IujkG119YPr2cVQzJkSLYCdjpHIDjvr/qH1w1tdKswY="; From 4ed258f195b9eb8f31bc921655ba15f2edf6de68 Mon Sep 17 00:00:00 2001 From: "The Artifex (4r7if3x)" Date: Sat, 28 Dec 2024 02:51:49 +0100 Subject: [PATCH 40/90] maintainers: add 4r7if3x --- maintainers/maintainer-list.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 73c6ad194cb5..d75c33d5cb92 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -254,6 +254,14 @@ githubId = 3417013; name = "Eske Nielsen"; }; + _4r7if3x = { + email = "the.artifex@proton.me"; + matrix = "@4r7if3x:matrix.org"; + github = "4r7if3x"; + githubId = 8606282; + name = "4r7if3x"; + keys = [ { fingerprint = "013C ED4B E769 745A CFC3 0F3C F23C 2613 2266 7A12"; } ]; + }; _6543 = { email = "6543@obermui.de"; github = "6543"; From d92f62ac06b7562afd198491991da269e64a9e1b Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Sat, 28 Dec 2024 04:11:09 +0200 Subject: [PATCH 41/90] koboldcpp: revert e62a47c0 `add (darwinMinVersionHook "10.15")` This reverts commit e62a47c0c8c1f340066165e1d35dab63f519ce6a. Refs: https://github.com/NixOS/nixpkgs/pull/366837#discussion_r1897446732 --- pkgs/by-name/ko/koboldcpp/package.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/by-name/ko/koboldcpp/package.nix b/pkgs/by-name/ko/koboldcpp/package.nix index 1c5b60219bde..c51e2f010408 100644 --- a/pkgs/by-name/ko/koboldcpp/package.nix +++ b/pkgs/by-name/ko/koboldcpp/package.nix @@ -8,7 +8,6 @@ addDriverRunpath, apple-sdk_12, - darwinMinVersionHook, koboldLiteSupport ? true, @@ -62,10 +61,7 @@ effectiveStdenv.mkDerivation (finalAttrs: { buildInputs = [ tk ] ++ finalAttrs.pythonInputs - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - apple-sdk_12 - (darwinMinVersionHook "10.15") - ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_12 ] ++ lib.optionals cublasSupport [ cudaPackages.libcublas cudaPackages.cuda_nvcc From b814f3f6c3d558a647c12248d88f55951e882cab Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Sat, 28 Dec 2024 02:29:57 +0000 Subject: [PATCH 42/90] koboldcpp: 1.80.1 -> 1.80.3 Changelog: https://github.com/LostRuins/koboldcpp/releases/tag/v1.80.3 Diff: https://github.com/LostRuins/koboldcpp/compare/v1.80.1...v1.80.3 --- pkgs/by-name/ko/koboldcpp/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ko/koboldcpp/package.nix b/pkgs/by-name/ko/koboldcpp/package.nix index c51e2f010408..9175c4aadb78 100644 --- a/pkgs/by-name/ko/koboldcpp/package.nix +++ b/pkgs/by-name/ko/koboldcpp/package.nix @@ -40,13 +40,13 @@ let in effectiveStdenv.mkDerivation (finalAttrs: { pname = "koboldcpp"; - version = "1.80.1"; + version = "1.80.3"; src = fetchFromGitHub { owner = "LostRuins"; repo = "koboldcpp"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-CgJzYF8FnHk0zKdysGJWLnNo/MND24AbQdjRbDtv0II="; + hash = "sha256-uxqn4t2dDaVSkVilJOflNbG2Q3fH3Yid8qdEaDGfIcw="; }; enableParallelBuilding = true; From 3e37ab3c16141c8744d964e6f826a90740272890 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 28 Dec 2024 03:35:19 +0000 Subject: [PATCH 43/90] python312Packages.ha-mqtt-discoverable: 0.16.2 -> 0.16.4 --- .../python-modules/ha-mqtt-discoverable/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ha-mqtt-discoverable/default.nix b/pkgs/development/python-modules/ha-mqtt-discoverable/default.nix index f53a08e40555..911a852655ae 100644 --- a/pkgs/development/python-modules/ha-mqtt-discoverable/default.nix +++ b/pkgs/development/python-modules/ha-mqtt-discoverable/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "ha-mqtt-discoverable"; - version = "0.16.2"; + version = "0.16.4"; pyproject = true; disabled = pythonOlder "3.10"; @@ -21,8 +21,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "unixorn"; repo = "ha-mqtt-discoverable"; - rev = "refs/tags/v${version}"; - hash = "sha256-2Ti03c9eyiBBJy5vTUMQddL2SE3Vyjc7gt/0LkgMkbE="; + tag = "v${version}"; + hash = "sha256-9JRgg2A/tcZyAkuddQ/v3Dhxe60O47Y4VZY3Yb6/49g="; }; pythonRelaxDeps = [ "pyaml" ]; From da20c6cb48c2fd6302fa8721c27cc6fca10d548d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 28 Dec 2024 03:39:29 +0000 Subject: [PATCH 44/90] python312Packages.python-roborock: 2.8.3 -> 2.8.4 --- pkgs/development/python-modules/python-roborock/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-roborock/default.nix b/pkgs/development/python-modules/python-roborock/default.nix index e59c4d98c69d..ae019e8dbe2b 100644 --- a/pkgs/development/python-modules/python-roborock/default.nix +++ b/pkgs/development/python-modules/python-roborock/default.nix @@ -20,7 +20,7 @@ buildPythonPackage rec { pname = "python-roborock"; - version = "2.8.3"; + version = "2.8.4"; pyproject = true; disabled = pythonOlder "3.10"; @@ -29,7 +29,7 @@ buildPythonPackage rec { owner = "humbertogontijo"; repo = "python-roborock"; tag = "v${version}"; - hash = "sha256-auKqv9fD8ensL3k5RbaCNzwrCO7Sd210CFUJROSdEjc="; + hash = "sha256-/VDDonWJ/BdWjOzIFSddh9dZEZxIP2XwODsOpnPKbHs="; }; postPatch = '' From 25a914c8c068af09b27b0340d3e3b7f5d44af234 Mon Sep 17 00:00:00 2001 From: rewine Date: Sat, 28 Dec 2024 14:41:12 +0800 Subject: [PATCH 45/90] qtcreator: pin llvmPackages 18 --- pkgs/top-level/all-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 040035177ea0..a0e201815de2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8365,7 +8365,8 @@ with pkgs; qtcreator = qt6Packages.callPackage ../development/tools/qtcreator { inherit (linuxPackages) perf; - stdenv = llvmPackages.stdenv; + llvmPackages = llvmPackages_18; + stdenv = llvmPackages_18.stdenv; }; qxmledit = libsForQt5.callPackage ../applications/editors/qxmledit {} ; From 1e6e7d9ff66ce5b4781178e7bd8fa44434716e47 Mon Sep 17 00:00:00 2001 From: rewine Date: Sat, 28 Dec 2024 15:11:13 +0800 Subject: [PATCH 46/90] lucenepp: fix build with boost 1.85.0 --- pkgs/by-name/lu/lucenepp/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/lu/lucenepp/package.nix b/pkgs/by-name/lu/lucenepp/package.nix index 59e8a2828c35..5e9688571ce7 100644 --- a/pkgs/by-name/lu/lucenepp/package.nix +++ b/pkgs/by-name/lu/lucenepp/package.nix @@ -40,6 +40,11 @@ stdenv.mkDerivation rec { url = "https://github.com/luceneplusplus/LucenePlusPlus/commit/bc436842227aea561b68c6ae89fbd1fdefcac7b3.patch"; sha256 = "sha256-/S7tFZ4ht5p0cv036xF2NKZQwExbPaGINyWZiUg/lS4="; }) + (fetchpatch { + name = "fix-build-with-boost-1_85_0.patch"; + url = "https://github.com/luceneplusplus/LucenePlusPlus/commit/76dc90f2b65d81be018c499714ff11e121ba5585.patch"; + sha256 = "sha256-SNAngHwy7yxvly8d6u1LcPsM6NYVx3FrFiSHLmkqY6Q="; + }) ]; # Don't use the built in gtest - but the nixpkgs one requires C++14. From 8b4146d9857ec9b9e92d7f39643c651aefc86eb1 Mon Sep 17 00:00:00 2001 From: "The Artifex (4r7if3x)" Date: Sat, 28 Dec 2024 04:40:06 +0100 Subject: [PATCH 47/90] treegen: init at 1.1.0 --- pkgs/by-name/tr/treegen/package.nix | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/tr/treegen/package.nix diff --git a/pkgs/by-name/tr/treegen/package.nix b/pkgs/by-name/tr/treegen/package.nix new file mode 100644 index 000000000000..040fa27fec16 --- /dev/null +++ b/pkgs/by-name/tr/treegen/package.nix @@ -0,0 +1,49 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, + nix-update-script, + testers, + treegen, +}: + +buildGoModule rec { + pname = "treegen"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "bilbilak"; + repo = "treegen"; + tag = "v${version}"; + hash = "sha256-PPWUEfX7OXKZnghiVXU+eCjveA1VszA3uS8C3uI3pFM="; + }; + + vendorHash = "sha256-hocnLCzWN8srQcO3BMNkd2lt0m54Qe7sqAhUxVZlz1k="; + + ldflags = [ + "-s" + "-w" + "-X github.com/bilbilak/treegen/config.Version=${version}" + ]; + + passthru = { + tests = { + version = testers.testVersion { + package = treegen; + command = "treegen --version"; + }; + }; + + updateScript = nix-update-script { }; + }; + + meta = { + changelog = "https://github.com/bilbilak/treegen/blob/main/CHANGELOG.md"; + description = "ASCII Tree Directory and File Structure Generator"; + homepage = "https://github.com/bilbilak/treegen"; + license = lib.licenses.gpl3Only; + mainProgram = "treegen"; + maintainers = with lib.maintainers; [ _4r7if3x ]; + platforms = with lib.platforms; unix ++ windows; + }; +} From e2ff22d3d71b21ccf5bf4d24d9b6ac0f9dc87eab Mon Sep 17 00:00:00 2001 From: "The Artifex (4r7if3x)" Date: Sat, 28 Dec 2024 11:44:29 +0100 Subject: [PATCH 48/90] godini: init at 1.0.0 --- pkgs/by-name/go/godini/package.nix | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/go/godini/package.nix diff --git a/pkgs/by-name/go/godini/package.nix b/pkgs/by-name/go/godini/package.nix new file mode 100644 index 000000000000..5c09478a26b3 --- /dev/null +++ b/pkgs/by-name/go/godini/package.nix @@ -0,0 +1,49 @@ +{ + buildGoModule, + fetchFromGitHub, + godini, + lib, + nix-update-script, + testers, +}: + +buildGoModule rec { + pname = "godini"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "bilbilak"; + repo = "godini"; + tag = "v${version}"; + hash = "sha256-83OAddIoJzAUXPZKGnAx8XPKrdSmtc1EIJUDmRHTU/U="; + }; + + vendorHash = "sha256-hocnLCzWN8srQcO3BMNkd2lt0m54Qe7sqAhUxVZlz1k="; + + ldflags = [ + "-s" + "-w" + "-X github.com/bilbilak/godini/config.Version=${version}" + ]; + + passthru = { + tests = { + version = testers.testVersion { + package = godini; + command = "godini --version"; + }; + }; + + updateScript = nix-update-script { }; + }; + + meta = { + changelog = "https://github.com/bilbilak/godini/blob/main/CHANGELOG.md"; + description = "INI Configuration Management Tool"; + homepage = "https://github.com/bilbilak/godini"; + license = lib.licenses.gpl3Only; + mainProgram = "godini"; + maintainers = with lib.maintainers; [ _4r7if3x ]; + platforms = with lib.platforms; unix ++ windows; + }; +} From 5f80781d03e6327f38da0fbf73f9e98be1cd4bee Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 28 Dec 2024 13:20:20 +0000 Subject: [PATCH 49/90] qpwgraph: 0.8.0 -> 0.8.1 --- pkgs/applications/audio/qpwgraph/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/qpwgraph/default.nix b/pkgs/applications/audio/qpwgraph/default.nix index 32d254f6d69d..76261c239ba9 100644 --- a/pkgs/applications/audio/qpwgraph/default.nix +++ b/pkgs/applications/audio/qpwgraph/default.nix @@ -14,14 +14,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "qpwgraph"; - version = "0.8.0"; + version = "0.8.1"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "rncbc"; repo = "qpwgraph"; rev = "v${finalAttrs.version}"; - sha256 = "sha256-jB2mMLwJ1e/fIsf1R9Wd0stwp/RQH6f9pkF1qQX72Aw="; + sha256 = "sha256-yvPV3Npne9oFvA6X49/aMgn7DrN2gCrPha3lJVKwcQ0="; }; nativeBuildInputs = [ From 37302163ed7384d444053e30cfd2650b9bc1e07f Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Sat, 28 Dec 2024 22:59:45 +0800 Subject: [PATCH 50/90] rl-2411: add an entry for the new kmonad module --- nixos/doc/manual/release-notes/rl-2411.section.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index 209655cc9925..295d3f100b03 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -87,6 +87,8 @@ ## New Modules {#sec-release-24.11-new-modules} +- [KMonad](https://github.com/kmonad/kmonad), an advanced keyboard remapping utility. Available as [services.kmonad](#opt-services.kmonad.enable). + - [Coral](https://coral.ai/), hardware support for Coral.ai Edge TPU devices. Available as [hardware.coral.usb.enable](#opt-hardware.coral.usb.enable) and [hardware.coral.pcie.enable](#opt-hardware.coral.pcie.enable). - [Cyrus IMAP](https://github.com/cyrusimap/cyrus-imapd), an email, contacts and calendar server. Available as [services.cyrus-imap](#opt-services.cyrus-imap.enable) service. From 64674918d88d19783d820674681c03f8ad846daf Mon Sep 17 00:00:00 2001 From: Defelo Date: Sat, 28 Dec 2024 15:41:12 +0100 Subject: [PATCH 51/90] cargo-semver-checks: 0.34.0 -> 0.38.0 --- .../ca/cargo-semver-checks/package.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ca/cargo-semver-checks/package.nix b/pkgs/by-name/ca/cargo-semver-checks/package.nix index b01afc4e4bd3..5b6c36a5ec8b 100644 --- a/pkgs/by-name/ca/cargo-semver-checks/package.nix +++ b/pkgs/by-name/ca/cargo-semver-checks/package.nix @@ -11,16 +11,16 @@ rustPlatform.buildRustPackage rec { pname = "cargo-semver-checks"; - version = "0.34.0"; + version = "0.38.0"; src = fetchFromGitHub { owner = "obi1kenobi"; repo = pname; rev = "v${version}"; - hash = "sha256-U7ykTLEuREe2GTVswcAw3R3h4zbkWxuI2dt/2689xSA="; + hash = "sha256-IcKjiKFvkFvu8+LFCAmm39AGUaUdK8zhtNzzSb8VPE0="; }; - cargoHash = "sha256-NoxYHwY5XpRiqrOjQsaSWQCXFalNAS9SchaKwHbB2uU="; + cargoHash = "sha256-QfJ7QnGKmbrGDwYtVyAJNNGoAukD97/tmCwAROvWBIg="; nativeBuildInputs = [ cmake @@ -37,15 +37,20 @@ rustPlatform.buildRustPackage rec { checkFlags = [ # requires internet access "--skip=detects_target_dependencies" + "--skip=query::tests_lints::feature_missing" ]; preCheck = '' + # requires internet access + rm -r test_crates/feature_missing + patchShebangs scripts/regenerate_test_rustdocs.sh - substituteInPlace scripts/regenerate_test_rustdocs.sh \ - --replace-fail \ - 'TOPLEVEL="$(git rev-parse --show-toplevel)"' \ - "TOPLEVEL=$PWD" scripts/regenerate_test_rustdocs.sh + + substituteInPlace test_outputs/integration_snapshots__bugreport.snap \ + --replace-fail \ + 'cargo-semver-checks [VERSION] ([HASH])' \ + 'cargo-semver-checks ${version}' ''; meta = with lib; { From ce0e60c0ae841437bba1a2119e6dd9c32fd6ead0 Mon Sep 17 00:00:00 2001 From: Defelo Date: Sat, 28 Dec 2024 15:47:25 +0100 Subject: [PATCH 52/90] cargo-semver-checks: refactor --- pkgs/by-name/ca/cargo-semver-checks/package.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ca/cargo-semver-checks/package.nix b/pkgs/by-name/ca/cargo-semver-checks/package.nix index 5b6c36a5ec8b..f9bf755ec48c 100644 --- a/pkgs/by-name/ca/cargo-semver-checks/package.nix +++ b/pkgs/by-name/ca/cargo-semver-checks/package.nix @@ -6,7 +6,9 @@ zlib, stdenv, darwin, - git, + testers, + cargo-semver-checks, + nix-update-script, }: rustPlatform.buildRustPackage rec { @@ -16,7 +18,7 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "obi1kenobi"; repo = pname; - rev = "v${version}"; + tag = "v${version}"; hash = "sha256-IcKjiKFvkFvu8+LFCAmm39AGUaUdK8zhtNzzSb8VPE0="; }; @@ -53,16 +55,21 @@ rustPlatform.buildRustPackage rec { 'cargo-semver-checks ${version}' ''; - meta = with lib; { + passthru = { + tests.version = testers.testVersion { package = cargo-semver-checks; }; + updateScript = nix-update-script { }; + }; + + meta = { description = "Tool to scan your Rust crate for semver violations"; mainProgram = "cargo-semver-checks"; homepage = "https://github.com/obi1kenobi/cargo-semver-checks"; changelog = "https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v${version}"; - license = with licenses; [ + license = with lib.licenses; [ mit # or asl20 ]; - maintainers = with maintainers; [ + maintainers = with lib.maintainers; [ figsoda matthiasbeyer ]; From 3d3b0cfb5549ff66c4c27677c80cde92c3d81e1f Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Sat, 28 Dec 2024 18:07:08 +0100 Subject: [PATCH 53/90] cuneiform: add patch for gcc 14 --- pkgs/by-name/cu/cuneiform/gcc14-fix.patch | 170 ++++++++++++++++++++++ pkgs/by-name/cu/cuneiform/package.nix | 1 + 2 files changed, 171 insertions(+) create mode 100644 pkgs/by-name/cu/cuneiform/gcc14-fix.patch diff --git a/pkgs/by-name/cu/cuneiform/gcc14-fix.patch b/pkgs/by-name/cu/cuneiform/gcc14-fix.patch new file mode 100644 index 000000000000..027d028f36bc --- /dev/null +++ b/pkgs/by-name/cu/cuneiform/gcc14-fix.patch @@ -0,0 +1,170 @@ +diff --git a/cuneiform_src/Kern/ctb/src/ctb_oper.c b/cuneiform_src/Kern/ctb/src/ctb_oper.c +index 2aedd58..3d7ec65 100644 +--- a/cuneiform_src/Kern/ctb/src/ctb_oper.c ++++ b/cuneiform_src/Kern/ctb/src/ctb_oper.c +@@ -61,6 +61,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #define MAXPATH 256 + #include + #include ++#include + #include "ctb.h" + + /// extern fuxntions and data +diff --git a/cuneiform_src/Kern/dif/src/diffr.c b/cuneiform_src/Kern/dif/src/diffr.c +index f0d89db..7d0d898 100644 +--- a/cuneiform_src/Kern/dif/src/diffr.c ++++ b/cuneiform_src/Kern/dif/src/diffr.c +@@ -105,7 +105,7 @@ extern uchar BUFFER[256]; /* + extern uchar LOCAL[50]; /* न */ + extern uchar LOCAL_W[50]; /* ਭ */ + extern uchar end1,beg2; /* 1 砫 2- */ +-extern broken_ii; /* 䫠 */ ++extern uchar broken_ii; /* 䫠 */ + extern int16_t dnri_hook; // bottom right hook in small russian italic II,III + extern int16_t uple_hook; // bottom left hook in small russian italic II,III + extern int16_t up_jack ; // upper jack +diff --git a/cuneiform_src/Kern/hdebug/__snp.c b/cuneiform_src/Kern/hdebug/__snp.c +index cbf3353..8682cb1 100644 +--- a/cuneiform_src/Kern/hdebug/__snp.c ++++ b/cuneiform_src/Kern/hdebug/__snp.c +@@ -986,11 +986,11 @@ extern "C" { + void SnpDrawLine(Point16* start, Point16* end, int32_t skew, + uint32_t rgb_color, int16_t pen_width, Handle key ) + { +- LDPUMA_DrawLine(NULL,start,end,skew,rgb_color,pen_width,key ); ++ LDPUMA_DrawLine(NULL,start,end,skew,rgb_color,pen_width,(long int)key ); + }; + void SnpHideLines(Handle key) + { +- LDPUMA_DeleteLines(NULL,key); ++ LDPUMA_DeleteLines(NULL,(long int)key); + }; + void SnpUpdateViews(void) + { +diff --git a/cuneiform_src/Kern/leo/src/leo_dll.c b/cuneiform_src/Kern/leo/src/leo_dll.c +index da09092..25bc167 100644 +--- a/cuneiform_src/Kern/leo/src/leo_dll.c ++++ b/cuneiform_src/Kern/leo/src/leo_dll.c +@@ -60,6 +60,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include + /*#include */ + ++#include "cfcompat.h" + #include "leo_tune.h" + #include "cpu.h" + #define PC_TYPE 0 +diff --git a/cuneiform_src/Kern/loc/src/loc.c b/cuneiform_src/Kern/loc/src/loc.c +index e416b33..4b817ad 100644 +--- a/cuneiform_src/Kern/loc/src/loc.c ++++ b/cuneiform_src/Kern/loc/src/loc.c +@@ -63,6 +63,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include + #endif + #include "loc.h" ++#include "cfcompat.h" + #include "struct.h" + #include + +diff --git a/cuneiform_src/Kern/rbal/src/linbam.c b/cuneiform_src/Kern/rbal/src/linbam.c +index cd34fab..a0a93d6 100644 +--- a/cuneiform_src/Kern/rbal/src/linbam.c ++++ b/cuneiform_src/Kern/rbal/src/linbam.c +@@ -65,7 +65,7 @@ + #include "lang_def.h" // 08.09.2000 E.P. + #include "minmax.h" + +-extern line_BL; ++extern Bool line_BL; + extern CSTR_line lin_str; + + static void set_basint(void); +diff --git a/cuneiform_src/Kern/rblock/sources/c/ltmain.c b/cuneiform_src/Kern/rblock/sources/c/ltmain.c +index 0653b6b..1c99b28 100644 +--- a/cuneiform_src/Kern/rblock/sources/c/ltmain.c ++++ b/cuneiform_src/Kern/rblock/sources/c/ltmain.c +@@ -583,7 +583,7 @@ void PageStrings2 (void) + + void LayoutPart1 (void) + { +-extern SheetsCorrectRoots(); ++// extern SheetsCorrectRoots(); + # ifdef LT_DEBUG + switch (layout) + { +diff --git a/cuneiform_src/Kern/rblock/sources/c/ltroots.c b/cuneiform_src/Kern/rblock/sources/c/ltroots.c +index e68abd5..7efee82 100644 +--- a/cuneiform_src/Kern/rblock/sources/c/ltroots.c ++++ b/cuneiform_src/Kern/rblock/sources/c/ltroots.c +@@ -69,6 +69,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + # include + # include ++# include + /*# include */ + #include + +@@ -126,7 +127,7 @@ Bool RootsLoadFile (char * pFilename) + return (FALSE); + } + +- while (read (hFile, &RootRecord, sizeof (ROOT)) == sizeof (ROOT)) ++ while (read ((int)hFile, &RootRecord, sizeof (ROOT)) == sizeof (ROOT)) + { + RootRecord.bReached = FALSE; + +@@ -143,14 +144,14 @@ Bool RootsLoadFile (char * pFilename) + { + ErrorNoEnoughMemory ("in LTROOTS.C,RootsLoadFile,part 1"); + nRoots = 0; +- close (hFile); ++ close ((int)hFile); + return (FALSE); + } + + pRoots [nRoots - 1] = RootRecord; + } + +- close (hFile); ++ close ((int)hFile); + return (TRUE); + } + # endif +diff --git a/cuneiform_src/Kern/rstr/src/diffr.c b/cuneiform_src/Kern/rstr/src/diffr.c +index 3427806..c4ad6aa 100644 +--- a/cuneiform_src/Kern/rstr/src/diffr.c ++++ b/cuneiform_src/Kern/rstr/src/diffr.c +@@ -168,7 +168,7 @@ extern uchar BUFFER[256]; /* + extern uchar LOCAL[50]; /* न */ + extern uchar LOCAL_W[50]; /* ਭ */ + extern uchar end1,beg2; /* 1 砫 2- */ +-extern broken_ii; /* 䫠 */ ++extern uchar broken_ii; /* 䫠 */ + extern int16_t dnri_hook; // bottom right hook in small russian italic II,III + extern int16_t uple_hook; // bottom left hook in small russian italic II,III + extern int16_t up_jack ; // upper jack +diff --git a/cuneiform_src/Kern/rstr/src/match_wd.c b/cuneiform_src/Kern/rstr/src/match_wd.c +index 7a8c7f5..ca5f933 100644 +--- a/cuneiform_src/Kern/rstr/src/match_wd.c ++++ b/cuneiform_src/Kern/rstr/src/match_wd.c +@@ -341,7 +341,7 @@ param.monitors=*((uint32_t*)points); + param.p2_active=1; //call while p2 pass + param.language=3; // LANG_RUSSIAN + +-if((rc=setjmp(Control_Point())) != 0) ++if((rc=setjmp(*Control_Point())) != 0) + return FALSE; + + w=match_string(ln, word, ¶m); +diff --git a/cuneiform_src/Kern/rstr/src/rcm.c b/cuneiform_src/Kern/rstr/src/rcm.c +index 0659b69..45cf362 100644 +--- a/cuneiform_src/Kern/rstr/src/rcm.c ++++ b/cuneiform_src/Kern/rstr/src/rcm.c +@@ -2648,7 +2648,7 @@ int16_t text_findstat_agressive(char * w) { + } + + jmp_buf * Control_Point() { +- return jumper; ++ return &jumper; + } + + ///////////// diff --git a/pkgs/by-name/cu/cuneiform/package.nix b/pkgs/by-name/cu/cuneiform/package.nix index f6d977297f90..2a677a51923b 100644 --- a/pkgs/by-name/cu/cuneiform/package.nix +++ b/pkgs/by-name/cu/cuneiform/package.nix @@ -25,6 +25,7 @@ stdenv.mkDerivation (finalAttrs: { url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/cuneiform/files/cuneiform-1.1.0-gcc11.patch?id=fd8e596c6a5eab634656e265c3da5241f5ceee8c"; sha256 = "14bp2f4dvlgxnpdza1rgszhkbxhp6p7lhgnb1s7c1x7vwdrx0ri7"; }) + ./gcc14-fix.patch ]; # Workaround build failure on -fno-common toolchains like upstream From 5a55fd0dc013abff444afd952f9e2ba6fff4a419 Mon Sep 17 00:00:00 2001 From: misilelab Date: Sun, 29 Dec 2024 03:20:16 +0900 Subject: [PATCH 54/90] patool: 2.4.0 -> 3.1.0 Signed-off-by: misilelab --- .../python-modules/patool/default.nix | 13 +- .../patool/fix-rar-detection.patch | 318 ++++++++++++++++++ 2 files changed, 329 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/python-modules/patool/fix-rar-detection.patch diff --git a/pkgs/development/python-modules/patool/default.nix b/pkgs/development/python-modules/patool/default.nix index 578b64208adc..3259bee2721b 100644 --- a/pkgs/development/python-modules/patool/default.nix +++ b/pkgs/development/python-modules/patool/default.nix @@ -38,7 +38,7 @@ let in buildPythonPackage rec { pname = "patool"; - version = "2.4.0"; + version = "3.1.0"; format = "setuptools"; #pypi doesn't have test data @@ -46,9 +46,14 @@ buildPythonPackage rec { owner = "wummel"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-dWyC8uTVUb06liNcJaG4oK9wqIDmwAl6i6cg4XRRRdQ="; + hash = "sha256-mt/GUIRJHB2/Rritc+uNkolZzguYy2G/NKnSKNxKsLk="; }; + patches = [ + # https://github.com/wummel/patool/pull/173 + ./fix-rar-detection.patch + ]; + postPatch = '' substituteInPlace patoolib/util.py \ --replace "path = None" 'path = os.environ["PATH"] + ":${lib.makeBinPath compression-utilities}"' @@ -61,6 +66,10 @@ buildPythonPackage rec { "test_unzip_file" "test_zip" "test_zip_file" + "test_7z" + "test_7z_file" + "test_7za_file" + "test_p7azip" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_ar" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/patool/fix-rar-detection.patch b/pkgs/development/python-modules/patool/fix-rar-detection.patch new file mode 100644 index 000000000000..fa6d31038da8 --- /dev/null +++ b/pkgs/development/python-modules/patool/fix-rar-detection.patch @@ -0,0 +1,318 @@ +From d10324eac4429ff3d7d38ad24a19210699229e07 Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Wed, 11 Dec 2024 06:34:36 +0200 +Subject: [PATCH 1/4] Use application/gzip as the preferred mimetype for gzip + +Signed-off-by: Alfred Wingate +--- + patoolib/__init__.py | 1 - + patoolib/mime.py | 16 +++++++++++++--- + tests/test_mime.py | 4 ++-- + 3 files changed, 15 insertions(+), 6 deletions(-) + +diff --git a/patoolib/__init__.py b/patoolib/__init__.py +index d665a28a..2247b615 100644 +--- a/patoolib/__init__.py ++++ b/patoolib/__init__.py +@@ -127,7 +127,6 @@ + 'application/x-cpio': 'cpio', + 'application/x-debian-package': 'deb', + 'application/x-dms': 'dms', +- 'application/x-gzip': 'gzip', + 'application/x-iso9660-image': 'iso', + 'application/x-lz4': 'lz4', + 'application/x-lzop': 'lzop', +diff --git a/patoolib/mime.py b/patoolib/mime.py +index 12405ada..c9d8894b 100644 +--- a/patoolib/mime.py ++++ b/patoolib/mime.py +@@ -135,9 +135,11 @@ def guess_mime(filename: str) -> tuple[str | None, str | None]: + Mime2Encoding: dict[str, str] = dict( + [(_val, _key) for _key, _val in Encoding2Mime.items()] + ) +-# libmagic before version 5.14 identified .gz files as application/x-gzip +-Mime2Encoding['application/x-gzip'] = 'gzip' + ++LegacyMimeType: dict[str, str] = { ++ # libmagic before version 5.14 identified .gz files as application/x-gzip ++ 'application/x-gzip': "application/gzip", ++} + + def guess_mime_mimedb(filename: str) -> tuple[str | None, str | None]: + """Guess MIME type from given filename. +@@ -192,6 +194,10 @@ def guess_mime_file(filename: str) -> tuple[str | None, str | None]: + except (OSError, subprocess.CalledProcessError) as err: + log_warning(f"error executing {cmd}: {err}") + mime2 = None ++ ++ if mime2 in LegacyMimeType: ++ mime2 = LegacyMimeType[mime2] ++ + # Some file(1) implementations return an empty or unknown mime type + # when the uncompressor program is not installed, other + # implementation return the original file type. +@@ -227,6 +233,10 @@ def guess_mime_file_mime( + except OSError as err: + # ignore errors, as file(1) is only a fallback + log_warning(f"error executing {cmd}: {err}") ++ ++ if mime in LegacyMimeType: ++ mime = LegacyMimeType[mime] ++ + if mime not in ArchiveMimetypes: + mime, encoding = None, None + return mime, encoding +@@ -253,7 +263,7 @@ def get_file_mime_encoding(parts: Sequence[str]) -> str | None: + "cpio archive": "application/x-cpio", + "ASCII cpio archive": "application/x-cpio", + "Debian binary package": "application/x-debian-package", +- "gzip compressed data": "application/x-gzip", ++ "gzip compressed data": "application/gzip", + "LZMA compressed data": "application/x-lzma", + "LRZIP compressed data": "application/x-lrzip", + "lzop compressed data": "application/x-lzop", +diff --git a/tests/test_mime.py b/tests/test_mime.py +index 40e73edf..3f292dfc 100644 +--- a/tests/test_mime.py ++++ b/tests/test_mime.py +@@ -81,8 +81,8 @@ def test_mime_file(self): + self.mime_test_file("t.cpio.foo", "application/x-cpio") + self.mime_test_file("t.deb", "application/x-debian-package") + self.mime_test_file("t.deb.foo", "application/x-debian-package") +- self.mime_test_file("t.txt.gz", ("application/gzip", "application/x-gzip")) +- self.mime_test_file("t.txt.gz.foo", ("application/gzip", "application/x-gzip")) ++ self.mime_test_file("t.txt.gz", "application/gzip") ++ self.mime_test_file("t.txt.gz.foo", "application/gzip") + self.mime_test_file("t.jar", "application/zip") + self.mime_test_file("t.jar.foo", "application/zip") + self.mime_test_file("t.txt.lzma", "application/x-lzma") + +From e7501d1c7805696ff5b2ecc779f7a56ab2425c3f Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Wed, 11 Dec 2024 06:37:54 +0200 +Subject: [PATCH 2/4] Change rar mime type to application/vnd.rar + +https://github.com/file/file/commit/d46a1f3dbbf58eb510c1779b8bdcc59d5ee24ab9 +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1068700 + +Signed-off-by: Alfred Wingate +--- + patoolib/__init__.py | 2 +- + patoolib/mime.py | 9 ++++++--- + tests/test_mime.py | 16 ++++++++-------- + 3 files changed, 15 insertions(+), 12 deletions(-) + +diff --git a/patoolib/__init__.py b/patoolib/__init__.py +index 2247b615..8b13181c 100644 +--- a/patoolib/__init__.py ++++ b/patoolib/__init__.py +@@ -136,7 +136,6 @@ + 'application/x-lrzip': 'lrzip', + 'application/x-lzh': 'lzh', + 'application/x-ms-wim': 'wim', +- 'application/x-rar': 'rar', + 'application/x-redhat-package-manager': 'rpm', + 'application/x-rpm': 'rpm', + 'application/x-rzip': 'rzip', +@@ -147,6 +146,7 @@ + 'application/x-xz': 'xz', + 'application/x-zip-compressed': 'zip', + 'application/x-zoo': 'zoo', ++ 'application/vnd.rar': 'rar', + 'application/zip': 'zip', + 'application/zpaq': 'zpaq', + "application/zstd": "zstd", +diff --git a/patoolib/mime.py b/patoolib/mime.py +index c9d8894b..8de9b180 100644 +--- a/patoolib/mime.py ++++ b/patoolib/mime.py +@@ -54,8 +54,8 @@ def add_mimedb_data(mimedb: mimetypes.MimeTypes) -> None: + add_mimetype(mimedb, 'application/x-lzma', '.lzma') + add_mimetype(mimedb, 'application/x-xz', '.xz') + add_mimetype(mimedb, 'application/java-archive', '.jar') +- add_mimetype(mimedb, 'application/x-rar', '.rar') +- add_mimetype(mimedb, 'application/x-rar', '.cbr') ++ add_mimetype(mimedb, 'application/vnd.rar', '.rar') ++ add_mimetype(mimedb, 'application/vnd.rar', '.cbr') + add_mimetype(mimedb, 'application/x-7z-compressed', '.7z') + add_mimetype(mimedb, 'application/x-7z-compressed', '.cb7') + add_mimetype(mimedb, 'application/x-cab', '.cab') +@@ -139,8 +139,11 @@ def guess_mime(filename: str) -> tuple[str | None, str | None]: + LegacyMimeType: dict[str, str] = { + # libmagic before version 5.14 identified .gz files as application/x-gzip + 'application/x-gzip': "application/gzip", ++ # libmagic before version 5.46 identified .rar files as application/x-rar ++ 'application/x-rar': "application/vnd.rar", + } + ++ + def guess_mime_mimedb(filename: str) -> tuple[str | None, str | None]: + """Guess MIME type from given filename. + @return: tuple (mime, encoding) +@@ -268,7 +271,7 @@ def get_file_mime_encoding(parts: Sequence[str]) -> str | None: + "LRZIP compressed data": "application/x-lrzip", + "lzop compressed data": "application/x-lzop", + "Microsoft Cabinet archive data": "application/vnd.ms-cab-compressed", +- "RAR archive data": "application/x-rar", ++ "RAR archive data": "application/vnd.rar", + "RPM ": "application/x-redhat-package-manager", + "POSIX tar archive": "application/x-tar", + "xz compressed data": "application/x-xz", +diff --git a/tests/test_mime.py b/tests/test_mime.py +index 3f292dfc..8f3ecb8c 100644 +--- a/tests/test_mime.py ++++ b/tests/test_mime.py +@@ -91,10 +91,10 @@ def test_mime_file(self): + self.mime_test_file("t.txt.lz.foo", "application/x-lzip") + self.mime_test_file("t.txt.lzo", "application/x-lzop") + self.mime_test_file("t.txt.lzo.foo", "application/x-lzop") +- self.mime_test_file("t.rar", "application/x-rar") +- self.mime_test_file("t.rar.foo", "application/x-rar") +- self.mime_test_file("t.cbr", "application/x-rar") +- self.mime_test_file("t.cbr.foo", "application/x-rar") ++ self.mime_test_file("t.rar", "application/vnd.rar") ++ self.mime_test_file("t.rar.foo", "application/vnd.rar") ++ self.mime_test_file("t.cbr", "application/vnd.rar") ++ self.mime_test_file("t.cbr.foo", "application/vnd.rar") + self.mime_test_file("t.rpm", "application/x-rpm") + self.mime_test_file("t.rpm.foo", "application/x-rpm") + self.mime_test_file("t.tar", "application/x-tar") +@@ -197,8 +197,8 @@ def test_nested_gzip(self): + """Test mime detection of archives with double compression""" + # We won't extract this with rar, as it doesn't support archives wrapped in gzip + # compression, but we will recognize the archive as a gzip-wrapped rar-file +- self.mime_test_file("t.rar.gz", "application/x-rar", "gzip") +- self.mime_test_file("t.rar.gz.foo", "application/x-rar", "gzip") ++ self.mime_test_file("t.rar.gz", "application/vnd.rar", "gzip") ++ self.mime_test_file("t.rar.gz.foo", "application/vnd.rar", "gzip") + + @needs_program('file') + @needs_program('gzip') +@@ -237,7 +237,7 @@ def test_mime_mimedb(self): + self.mime_test_mimedb("t .bz2", "application/x-bzip2") + self.mime_test_mimedb("t .bz3", "application/x-bzip3") + self.mime_test_mimedb("t.cab", "application/x-cab") +- self.mime_test_mimedb("t.cbr", ("application/rar", "application/x-rar")) ++ self.mime_test_mimedb("t.cbr", ("application/rar", "application/vnd.rar")) + self.mime_test_mimedb("t.cpio", "application/x-cpio") + self.mime_test_mimedb("t.deb", "application/x-debian-package") + self.mime_test_mimedb("t.gz", "application/gzip") +@@ -247,7 +247,7 @@ def test_mime_mimedb(self): + self.mime_test_mimedb("t.txt.lz", "application/x-lzip") + self.mime_test_mimedb("t.txt.lz4", "application/x-lz4") + self.mime_test_mimedb("t.lzo", "application/x-lzop") +- self.mime_test_mimedb("t.rar", ("application/rar", "application/x-rar")) ++ self.mime_test_mimedb("t.rar", ("application/rar", "application/vnd.rar")) + self.mime_test_mimedb( + "t.rpm", ("application/x-redhat-package-manager", "application/x-rpm") + ) + +From 85fafd16ec01a7eb793e04011617bb47211d446a Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Wed, 11 Dec 2024 06:40:41 +0200 +Subject: [PATCH 3/4] Remove references to application/rar + +application/vnd.rar is the IANA assigned mime type for rar. libmagic has +never refered to application/rar either, so there is no use for backwards +compatibility. + +https://www.iana.org/assignments/media-types/application/vnd.rar + +Signed-off-by: Alfred Wingate +--- + patoolib/__init__.py | 1 - + tests/test_mime.py | 4 ++-- + 2 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/patoolib/__init__.py b/patoolib/__init__.py +index 8b13181c..51f8b4eb 100644 +--- a/patoolib/__init__.py ++++ b/patoolib/__init__.py +@@ -110,7 +110,6 @@ + 'application/jar': 'zip', # reported on older systems such as ubuntu 14.04 + 'application/java-archive': 'zip', + 'application/vnd.android.package-archive': 'zip', +- 'application/rar': 'rar', + 'application/vnd.ms-cab-compressed': 'cab', + 'application/x-7z-compressed': '7z', + 'application/x-ace': 'ace', +diff --git a/tests/test_mime.py b/tests/test_mime.py +index 8f3ecb8c..287d8208 100644 +--- a/tests/test_mime.py ++++ b/tests/test_mime.py +@@ -237,7 +237,7 @@ def test_mime_mimedb(self): + self.mime_test_mimedb("t .bz2", "application/x-bzip2") + self.mime_test_mimedb("t .bz3", "application/x-bzip3") + self.mime_test_mimedb("t.cab", "application/x-cab") +- self.mime_test_mimedb("t.cbr", ("application/rar", "application/vnd.rar")) ++ self.mime_test_mimedb("t.cbr", "application/vnd.rar") + self.mime_test_mimedb("t.cpio", "application/x-cpio") + self.mime_test_mimedb("t.deb", "application/x-debian-package") + self.mime_test_mimedb("t.gz", "application/gzip") +@@ -247,7 +247,7 @@ def test_mime_mimedb(self): + self.mime_test_mimedb("t.txt.lz", "application/x-lzip") + self.mime_test_mimedb("t.txt.lz4", "application/x-lz4") + self.mime_test_mimedb("t.lzo", "application/x-lzop") +- self.mime_test_mimedb("t.rar", ("application/rar", "application/vnd.rar")) ++ self.mime_test_mimedb("t.rar", "application/vnd.rar") + self.mime_test_mimedb( + "t.rpm", ("application/x-redhat-package-manager", "application/x-rpm") + ) + +From bab80a04a72941b3c53e5fce1f96f5a2fc531280 Mon Sep 17 00:00:00 2001 +From: Alfred Wingate +Date: Wed, 11 Dec 2024 07:04:19 +0200 +Subject: [PATCH 4/4] Remove references to application/x-redhat-package-manager + +libmagic has never referred to x-redhat-package-manager and has had +x-rpm since 3.30. Red Hat themselves use x-rpm in their mailcap. + +https://pagure.io/mailcap/blob/master/f/mime.types + +Signed-off-by: Alfred Wingate +--- + patoolib/__init__.py | 1 - + patoolib/mime.py | 2 +- + tests/test_mime.py | 4 +--- + 3 files changed, 2 insertions(+), 5 deletions(-) + +diff --git a/patoolib/__init__.py b/patoolib/__init__.py +index 51f8b4eb..9d8bc849 100644 +--- a/patoolib/__init__.py ++++ b/patoolib/__init__.py +@@ -135,7 +135,6 @@ + 'application/x-lrzip': 'lrzip', + 'application/x-lzh': 'lzh', + 'application/x-ms-wim': 'wim', +- 'application/x-redhat-package-manager': 'rpm', + 'application/x-rpm': 'rpm', + 'application/x-rzip': 'rzip', + 'application/x-shar': 'shar', +diff --git a/patoolib/mime.py b/patoolib/mime.py +index 8de9b180..ffad9cd0 100644 +--- a/patoolib/mime.py ++++ b/patoolib/mime.py +@@ -272,7 +272,7 @@ def get_file_mime_encoding(parts: Sequence[str]) -> str | None: + "lzop compressed data": "application/x-lzop", + "Microsoft Cabinet archive data": "application/vnd.ms-cab-compressed", + "RAR archive data": "application/vnd.rar", +- "RPM ": "application/x-redhat-package-manager", ++ "RPM ": "application/x-rpm", + "POSIX tar archive": "application/x-tar", + "xz compressed data": "application/x-xz", + "Zip archive data": "application/zip", +diff --git a/tests/test_mime.py b/tests/test_mime.py +index 287d8208..a337f87a 100644 +--- a/tests/test_mime.py ++++ b/tests/test_mime.py +@@ -248,9 +248,7 @@ def test_mime_mimedb(self): + self.mime_test_mimedb("t.txt.lz4", "application/x-lz4") + self.mime_test_mimedb("t.lzo", "application/x-lzop") + self.mime_test_mimedb("t.rar", "application/vnd.rar") +- self.mime_test_mimedb( +- "t.rpm", ("application/x-redhat-package-manager", "application/x-rpm") +- ) ++ self.mime_test_mimedb("t.rpm", "application/x-rpm") + self.mime_test_mimedb("t.tar", "application/x-tar") + self.mime_test_mimedb("t.cbt", "application/x-tar") + self.mime_test_mimedb("t.tar.bz2", "application/x-tar", "bzip2") From a0d07c62c4726506bb36b939b8a993c3d1d1b092 Mon Sep 17 00:00:00 2001 From: Sam <30577766+Samasaur1@users.noreply.github.com> Date: Sat, 21 Dec 2024 11:34:14 -0800 Subject: [PATCH 55/90] xcodegen: init --- .../xc/xcodegen/0001-spectre-xct-record.patch | 34 ++++ pkgs/by-name/xc/xcodegen/nix/default.nix | 16 ++ .../xc/xcodegen/nix/workspace-state.json | 178 ++++++++++++++++++ pkgs/by-name/xc/xcodegen/package.nix | 76 ++++++++ 4 files changed, 304 insertions(+) create mode 100644 pkgs/by-name/xc/xcodegen/0001-spectre-xct-record.patch create mode 100644 pkgs/by-name/xc/xcodegen/nix/default.nix create mode 100644 pkgs/by-name/xc/xcodegen/nix/workspace-state.json create mode 100644 pkgs/by-name/xc/xcodegen/package.nix diff --git a/pkgs/by-name/xc/xcodegen/0001-spectre-xct-record.patch b/pkgs/by-name/xc/xcodegen/0001-spectre-xct-record.patch new file mode 100644 index 000000000000..4aef3141061e --- /dev/null +++ b/pkgs/by-name/xc/xcodegen/0001-spectre-xct-record.patch @@ -0,0 +1,34 @@ +diff --git a/Sources/Spectre/XCTest.swift b/Sources/Spectre/XCTest.swift +index 3704436..e759f14 100644 +--- a/Sources/Spectre/XCTest.swift ++++ b/Sources/Spectre/XCTest.swift +@@ -31,28 +31,6 @@ class XcodeReporter: ContextReporter { + func addDisabled(_ name: String) {} + + func addFailure(_ name: String, failure: FailureType) { +- // Xcode 12 removed `recordFailure` and replaced with `record(_:)` +- #if swift(>=4.2) +- // The `compiler` statement was added in swift 4.2, so it needs to be in a separate statement to retain +- // compatibility with 4.x. +- #if compiler(>=5.3) && os(macOS) +- let location = XCTSourceCodeLocation(filePath: failure.file, lineNumber: failure.line) +- #if Xcode +- // As of Xcode 12.0.1, XCTIssue is unavailable even though it is documented: +- // https://developer.apple.com/documentation/xctest/xctissue +- // When building with `swift build`, it is available. Perhaps the xctest overlay behaves differently between the two. +- let issue = XCTIssueReference(type: .assertionFailure, compactDescription: "\(name): \(failure.reason)", detailedDescription: nil, sourceCodeContext: .init(location: location), associatedError: nil, attachments: []) +- #else +- let issue = XCTIssue(type: .assertionFailure, compactDescription: "\(name): \(failure.reason)", detailedDescription: nil, sourceCodeContext: .init(location: location), associatedError: nil, attachments: []) +- #endif +- #if compiler(>=5.4) +- testCase.record(issue as XCTIssue) +- #else +- testCase.record(issue) +- #endif +- #else + testCase.recordFailure(withDescription: "\(name): \(failure.reason)", inFile: failure.file, atLine: failure.line, expected: false) +- #endif +- #endif + } + } +\ No newline at end of file diff --git a/pkgs/by-name/xc/xcodegen/nix/default.nix b/pkgs/by-name/xc/xcodegen/nix/default.nix new file mode 100644 index 000000000000..e9d58741591f --- /dev/null +++ b/pkgs/by-name/xc/xcodegen/nix/default.nix @@ -0,0 +1,16 @@ +# This file was generated by swiftpm2nix. +{ + workspaceStateFile = ./workspace-state.json; + hashes = { + "AEXML" = "sha256-bQcXq1aS76sOjW8yYCOlGVZ2tStDvzRQSyj9VrAj6nI="; + "ArtifactBundleGen" = "sha256-mSXJiRGFIm2RtzBG8l6s4RJ2BzSbPZKUZIqWM4vDIhc="; + "JSONUtilities" = "sha256-jl8XfgoB5IX0qwwDtzcWgK0u3SNG2HfrPoEb2a6/mlA="; + "PathKit" = "sha256-ewxTC1kpu6PXhwamCxYfI50ooYO1SIU0+IXH2tc/uv4="; + "Rainbow" = "sha256-zmd/wGFX0AYRvwecqQerlxDETMuBqQM+Whuf3JezAGM="; + "Spectre" = "sha256-fipGRIgw+jV7Wrxa+xivRk7YMyxDhGFB6SHIHscrmV8="; + "SwiftCLI" = "sha256-PmjzLss0D12iy6YKsudFa8i63NQAssyCBqqq8VjRiH4="; + "Version" = "sha256-4IwQlexWtIH9M0sSai1a+ITTAKkD2zJtbYoV4Cg+Snw="; + "XcodeProj" = "sha256-ycHDzay37YtT/3QqUpG6XPjRh32P5iU/I5GpfjrXs/I="; + "Yams" = "sha256-5qxuCkmopm3uFcoYJKQA8ofW98f53H1gZaPiOh2DS4U="; + }; +} diff --git a/pkgs/by-name/xc/xcodegen/nix/workspace-state.json b/pkgs/by-name/xc/xcodegen/nix/workspace-state.json new file mode 100644 index 000000000000..0f95461da6e0 --- /dev/null +++ b/pkgs/by-name/xc/xcodegen/nix/workspace-state.json @@ -0,0 +1,178 @@ +{ + "object": { + "artifacts": [], + "dependencies": [ + { + "basedOn": null, + "packageRef": { + "identity": "aexml", + "kind": "remoteSourceControl", + "location": "https://github.com/tadija/AEXML.git", + "name": "AEXML" + }, + "state": { + "checkoutState": { + "revision": "38f7d00b23ecd891e1ee656fa6aeebd6ba04ecc3", + "version": "4.6.1" + }, + "name": "sourceControlCheckout" + }, + "subpath": "AEXML" + }, + { + "basedOn": null, + "packageRef": { + "identity": "artifactbundlegen", + "kind": "remoteSourceControl", + "location": "https://github.com/freddi-kit/ArtifactBundleGen", + "name": "ArtifactBundleGen" + }, + "state": { + "checkoutState": { + "revision": "707e4ccc4b1c7e48e881cd5ea91e493a95df24bf", + "version": "0.0.6" + }, + "name": "sourceControlCheckout" + }, + "subpath": "ArtifactBundleGen" + }, + { + "basedOn": null, + "packageRef": { + "identity": "jsonutilities", + "kind": "remoteSourceControl", + "location": "https://github.com/yonaskolb/JSONUtilities.git", + "name": "JSONUtilities" + }, + "state": { + "checkoutState": { + "revision": "128d2ffc22467f69569ef8ff971683e2393191a0", + "version": "4.2.0" + }, + "name": "sourceControlCheckout" + }, + "subpath": "JSONUtilities" + }, + { + "basedOn": null, + "packageRef": { + "identity": "pathkit", + "kind": "remoteSourceControl", + "location": "https://github.com/kylef/PathKit.git", + "name": "PathKit" + }, + "state": { + "checkoutState": { + "revision": "3bfd2737b700b9a36565a8c94f4ad2b050a5e574", + "version": "1.0.1" + }, + "name": "sourceControlCheckout" + }, + "subpath": "PathKit" + }, + { + "basedOn": null, + "packageRef": { + "identity": "rainbow", + "kind": "remoteSourceControl", + "location": "https://github.com/onevcat/Rainbow.git", + "name": "Rainbow" + }, + "state": { + "checkoutState": { + "revision": "e0dada9cd44e3fa7ec3b867e49a8ddbf543e3df3", + "version": "4.0.1" + }, + "name": "sourceControlCheckout" + }, + "subpath": "Rainbow" + }, + { + "basedOn": null, + "packageRef": { + "identity": "spectre", + "kind": "remoteSourceControl", + "location": "https://github.com/kylef/Spectre.git", + "name": "Spectre" + }, + "state": { + "checkoutState": { + "revision": "26cc5e9ae0947092c7139ef7ba612e34646086c7", + "version": "0.10.1" + }, + "name": "sourceControlCheckout" + }, + "subpath": "Spectre" + }, + { + "basedOn": null, + "packageRef": { + "identity": "swiftcli", + "kind": "remoteSourceControl", + "location": "https://github.com/jakeheis/SwiftCLI.git", + "name": "SwiftCLI" + }, + "state": { + "checkoutState": { + "revision": "2e949055d9797c1a6bddcda0e58dada16cc8e970", + "version": "6.0.3" + }, + "name": "sourceControlCheckout" + }, + "subpath": "SwiftCLI" + }, + { + "basedOn": null, + "packageRef": { + "identity": "version", + "kind": "remoteSourceControl", + "location": "https://github.com/mxcl/Version", + "name": "Version" + }, + "state": { + "checkoutState": { + "revision": "a94b48f36763c05629fc102837398505032dead9", + "version": "2.0.0" + }, + "name": "sourceControlCheckout" + }, + "subpath": "Version" + }, + { + "basedOn": null, + "packageRef": { + "identity": "xcodeproj", + "kind": "remoteSourceControl", + "location": "https://github.com/tuist/XcodeProj.git", + "name": "XcodeProj" + }, + "state": { + "checkoutState": { + "revision": "447c159b0c5fb047a024fd8d942d4a76cf47dde0", + "version": "8.16.0" + }, + "name": "sourceControlCheckout" + }, + "subpath": "XcodeProj" + }, + { + "basedOn": null, + "packageRef": { + "identity": "yams", + "kind": "remoteSourceControl", + "location": "https://github.com/jpsim/Yams.git", + "name": "Yams" + }, + "state": { + "checkoutState": { + "revision": "01835dc202670b5bb90d07f3eae41867e9ed29f6", + "version": "5.0.1" + }, + "name": "sourceControlCheckout" + }, + "subpath": "Yams" + } + ] + }, + "version": 6 +} diff --git a/pkgs/by-name/xc/xcodegen/package.nix b/pkgs/by-name/xc/xcodegen/package.nix new file mode 100644 index 000000000000..d302092be93c --- /dev/null +++ b/pkgs/by-name/xc/xcodegen/package.nix @@ -0,0 +1,76 @@ +{ + lib, + swiftPackages, + swift, + swiftpm, + swiftpm2nix, + fetchFromGitHub, + versionCheckHook, + nix-update-script, + ... +}: + +let + # Pass the generated files to the helper. + generated = swiftpm2nix.helpers ./nix; +in + +swiftPackages.stdenv.mkDerivation (finalAttrs: { + pname = "xcodegen"; + version = "2.42.0"; + + src = fetchFromGitHub { + owner = "yonaskolb"; + repo = "XcodeGen"; + tag = finalAttrs.version; + hash = "sha256-wcjmADG+XnS2kR8BHe6ijApomucS9Tx7ZRjWZmTCUiI="; + }; + + # Including SwiftPM as a nativeBuildInput provides a buildPhase for you. + # This by default performs a release build using SwiftPM, essentially: + # swift build -c release + nativeBuildInputs = [ + swift + swiftpm + ]; + + buildInputs = [ + swiftPackages.XCTest + ]; + + # The helper provides a configure snippet that will prepare all dependencies + # in the correct place, where SwiftPM expects them. + configurePhase = + generated.configure + + '' + # Replace the dependency symlink with a writable copy + swiftpmMakeMutable Spectre + # Now apply a patch + patch -p1 -d .build/checkouts/Spectre -i ${./0001-spectre-xct-record.patch} + ''; + + installPhase = '' + mkdir -p $out/bin + cp "$(swiftpmBinPath)/${finalAttrs.pname}" $out/bin/ + ''; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "Swift command line tool for generating your Xcode project"; + homepage = "https://github.com/yonaskolb/XcodeGen"; + changelog = "https://github.com/XcodeGen/blob/${finalAttrs.version}/CHANGELOG.md"; + license = lib.licenses.mit; + platforms = lib.platforms.darwin; + maintainers = [ lib.maintainers.samasaur ]; + mainProgram = "xcodegen"; + }; +}) From 0887d1a0fecb8b601ca25312bae59a4f09225c95 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 28 Dec 2024 18:51:17 +0000 Subject: [PATCH 56/90] openapi-python-client: 0.22.0 -> 0.23.0 --- pkgs/by-name/op/openapi-python-client/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/op/openapi-python-client/package.nix b/pkgs/by-name/op/openapi-python-client/package.nix index 54bdb088ae57..4a7011ab9086 100644 --- a/pkgs/by-name/op/openapi-python-client/package.nix +++ b/pkgs/by-name/op/openapi-python-client/package.nix @@ -11,7 +11,7 @@ python3Packages.buildPythonApplication rec { pname = "openapi-python-client"; - version = "0.22.0"; + version = "0.23.0"; pyproject = true; src = fetchFromGitHub { @@ -19,7 +19,7 @@ python3Packages.buildPythonApplication rec { owner = "openapi-generators"; repo = "openapi-python-client"; tag = "v${version}"; - hash = "sha256-Z6gYSonnr2HrWieWFp20U1px8clC1yBCezn/pk428WI="; + hash = "sha256-jMRnzrQ5ZySaxrCloE9DLXt2O78d04+XHq4XlFUohjs="; }; nativeBuildInputs = From 34d48c3e804feae4c451770f5d7b507b9df68b6b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 28 Dec 2024 18:56:53 +0000 Subject: [PATCH 57/90] victoriametrics: 1.108.0 -> 1.108.1 --- pkgs/by-name/vi/victoriametrics/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/vi/victoriametrics/package.nix b/pkgs/by-name/vi/victoriametrics/package.nix index ecd71df40761..8ecaeba74b66 100644 --- a/pkgs/by-name/vi/victoriametrics/package.nix +++ b/pkgs/by-name/vi/victoriametrics/package.nix @@ -14,13 +14,13 @@ buildGoModule rec { pname = "VictoriaMetrics"; - version = "1.108.0"; + version = "1.108.1"; src = fetchFromGitHub { owner = "VictoriaMetrics"; repo = "VictoriaMetrics"; rev = "v${version}"; - hash = "sha256-c7I+H4KimGDAaDWT1vGyfdjfp/6Ci/kHVQELLsl3Ih4="; + hash = "sha256-UaWTBOlMf7SR3tBjeaNnokdSqtRrYm5rPQPi3UGxTvQ="; }; vendorHash = null; From ce305adae501a27be8c2d28a4c588b57b5643f8e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 28 Dec 2024 19:08:16 +0000 Subject: [PATCH 58/90] trufflehog: 3.87.0 -> 3.88.0 --- pkgs/tools/security/trufflehog/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/trufflehog/default.nix b/pkgs/tools/security/trufflehog/default.nix index 9f92da1b2755..0a9f52ae6ef2 100644 --- a/pkgs/tools/security/trufflehog/default.nix +++ b/pkgs/tools/security/trufflehog/default.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "trufflehog"; - version = "3.87.0"; + version = "3.88.0"; src = fetchFromGitHub { owner = "trufflesecurity"; repo = "trufflehog"; rev = "refs/tags/v${version}"; - hash = "sha256-xdRd2k8yZUVnAoQ2MjrbeP5RqLIu27+A0bXOIR6zZtQ="; + hash = "sha256-IAvVdq59epg/zQ8lLHlewIDBxZD5FmAYCt1xrJlghzM="; }; - vendorHash = "sha256-M8qasSqn0NdQOk7/Sq0NhK/YFMjJSrPRF61h5k3MPB0="; + vendorHash = "sha256-/wuv72PZGdEiTFuurBQJ+K4lunnkR51CrkyHaVb+/kY="; nativeBuildInputs = [ makeWrapper ]; From 9f95a717f998f8019ecc79fba81c28edc04be126 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 28 Dec 2024 20:59:52 +0000 Subject: [PATCH 59/90] changedetection-io: 0.48.01 -> 0.48.05 --- pkgs/by-name/ch/changedetection-io/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ch/changedetection-io/package.nix b/pkgs/by-name/ch/changedetection-io/package.nix index 797c6096e2d0..390f4079216b 100644 --- a/pkgs/by-name/ch/changedetection-io/package.nix +++ b/pkgs/by-name/ch/changedetection-io/package.nix @@ -6,14 +6,14 @@ python3.pkgs.buildPythonApplication rec { pname = "changedetection-io"; - version = "0.48.01"; + version = "0.48.05"; format = "setuptools"; src = fetchFromGitHub { owner = "dgtlmoon"; repo = "changedetection.io"; tag = version; - hash = "sha256-iUg6AzI92t8tZGX9LXkU1n8Q94qm/F7xWwsCMkClBnw="; + hash = "sha256-oOuHPOvs3qcQcibKyChe2AK1OB3JK/xRKUp1cj5p5PU="; }; pythonRelaxDeps = true; From 4a77d7b4a1cc73fdb0046cd3601fccb67ab920e0 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman <145775305+xokdvium@users.noreply.github.com> Date: Sun, 29 Dec 2024 00:25:01 +0300 Subject: [PATCH 60/90] rockcraft: actually use sources for 1.7.0 --- pkgs/by-name/ro/rockcraft/package.nix | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/ro/rockcraft/package.nix b/pkgs/by-name/ro/rockcraft/package.nix index 6b1d272edaa2..a326d4baac3f 100644 --- a/pkgs/by-name/ro/rockcraft/package.nix +++ b/pkgs/by-name/ro/rockcraft/package.nix @@ -13,18 +13,11 @@ python3Packages.buildPythonApplication rec { src = fetchFromGitHub { owner = "canonical"; repo = "rockcraft"; - rev = "1d87e33cf207b3a2f16eb125743ec11546fa0cb1"; - hash = "sha256-QnW3BMu4Tuvj8PCt5eYJbNMiojXpyJ1uza6hpMxxSOE="; + rev = version; + hash = "sha256-2Bo3qtpSSfNvqszlt9cCc9/rurDNDMySAaqLbvRmjjw="; }; - postPatch = '' - substituteInPlace rockcraft/__init__.py \ - --replace-fail "dev" "${version}" - - substituteInPlace rockcraft/utils.py \ - --replace-fail "distutils.util" "setuptools.dist" - ''; - + pyproject = true; build-system = with python3Packages; [ setuptools-scm ]; dependencies = with python3Packages; [ @@ -32,6 +25,7 @@ python3Packages.buildPythonApplication rec { craft-archives craft-platforms spdx-lookup + tabulate ]; nativeCheckInputs = @@ -42,7 +36,6 @@ python3Packages.buildPythonApplication rec { pytest-mock pytest-subprocess pytestCheckHook - tabulate ] ++ [ dpkg ]; @@ -51,7 +44,10 @@ python3Packages.buildPythonApplication rec { export HOME="$(pwd)/check-phase" ''; - disabledTests = [ "test_expand_extensions" ]; + disabledTests = [ + "test_run_init_flask" + "test_run_init_django" + ]; passthru.updateScript = nix-update-script { }; From 1d22a9aa5abc2b89cfb60e00b460697673cba4bc Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman <145775305+xokdvium@users.noreply.github.com> Date: Sun, 29 Dec 2024 00:43:51 +0300 Subject: [PATCH 61/90] rockcraft: add passthru.tests.version --- pkgs/by-name/ro/rockcraft/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ro/rockcraft/package.nix b/pkgs/by-name/ro/rockcraft/package.nix index a326d4baac3f..38bf29563dd2 100644 --- a/pkgs/by-name/ro/rockcraft/package.nix +++ b/pkgs/by-name/ro/rockcraft/package.nix @@ -4,6 +4,9 @@ fetchFromGitHub, dpkg, nix-update-script, + testers, + rockcraft, + cacert, }: python3Packages.buildPythonApplication rec { @@ -49,7 +52,14 @@ python3Packages.buildPythonApplication rec { "test_run_init_django" ]; - passthru.updateScript = nix-update-script { }; + passthru = { + updateScript = nix-update-script { }; + tests.version = testers.testVersion { + package = rockcraft; + command = "env SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt HOME=$(mktemp -d) rockcraft --version"; + version = "rockcraft ${version}"; + }; + }; meta = { mainProgram = "rockcraft"; From 15d38c4c5fc2ea9af0228b6bd32543e786fb3dba Mon Sep 17 00:00:00 2001 From: Saturn745 Date: Sat, 28 Dec 2024 16:06:43 -0700 Subject: [PATCH 62/90] netbird: 0.34.1 -> 0.35.1 Diff: https://github.com/netbirdio/netbird/compare/v0.34.1...0.35.1 Changelog: https://github.com/netbirdio/netbird/releases/tag/v0.35.1 --- pkgs/tools/networking/netbird/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/netbird/default.nix b/pkgs/tools/networking/netbird/default.nix index b2bb6c396000..f414b1a3f8d9 100644 --- a/pkgs/tools/networking/netbird/default.nix +++ b/pkgs/tools/networking/netbird/default.nix @@ -31,16 +31,16 @@ let in buildGoModule rec { pname = "netbird"; - version = "0.34.1"; + version = "0.35.1"; src = fetchFromGitHub { owner = "netbirdio"; repo = "netbird"; rev = "v${version}"; - hash = "sha256-UQ91Xjw7RTtTMCrCKyv8tk08hhgyXbjG+QKuVjNk4kM="; + hash = "sha256-PgJm0+HqJMdDjbX+9a86BmicArJCiegf4n7A1sHNQ0Y="; }; - vendorHash = "sha256-8ML6s+XPhciYHhWfUOQqgN2XSSqgZ9ULZ6+arWgQjMY="; + vendorHash = "sha256-CgfZZOiFDLf6vCbzovpwzt7FlO9BnzNSdR8e5U+xCDQ="; nativeBuildInputs = [ installShellFiles ] ++ lib.optional ui pkg-config; From 4579f217834b2e5d67595f187506f3e4b4e7f3a0 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 28 Dec 2024 18:06:26 +0100 Subject: [PATCH 63/90] distant: init at 0.20.0 --- pkgs/by-name/di/distant/package.nix | 81 +++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 pkgs/by-name/di/distant/package.nix diff --git a/pkgs/by-name/di/distant/package.nix b/pkgs/by-name/di/distant/package.nix new file mode 100644 index 000000000000..f9e1f8947b03 --- /dev/null +++ b/pkgs/by-name/di/distant/package.nix @@ -0,0 +1,81 @@ +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + pkg-config, + openssl, + zlib, + versionCheckHook, + nix-update-script, +}: + +rustPlatform.buildRustPackage rec { + pname = "distant"; + version = "0.20.0"; + + src = fetchFromGitHub { + owner = "chipsenkbeil"; + repo = "distant"; + tag = "v${version}"; + hash = "sha256-DcnleJUAeYg3GSLZljC3gO9ihiFz04dzT/ddMnypr48="; + }; + + cargoHash = "sha256-7MNNdm4b9u5YNX04nBtKcrw+phUlpzIXo0tJVfcgb40="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + zlib + ]; + + env = { + OPENSSL_NO_VENDOR = true; + }; + + preCheck = '' + export HOME=$(mktemp -d) + ''; + + checkFlags = + [ + # Requires network access: + # failed to lookup address information: Temporary failure in name resolution + "--skip=options::common::address::tests::resolve_should_properly_resolve_bind_address" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Timeout on darwin + # Custom { kind: TimedOut, error: "" } + "--skip=cli::api::watch::should_support_json_reporting_changes_using_correct_request_id" + "--skip=cli::api::watch::should_support_json_watching_directory_recursively" + "--skip=cli::api::watch::should_support_json_watching_single_file" + "--skip=cli::client::fs_watch::should_support_watching_a_directory_recursively" + "--skip=cli::client::fs_watch::should_support_watching_a_single_file" + ]; + + __darwinAllowLocalNetworking = true; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "Library and tooling that supports remote filesystem and process operations"; + homepage = "https://github.com/chipsenkbeil/distant"; + changelog = "https://github.com/chipsenkbeil/distant/blob/${version}/CHANGELOG.md"; + # From the README: + # "This project is licensed under either of Apache License, Version 2.0, MIT license at your option." + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; + mainProgram = "distant"; + }; +} From 5df295339a9d14cc52c6b5a9b532c5d79ac4ff4d Mon Sep 17 00:00:00 2001 From: Sam <30577766+Samasaur1@users.noreply.github.com> Date: Sat, 28 Dec 2024 19:06:49 -0800 Subject: [PATCH 64/90] jujutsu: update owner; change from rev to tag --- pkgs/by-name/ju/jujutsu/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ju/jujutsu/package.nix b/pkgs/by-name/ju/jujutsu/package.nix index 9e51be435988..750ce685575b 100644 --- a/pkgs/by-name/ju/jujutsu/package.nix +++ b/pkgs/by-name/ju/jujutsu/package.nix @@ -29,9 +29,9 @@ rustPlatform.buildRustPackage { inherit version; src = fetchFromGitHub { - owner = "martinvonz"; + owner = "jj-vcs"; repo = "jj"; - rev = "v${version}"; + tag = "v${version}"; hash = "sha256-XsD4P2UygZFcnlV2o3E/hRRgsGjwKw1r9zniEeAk758"; }; @@ -110,8 +110,8 @@ rustPlatform.buildRustPackage { meta = { description = "Git-compatible DVCS that is both simple and powerful"; - homepage = "https://github.com/martinvonz/jj"; - changelog = "https://github.com/martinvonz/jj/blob/v${version}/CHANGELOG.md"; + homepage = "https://github.com/jj-vcs/jj"; + changelog = "https://github.com/jj-vcs/jj/blob/v${version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ _0x4A6F From 5f3fe888943c71e9c04a862d3377c288bbbc8d69 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sun, 15 Dec 2024 11:24:42 -0800 Subject: [PATCH 65/90] oscavmgr: add version test --- pkgs/by-name/os/oscavmgr/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/os/oscavmgr/package.nix b/pkgs/by-name/os/oscavmgr/package.nix index 21a71ecbb42b..b71bf53b8549 100644 --- a/pkgs/by-name/os/oscavmgr/package.nix +++ b/pkgs/by-name/os/oscavmgr/package.nix @@ -7,6 +7,7 @@ openxr-loader, pkg-config, rustPlatform, + versionCheckHook, }: rustPlatform.buildRustPackage rec { @@ -32,6 +33,9 @@ rustPlatform.buildRustPackage rec { openxr-loader ]; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + postPatch = '' alvr_session=$(echo $cargoDepsCopy/alvr_session-*/) substituteInPlace "$alvr_session/build.rs" \ From af5356b74c2e04eceba7dec1a62a1a8b1d9a215a Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Sun, 29 Dec 2024 05:04:45 +0100 Subject: [PATCH 66/90] gzdoom: 4.13.2 -> 4.14.0 --- pkgs/by-name/gz/gzdoom/package.nix | 6 ++++-- pkgs/by-name/gz/gzdoom/string_format.patch | 13 +++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 pkgs/by-name/gz/gzdoom/string_format.patch diff --git a/pkgs/by-name/gz/gzdoom/package.nix b/pkgs/by-name/gz/gzdoom/package.nix index dee7b1971da1..17051d7692e6 100644 --- a/pkgs/by-name/gz/gzdoom/package.nix +++ b/pkgs/by-name/gz/gzdoom/package.nix @@ -28,16 +28,18 @@ stdenv.mkDerivation rec { pname = "gzdoom"; - version = "4.13.2"; + version = "4.14.0"; src = fetchFromGitHub { owner = "ZDoom"; repo = "gzdoom"; rev = "g${version}"; fetchSubmodules = true; - hash = "sha256-3nkdpJ3XO58YHtjVTwxdSdCL6CnMcih6mTnI7FXLm34="; + hash = "sha256-+gLWt1qBKl8xGK6sALnjqPuXcBexjWKbEkbRMFtLcbE="; }; + patches = [ ./string_format.patch ]; + outputs = [ "out" "doc" diff --git a/pkgs/by-name/gz/gzdoom/string_format.patch b/pkgs/by-name/gz/gzdoom/string_format.patch new file mode 100644 index 000000000000..8aa655c7acaa --- /dev/null +++ b/pkgs/by-name/gz/gzdoom/string_format.patch @@ -0,0 +1,13 @@ +diff --git a/src/common/engine/i_net.cpp b/src/common/engine/i_net.cpp +index ad106bbc4..0a67062a0 100644 +--- a/src/common/engine/i_net.cpp ++++ b/src/common/engine/i_net.cpp +@@ -1072,7 +1072,7 @@ void I_NetError(const char* error) + { + doomcom.numnodes = 0; + StartWindow->NetClose(); +- I_FatalError(error); ++ I_FatalError("%s", error); + } + + // todo: later these must be dispatched by the main menu, not the start screen. From 2e5268e2a5d559b03f293f96a6dce5f4b16de8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=95=E0=B8=B1=E0=B8=A5?= Date: Wed, 11 Dec 2024 20:19:58 +0700 Subject: [PATCH 67/90] =?UTF-8?q?use=20movim=E2=80=99s=20database=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nixos/modules/services/web-apps/movim.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/movim.nix b/nixos/modules/services/web-apps/movim.nix index 51c3156fef06..b3ddce693c08 100644 --- a/nixos/modules/services/web-apps/movim.nix +++ b/nixos/modules/services/web-apps/movim.nix @@ -575,7 +575,7 @@ in package = mkDefault pkgs.mariadb; ensureDatabases = [ cfg.database.name ]; ensureUsers = [{ - name = cfg.user; + name = cfg.database.user; ensureDBOwnership = true; }]; }; @@ -584,7 +584,7 @@ in enable = mkDefault true; ensureDatabases = [ cfg.database.name ]; ensureUsers = [{ - name = cfg.user; + name = cfg.database.user; ensureDBOwnership = true; }]; authentication = '' From 431afe7289d8d6c233c21f08222bb202abb743a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=95=E0=B8=B1=E0=B8=A5?= Date: Wed, 11 Dec 2024 20:27:03 +0700 Subject: [PATCH 68/90] use mkDefaults for Nginx config --- nixos/modules/services/web-apps/movim.nix | 171 +++++++++++----------- 1 file changed, 86 insertions(+), 85 deletions(-) diff --git a/nixos/modules/services/web-apps/movim.nix b/nixos/modules/services/web-apps/movim.nix index b3ddce693c08..4cb18c6b9b31 100644 --- a/nixos/modules/services/web-apps/movim.nix +++ b/nixos/modules/services/web-apps/movim.nix @@ -483,92 +483,93 @@ in }; }; - nginx = mkIf (cfg.nginx != null) { - enable = true; - recommendedOptimisation = true; - recommendedGzipSettings = true; - recommendedBrotliSettings = true; - recommendedProxySettings = true; - # TODO: recommended cache options already in Nginx⁇ - appendHttpConfig = /* nginx */ '' - fastcgi_cache_path /tmp/nginx_cache levels=1:2 keys_zone=nginx_cache:100m inactive=60m; - fastcgi_cache_key "$scheme$request_method$host$request_uri"; - ''; - virtualHosts."${cfg.domain}" = mkMerge [ - cfg.nginx - { - root = lib.mkForce "${package}/share/php/movim/public"; - locations = { - "/favicon.ico" = { - priority = 100; - extraConfig = /* nginx */ '' - access_log off; - log_not_found off; - ''; + nginx = mkIf (cfg.nginx != null) + { + enable = true; + recommendedOptimisation = mkDefault true; + recommendedProxySettings = true; + # TODO: recommended cache options already in Nginx⁇ + appendHttpConfig = /* nginx */ '' + fastcgi_cache_path /tmp/nginx_cache levels=1:2 keys_zone=nginx_cache:100m inactive=60m; + fastcgi_cache_key "$scheme$request_method$host$request_uri"; + ''; + virtualHosts."${cfg.domain}" = mkMerge [ + cfg.nginx + { + root = lib.mkForce "${package}/share/php/movim/public"; + locations = { + "/favicon.ico" = { + priority = 100; + extraConfig = /* nginx */ '' + access_log off; + log_not_found off; + ''; + }; + "/robots.txt" = { + priority = 100; + extraConfig = /* nginx */ '' + access_log off; + log_not_found off; + ''; + }; + "~ /\\.(?!well-known).*" = { + priority = 210; + extraConfig = /* nginx */ '' + deny all; + ''; + }; + # Ask nginx to cache every URL starting with "/picture" + "/picture" = { + priority = 400; + tryFiles = "$uri $uri/ /index.php$is_args$args"; + extraConfig = /* nginx */ '' + set $no_cache 0; # Enable cache only there + ''; + }; + "/" = { + priority = 490; + tryFiles = "$uri $uri/ /index.php$is_args$args"; + extraConfig = /* nginx */ '' + # https://github.com/movim/movim/issues/314 + add_header Content-Security-Policy "default-src 'self'; img-src 'self' aesgcm: https:; media-src 'self' aesgcm: https:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';"; + set $no_cache 1; + ''; + }; + "~ \\.php$" = { + priority = 500; + tryFiles = "$uri =404"; + extraConfig = /* nginx */ '' + include ${config.services.nginx.package}/conf/fastcgi.conf; + add_header X-Cache $upstream_cache_status; + fastcgi_ignore_headers "Cache-Control" "Expires" "Set-Cookie"; + fastcgi_cache nginx_cache; + fastcgi_cache_valid any 7d; + fastcgi_cache_bypass $no_cache; + fastcgi_no_cache $no_cache; + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_index index.php; + fastcgi_pass unix:${fpm.socket}; + ''; + }; + "/ws/" = { + priority = 900; + proxyPass = "http://${cfg.settings.DAEMON_INTERFACE}:${builtins.toString cfg.port}/"; + proxyWebsockets = true; + recommendedProxySettings = true; + extraConfig = /* nginx */ '' + proxy_set_header X-Forwarded-Proto $scheme; + proxy_redirect off; + ''; + }; }; - "/robots.txt" = { - priority = 100; - extraConfig = /* nginx */ '' - access_log off; - log_not_found off; - ''; - }; - "~ /\\.(?!well-known).*" = { - priority = 210; - extraConfig = /* nginx */ '' - deny all; - ''; - }; - # Ask nginx to cache every URL starting with "/picture" - "/picture" = { - priority = 400; - tryFiles = "$uri $uri/ /index.php$is_args$args"; - extraConfig = /* nginx */ '' - set $no_cache 0; # Enable cache only there - ''; - }; - "/" = { - priority = 490; - tryFiles = "$uri $uri/ /index.php$is_args$args"; - extraConfig = /* nginx */ '' - # https://github.com/movim/movim/issues/314 - add_header Content-Security-Policy "default-src 'self'; img-src 'self' aesgcm: https:; media-src 'self' aesgcm: https:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline';"; - set $no_cache 1; - ''; - }; - "~ \\.php$" = { - priority = 500; - tryFiles = "$uri =404"; - extraConfig = /* nginx */ '' - include ${config.services.nginx.package}/conf/fastcgi.conf; - add_header X-Cache $upstream_cache_status; - fastcgi_ignore_headers "Cache-Control" "Expires" "Set-Cookie"; - fastcgi_cache nginx_cache; - fastcgi_cache_valid any 7d; - fastcgi_cache_bypass $no_cache; - fastcgi_no_cache $no_cache; - fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_index index.php; - fastcgi_pass unix:${fpm.socket}; - ''; - }; - "/ws/" = { - priority = 900; - proxyPass = "http://${cfg.settings.DAEMON_INTERFACE}:${builtins.toString cfg.port}/"; - proxyWebsockets = true; - recommendedProxySettings = true; - extraConfig = /* nginx */ '' - proxy_set_header X-Forwarded-Proto $scheme; - proxy_redirect off; - ''; - }; - }; - extraConfig = /* ngnix */ '' - index index.php; - ''; - } - ]; - }; + extraConfig = /* ngnix */ '' + index index.php; + ''; + } + ]; + } + // lib.optionalAttrs (cfg.precompressStaticFiles.gzip.enable) { recommendedGzipSettings = mkDefault true; } + // lib.optionalAttrs (cfg.precompressStaticFiles.brotli.enable) { recommendedBrotliSettings = mkDefault true; }; mysql = mkIf (cfg.database.createLocally && cfg.database.type == "mysql") { enable = mkDefault true; From c15c466d29f4e80bd04ad5c679e0c081f66fcad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=95=E0=B8=B1=E0=B8=A5?= Date: Wed, 11 Dec 2024 20:28:05 +0700 Subject: [PATCH 69/90] typo in script name --- nixos/modules/services/web-apps/movim.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/movim.nix b/nixos/modules/services/web-apps/movim.nix index 4cb18c6b9b31..96090a7b0a1d 100644 --- a/nixos/modules/services/web-apps/movim.nix +++ b/nixos/modules/services/web-apps/movim.nix @@ -113,7 +113,7 @@ let (lib.optionalString gzip.enable '' echo -n "Precompressing static files with Gzip …" find ${appDir}/public -type f ${findTextFileNames} -print0 \ - | xargs -0 -n 1 -P $NIX_BUILD_CORES ${pkgs.writeShellScript "movim_precompress_broti" '' + | xargs -0 -n 1 -P $NIX_BUILD_CORES ${pkgs.writeShellScript "movim_precompress_gzip" '' file="$1" ${lib.getExe gzip.package} -c -${builtins.toString gzip.compressionLevel} $file > $file.gz ''} From 22c7e68534e76001fffea10181a3d63fb84c2e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=95=E0=B8=B1=E0=B8=A5?= Date: Thu, 12 Dec 2024 01:50:53 +0700 Subject: [PATCH 70/90] syntax hints for tree-sitter --- nixos/modules/services/web-apps/movim.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nixos/modules/services/web-apps/movim.nix b/nixos/modules/services/web-apps/movim.nix index 96090a7b0a1d..5d15b8e12ecb 100644 --- a/nixos/modules/services/web-apps/movim.nix +++ b/nixos/modules/services/web-apps/movim.nix @@ -60,7 +60,7 @@ let let appDir = "$out/share/php/${finalAttrs.pname}"; - stateDirectories = '' + stateDirectories = /* sh */ '' # Symlinking in our state directories rm -rf $out/.env $out/cache ${appDir}/public/cache ln -s ${cfg.dataDir}/.env ${appDir}/.env @@ -69,7 +69,7 @@ let ln -s ${cfg.runtimeDir}/cache ${appDir}/cache ''; - exposeComposer = '' + exposeComposer = /* sh */ '' # Expose PHP Composer for scripts mkdir -p $out/bin echo "#!${lib.getExe pkgs.dash}" > $out/bin/movim-composer @@ -85,10 +85,10 @@ let # Disable all Admin panel options that were set in the # `cfg.podConfig` to prevent confusing situtions where the # values are rewritten on server reboot - '' - substituteInPlace ${appDir}/app/Widgets/AdminMain/adminmain.tpl \ - --replace-warn 'name="${k}"' 'name="${k}" readonly' - '') + /* sh */ '' + substituteInPlace ${appDir}/app/Widgets/AdminMain/adminmain.tpl \ + --replace-warn 'name="${k}"' 'name="${k}" readonly' + '') [ ] cfg.podConfig)); @@ -101,7 +101,7 @@ let [ "css" "ini" "js" "json" "manifest" "mjs" "svg" "webmanifest" ]); in lib.concatStringsSep "\n" [ - (lib.optionalString brotli.enable '' + (lib.optionalString brotli.enable /* sh */ '' echo -n "Precompressing static files with Brotli …" find ${appDir}/public -type f ${findTextFileNames} -print0 \ | xargs -0 -n 1 -P $NIX_BUILD_CORES ${pkgs.writeShellScript "movim_precompress_broti" '' @@ -110,7 +110,7 @@ let ''} echo " done." '') - (lib.optionalString gzip.enable '' + (lib.optionalString gzip.enable /* sh */ '' echo -n "Precompressing static files with Gzip …" find ${appDir}/public -type f ${findTextFileNames} -print0 \ | xargs -0 -n 1 -P $NIX_BUILD_CORES ${pkgs.writeShellScript "movim_precompress_gzip" '' @@ -637,7 +637,7 @@ in LoadCredential = "env-secrets:${cfg.secretFile}"; }; - script = '' + script = /* sh */ '' # Env vars rm -f ${cfg.dataDir}/.env cp --no-preserve=all ${configFile} ${cfg.dataDir}/.env From 0d59a5928e712e3a87c7c0cfef7fbb40f0e53975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=95=E0=B8=B1=E0=B8=A5?= Date: Thu, 12 Dec 2024 12:14:47 +0700 Subject: [PATCH 71/90] optionally add group to nginx user --- nixos/modules/services/web-apps/movim.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/web-apps/movim.nix b/nixos/modules/services/web-apps/movim.nix index 5d15b8e12ecb..58827170ef79 100644 --- a/nixos/modules/services/web-apps/movim.nix +++ b/nixos/modules/services/web-apps/movim.nix @@ -440,6 +440,7 @@ in isSystemUser = true; group = cfg.group; }; + } // lib.optionalAttrs (cfg.nginx != null) { "${config.services.nginx.user}".extraGroups = [ cfg.group ]; }; groups = { From 180c953138c3371620197dee79cee3afd6c0ae1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=95=E0=B8=B1=E0=B8=A5?= Date: Mon, 16 Dec 2024 17:36:53 +0700 Subject: [PATCH 72/90] nixos/movim: rm logs if found --- nixos/modules/services/web-apps/movim.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/movim.nix b/nixos/modules/services/web-apps/movim.nix index 58827170ef79..78efbcf7b1b2 100644 --- a/nixos/modules/services/web-apps/movim.nix +++ b/nixos/modules/services/web-apps/movim.nix @@ -62,7 +62,7 @@ let stateDirectories = /* sh */ '' # Symlinking in our state directories - rm -rf $out/.env $out/cache ${appDir}/public/cache + rm -rf $out/{.env,cache} ${appDir}/{log,public/cache} ln -s ${cfg.dataDir}/.env ${appDir}/.env ln -s ${cfg.dataDir}/public/cache ${appDir}/public/cache ln -s ${cfg.logDir} ${appDir}/log From 8b4fd3e8d61280c3d690723ca3a8ee2dd4556e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B9=82=E0=B8=97=E0=B8=AA=E0=B8=95=E0=B8=B1=E0=B8=A5?= Date: Mon, 16 Dec 2024 18:07:19 +0700 Subject: [PATCH 73/90] movim: make mainProgram name match --- pkgs/by-name/mo/movim/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/mo/movim/package.nix b/pkgs/by-name/mo/movim/package.nix index 5aa5f4ed70ff..bc4b138ecc4e 100644 --- a/pkgs/by-name/mo/movim/package.nix +++ b/pkgs/by-name/mo/movim/package.nix @@ -155,8 +155,9 @@ php.buildComposerProject (finalAttrs: { postInstall = '' mkdir -p $out/bin echo "#!${lib.getExe dash}" > $out/bin/movim - echo "${lib.getExe finalAttrs.php} $out/share/php/${finalAttrs.pname}/daemon.php \"\$@\"" >> $out/bin/movim - chmod +x $out/bin/movim + echo "${lib.getExe finalAttrs.php} $out/share/php/${finalAttrs.pname}/daemon.php \"\$@\"" >> $out/bin/${finalAttrs.meta.mainProgram} + chmod +x $out/bin/${finalAttrs.meta.mainProgram} + mkdir -p $out/share/{bash-completion/completion,fish/vendor_completions.d,zsh/site-functions} $out/bin/movim completion bash | sed "s/daemon.php/movim/g" > $out/share/bash-completion/completion/movim.bash From 33a28d82f0f17344b1816f8036a290b81d668263 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 29 Dec 2024 14:23:41 +0800 Subject: [PATCH 74/90] arc_unpacker: fix build --- pkgs/by-name/ar/arc_unpacker/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ar/arc_unpacker/package.nix b/pkgs/by-name/ar/arc_unpacker/package.nix index a4ccc53567dc..e11506a976c6 100644 --- a/pkgs/by-name/ar/arc_unpacker/package.nix +++ b/pkgs/by-name/ar/arc_unpacker/package.nix @@ -42,6 +42,7 @@ stdenv.mkDerivation { postPatch = '' cp ${catch2}/include/catch2/catch.hpp tests/test_support/catch.h sed '1i#include ' -i src/dec/eagls/pak_archive_decoder.cc # gcc12 + sed '1i#include ' -i src/flow/cli_facade.h # gcc14 ''; nativeBuildInputs = [ From 9cefdf6752c014c5c75f8365986a02bcac6653d3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 29 Dec 2024 09:28:27 +0100 Subject: [PATCH 75/90] python312Packages.mypy-boto3-ecr: 1.35.87 -> 1.35.90 --- pkgs/development/python-modules/mypy-boto3/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mypy-boto3/default.nix b/pkgs/development/python-modules/mypy-boto3/default.nix index 992e16985df5..37971f142a48 100644 --- a/pkgs/development/python-modules/mypy-boto3/default.nix +++ b/pkgs/development/python-modules/mypy-boto3/default.nix @@ -454,8 +454,8 @@ rec { "sha256-0Xe77fz+lA+nuUGK+PjU0EgWeQ7AJ9Smsb/4yK1tow0="; mypy-boto3-ecr = - buildMypyBoto3Package "ecr" "1.35.87" - "sha256-XK9Q9fz05sI6XqO1BfGaZihfQhHssXgCf0GJONOBym8="; + buildMypyBoto3Package "ecr" "1.35.90" + "sha256-ocIOtpU5Ae9ggyXOTWY5LnpfGUnDHdG1e1XuO5q833w="; mypy-boto3-ecr-public = buildMypyBoto3Package "ecr-public" "1.35.87" From 61c9c48cba321725e19429747d4cdc33975e163f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 29 Dec 2024 09:28:29 +0100 Subject: [PATCH 76/90] python312Packages.mypy-boto3-ecr-public: 1.35.87 -> 1.35.90 --- pkgs/development/python-modules/mypy-boto3/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mypy-boto3/default.nix b/pkgs/development/python-modules/mypy-boto3/default.nix index 37971f142a48..b17ed18647cb 100644 --- a/pkgs/development/python-modules/mypy-boto3/default.nix +++ b/pkgs/development/python-modules/mypy-boto3/default.nix @@ -458,8 +458,8 @@ rec { "sha256-ocIOtpU5Ae9ggyXOTWY5LnpfGUnDHdG1e1XuO5q833w="; mypy-boto3-ecr-public = - buildMypyBoto3Package "ecr-public" "1.35.87" - "sha256-MvEGV9hSLsWPC+FoBH3K2F+DXvoeTSYfwE92QDp7ufU="; + buildMypyBoto3Package "ecr-public" "1.35.90" + "sha256-K63rvMDWrOWjyizRLwSs5DQn3ysF/VBqK2tVtiINx/0="; mypy-boto3-ecs = buildMypyBoto3Package "ecs" "1.35.83" From ccb42677912a45c78c7ed6850aa454f378883409 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 29 Dec 2024 09:30:02 +0100 Subject: [PATCH 77/90] python312Packages.mypy-boto3-network-firewall: 1.35.52 -> 1.35.88 --- pkgs/development/python-modules/mypy-boto3/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mypy-boto3/default.nix b/pkgs/development/python-modules/mypy-boto3/default.nix index b17ed18647cb..4f8a29574208 100644 --- a/pkgs/development/python-modules/mypy-boto3/default.nix +++ b/pkgs/development/python-modules/mypy-boto3/default.nix @@ -950,8 +950,8 @@ rec { "sha256-Epx+p5M+3x0plFaXdc8Rsz+p18ZnxbNlr4IhH5STvZM="; mypy-boto3-network-firewall = - buildMypyBoto3Package "network-firewall" "1.35.52" - "sha256-i4h13QqDO65bSTlxdt5hN6iXag578jc3Mv7bOHBZkpQ="; + buildMypyBoto3Package "network-firewall" "1.35.88" + "sha256-36FYuBsY8ZQ6o+T7U2zZclhHPvIRbeLby9oSJyshxa4="; mypy-boto3-networkmanager = buildMypyBoto3Package "networkmanager" "1.35.81" From abc4331f5f2710cd91818e1f4cbafba792eef6b4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 29 Dec 2024 09:30:28 +0100 Subject: [PATCH 78/90] python312Packages.mypy-boto3-rds: 1.35.82 -> 1.35.89 --- pkgs/development/python-modules/mypy-boto3/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mypy-boto3/default.nix b/pkgs/development/python-modules/mypy-boto3/default.nix index 4f8a29574208..ff989e2ece46 100644 --- a/pkgs/development/python-modules/mypy-boto3/default.nix +++ b/pkgs/development/python-modules/mypy-boto3/default.nix @@ -1086,8 +1086,8 @@ rec { "sha256-12AIEWhTwK3YdCUhImozJeO83Ye9G2D1VaKMeqbV/pE="; mypy-boto3-rds = - buildMypyBoto3Package "rds" "1.35.82" - "sha256-P1yEz5IrOIwTjXFH0lD2WetEffFwCDoKfSWU2Qb6/08="; + buildMypyBoto3Package "rds" "1.35.89" + "sha256-1Xf5cjgBurcHiwvgEQCdv3Ry9sxhGLoE2DIXwcyJCgw="; mypy-boto3-rds-data = buildMypyBoto3Package "rds-data" "1.35.64" From a2e6dae665625c716f6d346d25dc935e07e9776d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 29 Dec 2024 09:30:55 +0100 Subject: [PATCH 79/90] python312Packages.mypy-boto3-securityhub: 1.35.72 -> 1.35.88 --- pkgs/development/python-modules/mypy-boto3/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mypy-boto3/default.nix b/pkgs/development/python-modules/mypy-boto3/default.nix index ff989e2ece46..82520dd560de 100644 --- a/pkgs/development/python-modules/mypy-boto3/default.nix +++ b/pkgs/development/python-modules/mypy-boto3/default.nix @@ -1222,8 +1222,8 @@ rec { "sha256-w30YExW6ENhUaHIwTX8mbnRhQpsI5jUHwjzFCMPvQmQ="; mypy-boto3-securityhub = - buildMypyBoto3Package "securityhub" "1.35.72" - "sha256-+AeLQrA2MHQ94z4Rwq5/mhYc1+uJ0qZI1pm1FSnQOqM="; + buildMypyBoto3Package "securityhub" "1.35.88" + "sha256-s6qkdIPIwD4GUowrwg11EvyQu5rc9TBHXmkzPoxCE9Y="; mypy-boto3-securitylake = buildMypyBoto3Package "securitylake" "1.35.40" From 33b717475894bfd8fc5448c4830e25582efaa6b0 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sat, 21 Dec 2024 11:01:50 +0800 Subject: [PATCH 80/90] peakperf: init at 1.17-unstable-2024-10-07 --- pkgs/by-name/pe/peakperf/package.nix | 74 ++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 pkgs/by-name/pe/peakperf/package.nix diff --git a/pkgs/by-name/pe/peakperf/package.nix b/pkgs/by-name/pe/peakperf/package.nix new file mode 100644 index 000000000000..379963aac156 --- /dev/null +++ b/pkgs/by-name/pe/peakperf/package.nix @@ -0,0 +1,74 @@ +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + config, + enableCuda ? config.cudaSupport, + cudaPackages, + versionCheckHook, + installShellFiles, + unstableGitUpdater, + fetchpatch, + autoAddDriverRunpath, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "peakperf"; + version = "1.17-unstable-2024-10-07"; + + src = fetchFromGitHub { + owner = "Dr-Noob"; + repo = "peakperf"; + rev = "289c8a2f58eb51712d346d5c993b3c1d136bf031"; + hash = "sha256-CoGWj+zskcv8caFjhy55GKTKqFq2y1/nMjiVc6TzU1c="; + }; + + nativeBuildInputs = + [ + cmake + installShellFiles + ] + ++ lib.optionals enableCuda [ + cudaPackages.cuda_nvcc + autoAddDriverRunpath + ]; + + buildInputs = lib.optionals enableCuda [ + cudaPackages.cuda_cudart + cudaPackages.cuda_nvml_dev + ]; + + postInstall = '' + installManPage ${finalAttrs.src}/peakperf.1 + ''; + + passthru = { + updateScript = unstableGitUpdater { }; + }; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + + versionCheckProgramArg = [ + "-v" + ]; + + preVersionCheck = '' + export version=1.17 + ''; + + doInstallCheck = true; + + versionCheckProgram = "${placeholder "out"}/bin/peakperf"; + + meta = { + homepage = "https://github.com/Dr-Noob/peakperf"; + description = "Achieve peak performance on x86 CPUs and NVIDIA GPUs"; + mainProgram = "peakperf"; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + platforms = [ "x86_64-linux" ]; + license = lib.licenses.gpl2Only; + }; +}) From 8a3157d3b9ef0b1d4eae1e2cb57d40b4762476f2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 29 Dec 2024 09:03:02 +0000 Subject: [PATCH 81/90] mympd: 19.0.1 -> 19.0.2 --- pkgs/by-name/my/mympd/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/my/mympd/package.nix b/pkgs/by-name/my/mympd/package.nix index 6de5fae0aec5..fda140295ea5 100644 --- a/pkgs/by-name/my/mympd/package.nix +++ b/pkgs/by-name/my/mympd/package.nix @@ -18,13 +18,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "mympd"; - version = "19.0.1"; + version = "19.0.2"; src = fetchFromGitHub { owner = "jcorporation"; repo = "myMPD"; rev = "v${finalAttrs.version}"; - sha256 = "sha256-kpNsISDc9L+eeaKCFg3QsZFHIv1+yTIv3svRdGGbNQ0="; + sha256 = "sha256-44aorX4i+/kwWMIlM1Z+I81PT+Udjk0llg706eVKONY="; }; nativeBuildInputs = [ From 716c9419b082aed4560232b277f8be6250858926 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 29 Dec 2024 04:09:33 -0500 Subject: [PATCH 82/90] ghostty: add nixos tests, add build options, fix x11 backend (#368726) * ghostty: add nixos test * ghostty: add nixosTests.allTerminfo to passthru.tests * ghostty: factor out dependencies This is meant to make cross platform support a bit easier. The options are kept private as they aren't meant to be touched by end users * ghostty: add optimizationLevel option * ghostty: cleanup outputs * ghostty: fix x11 backend Forcing linkage isn't enough for Zig's `dlopen()` call. Let's just point it towards the exact path instead * ghostty: add darwin to meta.platforms --- nixos/tests/terminal-emulators.nix | 2 + pkgs/by-name/gh/ghostty/package.nix | 190 ++++++++++++++++++---------- 2 files changed, 124 insertions(+), 68 deletions(-) diff --git a/nixos/tests/terminal-emulators.nix b/nixos/tests/terminal-emulators.nix index 1affcbf3c8f7..3fc820d3ac8b 100644 --- a/nixos/tests/terminal-emulators.nix +++ b/nixos/tests/terminal-emulators.nix @@ -44,6 +44,8 @@ let germinal.pkg = p: p.germinal; + ghostty.pkg = p: p.ghostty; + gnome-terminal.pkg = p: p.gnome-terminal; guake.pkg = p: p.guake; diff --git a/pkgs/by-name/gh/ghostty/package.nix b/pkgs/by-name/gh/ghostty/package.nix index cbafd16ba362..dc5e936d2e14 100644 --- a/pkgs/by-name/gh/ghostty/package.nix +++ b/pkgs/by-name/gh/ghostty/package.nix @@ -1,44 +1,59 @@ { + lib, + stdenv, bzip2, callPackage, - expat, fetchFromGitHub, fontconfig, freetype, glib, glslang, harfbuzz, - lib, - libadwaita, libGL, - libpng, libX11, - libXcursor, - libXi, - libXrandr, + libadwaita, ncurses, nixosTests, oniguruma, pandoc, pkg-config, removeReferencesTo, - stdenv, versionCheckHook, wrapGAppsHook4, zig_0_13, - zlib, + # Usually you would override `zig.hook` with this, but we do that internally + # since upstream recommends a non-default level + # https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/PACKAGING.md#build-options + optimizeLevel ? "ReleaseFast", + # https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/build.zig#L106 + withAdwaita ? true, }: + let - # Ghostty needs to be built with --release=fast, --release=debug and - # --release=safe enable too many runtime safety checks. zig_hook = zig_0_13.hook.overrideAttrs { - zig_default_flags = "-Dcpu=baseline -Doptimize=ReleaseFast --color off"; + zig_default_flags = "-Dcpu=baseline -Doptimize=${optimizeLevel} --color off"; }; + + # https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/src/apprt.zig#L72-L76 + appRuntime = if stdenv.hostPlatform.isLinux then "gtk" else "none"; + # https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/src/font/main.zig#L94 + fontBackend = if stdenv.hostPlatform.isDarwin then "coretext" else "fontconfig_freetype"; + # https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/src/renderer.zig#L51-L52 + renderer = if stdenv.hostPlatform.isDarwin then "metal" else "opengl"; in + stdenv.mkDerivation (finalAttrs: { pname = "ghostty"; version = "1.0.0"; + outputs = [ + "out" + "man" + "shell_integration" + "terminfo" + "vim" + ]; + src = fetchFromGitHub { owner = "ghostty-org"; repo = "ghostty"; @@ -46,50 +61,56 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-AHI1Z4mfgXkNwQA8xYq4tS0/BARbHL7gQUT41vCxQTM="; }; - strictDeps = true; - - nativeBuildInputs = [ - glib # Required for `glib-compile-schemas` - ncurses - pandoc - pkg-config - removeReferencesTo - wrapGAppsHook4 - zig_hook - ]; - - buildInputs = [ - bzip2 - expat - fontconfig - freetype - glslang - harfbuzz - libadwaita - libGL - libpng - libX11 - libXcursor - libXi - libXrandr - oniguruma - zlib - ]; - - dontConfigure = true; - # doCheck is set to false because unit tests currently fail inside the Nix sandbox. - doCheck = false; - doInstallCheck = true; + # Avoid using runtime hacks to help find X11 + postPatch = lib.optionalString (appRuntime == "gtk") '' + substituteInPlace src/apprt/gtk/x11.zig \ + --replace-warn 'std.DynLib.open("libX11.so");' 'std.DynLib.open("${lib.getLib libX11}/lib/libX11.so");' + ''; deps = callPackage ./deps.nix { name = "${finalAttrs.pname}-cache-${finalAttrs.version}"; }; + strictDeps = true; + + nativeBuildInputs = + [ + ncurses + pandoc + pkg-config + removeReferencesTo + zig_hook + ] + ++ lib.optionals (appRuntime == "gtk") [ + glib # Required for `glib-compile-schemas` + wrapGAppsHook4 + ]; + + buildInputs = + [ + glslang + oniguruma + ] + ++ lib.optional (appRuntime == "gtk" && withAdwaita) libadwaita + ++ lib.optional (appRuntime == "gtk") libX11 + ++ lib.optional (renderer == "opengl") libGL + ++ lib.optionals (fontBackend == "fontconfig_freetype") [ + bzip2 + fontconfig + freetype + harfbuzz + ]; + zigBuildFlags = [ "--system" "${finalAttrs.deps}" "-Dversion-string=${finalAttrs.version}" + + "-Dapp-runtime=${appRuntime}" + "-Dfont-backend=${fontBackend}" + "-Dgtk-adwaita=${lib.boolToString withAdwaita}" + "-Drenderer=${renderer}" ] ++ lib.mapAttrsToList (name: package: "-fsys=${name} --search-prefix ${lib.getLib package}") { inherit glslang; @@ -97,40 +118,65 @@ stdenv.mkDerivation (finalAttrs: { zigCheckFlags = finalAttrs.zigBuildFlags; - outputs = [ - "out" - "terminfo" - "shell_integration" - "vim" - ]; + # Unit tests currently fail inside the sandbox + doCheck = false; - postInstall = '' - mkdir -p "$terminfo/share" - mv "$out/share/terminfo" "$terminfo/share/terminfo" - ln -sf "$terminfo/share/terminfo" "$out/share/terminfo" + /** + Ghostty really likes all of it's resources to be in the same directory, so link them back after we split them - mkdir -p "$shell_integration" - mv "$out/share/ghostty/shell-integration" "$shell_integration/shell-integration" - ln -sf "$shell_integration/shell-integration" "$out/share/ghostty/shell-integration" + - https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/src/os/resourcesdir.zig#L11-L52 + - https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/src/termio/Exec.zig#L745-L750 + - https://github.com/ghostty-org/ghostty/blob/4b4d4062dfed7b37424c7210d1230242c709e990/src/termio/Exec.zig#L818-L834 + + terminfo and shell integration should also be installable on remote machines + + ```nix + { pkgs, ... }: { + environment.systemPackages = [ pkgs.ghostty.terminfo ]; + + programs.bash = { + interactiveShellInit = '' + if [[ "$TERM" == "xterm-ghostty" ]]; then + builtin source ${pkgs.ghostty.shell_integration}/bash/ghostty.bash + fi + ''; + }; + } + ``` + */ + postFixup = '' + ln -s $man/share/man $out/share/man + + moveToOutput share/terminfo $terminfo + ln -s $terminfo/share/terminfo $out/share/terminfo + + mv $out/share/ghostty/shell-integration $shell_integration + ln -s $shell_integration $out/share/ghostty/shell-integration + + mv $out/share/vim/vimfiles $vim + rmdir $out/share/vim + ln -s $vim $out/share/vim-plugins - mv "$out/share/vim/vimfiles" "$vim" - ln -sf "$vim" "$out/share/vim/vimfiles" - ''; - preFixup = '' remove-references-to -t ${finalAttrs.deps} $out/bin/ghostty ''; - NIX_LDFLAGS = [ "-lX11" ]; - nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + versionCheckProgramArg = [ "--version" ]; + passthru = { + tests = lib.optionalAttrs stdenv.hostPlatform.isLinux { + inherit (nixosTests) allTerminfo; + nixos = nixosTests.terminal-emulators.ghostty; + }; + }; + meta = { - homepage = "https://ghostty.org/"; description = "Fast, native, feature-rich terminal emulator pushing modern features"; longDescription = '' Ghostty is a terminal emulator that differentiates itself by being @@ -138,16 +184,24 @@ stdenv.mkDerivation (finalAttrs: { emulators available, they all force you to choose between speed, features, or native UIs. Ghostty provides all three. ''; + homepage = "https://ghostty.org/"; downloadPage = "https://ghostty.org/download"; license = lib.licenses.mit; - platforms = lib.platforms.linux; mainProgram = "ghostty"; - outputsToInstall = finalAttrs.outputs; maintainers = with lib.maintainers; [ jcollie pluiedev getchoo ]; + outputsToInstall = [ + "out" + "man" + "shell_integration" + "terminfo" + ]; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + # Issues finding the SDK in the sandbox + broken = stdenv.hostPlatform.isDarwin; }; }) From 24543ec1cd4600143b18a1d177f171980b7e7578 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sat, 21 Dec 2024 09:59:45 +0800 Subject: [PATCH 83/90] gpufetch: init at 0.25 --- pkgs/by-name/gp/gpufetch/package.nix | 75 ++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 pkgs/by-name/gp/gpufetch/package.nix diff --git a/pkgs/by-name/gp/gpufetch/package.nix b/pkgs/by-name/gp/gpufetch/package.nix new file mode 100644 index 000000000000..3a40a1df76f7 --- /dev/null +++ b/pkgs/by-name/gp/gpufetch/package.nix @@ -0,0 +1,75 @@ +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + config, + pciutils, + cudaSupport ? config.cudaSupport, + cudaPackages, + installShellFiles, + autoAddDriverRunpath, + gitUpdater, + versionCheckHook, + zlib, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "gpufetch"; + version = "0.25"; + + src = fetchFromGitHub { + owner = "Dr-Noob"; + repo = "gpufetch"; + tag = "v${finalAttrs.version}"; + hash = "sha256-1j23h3TDxa2xu03o37fXfRL3XFYyhMWFGupAlkrYpBY="; + }; + + nativeBuildInputs = + [ + cmake + installShellFiles + ] + ++ lib.optionals cudaSupport [ + cudaPackages.cuda_nvcc + autoAddDriverRunpath + ]; + + buildInputs = + [ + zlib + pciutils + ] + ++ lib.optionals cudaSupport [ + cudaPackages.cuda_cudart + cudaPackages.cuda_nvml_dev + ]; + + installPhase = '' + runHook preInstall + + installManPage ${finalAttrs.src}/gpufetch.1 + install -Dm755 ./gpufetch $out/bin/gpufetch + + runHook postInstall + ''; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + + passthru = { + updateScript = gitUpdater { rev-prefix = "v"; }; + }; + + meta = { + description = "Simple yet fancy GPU architecture fetching tool"; + homepage = "https://github.com/Dr-Noob/gpufetch"; + license = lib.licenses.gpl2Only; + mainProgram = "gpufetch"; + maintainers = with lib.maintainers; [ bot-wxt1221 ]; + platforms = [ "x86_64-linux" ]; + }; +}) From 1186e7e8ddbc603f835a72a43dd2032d9f872fc6 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 15 Dec 2024 19:53:11 +0800 Subject: [PATCH 84/90] python312Packages.picos: 2.0 -> 2.5 --- .../python-modules/picos/default.nix | 38 +++++++++++++------ 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/picos/default.nix b/pkgs/development/python-modules/picos/default.nix index 5d5e715ec648..0dbc12aa42a4 100644 --- a/pkgs/development/python-modules/picos/default.nix +++ b/pkgs/development/python-modules/picos/default.nix @@ -1,41 +1,57 @@ { lib, buildPythonPackage, - fetchFromGitLab, + fetchPypi, numpy, cvxopt, python, networkx, + scipy, + pythonOlder, + stdenv, }: buildPythonPackage rec { pname = "picos"; - version = "2.0"; + version = "2.5.1"; format = "setuptools"; - src = fetchFromGitLab { - owner = "picos-api"; - repo = "picos"; - rev = "v${version}"; - sha256 = "1k65iq791k5r08gh2kc6iz0xw1wyzqik19j6iam8ip732r7jm607"; + src = fetchPypi { + inherit pname version; + hash = "sha256-Zmtzhfeu0FURK7pCDJ7AsZc6ElZfrt73rVH3g8OkkCs="; }; # Needed only for the tests nativeCheckInputs = [ networkx ]; - propagatedBuildInputs = [ + dependencies = [ numpy cvxopt + scipy ]; + postPatch = + lib.optionalString (pythonOlder "3.12") '' + substituteInPlace picos/modeling/problem.py \ + --replace-fail "mappingproxy(OrderedDict({'x': <3×1 Real Variable: x>}))" "mappingproxy(OrderedDict([('x', <3×1 Real Variable: x>)]))" + '' + # TypeError: '<=' not supported between instances of 'ComplexAffineExpression' and 'float' + + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' + rm tests/ptest_quantentr.py + ''; + checkPhase = '' + runHook preCheck + ${python.interpreter} test.py + + runHook postCheck ''; - meta = with lib; { + meta = { description = "Python interface to conic optimization solvers"; homepage = "https://gitlab.com/picos-api/picos"; - license = licenses.gpl3; - maintainers = with maintainers; [ tobiasBora ]; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ tobiasBora ]; }; } From 961b9e65e63209e559b054afbe64bd62820033f5 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 29 Dec 2024 15:32:22 +0530 Subject: [PATCH 85/90] catimg: fix compilation with gcc-14 --- pkgs/by-name/ca/catimg/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/ca/catimg/package.nix b/pkgs/by-name/ca/catimg/package.nix index 8bc3ba1f8750..32d92fa65846 100644 --- a/pkgs/by-name/ca/catimg/package.nix +++ b/pkgs/by-name/ca/catimg/package.nix @@ -17,6 +17,9 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake ]; + env = lib.optionalAttrs (stdenv.hostPlatform.libc == "glibc") { + CFLAGS = "-D_DEFAULT_SOURCE"; + }; meta = with lib; { license = licenses.mit; From 42e57decdf4da8a2ba57c690b56a9771900a2b2d Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 29 Dec 2024 15:54:49 +0530 Subject: [PATCH 86/90] paper-clip: fix compilation error caused by glib --- ...processLauncher-instead-of-GFile-API.patch | 66 +++++++++++++++++++ pkgs/by-name/pa/paper-clip/package.nix | 6 ++ ...-Solve-Vala-errors-at-C-compile-time.patch | 24 +++++++ 3 files changed, 96 insertions(+) create mode 100644 pkgs/by-name/pa/paper-clip/document-Copy-using-SubprocessLauncher-instead-of-GFile-API.patch create mode 100644 pkgs/by-name/pa/paper-clip/vala-Solve-Vala-errors-at-C-compile-time.patch diff --git a/pkgs/by-name/pa/paper-clip/document-Copy-using-SubprocessLauncher-instead-of-GFile-API.patch b/pkgs/by-name/pa/paper-clip/document-Copy-using-SubprocessLauncher-instead-of-GFile-API.patch new file mode 100644 index 000000000000..65e99e74ad33 --- /dev/null +++ b/pkgs/by-name/pa/paper-clip/document-Copy-using-SubprocessLauncher-instead-of-GFile-API.patch @@ -0,0 +1,66 @@ +From 93e1c00bca9078fa4b21e42a4560011cce768142 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Iv=C3=A1n=20M=2EE?= +Date: Mon, 12 Aug 2024 09:16:51 -0600 +Subject: [PATCH] document: Copy using SubprocessLauncher instead of GFile API + +--- + io.github.diegoivan.pdf_metadata_editor.json | 7 +++---- + src/Document.vala | 13 +++++++------ + 2 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/io.github.diegoivan.pdf_metadata_editor.json b/io.github.diegoivan.pdf_metadata_editor.json +index ede68d1..3feb79e 100644 +--- a/io.github.diegoivan.pdf_metadata_editor.json ++++ b/io.github.diegoivan.pdf_metadata_editor.json +@@ -52,10 +52,9 @@ + ], + "sources" : [ + { +- "url" : "https://gitlab.freedesktop.org/poppler/poppler.git", +- "type" : "git", +- "tag" : "poppler-23.01.0", +- "commit" : "4259ff0c2067d302f97d87221a442eec8e88d45c" ++ "url" : "https://poppler.freedesktop.org/poppler-24.08.0.tar.xz", ++ "type" : "archive", ++ "sha256" : "97453fbddf0c9a9eafa0ea45ac710d3d49bcf23a62e864585385d3c0b4403174" + } + ] + }, +diff --git a/src/Document.vala b/src/Document.vala +index e52e1a7..a59fe03 100644 +--- a/src/Document.vala ++++ b/src/Document.vala +@@ -445,11 +445,11 @@ public class PaperClip.Document : Object { + } + + private async File create_copy_from_original () throws Error { ++ var launcher = new SubprocessLauncher (NONE); + unowned string tmp_dir = Environment.get_tmp_dir (); + string destination_path = Path.build_path (Path.DIR_SEPARATOR_S, + tmp_dir, + "copies"); +- + int res = DirUtils.create_with_parents (destination_path, 0777); + if (res < 0) { + throw new IOError.FAILED (@"Could not create $destination_path"); +@@ -458,14 +458,15 @@ public class PaperClip.Document : Object { + string destination_file = Path.build_filename (destination_path, + "%s".printf (original_file.get_basename ())); + +- var copy_file = File.new_for_path (destination_file); +- FileCopyFlags flags = NOFOLLOW_SYMLINKS | OVERWRITE | ALL_METADATA; +- +- bool success = yield original_file.copy_async (copy_file, flags); ++ Subprocess copy_process = launcher.spawn("cp", original_file.get_path(), destination_path); ++ bool success = yield copy_process.wait_async (); + if (!success) { +- critical ("Copy Unsuccessful"); ++ critical ("Processed failed"); + } + ++ ++ var copy_file = File.new_for_path (destination_file); ++ + return copy_file; + } + } diff --git a/pkgs/by-name/pa/paper-clip/package.nix b/pkgs/by-name/pa/paper-clip/package.nix index 36be5f4c7bb1..e73043672ab0 100644 --- a/pkgs/by-name/pa/paper-clip/package.nix +++ b/pkgs/by-name/pa/paper-clip/package.nix @@ -27,6 +27,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-Jdsx5ZhujP0SgEtr4NMbXsTkMYrkQj7Vs+SSYziWpiw="; }; + # Remove these patches after the version is bumped past 5.5.1 + patches = [ + ./document-Copy-using-SubprocessLauncher-instead-of-GFile-API.patch + ./vala-Solve-Vala-errors-at-C-compile-time.patch + ]; + nativeBuildInputs = [ desktop-file-utils meson diff --git a/pkgs/by-name/pa/paper-clip/vala-Solve-Vala-errors-at-C-compile-time.patch b/pkgs/by-name/pa/paper-clip/vala-Solve-Vala-errors-at-C-compile-time.patch new file mode 100644 index 000000000000..a41655d6d262 --- /dev/null +++ b/pkgs/by-name/pa/paper-clip/vala-Solve-Vala-errors-at-C-compile-time.patch @@ -0,0 +1,24 @@ +From 82193146a80bfe613355706421454f879bdd496f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Diego=20Iv=C3=A1n=20M=2EE?= +Date: Mon, 5 Aug 2024 18:08:36 -0600 +Subject: [PATCH] vala: Solve Vala errors at C compile time + +--- + src/Document.vala | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/Document.vala b/src/Document.vala +index 872309f..e52e1a7 100644 +--- a/src/Document.vala ++++ b/src/Document.vala +@@ -451,7 +451,9 @@ public class PaperClip.Document : Object { + "copies"); + + int res = DirUtils.create_with_parents (destination_path, 0777); +- return_if_fail (res > -1); ++ if (res < 0) { ++ throw new IOError.FAILED (@"Could not create $destination_path"); ++ } + + string destination_file = Path.build_filename (destination_path, + "%s".printf (original_file.get_basename ())); From 11bbeb48fb07a6d67c36303641fdfd614f7fda18 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 29 Dec 2024 11:31:50 +0100 Subject: [PATCH 87/90] pylyzer: 0.0.75 -> 0.0.76 Diff: https://github.com/mtshiba/pylyzer/compare/None...v0.0.76 Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.76 --- pkgs/by-name/py/pylyzer/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/py/pylyzer/package.nix b/pkgs/by-name/py/pylyzer/package.nix index 6e7e8c7e761d..474b4438b2bb 100644 --- a/pkgs/by-name/py/pylyzer/package.nix +++ b/pkgs/by-name/py/pylyzer/package.nix @@ -14,17 +14,17 @@ rustPlatform.buildRustPackage rec { pname = "pylyzer"; - version = "0.0.75"; + version = "0.0.76"; src = fetchFromGitHub { owner = "mtshiba"; repo = "pylyzer"; tag = "v${version}"; - hash = "sha256-N0a13nuHL6UuaSTowiEGu0VszW9QTqAmgsUOJXDhj8Q="; + hash = "sha256-1WBZ8i/JIIRRH11MNQma/o9VdMvN0eYopXt7Iwj1hZ8="; }; useFetchCargoVendor = true; - cargoHash = "sha256-LJaAcMajDLrpAKmYATN2xWKmoXaZzOyACzVe4vi4+vU="; + cargoHash = "sha256-dzp7HeEfM6UP3VgH56CQvnezZjg13YUszA+EsO2N4Os="; nativeBuildInputs = [ git From dcb0e3b3307c576df828088cf5c23b83228aca16 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 28 Dec 2024 11:59:28 +0100 Subject: [PATCH 88/90] triton-llvm: minor refactoring --- pkgs/by-name/tr/triton-llvm/package.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/tr/triton-llvm/package.nix b/pkgs/by-name/tr/triton-llvm/package.nix index 3d0e1661763e..982bb12f4bc4 100644 --- a/pkgs/by-name/tr/triton-llvm/package.nix +++ b/pkgs/by-name/tr/triton-llvm/package.nix @@ -189,20 +189,21 @@ stdenv.mkDerivation (finalAttrs: { ); postPatch = + # `CMake Error: cannot write to file "/build/source/llvm/build/lib/cmake/mlir/MLIRTargets.cmake": Permission denied` '' - # `CMake Error: cannot write to file "/build/source/llvm/build/lib/cmake/mlir/MLIRTargets.cmake": Permission denied` chmod +w -R ./mlir patchShebangs ./mlir/test/mlir-reduce - - # FileSystem permissions tests fail with various special bits + '' + # FileSystem permissions tests fail with various special bits + + '' rm llvm/test/tools/llvm-objcopy/ELF/mirror-permissions-unix.test rm llvm/unittests/Support/Path.cpp substituteInPlace llvm/unittests/Support/CMakeLists.txt \ - --replace "Path.cpp" "" + --replace-fail "Path.cpp" "" '' + # Not sure why this fails + lib.optionalString stdenv.hostPlatform.isAarch64 '' - # Not sure why this fails rm llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s ''; @@ -221,14 +222,15 @@ stdenv.mkDerivation (finalAttrs: { checkTarget = "check-all"; requiredSystemFeatures = [ "big-parallel" ]; - meta = with lib; { + meta = { description = "Collection of modular and reusable compiler and toolchain technologies"; homepage = "https://github.com/llvm/llvm-project"; - license = with licenses; [ ncsa ]; - maintainers = with maintainers; [ + changelog = "https://github.com/llvm/llvm-project/releases/tag/llvmorg-${finalAttrs.version}"; + license = with lib.licenses; [ ncsa ]; + maintainers = with lib.maintainers; [ SomeoneSerge Madouura ]; - platforms = with platforms; aarch64 ++ x86; + platforms = with lib.platforms; aarch64 ++ x86; }; }) From f660e222c6946cc576725915ca71e9db0012eaf3 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 29 Dec 2024 11:43:22 +0100 Subject: [PATCH 89/90] triton-llvm: skip failing tests Fixes https://github.com/NixOS/nixpkgs/issues/363965 --- pkgs/by-name/tr/triton-llvm/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/tr/triton-llvm/package.nix b/pkgs/by-name/tr/triton-llvm/package.nix index 982bb12f4bc4..c57a075e432f 100644 --- a/pkgs/by-name/tr/triton-llvm/package.nix +++ b/pkgs/by-name/tr/triton-llvm/package.nix @@ -203,6 +203,11 @@ stdenv.mkDerivation (finalAttrs: { --replace-fail "Path.cpp" "" '' # Not sure why this fails + + '' + rm mlir/test/Dialect/SPIRV/IR/availability.mlir + rm mlir/test/Dialect/SPIRV/IR/target-env.mlir + '' + # Not sure why this fails + lib.optionalString stdenv.hostPlatform.isAarch64 '' rm llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s ''; From 3d78e1912886b510b89c9b3f7feb915413885aca Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 29 Dec 2024 11:12:36 +0000 Subject: [PATCH 90/90] zizmor: 0.9.2 -> 0.10.0 --- pkgs/by-name/zi/zizmor/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/zi/zizmor/package.nix b/pkgs/by-name/zi/zizmor/package.nix index 3f49ac595fb6..dc58437a49f6 100644 --- a/pkgs/by-name/zi/zizmor/package.nix +++ b/pkgs/by-name/zi/zizmor/package.nix @@ -10,16 +10,16 @@ rustPlatform.buildRustPackage rec { pname = "zizmor"; - version = "0.9.2"; + version = "0.10.0"; src = fetchFromGitHub { owner = "woodruffw"; repo = "zizmor"; rev = "refs/tags/v${version}"; - hash = "sha256-bQpjU3ztaO8Fckk51QGOnJFANXceYwiqyopOzMt6UYM="; + hash = "sha256-fq+J1+CrxFSbCimM8SIshwQciEjRjPcjAmdVKbVV13s="; }; - cargoHash = "sha256-IzTXLwh14v4vjNgl37sFe1hgoA+0Izc9QWelaaArgU4="; + cargoHash = "sha256-OUwl9vBB8jMY40SbOc9YK4yyxvgWQTgQRWw2LN07W08="; buildInputs = [ openssl ];