From 7c84a256ea52142648add5369ad02fc7ff987bad Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 27 Sep 2024 04:39:48 +0000 Subject: [PATCH 01/49] mattermost: 9.5.9 -> 9.5.10 --- pkgs/servers/mattermost/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/mattermost/default.nix b/pkgs/servers/mattermost/default.nix index fd66967da051..4c35070ededc 100644 --- a/pkgs/servers/mattermost/default.nix +++ b/pkgs/servers/mattermost/default.nix @@ -12,13 +12,13 @@ buildGoModule rec { # See https://docs.mattermost.com/upgrade/extended-support-release.html # When a new ESR version is available (e.g. 8.1.x -> 9.5.x), update # the version regex in passthru.updateScript as well. - version = "9.5.9"; + version = "9.5.10"; src = fetchFromGitHub { owner = "mattermost"; repo = "mattermost"; rev = "v${version}"; - hash = "sha256-mGTLn1aV6pB/ubqtYYF1zNRAaLj5IsdQTLhf1LzcNho="; + hash = "sha256-KUauFuRlOxBNNqE88pv5j0afEYQOZG6kWuyHnzg5qwQ="; }; # Needed because buildGoModule does not support go workspaces yet. @@ -34,14 +34,14 @@ buildGoModule rec { webapp = fetchurl { url = "https://releases.mattermost.com/${version}/mattermost-${version}-linux-amd64.tar.gz"; - hash = "sha256-TgaRDIxGBoow1//99bGpp91HNYgdWRnoS09EDAFcHDs="; + hash = "sha256-psGNLmiT60HknrwESjztlr8NUPPnHsNmSTaRJ0RRqBE="; }; # Makes nix-update-script pick up the fetchurl for the webapp. # https://github.com/Mic92/nix-update/blob/1.3.1/nix_update/eval.py#L179 offlineCache = webapp; - vendorHash = "sha256-TJCtgNf56A1U0EbV5gXjTro+YudVBRWiSZoBC3nJxnE="; + vendorHash = "sha256-3IiW5ZAMX0bbN65iFgD2CH3BmXd1Uv2HgcCqY8VQgrA="; modRoot = "./server"; preBuild = '' From 998842e276bf02ecedc3008212ec3a030fb8946a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Oct 2024 21:34:11 +0200 Subject: [PATCH 02/49] python312Packages.bleak: 0.22.2 -> 0.22.3 Diff: https://github.com/hbldh/bleak/compare/refs/tags/v0.22.2...v0.22.3 Changelog: https://github.com/hbldh/bleak/blob/v0.22.3/CHANGELOG.rst --- pkgs/development/python-modules/bleak/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bleak/default.nix b/pkgs/development/python-modules/bleak/default.nix index aef8d84b43f1..9fde15cf9d6a 100644 --- a/pkgs/development/python-modules/bleak/default.nix +++ b/pkgs/development/python-modules/bleak/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "bleak"; - version = "0.22.2"; + version = "0.22.3"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "hbldh"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-O8EvF+saJ0UBZ8MESM5gIRmk2wbA4HUDADiVUtXzXrY="; + hash = "sha256-kPeKQcJETZE6+btQsmCgb37yRI2Klg0lZ1ZIrm8ODow="; }; postPatch = '' From 405d51903bf3cd2b8942014d53394332ee4f06f6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Oct 2024 21:34:34 +0200 Subject: [PATCH 03/49] python312Packages.bleak-retry-connector: 3.5.0 -> 3.6.0 Diff: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/refs/tags/v3.5.0...v3.6.0 Changelog: https://github.com/bluetooth-devices/bleak-retry-connector/blob/v3.6.0/CHANGELOG.md --- .../python-modules/bleak-retry-connector/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bleak-retry-connector/default.nix b/pkgs/development/python-modules/bleak-retry-connector/default.nix index 1cc552f2aafb..f06a56eb9799 100644 --- a/pkgs/development/python-modules/bleak-retry-connector/default.nix +++ b/pkgs/development/python-modules/bleak-retry-connector/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "bleak-retry-connector"; - version = "3.5.0"; + version = "3.6.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "Bluetooth-Devices"; repo = "bleak-retry-connector"; rev = "refs/tags/v${version}"; - hash = "sha256-oqc997siTg43Ulrc539G3utfQvHjcBZJgQ8/CfcSduc="; + hash = "sha256-WjowXfj9kPlMmfs3aJBHIux5/w6te7zpXXqXPaz2pks="; }; postPatch = '' From 6b0baa9a74beba6f1925242dd97c432b1709dd90 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Oct 2024 21:36:52 +0200 Subject: [PATCH 04/49] python312Packages.bluetooth-adapters: 0.19.4 -> 0.20.0 Diff: https://github.com/Bluetooth-Devices/bluetooth-adapters/compare/refs/tags/v0.19.4...v0.20.0 Changelog: https://github.com/bluetooth-devices/bluetooth-adapters/blob/v0.20.0/CHANGELOG.md --- .../python-modules/bluetooth-adapters/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/bluetooth-adapters/default.nix b/pkgs/development/python-modules/bluetooth-adapters/default.nix index 4b56028b75d9..515c3f167e91 100644 --- a/pkgs/development/python-modules/bluetooth-adapters/default.nix +++ b/pkgs/development/python-modules/bluetooth-adapters/default.nix @@ -10,6 +10,7 @@ mac-vendor-lookup, myst-parser, poetry-core, + pytest-asyncio, pytestCheckHook, pythonOlder, sphinx-rtd-theme, @@ -20,7 +21,7 @@ buildPythonPackage rec { pname = "bluetooth-adapters"; - version = "0.19.4"; + version = "0.20.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -29,7 +30,7 @@ buildPythonPackage rec { owner = "Bluetooth-Devices"; repo = "bluetooth-adapters"; rev = "refs/tags/v${version}"; - hash = "sha256-XpPC7FVWzdEki6kdZDu0vV7iD1DZzGbI1f9VKxsjKUQ="; + hash = "sha256-dQjoaBK+WMHQss/7nQRRCE8Jv4S0iq6awa/t3SMGUiE="; }; postPatch = '' @@ -60,9 +61,12 @@ buildPythonPackage rec { usb-devices ]; - pythonImportsCheck = [ "bluetooth_adapters" ]; + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; - nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "bluetooth_adapters" ]; meta = with lib; { description = "Tools to enumerate and find Bluetooth Adapters"; From 640f597267075e8a11359aacaf2a926716d70c3c Mon Sep 17 00:00:00 2001 From: Giorgio Gallo Date: Fri, 11 Oct 2024 13:49:33 +0200 Subject: [PATCH 05/49] gotemplate: 3.9.1 -> 3.9.2 --- pkgs/development/tools/gotemplate/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/gotemplate/default.nix b/pkgs/development/tools/gotemplate/default.nix index b950f5865ce6..9e748ba3d8e8 100644 --- a/pkgs/development/tools/gotemplate/default.nix +++ b/pkgs/development/tools/gotemplate/default.nix @@ -2,16 +2,20 @@ buildGo123Module rec { pname = "gotemplate"; - version = "3.9.1"; + version = "3.9.2"; src = fetchFromGitHub { owner = "coveooss"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-sRCyOQmj4ti+1Qdap0Q5MLoJZLwjZtw1cYjZMGksvuA="; + hash = "sha256-7FJejArGpnmkAzbN+2BOcewLdlcsh8QblOOZjFu+uSA="; }; - vendorHash = "sha256-xtvexOmzTXjP3QsGp0aL3FdJe3mdBSCnTeM6hLq/tIo="; + vendorHash = "sha256-378oodyQG50l7qkTO5Ryt1NjFBbYW2n9by+ALNfTggI="; + + # This is the value reported when running `gotemplate --version`, + # see https://github.com/coveooss/gotemplate/issues/262 + ldflags = [ "-X main.version=${version}" ]; meta = with lib; { description = "CLI for go text/template"; From cf18f10215ac80beaa7ce5947f71a9cf234edd11 Mon Sep 17 00:00:00 2001 From: rewine Date: Sat, 12 Oct 2024 13:46:49 +0800 Subject: [PATCH 06/49] qtcreator: 14.0.1 -> 14.0.2 --- pkgs/development/tools/qtcreator/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/qtcreator/default.nix b/pkgs/development/tools/qtcreator/default.nix index 61a3bc8cc887..54831c7028f3 100644 --- a/pkgs/development/tools/qtcreator/default.nix +++ b/pkgs/development/tools/qtcreator/default.nix @@ -30,11 +30,11 @@ stdenv.mkDerivation rec { pname = "qtcreator"; - version = "14.0.1"; + version = "14.0.2"; src = fetchurl { url = "mirror://qt/official_releases/${pname}/${lib.versions.majorMinor version}/${version}/qt-creator-opensource-src-${version}.tar.xz"; - hash = "sha256-lZXS5sZbuRjng3YxQ0HcK+9JHDIApcbVzm8wVQmwsos="; + hash = "sha256-stL4eLtpKKjm4w2HYAvdk89ATCYZoVHGS9zcjNB4OJI="; }; nativeBuildInputs = [ From 5fa88a50d56702472b360cf053d55a9aa448587f Mon Sep 17 00:00:00 2001 From: Alistair Grant Date: Sat, 12 Oct 2024 15:06:16 +0200 Subject: [PATCH 07/49] glamoroustoolkit: 1.1.2 -> 1.1.4 The upstream build of the GlamorousToolkit VM has been modified to use a more recent version of patchelf (0.17.2), removing the need to use patchelf 0.11 in the Nix build. --- pkgs/development/tools/glamoroustoolkit/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/development/tools/glamoroustoolkit/default.nix b/pkgs/development/tools/glamoroustoolkit/default.nix index 9f44b7493318..3fb6aed7f031 100644 --- a/pkgs/development/tools/glamoroustoolkit/default.nix +++ b/pkgs/development/tools/glamoroustoolkit/default.nix @@ -28,23 +28,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "glamoroustoolkit"; - version = "1.1.2"; + version = "1.1.4"; src = fetchzip { url = "https://github.com/feenkcom/gtoolkit-vm/releases/download/v${finalAttrs.version}/GlamorousToolkit-x86_64-unknown-linux-gnu.zip"; stripRoot = false; - hash = "sha256-C48zAKkkOIHe7ggjtjBVLbfCVRdY6BJGqdvTI/rCfns="; + hash = "sha256-/p/oCE1fmlPjy1Xg36rsczZ74L0M7qWsdcFm6cHPVVY="; }; nativeBuildInputs = [ wrapGAppsHook3 - (patchelf.overrideAttrs (old: { - version = "0.11"; - src = fetchurl { - url = "https://nixos.org/releases/patchelf/patchelf-0.11/patchelf-0.11.tar.bz2"; - sha256 = "16ms3ijcihb88j3x6cl8cbvhia72afmfcphczb9cfwr0gbc22chx"; - }; - })) ]; sourceRoot = "."; From 17910cc615bf66c747ec0abfe3ecfa3826504ce4 Mon Sep 17 00:00:00 2001 From: "Winston R. Milling" Date: Sat, 12 Oct 2024 14:00:31 -0500 Subject: [PATCH 08/49] legcord: 1.0.0 -> 1.0.1 https://github.com/Legcord/Legcord/releases/tag/v1.0.1 --- pkgs/by-name/le/legcord/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/le/legcord/package.nix b/pkgs/by-name/le/legcord/package.nix index 0dcad5b24399..30d3aea41e16 100644 --- a/pkgs/by-name/le/legcord/package.nix +++ b/pkgs/by-name/le/legcord/package.nix @@ -10,20 +10,20 @@ }: stdenv.mkDerivation rec { pname = "legcord"; - version = "1.0.0"; + version = "1.0.1"; src = fetchFromGitHub { owner = "Legcord"; repo = "Legcord"; rev = "v${version}"; - hash = "sha256-/HwKxl3wiLSS7gmEQSddBkE2z1mmcexMgacUynLhdtg="; + hash = "sha256-R2mtE3L2cJgmbWT0aMoDbnM5tiyPk+dnPBedq8ro1lY="; }; nativeBuildInputs = [ pnpm.configHook nodejs makeWrapper copyDesktopItems ]; pnpmDeps = pnpm.fetchDeps { inherit pname version src; - hash = "sha256-e6plwWf5eFaGsP3/cvIkGTV1nbcw8VRM30E5rwVX1RI="; + hash = "sha256-UCErcNNGAVOe1CvbYc1OSwPQzXVM5tpUUtBpLXoaQdY="; }; ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; From 35d91eb99212a856f07678647df76132383c9a47 Mon Sep 17 00:00:00 2001 From: Shawn8901 Date: Fri, 11 Oct 2024 23:27:19 +0200 Subject: [PATCH 09/49] linux_xanmod: 6.6.54 -> 6.6.56 --- pkgs/os-specific/linux/kernel/xanmod-kernels.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/xanmod-kernels.nix b/pkgs/os-specific/linux/kernel/xanmod-kernels.nix index 394a22bd8df5..6b46743dc457 100644 --- a/pkgs/os-specific/linux/kernel/xanmod-kernels.nix +++ b/pkgs/os-specific/linux/kernel/xanmod-kernels.nix @@ -7,8 +7,8 @@ let # kernel config in the xanmod version commit variants = { lts = { - version = "6.6.54"; - hash = "sha256-i6Rm0Qasgxpw9XcK938IJ+qZ+V2z82zpuly2Au2J18Q="; + version = "6.6.56"; + hash = "sha256-5EgCIMS6eZWPB8t6z6ts5sSHoeawja0diWuh/DNnvqw="; }; main = { version = "6.11.2"; From bd50ef4c5a982aeb09dfb102fbf817e8fccbee0c Mon Sep 17 00:00:00 2001 From: Shawn8901 Date: Fri, 11 Oct 2024 23:29:21 +0200 Subject: [PATCH 10/49] linux_xanmod_latest: 6.11.2 -> 6.11.3 --- pkgs/os-specific/linux/kernel/xanmod-kernels.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/xanmod-kernels.nix b/pkgs/os-specific/linux/kernel/xanmod-kernels.nix index 6b46743dc457..d2e86f876c65 100644 --- a/pkgs/os-specific/linux/kernel/xanmod-kernels.nix +++ b/pkgs/os-specific/linux/kernel/xanmod-kernels.nix @@ -11,8 +11,8 @@ let hash = "sha256-5EgCIMS6eZWPB8t6z6ts5sSHoeawja0diWuh/DNnvqw="; }; main = { - version = "6.11.2"; - hash = "sha256-4BXPZs8lp/O/JGWFIO/J1HyOjByaqWQ9O6/jx76TIDs="; + version = "6.11.3"; + hash = "sha256-Pb/7XToBFZstI1DFgWg4a2HiRuSzA9rEsMBLb6fRvYc="; }; }; From 893db6d3ca6cb26cab28752d46b4fb0ef6da7ebe Mon Sep 17 00:00:00 2001 From: Morgan Helton Date: Sat, 12 Oct 2024 16:05:14 -0500 Subject: [PATCH 11/49] nzbget: 24.2 -> 24.3 --- pkgs/by-name/nz/nzbget/package.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/nz/nzbget/package.nix b/pkgs/by-name/nz/nzbget/package.nix index 165ee6dfc827..f0b8069c309c 100644 --- a/pkgs/by-name/nz/nzbget/package.nix +++ b/pkgs/by-name/nz/nzbget/package.nix @@ -1,7 +1,6 @@ { lib , stdenv , fetchFromGitHub -, fetchpatch2 , cmake , boost , pkg-config @@ -20,23 +19,15 @@ stdenv.mkDerivation (finalAttrs: { pname = "nzbget"; - version = "24.2"; + version = "24.3"; src = fetchFromGitHub { owner = "nzbgetcom"; repo = "nzbget"; rev = "v${finalAttrs.version}"; - hash = "sha256-+iJ5n/meBrMxKHSLxL5QJ7+TI0RMfAM5n/8dwYupGoU="; + hash = "sha256-Gci9bVjmewoEii6OiOuRpLgEBEKApmMmlA5v3OedCo4="; }; - patches = [ - (fetchpatch2 { - # status page buffer overflow fix: https://github.com/nzbgetcom/nzbget/pull/346 -- remove when version > 24.2 - url = "https://github.com/nzbgetcom/nzbget/commit/f89978f7479cbb0ff2f96c8632d9d2f31834e6c8.patch"; - hash = "sha256-9K7PGzmoZ8cvEKBm5htfw5fr1GBSddNkDC/Vi4ngRto="; - }) - ]; - nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ From 2888f6a80c6fe96a91f46e8b5d25f3feec4b56ee Mon Sep 17 00:00:00 2001 From: QuincePie Date: Sat, 12 Oct 2024 18:25:13 -0500 Subject: [PATCH 12/49] cdxgen: 10.9.6 -> 10.10.4 --- pkgs/tools/security/cdxgen/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/cdxgen/default.nix b/pkgs/tools/security/cdxgen/default.nix index 6ea34ed4a834..c9f85d0327fc 100644 --- a/pkgs/tools/security/cdxgen/default.nix +++ b/pkgs/tools/security/cdxgen/default.nix @@ -12,13 +12,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "cdxgen"; - version = "10.9.6"; + version = "10.10.4"; src = fetchFromGitHub { owner = "CycloneDX"; repo = "cdxgen"; rev = "v${finalAttrs.version}"; - hash = "sha256-WgY0soHwedYbQNDvDIqtaxMSzVcaOVV2/22wOXU2nbA="; + hash = "sha256-5FxH9cAJ9FoSn1euimKOvxlAEny+LUqj/EH80+l1v04="; }; nativeBuildInputs = [ @@ -31,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: { pnpmDeps = pnpm_9.fetchDeps { inherit (finalAttrs) pname version src; - hash = "sha256-IgmTYmCmZ65Da5zL6Tx7P4bt2o+YhX0UvU0DEONmr7w="; + hash = "sha256-skgRkj6LrzRN5diQVbGU0KeJBklGWM6dksbr2njMDk0="; }; buildPhase = '' From a9336dcf6374daa0734912fc5a75792a86d8daad Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 13 Oct 2024 11:49:03 +0800 Subject: [PATCH 13/49] pantheon.elementary-session-settings: 8.0.0 -> 8.0.1 https://github.com/elementary/session-settings/compare/8.0.0...8.0.1 --- .../pantheon/desktop/elementary-session-settings/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/pantheon/desktop/elementary-session-settings/default.nix b/pkgs/desktops/pantheon/desktop/elementary-session-settings/default.nix index 9c67c245c8ae..8790cc68c41b 100644 --- a/pkgs/desktops/pantheon/desktop/elementary-session-settings/default.nix +++ b/pkgs/desktops/pantheon/desktop/elementary-session-settings/default.nix @@ -92,13 +92,13 @@ in stdenv.mkDerivation rec { pname = "elementary-session-settings"; - version = "8.0.0"; + version = "8.0.1"; src = fetchFromGitHub { owner = "elementary"; repo = "session-settings"; rev = version; - sha256 = "sha256-CtArMzM6eukH/Ob0W/U4xh2vvqm17m3T0w7lhcRid74="; + sha256 = "sha256-4B7lUjHEa4LdKrmsFCB3iFIsdVd/rgwmtQUAgAj3rXs="; }; nativeBuildInputs = [ From 257097bd621fba8809369897e3d8cad160464480 Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Sun, 13 Oct 2024 14:09:32 +0300 Subject: [PATCH 14/49] arc-browser: 1.61.2-54148 -> 1.63.1-54714 Changelog: https://arc.net/e/8554E66E-831C-459A-B6C9-1E814AA5CCD8 --- pkgs/by-name/ar/arc-browser/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ar/arc-browser/package.nix b/pkgs/by-name/ar/arc-browser/package.nix index 2956a9ed021e..39e8d88255f1 100644 --- a/pkgs/by-name/ar/arc-browser/package.nix +++ b/pkgs/by-name/ar/arc-browser/package.nix @@ -9,11 +9,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "arc-browser"; - version = "1.61.2-54148"; + version = "1.63.1-54714"; src = fetchurl { url = "https://releases.arc.net/release/Arc-${finalAttrs.version}.dmg"; - hash = "sha256-y5oQFPdk6Y7AjzeTrA2U8MhGkPi6RJUcGqsvpjJ++UE="; + hash = "sha256-jL8iAh+e8Z72VG9XQbswjyTPtjO2Pm8ealRte8xr1PQ="; }; nativeBuildInputs = [ undmg ]; From 8d4f3f2b3e9e57b6c96d18078c8becbec51ed8c5 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Thu, 10 Oct 2024 10:57:51 -0400 Subject: [PATCH 15/49] nixos/atticd: init module Copied from https://github.com/zhaofengli/attic/blob/1b29816235b7573fca7f964709fd201e1a187024/nixos/atticd.nix and modified --- nixos/modules/module-list.nix | 1 + nixos/modules/services/networking/atticd.nix | 233 +++++++++++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/atticd.nix | 92 ++++++++ pkgs/by-name/at/attic-client/package.nix | 9 +- 5 files changed, 335 insertions(+), 1 deletion(-) create mode 100644 nixos/modules/services/networking/atticd.nix create mode 100644 nixos/tests/atticd.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 6910458baf40..58f499c3d1fb 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -980,6 +980,7 @@ ./services/networking/aria2.nix ./services/networking/asterisk.nix ./services/networking/atftpd.nix + ./services/networking/atticd.nix ./services/networking/autossh.nix ./services/networking/avahi-daemon.nix ./services/networking/babeld.nix diff --git a/nixos/modules/services/networking/atticd.nix b/nixos/modules/services/networking/atticd.nix new file mode 100644 index 000000000000..5397bda31a9f --- /dev/null +++ b/nixos/modules/services/networking/atticd.nix @@ -0,0 +1,233 @@ +{ + lib, + pkgs, + config, + ... +}: + +let + inherit (lib) types; + + cfg = config.services.atticd; + + format = pkgs.formats.toml { }; + + checkedConfigFile = + pkgs.runCommand "checked-attic-server.toml" + { + configFile = format.generate "server.toml" cfg.settings; + } + '' + export ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64="$(${lib.getExe pkgs.openssl} genrsa -traditional 4096 | ${pkgs.coreutils}/bin/base64 -w0)" + export ATTIC_SERVER_DATABASE_URL="sqlite://:memory:" + ${lib.getExe cfg.package} --mode check-config -f $configFile + cat <$configFile >$out + ''; + + atticadmShim = pkgs.writeShellScript "atticadm" '' + if [ -n "$ATTICADM_PWD" ]; then + cd "$ATTICADM_PWD" + if [ "$?" != "0" ]; then + >&2 echo "Warning: Failed to change directory to $ATTICADM_PWD" + fi + fi + + exec ${cfg.package}/bin/atticadm -f ${checkedConfigFile} "$@" + ''; + + atticadmWrapper = pkgs.writeShellScriptBin "atticd-atticadm" '' + exec systemd-run \ + --quiet \ + --pipe \ + --pty \ + --same-dir \ + --wait \ + --collect \ + --service-type=exec \ + --property=EnvironmentFile=${cfg.environmentFile} \ + --property=DynamicUser=yes \ + --property=User=${cfg.user} \ + --property=Environment=ATTICADM_PWD=$(pwd) \ + --working-directory / \ + -- \ + ${atticadmShim} "$@" + ''; + + hasLocalPostgresDB = + let + url = cfg.settings.database.url or ""; + localStrings = [ + "localhost" + "127.0.0.1" + "/run/postgresql" + ]; + hasLocalStrings = lib.any (lib.flip lib.hasInfix url) localStrings; + in + config.services.postgresql.enable && lib.hasPrefix "postgresql://" url && hasLocalStrings; +in +{ + options = { + services.atticd = { + enable = lib.mkEnableOption "the atticd, the Nix Binary Cache server"; + + package = lib.mkPackageOption pkgs "attic-server" { }; + + environmentFile = lib.mkOption { + description = '' + Path to an EnvironmentFile containing required environment + variables: + + - ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64: The base64-encoded RSA PEM PKCS1 of the + RS256 JWT secret. Generate it with `openssl genrsa -traditional 4096 | base64 -w0`. + ''; + type = types.nullOr types.path; + default = null; + }; + + user = lib.mkOption { + description = '' + The group under which attic runs. + ''; + type = types.str; + default = "atticd"; + }; + + group = lib.mkOption { + description = '' + The user under which attic runs. + ''; + type = types.str; + default = "atticd"; + }; + + settings = lib.mkOption { + description = '' + Structured configurations of atticd. + See https://github.com/zhaofengli/attic/blob/main/server/src/config-template.toml + ''; + type = format.type; + default = { }; + }; + + mode = lib.mkOption { + description = '' + Mode in which to run the server. + + 'monolithic' runs all components, and is suitable for single-node deployments. + + 'api-server' runs only the API server, and is suitable for clustering. + + 'garbage-collector' only runs the garbage collector periodically. + + A simple NixOS-based Attic deployment will typically have one 'monolithic' and any number of 'api-server' nodes. + + There are several other supported modes that perform one-off operations, but these are the only ones that make sense to run via the NixOS module. + ''; + type = lib.types.enum [ + "monolithic" + "api-server" + "garbage-collector" + ]; + default = "monolithic"; + }; + }; + }; + + config = lib.mkIf cfg.enable { + assertions = [ + { + assertion = cfg.environmentFile != null; + message = '' + is not set. + + Run `openssl genrsa -traditional 4096 | base64 -w0` and create a file with the following contents: + + ATTIC_SERVER_TOKEN_RS256_SECRET="output from command" + + Then, set `services.atticd.environmentFile` to the quoted absolute path of the file. + ''; + } + ]; + + services.atticd.settings = { + chunking = lib.mkDefault { + nar-size-threshold = 65536; + min-size = 16384; # 16 KiB + avg-size = 65536; # 64 KiB + max-size = 262144; # 256 KiB + }; + + database.url = lib.mkDefault "sqlite:///var/lib/atticd/server.db?mode=rwc"; + + # "storage" is internally tagged + # if the user sets something the whole thing must be replaced + storage = lib.mkDefault { + type = "local"; + path = "/var/lib/atticd/storage"; + }; + }; + + systemd.services.atticd = { + wantedBy = [ "multi-user.target" ]; + after = [ "network-online.target" ] ++ lib.optionals hasLocalPostgresDB [ "postgresql.service" ]; + requires = lib.optionals hasLocalPostgresDB [ "postgresql.service" ]; + + serviceConfig = { + ExecStart = "${lib.getExe cfg.package} -f ${checkedConfigFile} --mode ${cfg.mode}"; + EnvironmentFile = cfg.environmentFile; + StateDirectory = "atticd"; # for usage with local storage and sqlite + DynamicUser = true; + User = cfg.user; + Group = cfg.group; + Restart = "on-failure"; + RestartSec = 10; + + CapabilityBoundingSet = [ "" ]; + DeviceAllow = ""; + DevicePolicy = "closed"; + LockPersonality = true; + MemoryDenyWriteExecute = true; + NoNewPrivileges = true; + PrivateDevices = true; + PrivateTmp = true; + PrivateUsers = true; + ProcSubset = "pid"; + ProtectClock = true; + ProtectControlGroups = true; + ProtectHome = true; + ProtectHostname = true; + ProtectKernelLogs = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + ProtectProc = "invisible"; + ProtectSystem = "strict"; + ReadWritePaths = + let + path = cfg.settings.storage.path; + isDefaultStateDirectory = path == "/var/lib/atticd" || lib.hasPrefix "/var/lib/atticd/" path; + in + lib.optionals (cfg.settings.storage.type or "" == "local" && !isDefaultStateDirectory) [ path ]; + RemoveIPC = true; + RestrictAddressFamilies = [ + "AF_INET" + "AF_INET6" + "AF_UNIX" + ]; + RestrictNamespaces = true; + RestrictRealtime = true; + RestrictSUIDSGID = true; + SystemCallArchitectures = "native"; + SystemCallFilter = [ + "@system-service" + "~@resources" + "~@privileged" + ]; + UMask = "0077"; + }; + }; + + environment.systemPackages = [ + atticadmWrapper + ]; + }; +} diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 0e2a21803c2e..a3fb29440c2c 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -136,6 +136,7 @@ in { artalk = handleTest ./artalk.nix {}; atd = handleTest ./atd.nix {}; atop = handleTest ./atop.nix {}; + atticd = runTest ./atticd.nix; atuin = handleTest ./atuin.nix {}; audiobookshelf = handleTest ./audiobookshelf.nix {}; auth-mysql = handleTest ./auth-mysql.nix {}; diff --git a/nixos/tests/atticd.nix b/nixos/tests/atticd.nix new file mode 100644 index 000000000000..4193d75d2a92 --- /dev/null +++ b/nixos/tests/atticd.nix @@ -0,0 +1,92 @@ +{ lib, pkgs, ... }: + +let + accessKey = "BKIKJAA5BMMU2RHO6IBB"; + secretKey = "V7f1CwQqAcwo80UEIJEjc5gVQUSSx5ohQ9GSrr12"; + + minioCredentialsFile = pkgs.writeText "minio-credentials-full" '' + MINIO_ROOT_USER=${accessKey} + MINIO_ROOT_PASSWORD=${secretKey} + ''; + environmentFile = pkgs.runCommand "atticd-env" { } '' + echo ATTIC_SERVER_TOKEN_RS256_SECRET_BASE64="$(${lib.getExe pkgs.openssl} genrsa -traditional 4096 | ${pkgs.coreutils}/bin/base64 -w0)" > $out + ''; +in + +{ + name = "atticd"; + + nodes = { + local = { + services.atticd = { + enable = true; + + inherit environmentFile; + }; + + environment.systemPackages = [ + pkgs.attic-client + ]; + }; + + s3 = { + services.atticd = { + enable = true; + settings = { + storage = { + type = "s3"; + bucket = "attic"; + region = "us-east-1"; + endpoint = "http://127.0.0.1:9000"; + + credentials = { + access_key_id = accessKey; + secret_access_key = secretKey; + }; + }; + }; + + inherit environmentFile; + }; + + services.minio = { + enable = true; + rootCredentialsFile = minioCredentialsFile; + }; + + environment.systemPackages = [ + pkgs.attic-client + pkgs.minio-client + ]; + }; + }; + + testScript = # python + '' + start_all() + + with subtest("local storage push"): + local.wait_for_unit("atticd.service") + token = local.succeed("atticd-atticadm make-token --sub stop --validity 1y --create-cache '*' --pull '*' --push '*' --delete '*' --configure-cache '*' --configure-cache-retention '*'").strip() + + local.succeed(f"attic login local http://localhost:8080 {token}") + local.succeed("attic cache create test-cache") + local.succeed("attic push test-cache ${environmentFile}") + + with subtest("s3 storage push"): + s3.wait_for_unit("atticd.service") + s3.wait_for_unit("minio.service") + s3.wait_for_open_port(9000) + s3.succeed( + "mc config host add minio " + + "http://localhost:9000 " + + "${accessKey} ${secretKey} --api s3v4", + "mc mb minio/attic", + ) + token = s3.succeed("atticd-atticadm make-token --sub stop --validity 1y --create-cache '*' --pull '*' --push '*' --delete '*' --configure-cache '*' --configure-cache-retention '*'").strip() + + s3.succeed(f"attic login s3 http://localhost:8080 {token}") + s3.succeed("attic cache create test-cache") + s3.succeed("attic push test-cache ${environmentFile}") + ''; +} diff --git a/pkgs/by-name/at/attic-client/package.nix b/pkgs/by-name/at/attic-client/package.nix index c45bad9f7102..3433db9802ec 100644 --- a/pkgs/by-name/at/attic-client/package.nix +++ b/pkgs/by-name/at/attic-client/package.nix @@ -2,6 +2,7 @@ , rustPlatform , fetchFromGitHub , nix +, nixosTests , boost , pkg-config , stdenv @@ -53,7 +54,13 @@ rustPlatform.buildRustPackage { fi ''; - passthru.updateScript = ./update.sh; + passthru = { + tests = { + inherit (nixosTests) atticd; + }; + + updateScript = ./update.sh; + }; meta = with lib; { description = "Multi-tenant Nix Binary Cache"; From b28b324260e4fe13f11056d6684a00f49aabef6f Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:41:18 +0300 Subject: [PATCH 16/49] ice-bar: 0.9.0 -> 0.11.9 Changelog: https://github.com/jordanbaird/Ice/releases/tag/0.11.9 Diff: https://github.com/jordanbaird/Ice/compare/0.9.0...0.11.9 --- pkgs/by-name/ic/ice-bar/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ic/ice-bar/package.nix b/pkgs/by-name/ic/ice-bar/package.nix index 95b1170f2a85..a55201ae0a95 100644 --- a/pkgs/by-name/ic/ice-bar/package.nix +++ b/pkgs/by-name/ic/ice-bar/package.nix @@ -8,11 +8,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "ice-bar"; - version = "0.9.0"; + version = "0.11.9"; src = fetchurl { url = "https://github.com/jordanbaird/Ice/releases/download/${finalAttrs.version}/Ice.zip"; - hash = "sha256-MvkJRP8Stz9VIK3vBnWezVKq2KkPfUa/NUBxJtYzHhU="; + hash = "sha256-nC7gIF4OdkUYoacbyr1cv5xpJkWDqhFW11UNZvgrQtE="; }; sourceRoot = "."; From 656cbc4679c7725760c0175442e0749bba568025 Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Sun, 13 Oct 2024 20:38:55 +0300 Subject: [PATCH 17/49] stats: 2.11.11 -> 2.11.14 Changelog: https://github.com/exelban/stats/releases/tag/v2.11.14 Diff: https://github.com/exelban/stats/compare/v2.11.11...v2.11.14 --- pkgs/by-name/st/stats/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/stats/package.nix b/pkgs/by-name/st/stats/package.nix index f37e4dfdb73b..32310803a694 100644 --- a/pkgs/by-name/st/stats/package.nix +++ b/pkgs/by-name/st/stats/package.nix @@ -8,11 +8,11 @@ stdenvNoCC.mkDerivation (finalAttrs: { pname = "stats"; - version = "2.11.11"; + version = "2.11.14"; src = fetchurl { url = "https://github.com/exelban/stats/releases/download/v${finalAttrs.version}/Stats.dmg"; - hash = "sha256-6USopfRy+ffxXYNAp14RcO/uKZa1yfnz2S3RP8HmCWw="; + hash = "sha256-JljFHlMcc8kfjGTdGAOP4ot+FqVy0yAJ1kxVO0TawHU="; }; sourceRoot = "."; From a96c2506cf63c6d526339a2c71be664d3dfcea5f Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Sun, 13 Oct 2024 20:41:24 +0300 Subject: [PATCH 18/49] stats: format `meta.maintainers` --- pkgs/by-name/st/stats/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/st/stats/package.nix b/pkgs/by-name/st/stats/package.nix index 32310803a694..1007df42f5b5 100644 --- a/pkgs/by-name/st/stats/package.nix +++ b/pkgs/by-name/st/stats/package.nix @@ -34,7 +34,10 @@ stdenvNoCC.mkDerivation (finalAttrs: { description = "macOS system monitor in your menu bar"; homepage = "https://github.com/exelban/stats"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ donteatoreo emilytrau ]; + maintainers = with lib.maintainers; [ + donteatoreo + emilytrau + ]; platforms = lib.platforms.darwin; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; }; From 272bb210c3e9cdf953ec66a878359f97d3cc59a5 Mon Sep 17 00:00:00 2001 From: DontEatOreo <57304299+DontEatOreo@users.noreply.github.com> Date: Sun, 13 Oct 2024 20:46:14 +0300 Subject: [PATCH 19/49] stats: quote paths Co-authored-by: Ulli Kehrle --- pkgs/by-name/st/stats/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/stats/package.nix b/pkgs/by-name/st/stats/package.nix index 1007df42f5b5..46a148ea563b 100644 --- a/pkgs/by-name/st/stats/package.nix +++ b/pkgs/by-name/st/stats/package.nix @@ -22,8 +22,8 @@ stdenvNoCC.mkDerivation (finalAttrs: { installPhase = '' runHook preInstall - mkdir -p $out/Applications - cp -r *.app $out/Applications + mkdir -p "$out/Applications" + cp -r *.app "$out/Applications" runHook postInstall ''; From ba7b53c49003a17933c896da9b4d45c0614e36be Mon Sep 17 00:00:00 2001 From: r-vdp Date: Mon, 14 Oct 2024 00:30:06 +0200 Subject: [PATCH 20/49] niri: add systemd units to the right location They will then be moved to `share` by https://nixos.org/manual/nixpkgs/unstable/#move-systemd-user-units.sh and a symlink will be put in place. --- pkgs/by-name/ni/niri/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ni/niri/package.nix b/pkgs/by-name/ni/niri/package.nix index c41c04dd5dd8..e854c1a4fcc7 100644 --- a/pkgs/by-name/ni/niri/package.nix +++ b/pkgs/by-name/ni/niri/package.nix @@ -88,7 +88,7 @@ rustPlatform.buildRustPackage rec { '' + lib.optionalString withSystemd '' install -Dm0755 resources/niri-session -t $out/bin - install -Dm0644 resources/niri{-shutdown.target,.service} -t $out/share/systemd/user + install -Dm0644 resources/niri{-shutdown.target,.service} -t $out/lib/systemd/user ''; env = { From f4a0262be9470cdfb92241487fddf66005f16a82 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 14 Oct 2024 01:03:49 +0200 Subject: [PATCH 21/49] harper: 0.11.0 -> 0.12.0 Diff: https://github.com/elijah-potter/harper/compare/v0.11.0...v0.12.0 Changelog: https://github.com/elijah-potter/harper/releases/tag/v0.12.0 --- pkgs/by-name/ha/harper/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ha/harper/package.nix b/pkgs/by-name/ha/harper/package.nix index a18ab300af24..ac067d4369ed 100644 --- a/pkgs/by-name/ha/harper/package.nix +++ b/pkgs/by-name/ha/harper/package.nix @@ -6,16 +6,16 @@ rustPlatform.buildRustPackage rec { pname = "harper"; - version = "0.11.0"; + version = "0.12.0"; src = fetchFromGitHub { owner = "elijah-potter"; repo = "harper"; rev = "v${version}"; - hash = "sha256-83Fg1oywYuvyc5aFeujH/g8Czi8r0wBUr1Bj6vwxNec="; + hash = "sha256-2Frt0vpCGnF3pZREY+ynPkdCLf2zsde49cEsNrqFUtY="; }; - cargoHash = "sha256-Bt2KZ+m7VJXw4FYWt+ioo1XjZHNzbg/8fo8xrfEd6lI="; + cargoHash = "sha256-S3N9cn8Y4j5epvndvivgKyhjQQ5mNg89iSOlOx1Jmo0="; meta = { description = "Grammar Checker for Developers"; From 2a9ebcb8fcb3035499afb04bbb3e754c11dd6dc5 Mon Sep 17 00:00:00 2001 From: isabel Date: Mon, 14 Oct 2024 00:12:35 +0100 Subject: [PATCH 22/49] wakapi: 2.12.0 -> 2.12.1 --- pkgs/by-name/wa/wakapi/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/wa/wakapi/package.nix b/pkgs/by-name/wa/wakapi/package.nix index ace3fbb24141..5ee8fee4f3de 100644 --- a/pkgs/by-name/wa/wakapi/package.nix +++ b/pkgs/by-name/wa/wakapi/package.nix @@ -1,12 +1,12 @@ { lib, - buildGo123Module, + buildGoModule, fetchFromGitHub, }: let - version = "2.12.0"; + version = "2.12.1"; in -buildGo123Module { +buildGoModule { pname = "wakapi"; inherit version; @@ -14,7 +14,7 @@ buildGo123Module { owner = "muety"; repo = "wakapi"; rev = "refs/tags/${version}"; - hash = "sha256-/aacT/VLA5S4PeGcxEGaCpgAw++b3VFD7T0CldZWcQI="; + hash = "sha256-+JxTszBa6rURm0vPy8Oke5/hX9EmDphWEp2eglS+SFU="; }; vendorHash = "sha256-Q56Ud0MtkstB/dhn+QyAHTzIqHsmKvHEK+5PAt5lIMM="; From aee29769194022cf41b1dafe874cd7d5c9801f3e Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Mon, 14 Oct 2024 02:06:04 +0000 Subject: [PATCH 23/49] buf: 1.44.0 -> 1.45.0 --- pkgs/by-name/bu/buf/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/bu/buf/package.nix b/pkgs/by-name/bu/buf/package.nix index 5f8bfc30ebb8..637d21c4dc68 100644 --- a/pkgs/by-name/bu/buf/package.nix +++ b/pkgs/by-name/bu/buf/package.nix @@ -10,16 +10,16 @@ buildGoModule rec { pname = "buf"; - version = "1.44.0"; + version = "1.45.0"; src = fetchFromGitHub { owner = "bufbuild"; repo = "buf"; rev = "v${version}"; - hash = "sha256-I0Y9gsNqCFLR2Bkt55HyER6wznTNoZW5345zUmuOFXQ="; + hash = "sha256-zmk9o0P4BaUqng9E/s6KKWntwS4NmTg/xPTrQruTQSo="; }; - vendorHash = "sha256-4ykve9X//ckYPDkq76i0ojOiyzjrPJ/J2z7mA5giWKE="; + vendorHash = "sha256-NMrPBUwbDsXW8tc5l1Liqd19+v2RrXf6dlcwVnHxVXQ="; patches = [ # Skip a test that requires networking to be available to work. From 62caef981e6575f883e2cb8df6e76aab2deb7468 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 03:53:28 +0000 Subject: [PATCH 24/49] stacks: 2.66 -> 2.68 --- pkgs/applications/science/biology/stacks/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/biology/stacks/default.nix b/pkgs/applications/science/biology/stacks/default.nix index 3d385b54d469..ddaa6bafd5fd 100644 --- a/pkgs/applications/science/biology/stacks/default.nix +++ b/pkgs/applications/science/biology/stacks/default.nix @@ -2,10 +2,10 @@ stdenv.mkDerivation rec { pname = "stacks"; - version = "2.66"; + version = "2.68"; src = fetchurl { url = "http://catchenlab.life.illinois.edu/stacks/source/${pname}-${version}.tar.gz"; - sha256 = "sha256-9pHmcLYMdn9xy3vhlOU42Io/4L61auoncfpZNRPUN/I="; + sha256 = "sha256-ncUeo1bWDrRVewstGohUqvrkkq7Yf5dOAknMCapedlA="; }; buildInputs = [ zlib ]; From e55b3cf7583630f6e8483a418e9e339e0b5104c4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 04:35:04 +0000 Subject: [PATCH 25/49] docker: 27.3.0 -> 27.3.1 --- pkgs/applications/virtualization/docker/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index fdc3515d5e0f..1ffa016159aa 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -323,9 +323,9 @@ rec { }; docker_27 = callPackage dockerGen rec { - version = "27.3.0"; + version = "27.3.1"; cliRev = "v${version}"; - cliHash = "sha256-1z2MmWq+HD2fhpZqXu0G7oBL3Mc0NN/fR69aMWRelns="; + cliHash = "sha256-Iurud1BwswGZCFgJ04/wl1U9AKcsXDmzFXLFCrjfc0Y="; mobyRev = "v${version}"; mobyHash = "sha256-AKl06k2ePWOFhL3oH086HcLLYs2Da+wLOcGjGnQ0SXE="; runcRev = "v1.1.14"; From 52e2e7027d902e849fbc23b640580cc27056fca6 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 13 Oct 2024 18:08:05 +0200 Subject: [PATCH 26/49] dhcpcd: fix race between namespace setup and resolvconf systemd requires paths in `ReadWritePaths=` to exist before setting up the service sandbox, so dhcpcd should be ordered after resolvconf. Making resolvconf a oneshot service ensure `After=resolvconf.service` works correctly. --- nixos/modules/config/resolvconf.nix | 1 + nixos/modules/services/networking/dhcpcd.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/config/resolvconf.nix b/nixos/modules/config/resolvconf.nix index 6ffcbcabe519..0d56ccf85d4c 100644 --- a/nixos/modules/config/resolvconf.nix +++ b/nixos/modules/config/resolvconf.nix @@ -145,6 +145,7 @@ in wants = [ "network-pre.target" ]; wantedBy = [ "multi-user.target" ]; restartTriggers = [ config.environment.etc."resolvconf.conf".source ]; + serviceConfig.Type = "oneshot"; serviceConfig.RemainAfterExit = true; script = '' diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index a3bb591f535b..afc977583594 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -210,7 +210,8 @@ in { description = "DHCP Client"; wantedBy = [ "multi-user.target" ] ++ lib.optional (!hasDefaultGatewaySet) "network-online.target"; - wants = [ "network.target" ]; + wants = [ "network.target" "resolvconf.service" ]; + after = [ "resolvconf.service" ]; before = [ "network-online.target" ]; restartTriggers = [ cfg.runHook ]; From 23e531fd000cbbca01bb6ca521deb453bcaabb59 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Mon, 14 Oct 2024 12:21:03 +0200 Subject: [PATCH 27/49] OWNERS: Make arianvp owner of Amazon-related things --- ci/OWNERS | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ci/OWNERS b/ci/OWNERS index 2ad493fbc279..8decab10834d 100644 --- a/ci/OWNERS +++ b/ci/OWNERS @@ -128,6 +128,18 @@ nixos/modules/installer/tools/nix-fallback-paths.nix @NixOS/nix-team @raitobeza /nixos/modules/installer/cd-dvd/ @ElvishJerricco /nixos/modules/installer/sd-card/ +# Amazon +/nixos/modules/virtualisation/amazon-init.nix @arianvp +/nixos/modules/virtualisation/ec2-data.nix @arianvp +/nixos/modules/virtualisation/amazon-options.nix @arianvp +/nixos/modules/virtualisation/amazon-image.nix @arianvp +/nixos/maintainers/scripts/ec2/ @arianvp +/nixos/modules/services/misc/amazon-ssm-agent.nix @arianvp +/nixos/tests/amazon-ssm-agent.nix @arianvp +/nixos/modules/system/boot/grow-partition.nix @arianvp + + + # Updaters ## update.nix /maintainers/scripts/update.nix @jtojnar From 0890727868d8f55bd1a9b8b34f8e8a7883935e65 Mon Sep 17 00:00:00 2001 From: Arian van Putten Date: Mon, 14 Oct 2024 12:22:45 +0200 Subject: [PATCH 28/49] nixos/ec2-data: Make arianvp maintainer --- nixos/modules/virtualisation/ec2-data.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/virtualisation/ec2-data.nix b/nixos/modules/virtualisation/ec2-data.nix index 387bb18ab1f2..2da271a59236 100644 --- a/nixos/modules/virtualisation/ec2-data.nix +++ b/nixos/modules/virtualisation/ec2-data.nix @@ -90,4 +90,6 @@ with lib; }; }; + + meta.maintainers = with maintainers; [ arianvp ]; } From 474605261783dd797b7e7c575f5d858f25171b1d Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 14 Oct 2024 12:17:18 +0200 Subject: [PATCH 29/49] clboss: 0.13.3 -> 0.14.0 --- pkgs/applications/blockchains/clboss/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/blockchains/clboss/default.nix b/pkgs/applications/blockchains/clboss/default.nix index 2695198bf0e2..e443aac8d03a 100644 --- a/pkgs/applications/blockchains/clboss/default.nix +++ b/pkgs/applications/blockchains/clboss/default.nix @@ -1,6 +1,6 @@ { lib , stdenv -, fetchFromGitHub +, fetchzip , autoconf-archive , autoreconfHook , pkg-config @@ -11,13 +11,12 @@ stdenv.mkDerivation rec { pname = "clboss"; - version = "0.13.3"; + version = "0.14.0"; - src = fetchFromGitHub { - owner = "ZmnSCPxj"; - repo = "clboss"; - rev = "v${version}"; - hash = "sha256-T61rkTEGLCZrEBp1WFhHnQ7DQyhctMf5lgbOs6u9E0o="; + # The release tarball includes the pre-generated file `commit_hash.h` that is required for building + src = fetchzip { + url = "https://github.com/ZmnSCPxj/clboss/releases/download/v${version}/clboss-v${version}.tar.gz"; + hash = "sha256-Qp8br4ZxiqaxFZ6Tb+wFpqp2APmnU9QdNkM8MyGAtrw="; }; nativeBuildInputs = [ autoconf-archive autoreconfHook pkg-config libev curlWithGnuTls sqlite ]; From dc9fe40b52773aa6c95ec02d2b5916be33f0e96f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 11:07:37 +0000 Subject: [PATCH 30/49] ttfb: 1.12.0 -> 1.13.0 --- pkgs/development/tools/ttfb/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/ttfb/default.nix b/pkgs/development/tools/ttfb/default.nix index e9bc3c11bdfb..a6e35db3de73 100644 --- a/pkgs/development/tools/ttfb/default.nix +++ b/pkgs/development/tools/ttfb/default.nix @@ -7,18 +7,18 @@ rustPlatform.buildRustPackage rec { pname = "ttfb"; - version = "1.12.0"; + version = "1.13.0"; src = fetchCrate { inherit pname version; - hash = "sha256-Cdup65w31wF1RZu0g4/msHfLESrNTcuCU5kxkk0gnW8="; + hash = "sha256-G5RSnh+S7gbIWJxm778pHN36xghpptcCpfElada0Afo="; }; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ]; - cargoHash = "sha256-U8CG0GqnUwya+ZK0qXtOFZ/MbbqSvB5egX7XJKtl88g="; + cargoHash = "sha256-kgfET2hOw0OAbBcKS7BOvY3nrLNX6CcQ6fOzVJ9rMOU="; # The bin feature activates all dependencies of the binary. Otherwise, # only the library is build. From 22f9a591163a890fc7c73b749bd1df347a98e766 Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Mon, 14 Oct 2024 12:51:54 +0000 Subject: [PATCH 31/49] nunicode: init at 1.11 --- pkgs/by-name/nu/nunicode/package.nix | 76 ++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 pkgs/by-name/nu/nunicode/package.nix diff --git a/pkgs/by-name/nu/nunicode/package.nix b/pkgs/by-name/nu/nunicode/package.nix new file mode 100644 index 000000000000..0025372fb2eb --- /dev/null +++ b/pkgs/by-name/nu/nunicode/package.nix @@ -0,0 +1,76 @@ +{ + lib, + stdenv, + fetchFromBitbucket, + cmake, + sqlite, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "nunicode"; + version = "1.11"; + + outputs = [ + "out" + "sqlite" + ]; + + src = fetchFromBitbucket { + owner = "alekseyt"; + repo = "nunicode"; + rev = "refs/tags/${finalAttrs.version}"; + hash = "sha256-6255YdX7eYSAj0EAE4RgX1m4XDNIF/Nc4ZCvXzTxpag="; + }; + + postPatch = '' + # load correct SQLite extension on all platforms + substituteInPlace sqlite3/testsuite --replace-fail \ + "NU='./libnusqlite3.so'" \ + "NU='./libnusqlite3'" + + # fix expressions using like .. escape (https://sqlite.org/lang_expr.html#like) + substituteInPlace sqlite3/tests.sql --replace-fail '\\' '\' + + # install SQLite extension in a separate output + echo >>sqlite3/CMakeLists.txt \ + 'install(TARGETS nusqlite3 DESTINATION "${placeholder "sqlite"}/lib")' + ''; + + nativeBuildInputs = [ + cmake + sqlite + ]; + + # avoid name-clash on case-insensitive filesystems + cmakeBuildDir = "build-dir"; + + doCheck = true; + + checkPhase = '' + runHook preCheck + + ( + echo running SQLite testsuite + + cd sqlite3 + RESULT=$(../../sqlite3/testsuite < ../../sqlite3/tests.sql | sqlite3) + grep <<<$RESULT FAILED && echo SQLite testsuite failed && false + + echo SQLite testsuite succeeded + ) + + runHook postCheck + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Fast, small and portable Unicode library with SQLite extension"; + homepage = "https://bitbucket.org/alekseyt/nunicode"; + changelog = "https://bitbucket.org/alekseyt/nunicode/src/${finalAttrs.version}/CHANGELOG"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.mjoerg ]; + platforms = lib.platforms.unix; + }; +}) From 6e69d789877ed301b3acf6661e3f6429f78c41be Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Mon, 14 Oct 2024 12:51:55 +0000 Subject: [PATCH 32/49] audiobookshelf: 2.14.0 -> 2.15.0 https://github.com/advplyr/audiobookshelf/releases/tag/v2.15.0 https://github.com/advplyr/audiobookshelf/compare/refs/tags/v2.14.0...refs/tags/v2.15.0 --- pkgs/by-name/au/audiobookshelf/source.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/au/audiobookshelf/source.json b/pkgs/by-name/au/audiobookshelf/source.json index 87811d028730..4320f1380e02 100644 --- a/pkgs/by-name/au/audiobookshelf/source.json +++ b/pkgs/by-name/au/audiobookshelf/source.json @@ -1,9 +1,9 @@ { "owner": "advplyr", "repo": "audiobookshelf", - "rev": "cf5598aeb9b086a28e853d6a89b82a7467fd6969", - "hash": "sha256-tObC7QbdwpAlt97eXB9QzZEaQcquuST+8nC6lYEXTUM=", - "version": "2.14.0", - "depsHash": "sha256-nVsmV3Vms2S9oM7duFfgt+go1+wM2JniI8B3UFmv/TE=", - "clientDepsHash": "sha256-oaoGxcMs8XQVaRx8UO9NSThqbHuZsA4fm8OGlSiaKO0=" + "rev": "80e0cac4747e61d1fbb5374ec4ac41d3499042e2", + "hash": "sha256-gwu9AvxrfW1QSgUy3Q4di1xa964ZMZpRkgdFQlit9+4=", + "version": "2.15.0", + "depsHash": "sha256-TDZUrzVcmKn4izRn8E+uf6Mh22fRsHeVm5h+wRZAX8o=", + "clientDepsHash": "sha256-7R5+Yam9Y4+bj/8wrAE25g4sivg/sw5G0pAZFGPRpMI=" } From f7d8c85ec2031bbebfd3044203cd7c43e917c8e5 Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Mon, 14 Oct 2024 12:51:55 +0000 Subject: [PATCH 33/49] audiobookshelf: enable nusqlite3 extension --- pkgs/by-name/au/audiobookshelf/package.nix | 4 ++-- pkgs/by-name/au/audiobookshelf/wrapper.nix | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/au/audiobookshelf/package.nix b/pkgs/by-name/au/audiobookshelf/package.nix index efa34166f093..e5b2e8b5b17e 100644 --- a/pkgs/by-name/au/audiobookshelf/package.nix +++ b/pkgs/by-name/au/audiobookshelf/package.nix @@ -6,6 +6,7 @@ buildNpmPackage, nodejs_18, ffmpeg-full, + nunicode, util-linux, python3, getopt, @@ -45,8 +46,7 @@ let inherit stdenv ffmpeg-full - pname - nodejs + nunicode getopt ; }; diff --git a/pkgs/by-name/au/audiobookshelf/wrapper.nix b/pkgs/by-name/au/audiobookshelf/wrapper.nix index 87d3358a425c..4dabeae303b1 100644 --- a/pkgs/by-name/au/audiobookshelf/wrapper.nix +++ b/pkgs/by-name/au/audiobookshelf/wrapper.nix @@ -1,4 +1,9 @@ -{ stdenv, ffmpeg-full, pname, nodejs, getopt }: '' +{ + stdenv, + ffmpeg-full, + nunicode, + getopt, +}: '' #!${stdenv.shell} port=8000 @@ -55,6 +60,7 @@ SKIP_BINARIES_CHECK=1 \ FFMPEG_PATH=${ffmpeg-full}/bin/ffmpeg \ FFPROBE_PATH=${ffmpeg-full}/bin/ffprobe \ + NUSQLITE3_PATH=${nunicode.sqlite}/lib/libnusqlite3 \ CONFIG_PATH="$config" \ METADATA_PATH="$metadata" \ PORT="$port" \ From 7fa916ffb5a18e5c644c6b00cb93109e4394addb Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 13 Oct 2024 18:11:03 +0200 Subject: [PATCH 34/49] elogind: fix build for musl --- ...musl_missing.h-includes-for-basename.patch | 121 ++++++++++++++++++ ...ted-musl-hack-in-rlimit_nofile_safe.patch} | 0 pkgs/applications/misc/elogind/default.nix | 6 +- 3 files changed, 124 insertions(+), 3 deletions(-) create mode 100644 pkgs/applications/misc/elogind/Add-missing-musl_missing.h-includes-for-basename.patch rename pkgs/applications/misc/elogind/{0001-Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch => Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch} (100%) diff --git a/pkgs/applications/misc/elogind/Add-missing-musl_missing.h-includes-for-basename.patch b/pkgs/applications/misc/elogind/Add-missing-musl_missing.h-includes-for-basename.patch new file mode 100644 index 000000000000..f20c19d32ef5 --- /dev/null +++ b/pkgs/applications/misc/elogind/Add-missing-musl_missing.h-includes-for-basename.patch @@ -0,0 +1,121 @@ +From ae7ecfc9487756659077e126bfd296146125a59d Mon Sep 17 00:00:00 2001 +From: Alyssa Ross +Date: Sun, 13 Oct 2024 18:03:47 +0200 +Subject: [PATCH] Add missing musl_missing.h includes for basename + +Link: https://github.com/elogind/elogind/pull/292 +--- + src/basic/cgroup-util.c | 1 + + src/libelogind/sd-bus/test-bus-watch-bind.c | 2 ++ + src/login/logind-inhibit.c | 2 ++ + src/login/logind-seat.c | 2 ++ + src/login/logind-session.c | 1 + + src/test/test-fileio.c | 2 ++ + src/test/test-mountpoint-util.c | 1 + + src/test/test-path-util.c | 2 ++ + 8 files changed, 13 insertions(+) + +diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c +index 90cfeb570..c57fe54d0 100644 +--- a/src/basic/cgroup-util.c ++++ b/src/basic/cgroup-util.c +@@ -40,6 +40,7 @@ + //#include "xattr-util.h" + /// Additional includes needed by elogind + #include "env-file.h" ++#include "musl_missing.h" + + static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) { + _cleanup_free_ char *fs = NULL; +diff --git a/src/libelogind/sd-bus/test-bus-watch-bind.c b/src/libelogind/sd-bus/test-bus-watch-bind.c +index d6938a7f0..3227c17d7 100644 +--- a/src/libelogind/sd-bus/test-bus-watch-bind.c ++++ b/src/libelogind/sd-bus/test-bus-watch-bind.c +@@ -17,6 +17,8 @@ + #include "string-util.h" + #include "tmpfile-util.h" + #include "tests.h" ++/// Additional includes needed by elogind ++#include "musl_missing.h" + + static int method_foobar(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { + log_info("Got Foobar() call."); +diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c +index 86d1f84b3..4140f1aae 100644 +--- a/src/login/logind-inhibit.c ++++ b/src/login/logind-inhibit.c +@@ -26,6 +26,8 @@ + #include "string-util.h" + #include "tmpfile-util.h" + #include "user-util.h" ++/// Additional includes needed by elogind ++#include "musl_missing.h" + + static void inhibitor_remove_fifo(Inhibitor *i); + +diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c +index bef542d94..f520562ad 100644 +--- a/src/login/logind-seat.c ++++ b/src/login/logind-seat.c +@@ -24,6 +24,8 @@ + #include "string-util.h" + #include "terminal-util.h" + #include "tmpfile-util.h" ++/// Additional includes needed by elogind ++#include "musl_missing.h" + + int seat_new(Seat** ret, Manager *m, const char *id) { + _cleanup_(seat_freep) Seat *s = NULL; +diff --git a/src/login/logind-session.c b/src/login/logind-session.c +index ea69c2e6c..90ddec899 100644 +--- a/src/login/logind-session.c ++++ b/src/login/logind-session.c +@@ -42,6 +42,7 @@ + /// Additional includes needed by elogind + #include "cgroup-setup.h" + #include "extract-word.h" ++#include "musl_missing.h" + + #define RELEASE_USEC (20*USEC_PER_SEC) + +diff --git a/src/test/test-fileio.c b/src/test/test-fileio.c +index b9b82e7ff..db981bd41 100644 +--- a/src/test/test-fileio.c ++++ b/src/test/test-fileio.c +@@ -25,6 +25,8 @@ + #include "strv.h" + #include "tests.h" + #include "tmpfile-util.h" ++/// Additional includes needed by elogind ++#include "musl_missing.h" + + #if 0 /// elogind does not need load_/write_/merge_env_file() + TEST(parse_env_file) { +diff --git a/src/test/test-mountpoint-util.c b/src/test/test-mountpoint-util.c +index de526100f..9d37ce77d 100644 +--- a/src/test/test-mountpoint-util.c ++++ b/src/test/test-mountpoint-util.c +@@ -16,6 +16,7 @@ + #include "string-util.h" + #include "tests.h" + /// Addition includes needed by elogind ++#include "musl_missing.h" + #include "virt.h" + #include "tmpfile-util.h" + +diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c +index 76fda746a..1df305d30 100644 +--- a/src/test/test-path-util.c ++++ b/src/test/test-path-util.c +@@ -16,6 +16,8 @@ + #include "strv.h" + #include "tests.h" + #include "tmpfile-util.h" ++/// Additional includes needed by elogind ++#include "musl_missing.h" + + TEST(print_paths) { + log_info("DEFAULT_PATH=%s", DEFAULT_PATH); +-- +2.46.0 + diff --git a/pkgs/applications/misc/elogind/0001-Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch b/pkgs/applications/misc/elogind/Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch similarity index 100% rename from pkgs/applications/misc/elogind/0001-Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch rename to pkgs/applications/misc/elogind/Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch diff --git a/pkgs/applications/misc/elogind/default.nix b/pkgs/applications/misc/elogind/default.nix index 985d821837ec..3d23056e69d1 100644 --- a/pkgs/applications/misc/elogind/default.nix +++ b/pkgs/applications/misc/elogind/default.nix @@ -79,11 +79,10 @@ stdenv.mkDerivation rec { (fetchpatch { url = "https://github.com/chimera-linux/cports/raw/49d65fe38be815b9918a15ac2d2ff2b123fc559a/main/elogind/patches/xxx-musl-fixes.patch"; includes = [ - "src/basic/cgroup-util.c" "src/basic/missing_prctl.h" "src/libelogind/sd-journal/journal-file.h" ]; - hash = "sha256-kY+B1t87E/TtWa83r0VoiojhRrrB667ZhUAHtHE7m28="; + hash = "sha256-JYPB9AKbQpVgid5BhwBTvcebE5rxDFRMYhKRNS8KPTc="; }) (fetchurl { url = "https://github.com/chimera-linux/cports/raw/49d65fe38be815b9918a15ac2d2ff2b123fc559a/main/elogind/patches/gshadow.patch"; @@ -111,7 +110,8 @@ stdenv.mkDerivation rec { url = "https://git.openembedded.org/openembedded-core/plain/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch?id=6bc5e3f3cd882c81c972dbd27aacc1ce00e5e59a"; hash = "sha256-ZyOCmM5LcwJ7mHiZr0lQjV4G+XMxjhsUm7g7L3OzDDM="; }) - ./0001-Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch + ./Add-missing-musl_missing.h-includes-for-basename.patch + ./Remove-outdated-musl-hack-in-rlimit_nofile_safe.patch ]; # Inspired by the systemd `preConfigure`. From b035bd68a69703b0c41aae55bbe59c0a83cc5849 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 04:12:06 +0000 Subject: [PATCH 35/49] opkg: 0.6.3 -> 0.7.0 --- pkgs/tools/package-management/opkg/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/opkg/default.nix b/pkgs/tools/package-management/opkg/default.nix index bced64f20d03..830a8c4c4dbb 100644 --- a/pkgs/tools/package-management/opkg/default.nix +++ b/pkgs/tools/package-management/opkg/default.nix @@ -15,11 +15,11 @@ stdenv.mkDerivation rec { pname = "opkg"; - version = "0.6.3"; + version = "0.7.0"; src = fetchurl { url = "https://downloads.yoctoproject.org/releases/opkg/opkg-${version}.tar.gz"; - hash = "sha256-85OONZZGtAbEDV1EKhRnx+cjV/kauCLkQml1KWQeBt4="; + hash = "sha256-2XP9DxVo9Y+H1q7NmqlePh9gIUpFzuJnBL+P51fFRWc="; }; nativeBuildInputs = [ From 6bd8f78df7123b2a43f86a6f1b29836545b50f5c Mon Sep 17 00:00:00 2001 From: Ivan Timokhin Date: Sun, 13 Oct 2024 14:52:58 +0300 Subject: [PATCH 36/49] junicode: 2.208 -> 2.209 Changelog: https://github.com/psb1558/Junicode-font/releases/tag/v2.209 --- pkgs/data/fonts/junicode/default.nix | 4 ++-- pkgs/data/fonts/junicode/tex-font-path.patch | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/data/fonts/junicode/default.nix b/pkgs/data/fonts/junicode/default.nix index c3d5fffb5a8e..5d88b2c0aed6 100644 --- a/pkgs/data/fonts/junicode/default.nix +++ b/pkgs/data/fonts/junicode/default.nix @@ -2,11 +2,11 @@ stdenvNoCC.mkDerivation rec { pname = "junicode"; - version = "2.208"; + version = "2.209"; src = fetchzip { url = "https://github.com/psb1558/Junicode-font/releases/download/v${version}/Junicode_${version}.zip"; - hash = "sha256-uzPzZ6b/CxdcoXSsxf2Cfs9/MpcGn7pQfdwL37pbvXg="; + hash = "sha256-hdCDLwTiyE2ZpFgmYAX7YWCujUwozIozD+k/lCStJUg="; }; outputs = [ "out" "doc" "tex" ]; diff --git a/pkgs/data/fonts/junicode/tex-font-path.patch b/pkgs/data/fonts/junicode/tex-font-path.patch index 13b311b39ce6..3e0fd69b36df 100644 --- a/pkgs/data/fonts/junicode/tex-font-path.patch +++ b/pkgs/data/fonts/junicode/tex-font-path.patch @@ -77,7 +77,7 @@ index c01ccaf..07a99ad 100644 % DECLARE THE FONTS --\setmainfont{Junicode VF}[ +-\setmainfont{JunicodeVF}[ - ItalicFont = {*-Italic}, - BoldFont = {*}, - BoldItalicFont = {*-Italic}, From 3e18932d1a1bcc0ab7446b084e17918e2eed6126 Mon Sep 17 00:00:00 2001 From: XYenon Date: Fri, 11 Oct 2024 06:15:17 +0000 Subject: [PATCH 37/49] globalping-cli: 1.3.0 -> 1.4.0 --- .../networking/globalping-cli/default.nix | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/globalping-cli/default.nix b/pkgs/tools/networking/globalping-cli/default.nix index 693c98e16ec6..13a399e13fe1 100644 --- a/pkgs/tools/networking/globalping-cli/default.nix +++ b/pkgs/tools/networking/globalping-cli/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "globalping-cli"; - version = "1.3.0"; + version = "1.4.0"; src = fetchFromGitHub { owner = "jsdelivr"; repo = pname; rev = "v${version}"; - hash = "sha256-/W/S+oG/3gD/+8mOWy4oWv7TR3IGKZt4cz0vE4nIzM4="; + hash = "sha256-MepnNbRX/smljiR9ysRWExFsfb7Qrz++7Y8S0Xn1Ax8="; }; vendorHash = "sha256-V6DwV2KukFfFK0PK9MacoHH0sB5qNV315jn0T+4rhfA="; @@ -18,6 +18,25 @@ buildGoModule rec { CGO_ENABLED = 0; ldflags = [ "-s" "-w" "-X main.version=${version}" ]; + preCheck = '' + export HOME="$TMPDIR" + ''; + + checkFlags = + let + skippedTests = [ + # Skip tests that require network access + "Test_Authorize" + "Test_TokenIntrospection" + "Test_Logout" + "Test_RevokeToken" + "Test_Limits" + "Test_CreateMeasurement" + "Test_GetMeasurement" + ]; + in + [ "-skip=^${builtins.concatStringsSep "|^" skippedTests}" ]; + postInstall = '' mv $out/bin/${pname} $out/bin/globalping installShellCompletion --cmd globalping \ From 68802454b9b1f4b0ddfe5af7c7b5f9a243a84bb7 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Thu, 10 Oct 2024 22:33:49 +0200 Subject: [PATCH 38/49] openrct2: 0.4.14 -> 0.4.15 https://github.com/OpenRCT2/OpenRCT2/releases/tag/v0.4.15 --- pkgs/games/openrct2/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/games/openrct2/default.nix b/pkgs/games/openrct2/default.nix index 5ed0f6da3663..35699d492777 100644 --- a/pkgs/games/openrct2/default.nix +++ b/pkgs/games/openrct2/default.nix @@ -29,11 +29,11 @@ }: let - openrct2-version = "0.4.14"; + openrct2-version = "0.4.15"; # Those versions MUST match the pinned versions within the CMakeLists.txt # file. The REPLAYS repository from the CMakeLists.txt is not necessary. - objects-version = "1.4.7"; + objects-version = "1.4.8"; openmsx-version = "1.6"; opensfx-version = "1.0.5"; title-sequences-version = "0.4.14"; @@ -42,14 +42,14 @@ let owner = "OpenRCT2"; repo = "OpenRCT2"; rev = "v${openrct2-version}"; - hash = "sha256-d02LXcqoB6lDGdd82IrHi0Br8rjAFpRgQ86344XUeCA="; + hash = "sha256-VumjJGAur+2A7n0pFcNM7brYaoeaVCPBtRGFIZmq5QY="; }; objects-src = fetchFromGitHub { owner = "OpenRCT2"; repo = "objects"; rev = "v${objects-version}"; - hash = "sha256-XtKhgCahGzhuIdwvoz47rlRthZEhb0w+OuGhZnplHSc="; + hash = "sha256-A6iFaWda5qiFirGqOP6H9w0PP5Me8BRr2HXKZPHJImE="; }; openmsx-src = fetchFromGitHub { From 545276d8e660b79157a9bf63f7e19997acdbb238 Mon Sep 17 00:00:00 2001 From: detroyejr Date: Tue, 8 Oct 2024 20:25:38 -0400 Subject: [PATCH 39/49] plex-desktop: remove version from desktop exec --- pkgs/by-name/pl/plex-desktop/package.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/by-name/pl/plex-desktop/package.nix b/pkgs/by-name/pl/plex-desktop/package.nix index ba793768d634..aa79d6040db4 100644 --- a/pkgs/by-name/pl/plex-desktop/package.nix +++ b/pkgs/by-name/pl/plex-desktop/package.nix @@ -130,10 +130,7 @@ buildFHSEnv { substituteInPlace $out/share/applications/plex-desktop.desktop \ --replace-fail \ 'Icon=''${SNAP}/meta/gui/icon.png' \ - 'Icon=${plex-desktop}/meta/gui/icon.png' \ - --replace-fail \ - 'Exec=plex-desktop' \ - 'Exec=plex-desktop-${version}' + 'Icon=${plex-desktop}/meta/gui/icon.png' ''; runScript = writeShellScript "plex-desktop.sh" '' From 175855f9743401ad478b0aa78072bd6d5975e4cb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Oct 2024 16:06:02 +0200 Subject: [PATCH 40/49] python312Packages.publicsuffixlist: 1.0.2.20241003 -> 1.0.2.20241010 Changelog: https://github.com/ko-zu/psl/blob/v1.0.2.20241010-gha/CHANGES.md --- pkgs/development/python-modules/publicsuffixlist/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/publicsuffixlist/default.nix b/pkgs/development/python-modules/publicsuffixlist/default.nix index 08b514e346fb..81bfb5141a09 100644 --- a/pkgs/development/python-modules/publicsuffixlist/default.nix +++ b/pkgs/development/python-modules/publicsuffixlist/default.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "publicsuffixlist"; - version = "1.0.2.20241003"; + version = "1.0.2.20241010"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-YKLijjQ1xV4kQRIbaQhn8Hv/hl2Qv2YWcQrXoOOvnGE="; + hash = "sha256-pybYJrw7ZwSZXODKFE2HdoBg4Y4d855uV/LGRWccDfk="; }; build-system = [ setuptools ]; From 50ce12b2c14069879c5072770559689be00b75a3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Oct 2024 16:17:27 +0200 Subject: [PATCH 41/49] checkov: 3.2.257 -> 3.2.260 Diff: https://github.com/bridgecrewio/checkov/compare/refs/tags/3.2.257...3.2.260 Changelog: https://github.com/bridgecrewio/checkov/releases/tag/3.2.260 --- pkgs/development/tools/analysis/checkov/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/analysis/checkov/default.nix b/pkgs/development/tools/analysis/checkov/default.nix index 3be56f3fe4c8..749b73502bcb 100644 --- a/pkgs/development/tools/analysis/checkov/default.nix +++ b/pkgs/development/tools/analysis/checkov/default.nix @@ -6,14 +6,14 @@ python3.pkgs.buildPythonApplication rec { pname = "checkov"; - version = "3.2.257"; + version = "3.2.260"; pyproject = true; src = fetchFromGitHub { owner = "bridgecrewio"; repo = "checkov"; rev = "refs/tags/${version}"; - hash = "sha256-1uUKOIxv9p++p6t0O6RXn/cw3Py06mFxoCae0Bj75bU="; + hash = "sha256-Ltcb32p4mVjbRJB5Mjgu93oITOXHgEaNigMkd8a8rXw="; }; patches = [ ./flake8-compat-5.x.patch ]; From 879dce03cd44b53cccb815128981d6d0624c6e5a Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 14 Oct 2024 08:06:58 -0400 Subject: [PATCH 42/49] duckdb: 1.1.1 -> 1.1.2 --- pkgs/development/libraries/duckdb/versions.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/duckdb/versions.json b/pkgs/development/libraries/duckdb/versions.json index 47cad94b53f3..1797b9b0b095 100644 --- a/pkgs/development/libraries/duckdb/versions.json +++ b/pkgs/development/libraries/duckdb/versions.json @@ -1,5 +1,5 @@ { - "version": "1.1.1", - "rev": "af39bd0dcf66876e09ac2a7c3baa28fe1b301151", - "hash": "sha256-YPS3DqIYmFKXGkiQiU7/QKNNn7+YyavrA4uDenKuX2g=" + "version": "1.1.2", + "rev": "f680b7d08f56183391b581077d4baf589e1cc8bd", + "hash": "sha256-JoGGnlu2aioO6XbeUZDe23AHSBxciLSEKBWRedPuXjI=" } From 70433ed9c4112fbb17b7605c92c74e532962ebcb Mon Sep 17 00:00:00 2001 From: Jose Cardoso <65740649+asininemonkey@users.noreply.github.com> Date: Mon, 14 Oct 2024 16:14:30 +0100 Subject: [PATCH 43/49] terramate: 0.10.7 -> 0.10.8 --- pkgs/development/tools/misc/terramate/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/terramate/default.nix b/pkgs/development/tools/misc/terramate/default.nix index f30459a08d66..477ef4db8b17 100644 --- a/pkgs/development/tools/misc/terramate/default.nix +++ b/pkgs/development/tools/misc/terramate/default.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "terramate"; - version = "0.10.7"; + version = "0.10.8"; src = fetchFromGitHub { owner = "terramate-io"; repo = "terramate"; rev = "v${version}"; - hash = "sha256-CvvOJO57DotHpLB2FiAyYhF+WWXGuKEKCksnBWBiZ20="; + hash = "sha256-fT1yuFFHI88wUXKguWZD+PHU4j3w5eda7kzCDn+Gg+o="; }; vendorHash = "sha256-kjzpXOoyTwjpYLBqDuB6Eup5Yzgej2U+HUo4z8V+cEI="; From af3dacaf96803a6f96a750ced2c76bce157ca53b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 15:18:33 +0000 Subject: [PATCH 44/49] modprobed-db: 2.47 -> 2.48 --- pkgs/by-name/mo/modprobed-db/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/mo/modprobed-db/package.nix b/pkgs/by-name/mo/modprobed-db/package.nix index 84edaa3f6350..c321aa6199f7 100644 --- a/pkgs/by-name/mo/modprobed-db/package.nix +++ b/pkgs/by-name/mo/modprobed-db/package.nix @@ -9,7 +9,7 @@ }: let pname = "modprobed-db"; - version = "2.47"; + version = "2.48"; in stdenv.mkDerivation { inherit pname version; @@ -18,7 +18,7 @@ stdenv.mkDerivation { owner = "graysky2"; repo = "modprobed-db"; rev = "v${version}"; - hash = "sha256-r/2ZENricRE03eyFnWDnfPNAz2863/9HKlF6a2xOkc0="; + hash = "sha256-rMkPBRg0QluMmSCAWSvET7rS/A2aUL6H31KKoZ6NTEs="; }; strictDeps = true; From 37284fe3ee7d4569dac5128ba887e309be23a3c0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 15:30:17 +0000 Subject: [PATCH 45/49] knxd: 0.14.61 -> 0.14.63 --- pkgs/by-name/kn/knxd/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/kn/knxd/package.nix b/pkgs/by-name/kn/knxd/package.nix index bcbe85fcefc2..742c78724121 100644 --- a/pkgs/by-name/kn/knxd/package.nix +++ b/pkgs/by-name/kn/knxd/package.nix @@ -15,13 +15,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "knxd"; - version = "0.14.61"; + version = "0.14.63"; src = fetchFromGitHub { owner = "knxd"; repo = "knxd"; rev = finalAttrs.version; - hash = "sha256-b8svjGaxW8YqonhXewebDUitezKoMcZxcUFGd2EKZQ4="; + hash = "sha256-Ka4ATC20PS/yqHj+dbcIXxeqFYHDMKu6DvJWGd4rUMI="; }; postPatch = '' From 99259180763bc285d2aaf63426d4ce4d4c61a4db Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 13:49:22 +0000 Subject: [PATCH 46/49] libserialport: 0.1.1 -> 0.1.2 --- pkgs/development/libraries/libserialport/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libserialport/default.nix b/pkgs/development/libraries/libserialport/default.nix index 0b3314d9b0e1..4f3626740067 100644 --- a/pkgs/development/libraries/libserialport/default.nix +++ b/pkgs/development/libraries/libserialport/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "libserialport"; - version = "0.1.1"; + version = "0.1.2"; src = fetchurl { url = "https://sigrok.org/download/source/libserialport/${pname}-${version}.tar.gz"; - sha256 = "17ajlwgvyyrap8z7f16zcs59pksvncwbmd3mzf98wj7zqgczjaja"; + sha256 = "sha256-XeuStcpywDR7B7eGhINQ3sotz9l1zmE7jg4dlHpLTKk="; }; nativeBuildInputs = [ pkg-config ]; From 56402ae10c7432c00435d847fec6ef11a6877050 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Oct 2024 10:46:11 +0000 Subject: [PATCH 47/49] lttng-tools: 2.13.13 -> 2.13.14 --- pkgs/development/tools/misc/lttng-tools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/lttng-tools/default.nix b/pkgs/development/tools/misc/lttng-tools/default.nix index b9ea42664110..0376a12f942e 100644 --- a/pkgs/development/tools/misc/lttng-tools/default.nix +++ b/pkgs/development/tools/misc/lttng-tools/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "lttng-tools"; - version = "2.13.13"; + version = "2.13.14"; src = fetchurl { url = "https://lttng.org/files/lttng-tools/${pname}-${version}.tar.bz2"; - sha256 = "sha256-/19PALCB2sZgkq/o5yt8eQZwkxzxwe4N6qf4D7xTiD4="; + sha256 = "sha256-U733xK0H2/5mDuTZr/xj/kSuWemnPG96luD8oUDlrcs="; }; nativeBuildInputs = [ pkg-config ]; From 98a18e8bd005f6003686ca26e8223c8761b2322d Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Mon, 14 Oct 2024 10:20:35 -0700 Subject: [PATCH 48/49] localsend: fix window visibility --- pkgs/by-name/lo/localsend/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/lo/localsend/package.nix b/pkgs/by-name/lo/localsend/package.nix index 46715ac5e849..cef477ab1830 100644 --- a/pkgs/by-name/lo/localsend/package.nix +++ b/pkgs/by-name/lo/localsend/package.nix @@ -39,6 +39,11 @@ let buildInputs = [ libayatana-appindicator ]; + postUnpack = '' + substituteInPlace $sourceRoot/linux/my_application.cc \ + --replace-fail "gtk_widget_realize(GTK_WIDGET(window))" "gtk_widget_show(GTK_WIDGET(window))" + ''; + postInstall = '' for s in 32 128 256 512; do d=$out/share/icons/hicolor/''${s}x''${s}/apps From 84700f2cca168614a01b6244a023cd31460b94c1 Mon Sep 17 00:00:00 2001 From: Pyrox Date: Mon, 14 Oct 2024 13:23:29 -0400 Subject: [PATCH 49/49] python312Packages.premailer: drop --- .../python-modules/paddleocr/default.nix | 2 - .../python-modules/premailer/default.nix | 43 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 4 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 pkgs/development/python-modules/premailer/default.nix diff --git a/pkgs/development/python-modules/paddleocr/default.nix b/pkgs/development/python-modules/paddleocr/default.nix index 8033d8c79e6d..fe2ad63e0e6b 100644 --- a/pkgs/development/python-modules/paddleocr/default.nix +++ b/pkgs/development/python-modules/paddleocr/default.nix @@ -14,7 +14,6 @@ openpyxl, pdf2docx, pillow, - premailer, pyclipper, pymupdf, python-docx, @@ -76,7 +75,6 @@ buildPythonPackage { openpyxl pdf2docx pillow - premailer pyclipper pymupdf python-docx diff --git a/pkgs/development/python-modules/premailer/default.nix b/pkgs/development/python-modules/premailer/default.nix deleted file mode 100644 index dd6eec493338..000000000000 --- a/pkgs/development/python-modules/premailer/default.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchPypi, - isPy27, - cssselect, - cssutils, - lxml, - mock, - nose, - requests, - cachetools, -}: - -buildPythonPackage rec { - pname = "premailer"; - version = "3.10.0"; - format = "setuptools"; - disabled = isPy27; # no longer compatible with urllib - - src = fetchPypi { - inherit pname version; - sha256 = "d1875a8411f5dc92b53ef9f193db6c0f879dc378d618e0ad292723e388bfe4c2"; - }; - - buildInputs = [ - mock - nose - ]; - propagatedBuildInputs = [ - cachetools - cssselect - cssutils - lxml - requests - ]; - - meta = { - description = "Turns CSS blocks into style attributes"; - homepage = "https://github.com/peterbe/premailer"; - license = lib.licenses.bsd3; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index d590c94b5cdf..e9bee1b0cd4c 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -407,6 +407,7 @@ mapAliases ({ postorius = throw "Please use pkgs.mailmanPackages.postorius"; # added 2022-04-29 powerlineMemSegment = powerline-mem-segment; # added 2021-10-08 prayer-times-calculator = prayer-times-calculator-offline; # added 2024-08-11 + premailer = throw "premailer was removed, as it is not compatible with lxml>4.9.4."; privacyidea-ldap-proxy = throw "privacyidea-ldap-proxy has been removed from nixpkgs"; # added 2023-10-31 proboscis = throw "proboscis has been removed since it has not been maintained for 11 years"; # added 2024-05-20 prometheus_client = prometheus-client; # added 2021-06-10 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b0d9ca65a2fe..59acc25ce694 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10650,8 +10650,6 @@ self: super: with self; { preggy = callPackage ../development/python-modules/preggy { }; - premailer = callPackage ../development/python-modules/premailer { }; - preprocess-cancellation = callPackage ../development/python-modules/preprocess-cancellation { }; preshed = callPackage ../development/python-modules/preshed { };