From f9c2637ca54d4c8c3911fdb01010dc6705662cb3 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 11 May 2023 11:28:07 +0200 Subject: [PATCH 01/32] organicmaps: 2023.04.02-7 -> 2023.05.08-7 --- pkgs/applications/misc/organicmaps/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/organicmaps/default.nix b/pkgs/applications/misc/organicmaps/default.nix index 294d77404a3f..4395cf7721de 100644 --- a/pkgs/applications/misc/organicmaps/default.nix +++ b/pkgs/applications/misc/organicmaps/default.nix @@ -21,13 +21,13 @@ mkDerivation rec { pname = "organicmaps"; - version = "2023.04.02-7"; + version = "2023.05.08-7"; src = fetchFromGitHub { owner = "organicmaps"; repo = "organicmaps"; rev = "${version}-android"; - sha256 = "sha256-xXBzHo7IOo2f1raGnpFcsvs++crHMI5SACIc345cX7g="; + sha256 = "sha256-V7qTi5NiZf+1voZSHfuAyfMeTeiYfs/CoOQ2zweKmaU="; fetchSubmodules = true; }; From 4cd4acc547b193f7bdc43f3acd65abeaa460e777 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 22 May 2023 07:57:40 +0000 Subject: [PATCH 02/32] victoriametrics: 1.89.1 -> 1.91.0 --- pkgs/servers/nosql/victoriametrics/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/nosql/victoriametrics/default.nix b/pkgs/servers/nosql/victoriametrics/default.nix index c9a1bf004121..301a0f47905c 100644 --- a/pkgs/servers/nosql/victoriametrics/default.nix +++ b/pkgs/servers/nosql/victoriametrics/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "VictoriaMetrics"; - version = "1.89.1"; + version = "1.91.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - hash = "sha256-s5Fo0Bsy9cAoNLRMAYjNrSLJ0vX4HdbQ+T3cj6ebNPE="; + hash = "sha256-ZGUJfziqQCCv/9p+z8UJpvHkg6fKOIMv1tJ679f9NTo="; }; vendorHash = null; From aa0ea460e3b042d62eab61416c296cb0222d3ebd Mon Sep 17 00:00:00 2001 From: Sergey Kazenyuk Date: Tue, 23 May 2023 17:39:09 +0300 Subject: [PATCH 03/32] kodi.packages.inputstream-adaptive: 20.3.2 -> 20.3.8 --- .../video/kodi/addons/inputstream-adaptive/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/video/kodi/addons/inputstream-adaptive/default.nix b/pkgs/applications/video/kodi/addons/inputstream-adaptive/default.nix index 6f5a8cc85be4..2d23f7b294d6 100644 --- a/pkgs/applications/video/kodi/addons/inputstream-adaptive/default.nix +++ b/pkgs/applications/video/kodi/addons/inputstream-adaptive/default.nix @@ -3,20 +3,20 @@ let bento4 = fetchFromGitHub { owner = "xbmc"; repo = "Bento4"; - rev = "1.6.0-639-5-${rel}"; - sha256 = "sha256-jjeBy3LmnN7hPjnbBSPcdtPD+MdbG+0kU8mekM2/ZFw="; + rev = "1.6.0-639-7-Omega"; + sha256 = "sha256-d3znV88dLMbA4oUWsTZ7vS6WHOWzN7lIHgWPkR5Aixo="; }; in buildKodiBinaryAddon rec { pname = "inputstream-adaptive"; namespace = "inputstream.adaptive"; - version = "20.3.2"; + version = "20.3.8"; src = fetchFromGitHub { owner = "xbmc"; repo = "inputstream.adaptive"; rev = "${version}-${rel}"; - sha256 = "sha256-QG0qBRbUJJgsRLS2cQIDeTDYLjqVD0dRaZ7pCxpxNcs="; + sha256 = "sha256-Sv5poUW/W0sTJft+peOlRAe3Qtst7UbCTW4WgNP/bpI="; }; extraCMakeFlags = [ From dfdb06dad3560358b3517331316e99a904ea69d4 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 24 May 2023 07:41:40 -0700 Subject: [PATCH 04/32] mindustry-server: Fix --- pkgs/games/mindustry/default.nix | 63 +++++++++++++++++--------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/pkgs/games/mindustry/default.nix b/pkgs/games/mindustry/default.nix index b6d1eff817e4..b8c661f7f483 100644 --- a/pkgs/games/mindustry/default.nix +++ b/pkgs/games/mindustry/default.nix @@ -191,36 +191,41 @@ stdenv.mkDerivation rec { gradle --offline --no-daemon server:dist -Pbuildversion=${buildVersion} ''; - installPhase = with lib; '' + installPhase = with lib; let + installClient = '' + install -Dm644 desktop/build/libs/Mindustry.jar $out/share/mindustry.jar + mkdir -p $out/bin + makeWrapper ${jdk}/bin/java $out/bin/mindustry \ + --add-flags "-jar $out/share/mindustry.jar" \ + --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [libpulseaudio alsa-lib libjack2]} \ + --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib/'' + optionalString enableWayland '' \ + --set SDL_VIDEODRIVER wayland \ + --set SDL_VIDEO_WAYLAND_WMCLASS Mindustry + '' + '' + + # Retain runtime depends to prevent them from being cleaned up. + # Since a jar is a compressed archive, nix can't figure out that the dependency is actually in there, + # and will assume that it's not actually needed. + # This can cause issues. + # See https://github.com/NixOS/nixpkgs/issues/109798. + echo "# Retained runtime dependencies: " >> $out/bin/mindustry + for dep in ${SDL2.out} ${alsa-lib.out} ${selectedGlew.out}; do + echo "# $dep" >> $out/bin/mindustry + done + + install -Dm644 core/assets/icons/icon_64.png $out/share/icons/hicolor/64x64/apps/mindustry.png + ''; + installServer = '' + install -Dm644 server/build/libs/server-release.jar $out/share/mindustry-server.jar + mkdir -p $out/bin + makeWrapper ${jdk}/bin/java $out/bin/mindustry-server \ + --add-flags "-jar $out/share/mindustry-server.jar" + ''; + in '' runHook preInstall - '' + optionalString enableClient '' - install -Dm644 desktop/build/libs/Mindustry.jar $out/share/mindustry.jar - mkdir -p $out/bin - makeWrapper ${jdk}/bin/java $out/bin/mindustry \ - --add-flags "-jar $out/share/mindustry.jar" \ - --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [libpulseaudio alsa-lib libjack2]} \ - --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib/'' + optionalString enableWayland '' \ - --set SDL_VIDEODRIVER wayland \ - --set SDL_VIDEO_WAYLAND_WMCLASS Mindustry - '' + '' - - # Retain runtime depends to prevent them from being cleaned up. - # Since a jar is a compressed archive, nix can't figure out that the dependency is actually in there, - # and will assume that it's not actually needed. - # This can cause issues. - # See https://github.com/NixOS/nixpkgs/issues/109798. - echo "# Retained runtime dependencies: " >> $out/bin/mindustry - for dep in ${SDL2.out} ${alsa-lib.out} ${selectedGlew.out}; do - echo "# $dep" >> $out/bin/mindustry - done - - install -Dm644 core/assets/icons/icon_64.png $out/share/icons/hicolor/64x64/apps/mindustry.png - '' + optionalString enableServer '' - install -Dm644 server/build/libs/server-release.jar $out/share/mindustry-server.jar - mkdir -p $out/bin - makeWrapper ${jdk}/bin/java $out/bin/mindustry-server \ - --add-flags "-jar $out/share/mindustry-server.jar" - '' + '' + '' + optionalString enableClient installClient + + optionalString enableServer installServer + + '' runHook postInstall ''; From 9eefe2b8b9d4784f218ee1112fb3fbbc041fbd5e Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 24 May 2023 19:34:13 -0400 Subject: [PATCH 05/32] python3Packages.keyring: disable tests that fail with Darwin sandbox --- pkgs/development/python-modules/keyring/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/keyring/default.nix b/pkgs/development/python-modules/keyring/default.nix index 3e3cf64ce1cf..f0989d493d9e 100644 --- a/pkgs/development/python-modules/keyring/default.nix +++ b/pkgs/development/python-modules/keyring/default.nix @@ -47,7 +47,9 @@ buildPythonPackage rec { disabledTestPaths = [ "tests/backends/test_macOS.py" - ]; + ] + # These tests fail when sandboxing is enabled because they are unable to get a password from keychain. + ++ lib.optional stdenv.isDarwin "tests/test_multiprocess.py"; meta = with lib; { description = "Store and access your passwords safely"; From 8aebbc7beb4d9e735d4a16ecba05d13e6510454f Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 27 May 2023 04:20:00 +0000 Subject: [PATCH 06/32] flow: 0.206.0 -> 0.207.0 Diff: https://github.com/facebook/flow/compare/v0.206.0...v0.207.0 Changelog: https://github.com/facebook/flow/raw/v0.207.0/Changelog.md --- pkgs/development/tools/analysis/flow/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/analysis/flow/default.nix b/pkgs/development/tools/analysis/flow/default.nix index 73219ed01e66..b69391f0fdc2 100644 --- a/pkgs/development/tools/analysis/flow/default.nix +++ b/pkgs/development/tools/analysis/flow/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "flow"; - version = "0.206.0"; + version = "0.207.0"; src = fetchFromGitHub { owner = "facebook"; repo = "flow"; rev = "v${version}"; - sha256 = "sha256-pDh43pOf/PhyxGcYRnQsuq7FBJz2Wru77QBTEYSobno="; + sha256 = "sha256-0qEo1drdtIxdZriaLNm+T1J00wJoeBbtox5LDmrLX4Y="; }; postPatch = '' From d2f6435e3db6713d0834af565a123025a094ec2b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 27 May 2023 10:20:55 +0200 Subject: [PATCH 07/32] mitmproxy2swagger: 0.9.0 -> 0.10.0 Diff: https://github.com/alufers/mitmproxy2swagger/compare/refs/tags/0.9.0...0.10.0 Changelog: https://github.com/alufers/mitmproxy2swagger/releases/tag/0.10.0 --- pkgs/tools/security/mitmproxy2swagger/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/mitmproxy2swagger/default.nix b/pkgs/tools/security/mitmproxy2swagger/default.nix index b9f992cbb8a0..64c2f3abbc76 100644 --- a/pkgs/tools/security/mitmproxy2swagger/default.nix +++ b/pkgs/tools/security/mitmproxy2swagger/default.nix @@ -5,14 +5,14 @@ python3.pkgs.buildPythonApplication rec { pname = "mitmproxy2swagger"; - version = "0.9.0"; + version = "0.10.0"; format = "pyproject"; src = fetchFromGitHub { owner = "alufers"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-P+Gw4D+G76gifYY2OghXRzrlPiYk4KggoVMgzJbm6Is="; + hash = "sha256-tvlxQrZzY2r+zipNm8XFTvYgLZAbg2xzoFL6VDt+/fk="; }; nativeBuildInputs = with python3.pkgs; [ From d915eb8adfee81f3d68ec22e2e5b8572cbbed844 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 27 May 2023 10:58:46 +0200 Subject: [PATCH 08/32] linuxPackages.ena: 2.8.3 -> 2.8.6 and fix build against Linux 6.3 This applies some patches that will be in the next version of ena, one fixing the removal of the adjfreq field in ptp_clock_info, and the others dealing with devlink changes. https://hydra.nixos.org/build/221431596 --- pkgs/os-specific/linux/ena/default.nix | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/ena/default.nix b/pkgs/os-specific/linux/ena/default.nix index a7843ee3894c..abc116efdcb2 100644 --- a/pkgs/os-specific/linux/ena/default.nix +++ b/pkgs/os-specific/linux/ena/default.nix @@ -1,16 +1,33 @@ -{ lib, stdenv, fetchFromGitHub, kernel }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, kernel }: stdenv.mkDerivation rec { - version = "2.8.3"; + version = "2.8.6"; name = "ena-${version}-${kernel.version}"; src = fetchFromGitHub { owner = "amzn"; repo = "amzn-drivers"; rev = "ena_linux_${version}"; - sha256 = "sha256-Z5BCqqC4FNKHqpocJ6CsHwhh5sszj5QfxiN6+Dkaqek="; + hash = "sha256-clRu+ecK/Je0kvlAAm6qCJqMyvZv0C88YIGDImhRhKA="; }; + patches = + [ # https://github.com/amzn/amzn-drivers/issues/269#issuecomment-1552483792 + (fetchpatch { + url = "https://github.com/amzn/amzn-drivers/files/11504862/phc_kernel_6_2_fix.patch"; + hash = "sha256-/EBkISwXMd7t4WZjsG9KVP6vncFwcZq1QBsxQLXyWsY="; + }) + # https://github.com/amzn/amzn-drivers/issues/270#issuecomment-1561924754 + (fetchpatch { + url = "https://github.com/amzn/amzn-drivers/files/11559312/devlink_6_2_fix.patch"; + hash = "sha256-Nc71u91G0dL+ld6ovqjHaE6X2TxduWeQYr5K0KdoA3Q="; + }) + (fetchpatch { + url = "https://github.com/amzn/amzn-drivers/files/11559314/devlink_6_3_fix.patch"; + hash = "sha256-aEQTbwHC1DcDrtj188eoGzi3GU9MXnwIxuJW4L7qb/I="; + }) + ]; + hardeningDisable = [ "pic" ]; nativeBuildInputs = kernel.moduleBuildDependencies; From e4eb28051b68f5764c6f59ec7a6e040ce6ea71ef Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 27 May 2023 17:18:43 +0000 Subject: [PATCH 09/32] enchant: 2.3.4 -> 2.5.0 --- pkgs/development/libraries/enchant/2.x.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/enchant/2.x.nix b/pkgs/development/libraries/enchant/2.x.nix index 63b4b901a9ae..5fb09906895e 100644 --- a/pkgs/development/libraries/enchant/2.x.nix +++ b/pkgs/development/libraries/enchant/2.x.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation rec { pname = "enchant"; - version = "2.3.4"; + version = "2.5.0"; outputs = [ "out" "dev" ]; src = fetchurl { url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz"; - sha256 = "sha256-H34mdE2xyaD+ph0hafTlwc5DXPjCcxw34+QFQRnplKA="; + sha256 = "sha256-FJ4iTN0sqCXYdGOVeLYkbgfzfVuPOXBlijd6HvRvLhU="; }; nativeBuildInputs = [ From f1aee66f92e2ec3293a83b47defc35176771fe99 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 30 Apr 2023 03:02:11 +0200 Subject: [PATCH 10/32] nixos/lib/test-driver: enable EFI variable reads at runtime This is useful whenever you want to diagnose the current state of UEFI variables, to assert that bootloaders or boot programs (systemd-stub) did their job correctly and set their variables accordingly. In the future, it can enable inspecting SecureBoot keys also. --- nixos/lib/test-driver/test_driver/efi.py | 31 ++++++++++++++++++++ nixos/lib/test-driver/test_driver/machine.py | 28 ++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 nixos/lib/test-driver/test_driver/efi.py diff --git a/nixos/lib/test-driver/test_driver/efi.py b/nixos/lib/test-driver/test_driver/efi.py new file mode 100644 index 000000000000..05d5d85e3958 --- /dev/null +++ b/nixos/lib/test-driver/test_driver/efi.py @@ -0,0 +1,31 @@ +from enum import IntEnum + +class EfiVariableAttributes(IntEnum): + NonVolatile = 0x01 + BootServiceAccess = 0x02 + RuntimeAccess = 0x04 + HardwareErrorRecord = 0x08 + AuthenticatedWriteAccess = 0x10 + TimeBasedAuthenticatedWriteAccess = 0x20 + AppendWrite = 0x40 + EnhancedAuthenticatedAccess = 0x80 + +class EfiVariable: + """ + An EFI variable represented by its attributes and raw value in bytes. + Generally, the value is not encoded in UTF-8, but UCS-2 or UTF-16-LE. + """ + attributes: EfiVariableAttributes + value: bytes + + def __init__(self, value: bytes, attributes: bytes): + self.value = value + self.attributes = EfiVariableAttributes(attributes) + + def value_as_null_terminated_string(self, encoding: str = 'utf-16-le'): + """ + Most often, variables are encoded with a null-terminated \x00. + This function gives you the string in a default encoding of UTF-16-LE + stripped of the null terminator. + """ + return self.value.decode(encoding).rstrip('\x00') diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index 9de98c217a58..20b8651fe8c6 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -16,6 +16,7 @@ import tempfile import threading import time +from test_driver.efi import EfiVariable from test_driver.logger import rootlog CHAR_TO_KEY = { @@ -1003,6 +1004,33 @@ class Machine: """ self.send_monitor_command(f"hostfwd_add tcp::{host_port}-:{guest_port}") + def running_under_uefi(self) -> bool: + """ + Returns True if the current environment is running under UEFI, False otherwise. + This is achieved by inspecting by the existence of /sys/firmware/efi. + """ + rc, _ = self.execute("test -d /sys/firmware/efi") + return (rc == 0) + + + def read_efi_variable_from_sysfs(self, guid: str, variable_name: str) -> EfiVariable | None: + """ + Read an EFI variable located in efivars sysfs if available. + Returns None if the EFI variable does not exist. + Raises an assertion error if we are not running under an UEFI environment. + """ + assert self.running_under_uefi(), "This machine is not detected under an UEFI environment" + rc, raw_attributes_and_value = self.execute(f"base64 /sys/firmware/efi/efivars/{variable_name}-{guid}") + if rc != 0: return None + # The return value is a string which is in reality a disguised bytes, we re-encode it properly + # using raw_unicode_escape keeping all the escapes properly. + # This is not guaranteed to work for all the cases but is good enough for UTF-8/UTF-16 usecases. + attributes_and_value = base64.b64decode(raw_attributes_and_value) + # First 4 bytes are attributes: https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html + attributes = attributes_and_value[:4] + value = attributes_and_value[4:] + return EfiVariable(value=value, attributes=attributes) + def block(self) -> None: """Make the machine unreachable by shutting down eth1 (the multicast interface used to talk to the other VMs). We keep eth0 up so that From 406de94b416e7944ff981d6913ce578fd4aa3508 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 27 May 2023 23:54:42 +0200 Subject: [PATCH 11/32] nixos/test-driver: add `timeout` option for `wait_for_console_text` Previously, `wait_for_console_text` would block indefinitely until there were lines shown in the buffer. This is highly annoying when testing for things that can just hang for some reasons. This introduces a classical timeout mechanism via non-blocking get on the Queue. --- nixos/lib/test-driver/test_driver/machine.py | 21 ++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index 1a97cedb2e81..3da7b8c96fdc 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -855,17 +855,30 @@ class Machine: with self.nested(f"waiting for {regex} to appear on screen"): retry(screen_matches) - def wait_for_console_text(self, regex: str) -> None: + def wait_for_console_text(self, regex: str, timeout: float | None = None) -> None: + """ + Wait for the provided regex to appear on console. + For each reads, + + If timeout is None, timeout is infinite. + + `timeout` is in seconds. + """ with self.nested(f"waiting for {regex} to appear on console"): # Buffer the console output, this is needed # to match multiline regexes. console = io.StringIO() + start = time.time() while True: try: - console.write(self.last_lines.get()) + # This will return as soon as possible and + # sleep 1 second. + console.write(self.last_lines.get(block=False)) except queue.Empty: - self.sleep(1) - continue + time.sleep(1) + if timeout is not None and time.time() - start >= timeout: + # If we reached here, we didn't honor our timeout constraint. + raise Exception(f"`wait_for_console_text` did not match `{regex}` after {timeout} seconds") console.seek(0) matches = re.search(regex, console.read()) if matches is not None: From d1104e2109a87447ec2faebd41f42638d6505ce0 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 28 May 2023 00:07:43 +0200 Subject: [PATCH 12/32] nixos/test-driver: add `timeout` option for `wait_for_console_text` (variant 2) --- nixos/lib/test-driver/test_driver/machine.py | 40 ++++++++++---------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index 3da7b8c96fdc..3673271798a8 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -855,7 +855,7 @@ class Machine: with self.nested(f"waiting for {regex} to appear on screen"): retry(screen_matches) - def wait_for_console_text(self, regex: str, timeout: float | None = None) -> None: + def wait_for_console_text(self, regex: str, timeout: int | None = None) -> None: """ Wait for the provided regex to appear on console. For each reads, @@ -864,25 +864,27 @@ class Machine: `timeout` is in seconds. """ + # Buffer the console output, this is needed + # to match multiline regexes. + console = io.StringIO() + def console_matches() -> bool: + nonlocal console + try: + # This will return as soon as possible and + # sleep 1 second. + console.write(self.last_lines.get(block=False)) + except queue.Empty: + pass + console.seek(0) + matches = re.search(regex, console.read()) + return (matches is not None) + with self.nested(f"waiting for {regex} to appear on console"): - # Buffer the console output, this is needed - # to match multiline regexes. - console = io.StringIO() - start = time.time() - while True: - try: - # This will return as soon as possible and - # sleep 1 second. - console.write(self.last_lines.get(block=False)) - except queue.Empty: - time.sleep(1) - if timeout is not None and time.time() - start >= timeout: - # If we reached here, we didn't honor our timeout constraint. - raise Exception(f"`wait_for_console_text` did not match `{regex}` after {timeout} seconds") - console.seek(0) - matches = re.search(regex, console.read()) - if matches is not None: - return + if timeout is not None: + retry(console_matches, timeout) + else: + while not console_matches(): + pass def send_key( self, key: str, delay: Optional[float] = 0.01, log: Optional[bool] = True From 93e6e9719459ad6aabc91dd68c4c81efa6adcf33 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 28 May 2023 01:58:50 +0300 Subject: [PATCH 13/32] victoriametrics: add upstream patches --- pkgs/servers/nosql/victoriametrics/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/nosql/victoriametrics/default.nix b/pkgs/servers/nosql/victoriametrics/default.nix index 301a0f47905c..c7a93f8d2476 100644 --- a/pkgs/servers/nosql/victoriametrics/default.nix +++ b/pkgs/servers/nosql/victoriametrics/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, nixosTests }: +{ lib, buildGoModule, fetchFromGitHub, fetchpatch, nixosTests }: buildGoModule rec { pname = "VictoriaMetrics"; @@ -13,6 +13,19 @@ buildGoModule rec { vendorHash = null; + patches = [ + (fetchpatch { + name = "vmctl-fix-tests.patch"; + url = "https://github.com/VictoriaMetrics/VictoriaMetrics/commit/4060f3f261cb41d97df719e6c60b71be19829301.patch"; + hash = "sha256-SCeSdSLzZZodMiL7Kts0L8R5XD7TbOc5+/oidmithCY="; + }) + (fetchpatch { + name = "graphite-fixes-tests-for-arm.patch"; + url = "https://github.com/VictoriaMetrics/VictoriaMetrics/commit/228ea03bda0eda3507d782cb627d946843f29c30.patch"; + hash = "sha256-FnN5O9H1tNtBs5Fr4tXrnyted8SZwX82ZdBmeHlIQ2Y="; + }) + ]; + postPatch = '' # main module (github.com/VictoriaMetrics/VictoriaMetrics) does not contain package # github.com/VictoriaMetrics/VictoriaMetrics/app/vmui/packages/vmui/web From 25d8d799897485ce61f7a191f4c50ba0e1e6c4ec Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 02:17:47 +0000 Subject: [PATCH 14/32] hidapi: 0.13.1 -> 0.14.0 --- pkgs/development/libraries/hidapi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/hidapi/default.nix b/pkgs/development/libraries/hidapi/default.nix index 89cff8ef427c..dfba7f4e1171 100644 --- a/pkgs/development/libraries/hidapi/default.nix +++ b/pkgs/development/libraries/hidapi/default.nix @@ -12,13 +12,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "hidapi"; - version = "0.13.1"; + version = "0.14.0"; src = fetchFromGitHub { owner = "libusb"; repo = "hidapi"; rev = "${finalAttrs.pname}-${finalAttrs.version}"; - sha256 = "sha256-CEZP5n8qEAzsqn8dz3u1nG0YoT7J1P+WfN7urkRTuVg="; + sha256 = "sha256-p3uzBq5VxxQbVuy1lEHEEQdxXwnhQgJDIyAAWjVWNIg="; }; nativeBuildInputs = [ cmake pkg-config ]; From f1b49e4d944ec23c57db3ff12194a0db4e4b7255 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 02:57:27 +0000 Subject: [PATCH 15/32] libad9361: 0.2 -> 0.3 --- pkgs/development/libraries/libad9361/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libad9361/default.nix b/pkgs/development/libraries/libad9361/default.nix index 115f37161553..f370870f71ef 100644 --- a/pkgs/development/libraries/libad9361/default.nix +++ b/pkgs/development/libraries/libad9361/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "libad9361"; - version = "0.2"; + version = "0.3"; src = fetchFromGitHub { owner = "analogdevicesinc"; repo = "libad9361-iio"; rev = "v${version}"; - hash = "sha256-dYoFWRnREvlOC514ZpmmvoS37DmIkVqfq7JPpTXqXd8="; + hash = "sha256-9e66qSrKpczatZY9lPAzi/6f7lHChnl2+Pih53oa28Y="; }; nativeBuildInputs = [ cmake ]; From 24ad88ae8244753defff917c96525d028c52eb11 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 28 May 2023 02:55:50 +0000 Subject: [PATCH 16/32] =?UTF-8?q?gnome.gnome-maps:=2044.1=20=E2=86=92=2044?= =?UTF-8?q?.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-maps/-/compare/v44.1...v44.2 --- pkgs/desktops/gnome/apps/gnome-maps/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/apps/gnome-maps/default.nix b/pkgs/desktops/gnome/apps/gnome-maps/default.nix index 7bbe0c331e2e..c498974c8997 100644 --- a/pkgs/desktops/gnome/apps/gnome-maps/default.nix +++ b/pkgs/desktops/gnome/apps/gnome-maps/default.nix @@ -27,11 +27,11 @@ stdenv.mkDerivation rec { pname = "gnome-maps"; - version = "44.1"; + version = "44.2"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-tmeG6mr/kRH3WDVu4qEV9jR9Q3lTt77Kq+FDORnzGf8="; + sha256 = "sha256-3Kh/hRME2zyMDIjc1t3uhOh1fWH6k+FeLkyf4W3RjpI="; }; doCheck = true; From cfab797e9dd3c11729c2b6ce5805f06109fa22b0 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 28 May 2023 02:56:22 +0000 Subject: [PATCH 17/32] =?UTF-8?q?gnome.gnome-software:=2044.1=20=E2=86=92?= =?UTF-8?q?=2044.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-software/-/compare/44.1...44.2 --- pkgs/desktops/gnome/core/gnome-software/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-software/default.nix b/pkgs/desktops/gnome/core/gnome-software/default.nix index c12e28945fc4..9bfac3ca793d 100644 --- a/pkgs/desktops/gnome/core/gnome-software/default.nix +++ b/pkgs/desktops/gnome/core/gnome-software/default.nix @@ -45,11 +45,11 @@ in stdenv.mkDerivation rec { pname = "gnome-software"; - version = "44.1"; + version = "44.2"; src = fetchurl { url = "mirror://gnome/sources/gnome-software/${lib.versions.major version}/${pname}-${version}.tar.xz"; - sha256 = "ncZVFRLPCibQPg159JSHCmkW1DwU2CGZxDoR2cwK1ao="; + sha256 = "wC3OcOUrN80pwDdlCzcq2xmyfSD+RLwJIdgalZ01YWw="; }; patches = [ From 499a53a3f8e6c84f0a3253b97cac74fbdfa605e9 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 28 May 2023 04:04:15 +0000 Subject: [PATCH 18/32] =?UTF-8?q?gnome.gnome-remote-desktop:=2044.1=20?= =?UTF-8?q?=E2=86=92=2044.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/compare/44.1...44.2 --- pkgs/desktops/gnome/core/gnome-remote-desktop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-remote-desktop/default.nix b/pkgs/desktops/gnome/core/gnome-remote-desktop/default.nix index 10a24bf2ff52..2b7bda34744f 100644 --- a/pkgs/desktops/gnome/core/gnome-remote-desktop/default.nix +++ b/pkgs/desktops/gnome/core/gnome-remote-desktop/default.nix @@ -30,11 +30,11 @@ stdenv.mkDerivation rec { pname = "gnome-remote-desktop"; - version = "44.1"; + version = "44.2"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - hash = "sha256-0RB+r47hNai/8Yqv1dDtTomLEoQdBLmZxUHZ1LJO9iM="; + hash = "sha256-ep/9NBtfy2NtJmden2JpZQlSFj//UpUydhjMLVzIe44="; }; nativeBuildInputs = [ From 22781dbf83b235f0bfc293fe37bbb611fb2fe809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 5 Jul 2022 14:50:42 +1000 Subject: [PATCH 19/32] rbspy: add an update script --- pkgs/development/tools/rbspy/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/tools/rbspy/default.nix b/pkgs/development/tools/rbspy/default.nix index 2a7ced543ba6..f31ec6d8c1d4 100644 --- a/pkgs/development/tools/rbspy/default.nix +++ b/pkgs/development/tools/rbspy/default.nix @@ -4,6 +4,7 @@ , fetchFromGitHub , ruby , which +, nix-update-script }: rustPlatform.buildRustPackage rec { @@ -46,6 +47,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ ruby which ] ++ lib.optional stdenv.isDarwin rustPlatform.bindgenHook; + passthru.updateScript = nix-update-script { }; + meta = with lib; { homepage = "https://rbspy.github.io/"; description = '' From 1926f40f723de79e0cb6d583007d27757677524f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 05:09:46 +0000 Subject: [PATCH 20/32] nexttrace: 1.1.3 -> 1.1.5 --- pkgs/tools/networking/nexttrace/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/nexttrace/default.nix b/pkgs/tools/networking/nexttrace/default.nix index 931c229ae3aa..0a221772e199 100644 --- a/pkgs/tools/networking/nexttrace/default.nix +++ b/pkgs/tools/networking/nexttrace/default.nix @@ -2,15 +2,15 @@ buildGoModule rec { pname = "nexttrace"; - version = "1.1.3"; + version = "1.1.5"; src = fetchFromGitHub { owner = "sjlleo"; repo = pname; rev = "v${version}"; - sha256 = "sha256-sOTQBh6j8od24s36J0e2aKW1mWmAD/ThfY6pd1SsSlY="; + sha256 = "sha256-9JLJ6v8eDVgqB4mdbHtBCZ1Wm5gjk7ywjGGgYOFZFAQ="; }; - vendorHash = "sha256-ckGoDV4GNp0mG+bkCKoLBO+ap53R5zrq/ZSKiFmVf9U="; + vendorHash = "sha256-1geVqj4W9HoMCM1OkGqpYqHj2jGoGEU9Zv6fkaHBzpk="; doCheck = false; # Tests require a network connection. From ae0042535dfeeee7fb61b4a2f5281ea9af159337 Mon Sep 17 00:00:00 2001 From: Lein Matsumaru Date: Sun, 28 May 2023 06:12:36 +0000 Subject: [PATCH 21/32] exploitdb: 2023-05-25 -> 2023-05-27 --- pkgs/tools/security/exploitdb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/exploitdb/default.nix b/pkgs/tools/security/exploitdb/default.nix index 46b2f34a4d6b..edb8fec31440 100644 --- a/pkgs/tools/security/exploitdb/default.nix +++ b/pkgs/tools/security/exploitdb/default.nix @@ -6,13 +6,13 @@ stdenv.mkDerivation rec { pname = "exploitdb"; - version = "2023-05-25"; + version = "2023-05-27"; src = fetchFromGitLab { owner = "exploit-database"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-W2+54iIg2msExr9SxR8EEnsF0a0nfAgHfXI0wZN8lIw="; + hash = "sha256-7C4lihyGt8jiCtHXzE1iik0vsVRlsoKgvFgiV9iqtoQ="; }; nativeBuildInputs = [ From db508e06a1ee858582ab201b7c5ec819713b06d1 Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Sun, 28 May 2023 08:31:27 +0200 Subject: [PATCH 22/32] treewide: add meta.mainProgram and changelog urls (#204317) --- pkgs/applications/blockchains/monero-gui/default.nix | 1 + pkgs/applications/graphics/drawio/headless.nix | 1 + pkgs/applications/misc/pdfarranger/default.nix | 1 + pkgs/applications/networking/gns3/gui.nix | 1 + pkgs/applications/networking/p2p/gnunet/default.nix | 1 + pkgs/applications/video/mpv/scripts/mpris.nix | 1 + pkgs/development/compilers/unison/default.nix | 1 + pkgs/development/interpreters/wasmtime/default.nix | 3 ++- pkgs/development/python-modules/pyfuse3/default.nix | 1 + pkgs/development/tools/jira-cli-go/default.nix | 1 + pkgs/games/2048-cli/default.nix | 1 + pkgs/games/hhexen/default.nix | 1 + pkgs/games/openrw/default.nix | 1 + pkgs/games/sdlpop/default.nix | 1 + pkgs/games/vitetris/default.nix | 1 + pkgs/tools/security/b3sum/default.nix | 1 + 16 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/blockchains/monero-gui/default.nix b/pkgs/applications/blockchains/monero-gui/default.nix index dae02aba1d02..97c794cc9989 100644 --- a/pkgs/applications/blockchains/monero-gui/default.nix +++ b/pkgs/applications/blockchains/monero-gui/default.nix @@ -99,5 +99,6 @@ stdenv.mkDerivation rec { license = licenses.bsd3; platforms = platforms.all; maintainers = with maintainers; [ rnhmjoj ]; + mainProgram = "monero-wallet-gui"; }; } diff --git a/pkgs/applications/graphics/drawio/headless.nix b/pkgs/applications/graphics/drawio/headless.nix index 34959da67b46..a287c40c6801 100644 --- a/pkgs/applications/graphics/drawio/headless.nix +++ b/pkgs/applications/graphics/drawio/headless.nix @@ -32,5 +32,6 @@ writeTextFile { directory. ''; maintainers = with maintainers; [ qyliss tfc ]; + mainProgram = "drawio"; }; } diff --git a/pkgs/applications/misc/pdfarranger/default.nix b/pkgs/applications/misc/pdfarranger/default.nix index b0268f9c18c2..38f1a9e4d59f 100644 --- a/pkgs/applications/misc/pdfarranger/default.nix +++ b/pkgs/applications/misc/pdfarranger/default.nix @@ -47,5 +47,6 @@ python3Packages.buildPythonApplication rec { platforms = platforms.linux; maintainers = with maintainers; [ symphorien ]; license = licenses.gpl3Plus; + changelog = "https://github.com/pdfarranger/pdfarranger/releases/tag/${version}"; }; } diff --git a/pkgs/applications/networking/gns3/gui.nix b/pkgs/applications/networking/gns3/gui.nix index e0c45e8eede3..b809d4091936 100644 --- a/pkgs/applications/networking/gns3/gui.nix +++ b/pkgs/applications/networking/gns3/gui.nix @@ -62,5 +62,6 @@ python3.pkgs.buildPythonPackage rec { license = licenses.gpl3Plus; platforms = platforms.linux; maintainers = with maintainers; [ anthonyroussel ]; + mainProgram = "gns3"; }; } diff --git a/pkgs/applications/networking/p2p/gnunet/default.nix b/pkgs/applications/networking/p2p/gnunet/default.nix index 00c62b8665aa..366af7121e67 100644 --- a/pkgs/applications/networking/p2p/gnunet/default.nix +++ b/pkgs/applications/networking/p2p/gnunet/default.nix @@ -70,5 +70,6 @@ stdenv.mkDerivation rec { license = licenses.agpl3Plus; maintainers = with maintainers; [ pstn vrthra ]; platforms = platforms.gnu ++ platforms.linux; + changelog = "https://git.gnunet.org/gnunet.git/tree/ChangeLog?h=v${version}"; }; } diff --git a/pkgs/applications/video/mpv/scripts/mpris.nix b/pkgs/applications/video/mpv/scripts/mpris.nix index 85caf23d0012..063833297b98 100644 --- a/pkgs/applications/video/mpv/scripts/mpris.nix +++ b/pkgs/applications/video/mpv/scripts/mpris.nix @@ -28,5 +28,6 @@ stdenv.mkDerivation rec { license = licenses.mit; platforms = platforms.linux; maintainers = with maintainers; [ jfrankenau ]; + changelog = "https://github.com/hoyon/mpv-mpris/releases/tag/${version}"; }; } diff --git a/pkgs/development/compilers/unison/default.nix b/pkgs/development/compilers/unison/default.nix index 774f0223b107..b5031fa58973 100644 --- a/pkgs/development/compilers/unison/default.nix +++ b/pkgs/development/compilers/unison/default.nix @@ -43,5 +43,6 @@ stdenv.mkDerivation rec { license = with licenses; [ mit bsd3 ]; maintainers = [ maintainers.virusdave ]; platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-darwin" ]; + mainProgram = "ucm"; }; } diff --git a/pkgs/development/interpreters/wasmtime/default.nix b/pkgs/development/interpreters/wasmtime/default.nix index 58cde0e10138..a568b364edfd 100644 --- a/pkgs/development/interpreters/wasmtime/default.nix +++ b/pkgs/development/interpreters/wasmtime/default.nix @@ -41,9 +41,10 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "Standalone JIT-style runtime for WebAssembly, using Cranelift"; - homepage = "https://github.com/bytecodealliance/wasmtime"; + homepage = "https://wasmtime.dev/"; license = licenses.asl20; maintainers = with maintainers; [ ereslibre matthewbauer ]; platforms = platforms.unix; + changelog = "https://github.com/bytecodealliance/wasmtime/blob/v${version}/RELEASES.md"; }; } diff --git a/pkgs/development/python-modules/pyfuse3/default.nix b/pkgs/development/python-modules/pyfuse3/default.nix index 19e92f9d532e..8e1196002641 100644 --- a/pkgs/development/python-modules/pyfuse3/default.nix +++ b/pkgs/development/python-modules/pyfuse3/default.nix @@ -65,5 +65,6 @@ buildPythonPackage rec { homepage = "https://github.com/libfuse/pyfuse3"; license = licenses.lgpl2Plus; maintainers = with maintainers; [ nyanloutre dotlambda ]; + changelog = "https://github.com/libfuse/pyfuse3/blob/${version}/Changes.rst"; }; } diff --git a/pkgs/development/tools/jira-cli-go/default.nix b/pkgs/development/tools/jira-cli-go/default.nix index 5681dc168872..1394eef5fd10 100644 --- a/pkgs/development/tools/jira-cli-go/default.nix +++ b/pkgs/development/tools/jira-cli-go/default.nix @@ -49,5 +49,6 @@ buildGoModule rec { changelog = "https://github.com/ankitpokhrel/jira-cli/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ bryanasdev000 anthonyroussel ]; + mainProgram = "jira"; }; } diff --git a/pkgs/games/2048-cli/default.nix b/pkgs/games/2048-cli/default.nix index 7ef923215d6d..e1eb958164ce 100644 --- a/pkgs/games/2048-cli/default.nix +++ b/pkgs/games/2048-cli/default.nix @@ -57,5 +57,6 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.mit; maintainers = [ lib.maintainers.AndersonTorres ]; platforms = lib.platforms.unix; + mainProgram = "2048"; }; }) diff --git a/pkgs/games/hhexen/default.nix b/pkgs/games/hhexen/default.nix index d677962fbe68..4b978ab56511 100644 --- a/pkgs/games/hhexen/default.nix +++ b/pkgs/games/hhexen/default.nix @@ -18,5 +18,6 @@ stdenv.mkDerivation rec { homepage = "https://hhexen.sourceforge.net/hhexen.html"; license = licenses.gpl2Plus; maintainers = with maintainers; [ djanatyn ]; + mainProgram = "hhexen-gl"; }; } diff --git a/pkgs/games/openrw/default.nix b/pkgs/games/openrw/default.nix index 23475f8a55d2..6af74f264a12 100644 --- a/pkgs/games/openrw/default.nix +++ b/pkgs/games/openrw/default.nix @@ -48,5 +48,6 @@ stdenv.mkDerivation { ''; maintainers = with maintainers; [ kragniz ]; platforms = platforms.all; + mainProgram = "rwgame"; }; } diff --git a/pkgs/games/sdlpop/default.nix b/pkgs/games/sdlpop/default.nix index 52e1604acc43..5defb942e7e9 100644 --- a/pkgs/games/sdlpop/default.nix +++ b/pkgs/games/sdlpop/default.nix @@ -67,5 +67,6 @@ stdenv.mkDerivation rec { license = licenses.gpl3Plus; maintainers = with maintainers; [ iblech ]; platforms = platforms.unix; + mainProgram = "prince"; }; } diff --git a/pkgs/games/vitetris/default.nix b/pkgs/games/vitetris/default.nix index 99996ca5c324..f7e566b22084 100644 --- a/pkgs/games/vitetris/default.nix +++ b/pkgs/games/vitetris/default.nix @@ -20,6 +20,7 @@ stdenv.mkDerivation rec { homepage = "http://www.victornils.net/tetris/"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ siers ]; + mainProgram = "tetris"; longDescription = '' vitetris is a terminal-based Tetris clone by Victor Nilsson. Gameplay is much diff --git a/pkgs/tools/security/b3sum/default.nix b/pkgs/tools/security/b3sum/default.nix index 9279ec1d23be..fa7b9e4e5c9c 100644 --- a/pkgs/tools/security/b3sum/default.nix +++ b/pkgs/tools/security/b3sum/default.nix @@ -16,5 +16,6 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/BLAKE3-team/BLAKE3/"; maintainers = with lib.maintainers; [ fpletz ivan ]; license = with lib.licenses; [ cc0 asl20 ]; + changelog = "https://github.com/BLAKE3-team/BLAKE3/releases/tag/${version}"; }; } From 0820f01874cb3be7a2ebf0c339f3c33e1f5e34ba Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 06:47:03 +0000 Subject: [PATCH 23/32] pscale: 0.144.0 -> 0.145.0 --- pkgs/development/tools/pscale/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/pscale/default.nix b/pkgs/development/tools/pscale/default.nix index 3b2fd0bfbcbe..b73ddc5a68fc 100644 --- a/pkgs/development/tools/pscale/default.nix +++ b/pkgs/development/tools/pscale/default.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "pscale"; - version = "0.144.0"; + version = "0.145.0"; src = fetchFromGitHub { owner = "planetscale"; repo = "cli"; rev = "v${version}"; - sha256 = "sha256-11es0U58O98tC1GKQxezav5UYGySAJDxjMFLuPtzhnw="; + sha256 = "sha256-0X+cYDlc7yIJTA4O06Y5roj6bL7mQlZK7jIAs0RbM7U="; }; - vendorHash = "sha256-qJcGQXuJJ4loZinwLfXJEChHHl2OMtv9p5/mrjUWK4E="; + vendorHash = "sha256-brfrAD4cJ/MwT9ZiwN6a25vCWTcRMiszbuLWj3Lk2Kc="; ldflags = [ "-s" "-w" From b1b01a39432c0754863f626dad5225c7997e726c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 07:10:44 +0000 Subject: [PATCH 24/32] sqlitecpp: 3.2.1 -> 3.3.0 --- pkgs/development/libraries/sqlitecpp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/sqlitecpp/default.nix b/pkgs/development/libraries/sqlitecpp/default.nix index aad1ee34e5c4..4212f29e924f 100644 --- a/pkgs/development/libraries/sqlitecpp/default.nix +++ b/pkgs/development/libraries/sqlitecpp/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "sqlitecpp"; - version = "3.2.1"; + version = "3.3.0"; src = fetchFromGitHub { owner = "SRombauts"; repo = pname; rev = version; - sha256 = "sha256-uVvlW95UD1dhJfNuKgo7XvbdXrHl95OhaEpWfn0RH/E="; + sha256 = "sha256-3Xo/FgifbrSn0AvinriJZerUM2kbcMaoyF5ST8+1Qqw="; }; nativeBuildInputs = [ cmake ]; From e2ccc3dd9f4da160bacf7da8d294b353678d2ce8 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sun, 28 May 2023 08:58:03 +0100 Subject: [PATCH 25/32] cjdns: mark broken for aarch64 ZHF: #230712 --- pkgs/tools/networking/cjdns/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/networking/cjdns/default.nix b/pkgs/tools/networking/cjdns/default.nix index ccb0bf46e762..85705a27231f 100644 --- a/pkgs/tools/networking/cjdns/default.nix +++ b/pkgs/tools/networking/cjdns/default.nix @@ -70,5 +70,6 @@ rustPlatform.buildRustPackage rec { license = licenses.gpl3Plus; maintainers = with maintainers; [ ehmry ]; platforms = platforms.linux; + broken = stdenv.isAarch64; }; } From 62d347770a26663db3332d3a04c5084f6a71dd9d Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sun, 28 May 2023 09:00:47 +0100 Subject: [PATCH 26/32] nimPackages.eris: wontfix darwin ZHF: #230712 --- pkgs/development/nim-packages/eris/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/nim-packages/eris/default.nix b/pkgs/development/nim-packages/eris/default.nix index 9c5820398aca..bdd7de6a463b 100644 --- a/pkgs/development/nim-packages/eris/default.nix +++ b/pkgs/development/nim-packages/eris/default.nix @@ -33,5 +33,6 @@ buildNimPackage rec { license = lib.licenses.unlicense; maintainers = with lib.maintainers; [ ehmry ]; mainProgram = "eriscmd"; + badPlatforms = lib.platforms.darwin; }; } From b3976105fb887b10cf89b09ae645d39f01e1a532 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 28 May 2023 10:09:29 +0200 Subject: [PATCH 27/32] sqlfluff: 2.1.0 -> 2.1.1 Diff: https://github.com/sqlfluff/sqlfluff/compare/refs/tags/2.1.0...2.1.1 Changelog: https://github.com/sqlfluff/sqlfluff/blob/2.1.1/CHANGELOG.md --- pkgs/development/tools/database/sqlfluff/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/database/sqlfluff/default.nix b/pkgs/development/tools/database/sqlfluff/default.nix index 8cc66b0e91da..abd0b1d6860c 100644 --- a/pkgs/development/tools/database/sqlfluff/default.nix +++ b/pkgs/development/tools/database/sqlfluff/default.nix @@ -5,14 +5,14 @@ python3.pkgs.buildPythonApplication rec { pname = "sqlfluff"; - version = "2.1.0"; + version = "2.1.1"; format = "setuptools"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-kUc3y9OlaQ72MsESrVd+eqm4xulFixYMKAIMeP3+NOc="; + hash = "sha256-WNQ9rcy3dqfZjLdqjpl5erSxLgQjYc/sy293DfzoenM="; }; propagatedBuildInputs = with python3.pkgs; [ From 88de6494acb1e2543473708cdc827d1e23aeff4c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 06:57:30 +0000 Subject: [PATCH 28/32] argocd: 2.7.2 -> 2.7.3 --- pkgs/applications/networking/cluster/argocd/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/argocd/default.nix b/pkgs/applications/networking/cluster/argocd/default.nix index a23346b2c4bb..2cd4eb044dc6 100644 --- a/pkgs/applications/networking/cluster/argocd/default.nix +++ b/pkgs/applications/networking/cluster/argocd/default.nix @@ -2,17 +2,17 @@ buildGoModule rec { pname = "argocd"; - version = "2.7.2"; + version = "2.7.3"; src = fetchFromGitHub { owner = "argoproj"; repo = "argo-cd"; rev = "v${version}"; - sha256 = "sha256-pmF0EJfidYRZRelvXLfwANbv+DnfgLXVeKfjRSbnKjY="; + sha256 = "sha256-vUidpBiCxHzCwveOrLfNpwVePQZMgX+K8qpVR0h58p0="; }; proxyVendor = true; # darwin/linux hash mismatch - vendorHash = "sha256-VRbNzJANWA7MjomzxNRK19Q4L+fsztMpumUbdYszYqw="; + vendorHash = "sha256-+thdFvd4cxvWxi+j4awBqfQ6jq6puFYbwoWsIsbMIZI="; # Set target as ./cmd per cli-local # https://github.com/argoproj/argo-cd/blob/master/Makefile#L227 From 10fef5f96567fcc3636603af99b2625138c7ca94 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 08:13:13 +0000 Subject: [PATCH 29/32] osqp: 0.6.2 -> 0.6.3 --- pkgs/development/libraries/science/math/osqp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/science/math/osqp/default.nix b/pkgs/development/libraries/science/math/osqp/default.nix index 485ec06773bb..bf22e1d74d93 100644 --- a/pkgs/development/libraries/science/math/osqp/default.nix +++ b/pkgs/development/libraries/science/math/osqp/default.nix @@ -5,13 +5,13 @@ stdenv.mkDerivation rec { pname = "osqp"; - version = "0.6.2"; + version = "0.6.3"; src = fetchFromGitHub { owner = "oxfordcontrol"; repo = "osqp"; rev = "v${version}"; - sha256 = "sha256-RYk3zuZrJXPcF27eMhdoZAio4DZ+I+nFaUEg1g/aLNk="; + sha256 = "sha256-enkK5EFyAeLaUnHNYS3oq43HsHY5IuSLgsYP0k/GW8c="; fetchSubmodules = true; }; From 6d577e2e88febbe980ebee0cd2d8f72edde8e60f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 28 May 2023 08:33:02 +0000 Subject: [PATCH 30/32] python310Packages.simple-salesforce: 1.12.3 -> 1.12.4 --- pkgs/development/python-modules/simple-salesforce/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/simple-salesforce/default.nix b/pkgs/development/python-modules/simple-salesforce/default.nix index dc080836b737..f417ac326897 100644 --- a/pkgs/development/python-modules/simple-salesforce/default.nix +++ b/pkgs/development/python-modules/simple-salesforce/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "simple-salesforce"; - version = "1.12.3"; + version = "1.12.4"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = pname; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-lCZdX+gf9ROU1MIRw/ppTNO8jIGUxE1+gbHh6sK5L2s="; + hash = "sha256-nYL2kSDS6DSrBzAKbg7Wj6boSZ52+T/yX+NYnYQ9rQo="; }; propagatedBuildInputs = [ From 82082e931fd7199c929fb7901aac05e54cd1e18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 28 May 2023 11:41:24 +0200 Subject: [PATCH 31/32] vtm: avoid using an alias Regressed in 92d15cf5f0d4a9. These aliases are deprecated; usage blocks channel via https://hydra.nixos.org/log/rgfflnxgnghdmfqh8id62wc6b13vrh0z-nixpkgs-release-checks.drv --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 591c0e4f9422..422b07501ecb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13578,7 +13578,7 @@ with pkgs; }; vtm = callPackage ../tools/misc/vtm { - stdenv = if stdenv.isDarwin then clang16Stdenv else stdenv; + stdenv = if stdenv.isDarwin then llvmPackages_16.stdenv else stdenv; }; witness = callPackage ../tools/security/witness { }; From b4b45ee6d2aa15441f80d96883c10d91b1e08a5d Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Sun, 28 May 2023 13:05:59 +0200 Subject: [PATCH 32/32] Revert "nixos/lib/test-driver: enable EFI variable reads at runtime" --- nixos/lib/test-driver/test_driver/efi.py | 31 -------------------- nixos/lib/test-driver/test_driver/machine.py | 28 ------------------ 2 files changed, 59 deletions(-) delete mode 100644 nixos/lib/test-driver/test_driver/efi.py diff --git a/nixos/lib/test-driver/test_driver/efi.py b/nixos/lib/test-driver/test_driver/efi.py deleted file mode 100644 index 05d5d85e3958..000000000000 --- a/nixos/lib/test-driver/test_driver/efi.py +++ /dev/null @@ -1,31 +0,0 @@ -from enum import IntEnum - -class EfiVariableAttributes(IntEnum): - NonVolatile = 0x01 - BootServiceAccess = 0x02 - RuntimeAccess = 0x04 - HardwareErrorRecord = 0x08 - AuthenticatedWriteAccess = 0x10 - TimeBasedAuthenticatedWriteAccess = 0x20 - AppendWrite = 0x40 - EnhancedAuthenticatedAccess = 0x80 - -class EfiVariable: - """ - An EFI variable represented by its attributes and raw value in bytes. - Generally, the value is not encoded in UTF-8, but UCS-2 or UTF-16-LE. - """ - attributes: EfiVariableAttributes - value: bytes - - def __init__(self, value: bytes, attributes: bytes): - self.value = value - self.attributes = EfiVariableAttributes(attributes) - - def value_as_null_terminated_string(self, encoding: str = 'utf-16-le'): - """ - Most often, variables are encoded with a null-terminated \x00. - This function gives you the string in a default encoding of UTF-16-LE - stripped of the null terminator. - """ - return self.value.decode(encoding).rstrip('\x00') diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index ec36c05cbbbf..3673271798a8 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -17,7 +17,6 @@ import tempfile import threading import time -from test_driver.efi import EfiVariable from test_driver.logger import rootlog CHAR_TO_KEY = { @@ -1035,33 +1034,6 @@ class Machine: """ self.send_monitor_command(f"hostfwd_add tcp::{host_port}-:{guest_port}") - def running_under_uefi(self) -> bool: - """ - Returns True if the current environment is running under UEFI, False otherwise. - This is achieved by inspecting by the existence of /sys/firmware/efi. - """ - rc, _ = self.execute("test -d /sys/firmware/efi") - return (rc == 0) - - - def read_efi_variable_from_sysfs(self, guid: str, variable_name: str) -> EfiVariable | None: - """ - Read an EFI variable located in efivars sysfs if available. - Returns None if the EFI variable does not exist. - Raises an assertion error if we are not running under an UEFI environment. - """ - assert self.running_under_uefi(), "This machine is not detected under an UEFI environment" - rc, raw_attributes_and_value = self.execute(f"base64 /sys/firmware/efi/efivars/{variable_name}-{guid}") - if rc != 0: return None - # The return value is a string which is in reality a disguised bytes, we re-encode it properly - # using raw_unicode_escape keeping all the escapes properly. - # This is not guaranteed to work for all the cases but is good enough for UTF-8/UTF-16 usecases. - attributes_and_value = base64.b64decode(raw_attributes_and_value) - # First 4 bytes are attributes: https://www.kernel.org/doc/html/latest/filesystems/efivarfs.html - attributes = attributes_and_value[:4] - value = attributes_and_value[4:] - return EfiVariable(value=value, attributes=attributes) - def block(self) -> None: """Make the machine unreachable by shutting down eth1 (the multicast interface used to talk to the other VMs). We keep eth0 up so that