From 5110d348b258aa3397b15876c68e5b17a4080c9c Mon Sep 17 00:00:00 2001 From: Evgeny Kurnevsky Date: Fri, 11 Aug 2023 11:18:57 +0300 Subject: [PATCH 01/73] wstunnel: correct listen option --- nixos/modules/services/networking/wstunnel.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/wstunnel.nix b/nixos/modules/services/networking/wstunnel.nix index 067d5df48725..3c3ecc3e04d7 100644 --- a/nixos/modules/services/networking/wstunnel.nix +++ b/nixos/modules/services/networking/wstunnel.nix @@ -86,12 +86,12 @@ let description = mdDoc "Address and port to listen on. Setting the port to a value below 1024 will also give the process the required `CAP_NET_BIND_SERVICE` capability."; type = types.submodule hostPortSubmodule; default = { - address = "0.0.0.0"; + host = "0.0.0.0"; port = if config.enableHTTPS then 443 else 80; }; defaultText = literalExpression '' { - address = "0.0.0.0"; + host = "0.0.0.0"; port = if enableHTTPS then 443 else 80; } ''; From f7151209c413d0ba51d2986e9e942eb37610b06c Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 19 Aug 2023 16:27:05 +0100 Subject: [PATCH 02/73] nixos/woodpecker-agents: fix 'podman' example The name should match the fact that we're using `podman` instead of `docker`. And the group was wrong. --- .../services/continuous-integration/woodpecker/agents.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/continuous-integration/woodpecker/agents.nix b/nixos/modules/services/continuous-integration/woodpecker/agents.nix index cc5b903afd59..fb86e854d294 100644 --- a/nixos/modules/services/continuous-integration/woodpecker/agents.nix +++ b/nixos/modules/services/continuous-integration/woodpecker/agents.nix @@ -107,14 +107,14 @@ in default = { }; type = lib.types.attrsOf agentModule; example = { - docker = { + podman = { environment = { WOODPECKER_SERVER = "localhost:9000"; WOODPECKER_BACKEND = "docker"; DOCKER_HOST = "unix:///run/podman/podman.sock"; }; - extraGroups = [ "docker" ]; + extraGroups = [ "podman" ]; environmentFile = "/run/secrets/woodpecker/agent-secret.txt"; }; From 7d246a2873ea045ce7b2381f72a76f701f5abbd9 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 18 Aug 2023 13:32:59 +0000 Subject: [PATCH 03/73] nixos/woodpecker-agents: fix typos in doc The name of the backend is `local`, not `exec`. `environmentFile` is supposed to be a list. --- .../services/continuous-integration/woodpecker/agents.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/continuous-integration/woodpecker/agents.nix b/nixos/modules/services/continuous-integration/woodpecker/agents.nix index fb86e854d294..62719ee934af 100644 --- a/nixos/modules/services/continuous-integration/woodpecker/agents.nix +++ b/nixos/modules/services/continuous-integration/woodpecker/agents.nix @@ -116,16 +116,16 @@ in extraGroups = [ "podman" ]; - environmentFile = "/run/secrets/woodpecker/agent-secret.txt"; + environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; }; exec = { environment = { WOODPECKER_SERVER = "localhost:9000"; - WOODPECKER_BACKEND = "exec"; + WOODPECKER_BACKEND = "local"; }; - environmentFile = "/run/secrets/woodpecker/agent-secret.txt"; + environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; }; }; description = lib.mdDoc "woodpecker-agents configurations"; From 6dd4c5f73faae32bea4bed2cf8f1a98328387129 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 19 Aug 2023 16:29:08 +0100 Subject: [PATCH 04/73] nixos/woodpecker-agents: use 'literalExample' The next commit is going to add an option which takes a list of packages. So the example must be converted to make it documentable. This will also allow adding comments, to explain why some options are used. --- .../woodpecker/agents.nix | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/nixos/modules/services/continuous-integration/woodpecker/agents.nix b/nixos/modules/services/continuous-integration/woodpecker/agents.nix index 62719ee934af..4beb74ca5b39 100644 --- a/nixos/modules/services/continuous-integration/woodpecker/agents.nix +++ b/nixos/modules/services/continuous-integration/woodpecker/agents.nix @@ -106,28 +106,30 @@ in agents = lib.mkOption { default = { }; type = lib.types.attrsOf agentModule; - example = { - podman = { - environment = { - WOODPECKER_SERVER = "localhost:9000"; - WOODPECKER_BACKEND = "docker"; - DOCKER_HOST = "unix:///run/podman/podman.sock"; + example = lib.literalExpression '' + { + podman = { + environment = { + WOODPECKER_SERVER = "localhost:9000"; + WOODPECKER_BACKEND = "docker"; + DOCKER_HOST = "unix:///run/podman/podman.sock"; + }; + + extraGroups = [ "podman" ]; + + environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; }; - extraGroups = [ "podman" ]; + exec = { + environment = { + WOODPECKER_SERVER = "localhost:9000"; + WOODPECKER_BACKEND = "local"; + }; - environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; - }; - - exec = { - environment = { - WOODPECKER_SERVER = "localhost:9000"; - WOODPECKER_BACKEND = "local"; + environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; }; - - environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; - }; - }; + } + ''; description = lib.mdDoc "woodpecker-agents configurations"; }; }; From 200c3bad4254b41202d8e96959c19e15a20c6434 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 18 Aug 2023 13:39:08 +0000 Subject: [PATCH 05/73] nixos/woodpecker-agents: add 'path' option See #249602. --- .../woodpecker/agents.nix | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/continuous-integration/woodpecker/agents.nix b/nixos/modules/services/continuous-integration/woodpecker/agents.nix index 4beb74ca5b39..3b883c72ff07 100644 --- a/nixos/modules/services/continuous-integration/woodpecker/agents.nix +++ b/nixos/modules/services/continuous-integration/woodpecker/agents.nix @@ -35,6 +35,16 @@ let ''; }; + path = lib.mkOption { + type = lib.types.listOf lib.types.package; + default = [ ]; + example = [ "" ]; + description = lib.mdDoc '' + Additional packages that should be added to the agent's `PATH`. + Mostly useful for the `local` backend. + ''; + }; + environmentFile = lib.mkOption { type = lib.types.listOf lib.types.path; default = [ ]; @@ -94,7 +104,7 @@ let "-/etc/localtime" ]; }; - inherit (agentCfg) environment; + inherit (agentCfg) environment path; }; }; in @@ -127,6 +137,17 @@ in }; environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ]; + + path = [ + # Needed to clone repos + git + git-lfs + woodpecker-plugin-git + # Used by the runner as the default shell + bash + # Most likely to be used in pipeline definitions + coreutils + ]; }; } ''; From 4732cbf3f88f451760345e9cdb54babbb543e22e Mon Sep 17 00:00:00 2001 From: ajs124 Date: Mon, 28 Aug 2023 15:02:59 +0200 Subject: [PATCH 06/73] nixos/restic: use openssh as configured in programs.ssh --- nixos/modules/services/backup/restic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix index 1620770e5b56..60afb15ee879 100644 --- a/nixos/modules/services/backup/restic.nix +++ b/nixos/modules/services/backup/restic.nix @@ -331,7 +331,7 @@ in nameValuePair (rcloneAttrToConf name) (toRcloneVal value) ) backup.rcloneConfig); - path = [ pkgs.openssh ]; + path = [ config.programs.ssh.package ]; restartIfChanged = false; serviceConfig = { Type = "oneshot"; From dbb69f82c6d3ef080f42f478fc366445539df757 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Thu, 24 Aug 2023 01:31:58 +0200 Subject: [PATCH 07/73] nixos/restic: add wrapper scripts that set parameters for backup and use in test --- .../manual/release-notes/rl-2311.section.md | 2 ++ nixos/modules/services/backup/restic.nix | 30 ++++++++++++++++++- nixos/tests/restic.nix | 20 ++++++------- 3 files changed, 41 insertions(+), 11 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 24c044ece7e0..923c11464407 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -201,6 +201,8 @@ The module update takes care of the new config syntax and the data itself (user - `services.nginx` gained a `defaultListen` option at server-level with support for PROXY protocol listeners, also `proxyProtocol` is now exposed in `services.nginx.virtualHosts..listen` option. It is now possible to run PROXY listeners and non-PROXY listeners at a server-level, see [#213510](https://github.com/NixOS/nixpkgs/pull/213510/) for more details. +- `services.restic.backups` now adds wrapper scripts to your system path, which set the same environment variables as the service, so restic operations can easly be run from the command line. This behavior can be disabled by setting `createWrapper` to `false`, per backup configuration. + - `services.prometheus.exporters` has a new exporter to monitor electrical power consumption based on PowercapRAPL sensor called [Scaphandre](https://github.com/hubblo-org/scaphandre), see [#239803](https://github.com/NixOS/nixpkgs/pull/239803) for more details. - The module `services.calibre-server` has new options to configure the `host`, `port`, `auth.enable`, `auth.mode` and `auth.userDb` path, see [#216497](https://github.com/NixOS/nixpkgs/pull/216497/) for more details. diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix index 60afb15ee879..70be32aa8c38 100644 --- a/nixos/modules/services/backup/restic.nix +++ b/nixos/modules/services/backup/restic.nix @@ -260,6 +260,16 @@ in Restic package to use. ''; }; + + createWrapper = lib.mkOption { + type = lib.types.bool; + default = true; + description = '' + Whether to generate and add a script to the system path, that has the same environment variables set + as the systemd service. This can be used to e.g. mount snapshots or perform other opterations, without + having to manually specify most options. + ''; + }; }; })); default = { }; @@ -316,7 +326,8 @@ in in nameValuePair "restic-backups-${name}" ({ environment = { - RESTIC_CACHE_DIR = "%C/restic-backups-${name}"; + # not %C, because that wouldn't work in the wrapper script + RESTIC_CACHE_DIR = "/var/cache/restic-backups-${name}"; RESTIC_PASSWORD_FILE = backup.passwordFile; RESTIC_REPOSITORY = backup.repository; RESTIC_REPOSITORY_FILE = backup.repositoryFile; @@ -376,5 +387,22 @@ in timerConfig = backup.timerConfig; }) config.services.restic.backups; + + # generate wrapper scripts, as described in the createWrapper option + environment.systemPackages = lib.mapAttrsToList (name: backup: let + extraOptions = lib.concatMapStrings (arg: " -o ${arg}") backup.extraOptions; + resticCmd = "${backup.package}/bin/restic${extraOptions}"; + in pkgs.writeShellScriptBin "restic-${name}" '' + set -a # automatically export variables + ${lib.optionalString (backup.environmentFile != null) "source ${backup.environmentFile}"} + # set same environment variables as the systemd service + ${lib.pipe config.systemd.services."restic-backups-${name}".environment [ + (lib.filterAttrs (_: v: v != null)) + (lib.mapAttrsToList (n: v: "${n}=${v}")) + (lib.concatStringsSep "\n") + ]} + + exec ${resticCmd} $@ + '') (lib.filterAttrs (_: v: v.createWrapper) config.services.restic.backups); }; } diff --git a/nixos/tests/restic.nix b/nixos/tests/restic.nix index 626049e73341..3b9ea2f85b1e 100644 --- a/nixos/tests/restic.nix +++ b/nixos/tests/restic.nix @@ -97,9 +97,9 @@ import ./make-test-python.nix ( server.start() server.wait_for_unit("dbus.socket") server.fail( - "${pkgs.restic}/bin/restic -r ${remoteRepository} -p ${passwordFile} snapshots", - '${pkgs.restic}/bin/restic -r ${remoteFromFileRepository} -p ${passwordFile} snapshots"', - "${pkgs.restic}/bin/restic -r ${rcloneRepository} -p ${passwordFile} snapshots", + "restic-remotebackup snapshots", + 'restic-remote-from-file-backup snapshots"', + "restic-rclonebackup snapshots", "grep 'backup.* /opt' /root/fake-restic.log", ) server.succeed( @@ -112,20 +112,20 @@ import ./make-test-python.nix ( "timedatectl set-time '2016-12-13 13:45'", "systemctl start restic-backups-remotebackup.service", "rm /root/backupCleanupCommand", - '${pkgs.restic}/bin/restic -r ${remoteRepository} -p ${passwordFile} snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', + 'restic-remotebackup snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', # test that restoring that snapshot produces the same directory "mkdir /tmp/restore-1", - "${pkgs.restic}/bin/restic -r ${remoteRepository} -p ${passwordFile} restore latest -t /tmp/restore-1", + "restic-remotebackup restore latest -t /tmp/restore-1", "diff -ru ${testDir} /tmp/restore-1/opt", # test that remote-from-file-backup produces a snapshot "systemctl start restic-backups-remote-from-file-backup.service", - '${pkgs.restic}/bin/restic -r ${remoteFromFileRepository} -p ${passwordFile} snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', + 'restic-remote-from-file-backup snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', # test that rclonebackup produces a snapshot "systemctl start restic-backups-rclonebackup.service", - '${pkgs.restic}/bin/restic -r ${rcloneRepository} -p ${passwordFile} snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', + 'restic-rclonebackup snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', # test that custompackage runs both `restic backup` and `restic check` with reasonable commandlines "systemctl start restic-backups-custompackage.service", @@ -158,12 +158,12 @@ import ./make-test-python.nix ( "rm /root/backupCleanupCommand", "systemctl start restic-backups-rclonebackup.service", - '${pkgs.restic}/bin/restic -r ${remoteRepository} -p ${passwordFile} snapshots --json | ${pkgs.jq}/bin/jq "length | . == 4"', - '${pkgs.restic}/bin/restic -r ${rcloneRepository} -p ${passwordFile} snapshots --json | ${pkgs.jq}/bin/jq "length | . == 4"', + 'restic-remotebackup snapshots --json | ${pkgs.jq}/bin/jq "length | . == 4"', + 'restic-rclonebackup snapshots --json | ${pkgs.jq}/bin/jq "length | . == 4"', # test that remoteprune brings us back to 1 snapshot in remotebackup "systemctl start restic-backups-remoteprune.service", - '${pkgs.restic}/bin/restic -r ${remoteRepository} -p ${passwordFile} snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', + 'restic-remotebackup snapshots --json | ${pkgs.jq}/bin/jq "length | . == 1"', ) ''; From 189b14246a1992ff2454f75ae3478141fed2488b Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Sun, 14 Aug 2022 00:33:24 -0400 Subject: [PATCH 08/73] nixos/networkd: Reload (not restart) when only .network units change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Underneath, systemd-networkd’s reload is just `networkctl reload`. Per `man networkctl`, calling `reload` is expected to fully handle new, modified, and removed .network files, but it only handles *new* .netdev files. For simplicity, assume .network -> reload and .netdev -> restart. It’s desirable to perform reload instead of restart, as restart has the potential to bring down interfaces, resulting in a loss of network connectivity. --- nixos/modules/system/boot/networkd.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 6d0afcc57fcc..756632a45f90 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -2812,9 +2812,16 @@ let environment.etc."systemd/networkd.conf" = renderConfig cfg.config; - systemd.services.systemd-networkd = { + systemd.services.systemd-networkd = let + isReloadableUnitFileName = unitFileName: strings.hasSuffix ".network" unitFileName; + partitionedUnitFiles = lib.partition isReloadableUnitFileName unitFiles; + reloadableUnitFiles = partitionedUnitFiles.right; + nonReloadableUnitFiles = partitionedUnitFiles.wrong; + unitFileSources = unitFiles: map (x: x.source) (attrValues unitFiles); + in { wantedBy = [ "multi-user.target" ]; - restartTriggers = map (x: x.source) (attrValues unitFiles) ++ [ + reloadTriggers = unitFileSources reloadableUnitFiles; + restartTriggers = unitFileSources nonReloadableUnitFiles ++ [ config.environment.etc."systemd/networkd.conf".source ]; aliases = [ "dbus-org.freedesktop.network1.service" ]; From 847757c2b480cf55228918a7718783fd2227b6d2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 1 Sep 2023 09:55:18 +0200 Subject: [PATCH 09/73] python311Packages.adb-shell: 0.4.3 -> 0.4.4 Diff: https://github.com/JeffLIrion/adb_shell/compare/v0.4.3...v0.4.4 --- pkgs/development/python-modules/adb-shell/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/adb-shell/default.nix b/pkgs/development/python-modules/adb-shell/default.nix index cdd8ff94b893..c2f189e2749a 100644 --- a/pkgs/development/python-modules/adb-shell/default.nix +++ b/pkgs/development/python-modules/adb-shell/default.nix @@ -1,5 +1,6 @@ { lib , aiofiles +, async-timeout , buildPythonPackage , cryptography , fetchFromGitHub @@ -15,7 +16,7 @@ buildPythonPackage rec { pname = "adb-shell"; - version = "0.4.3"; + version = "0.4.4"; format = "setuptools"; disabled = !isPy3k; @@ -24,7 +25,7 @@ buildPythonPackage rec { owner = "JeffLIrion"; repo = "adb_shell"; rev = "v${version}"; - hash = "sha256-+RU3nyJpHq0r/9erEbjUILpwIPWq14HdOX7LkSxySs4="; + hash = "sha256-pOkFUh3SEu/ch9R1lVoQn50nufQp8oI+D4/+Ybal5CA="; }; propagatedBuildInputs = [ @@ -36,6 +37,7 @@ buildPythonPackage rec { passthru.optional-dependencies = { async = [ aiofiles + async-timeout ]; usb = [ libusb1 @@ -46,9 +48,7 @@ buildPythonPackage rec { mock pycryptodome pytestCheckHook - ] - ++ passthru.optional-dependencies.async - ++ passthru.optional-dependencies.usb; + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); pythonImportsCheck = [ "adb_shell" From 6de832b0e5136e8a22e55ce9db5b2e3ad3164466 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Mon, 28 Aug 2023 18:39:38 +0200 Subject: [PATCH 10/73] nixos/logrotate: add extraArgs option --- nixos/modules/services/logging/logrotate.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/logging/logrotate.nix b/nixos/modules/services/logging/logrotate.nix index 342ac5ec6e04..ba1445f08397 100644 --- a/nixos/modules/services/logging/logrotate.nix +++ b/nixos/modules/services/logging/logrotate.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, utils, ... }: with lib; @@ -220,6 +220,12 @@ in in this case you can disable the failing check with this option. ''; }; + + extraArgs = lib.mkOption { + type = lib.types.listOf lib.types.str; + default = []; + description = "Additional command line arguments to pass on logrotate invocation"; + }; }; }; @@ -231,7 +237,7 @@ in serviceConfig = { Restart = "no"; User = "root"; - ExecStart = "${pkgs.logrotate}/sbin/logrotate ${mailOption} ${cfg.configFile}"; + ExecStart = "${pkgs.logrotate}/sbin/logrotate ${utils.escapeSystemdExecArgs cfg.extraArgs} ${mailOption} ${cfg.configFile}"; }; }; systemd.services.logrotate-checkconf = { @@ -240,7 +246,7 @@ in serviceConfig = { Type = "oneshot"; RemainAfterExit = true; - ExecStart = "${pkgs.logrotate}/sbin/logrotate --debug ${cfg.configFile}"; + ExecStart = "${pkgs.logrotate}/sbin/logrotate ${utils.escapeSystemdExecArgs cfg.extraArgs} --debug ${cfg.configFile}"; }; }; }; From 0958110ed52c7aad58f4c60dd2f6d870edf3a897 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 6 Sep 2023 01:39:34 +0000 Subject: [PATCH 11/73] wimboot: 2.7.5 -> 2.7.6 --- pkgs/tools/misc/wimboot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/wimboot/default.nix b/pkgs/tools/misc/wimboot/default.nix index 244dccce6bb0..3c686c309374 100644 --- a/pkgs/tools/misc/wimboot/default.nix +++ b/pkgs/tools/misc/wimboot/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "wimboot"; - version = "2.7.5"; + version = "2.7.6"; src = fetchFromGitHub { owner = "ipxe"; repo = "wimboot"; rev = "v${version}"; - sha256 = "sha256-rbJONP3ge+2+WzCIpTUZeieQz9Q/MZfEUmQVbZ+9Dro="; + sha256 = "sha256-AFPuHxcDM/cdEJ5nRJnVbPk7Deg97NeSMsg/qwytZX4="; }; sourceRoot = "${src.name}/src"; From 6198bb8acda16c7b958d255b4beaef5aede1cb2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 25 Aug 2023 06:40:43 +0200 Subject: [PATCH 12/73] buildbot-www-react: init 3.9.2 --- .../buildbot/plugins.nix | 38 ++++++++++++++++++- .../continuous-integration/buildbot/update.sh | 1 + 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/continuous-integration/buildbot/plugins.nix b/pkgs/development/tools/continuous-integration/buildbot/plugins.nix index 7cc6136b53fb..429c19ecfcee 100644 --- a/pkgs/development/tools/continuous-integration/buildbot/plugins.nix +++ b/pkgs/development/tools/continuous-integration/buildbot/plugins.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, callPackage, mock, cairosvg, klein, jinja2, buildbot-pkg }: +{ lib, buildPythonPackage, fetchPypi, fetchurl, callPackage, mock, cairosvg, klein, jinja2, buildbot-pkg, unzip, zip }: { # this is exposed for potential plugins to use and for nix-update inherit buildbot-pkg; @@ -29,6 +29,42 @@ }; }; + www-react = buildPythonPackage rec { + pname = "buildbot-www-react"; + inherit (buildbot-pkg) version; + format = "wheel"; + + # fetchpypy returns a 404 for the wheel? + # normal source release doesn't have any assets + src = fetchurl { + url = "https://github.com/buildbot/buildbot/releases/download/v${version}/buildbot_www_react-${version}-py3-none-any.whl"; + hash = "sha256-pEzuMiDhGQtIWQm80lgKIcTjnS7Z8UJhH9plJup5O84="; + }; + + # Remove unneccessary circular dependency on buildbot + postPatch = '' + pushd dist + unzip buildbot_www_react-${version}-py3-none-any.whl + sed -i "s/Requires-Dist: buildbot//" buildbot_www_react-${version}.dist-info/METADATA + chmod -R u+w buildbot_www_react-${version}-py3-none-any.whl + zip -r buildbot_www_react-${version}-py3-none-any.whl buildbot_www_react-${version}.dist-info + popd + ''; + + buildInputs = [ buildbot-pkg ]; + nativeBuildInputs = [ unzip zip ]; + + # No tests + doCheck = false; + + meta = with lib; { + homepage = "https://buildbot.net/"; + description = "Buildbot UI (React)"; + maintainers = with maintainers; [ mic92 ]; + license = licenses.gpl2Only; + }; + }; + console-view = buildPythonPackage rec { pname = "buildbot-console-view"; inherit (buildbot-pkg) version; diff --git a/pkgs/development/tools/continuous-integration/buildbot/update.sh b/pkgs/development/tools/continuous-integration/buildbot/update.sh index a295993607a8..3bbbfc840e44 100755 --- a/pkgs/development/tools/continuous-integration/buildbot/update.sh +++ b/pkgs/development/tools/continuous-integration/buildbot/update.sh @@ -6,6 +6,7 @@ nix-update buildbot nix-update --version=skip buildbot-worker nix-update --version=skip buildbot-plugins.buildbot-pkg nix-update --version=skip buildbot-plugins.www +nix-update --version=skip buildbot-plugins.www-react nix-update --version=skip buildbot-plugins.console-view nix-update --version=skip buildbot-plugins.waterfall-view nix-update --version=skip buildbot-plugins.grid-view From df4236c9043c2f7ee02847f8f1cccc0875d4ec6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 27 Aug 2023 19:59:21 +0200 Subject: [PATCH 13/73] buildbot: supports reloading configuration buildbot will reload configuration on sighup --- .../services/continuous-integration/buildbot/master.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/continuous-integration/buildbot/master.nix b/nixos/modules/services/continuous-integration/buildbot/master.nix index 595374ea1e5b..b4b997201c8f 100644 --- a/nixos/modules/services/continuous-integration/buildbot/master.nix +++ b/nixos/modules/services/continuous-integration/buildbot/master.nix @@ -272,7 +272,13 @@ in { Group = cfg.group; WorkingDirectory = cfg.home; # NOTE: call twistd directly with stdout logging for systemd - ExecStart = "${python.pkgs.twisted}/bin/twistd -o --nodaemon --pidfile= --logfile - --python ${tacFile}"; + ExecStart = "${python.pkgs.twisted}/bin/twistd -o --nodaemon --pidfile= --logfile - --python ${cfg.buildbotDir}/buildbot.tac"; + # To reload on upgrade, set the following in your configuration: + # systemd.services.buildbot-master.reloadIfChanged = true; + ExecReload = [ + "${pkgs.coreutils}/bin/ln -sf ${tacFile} ${cfg.buildbotDir}/buildbot.tac" + "${pkgs.coreutils}/bin/kill -HUP $MAINPID" + ]; }; }; }; From 42f749145d296d6106634e0104c857a05426f20a Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 5 Sep 2023 23:40:34 -0400 Subject: [PATCH 14/73] perlPackages.Tk: fix build with clang 16 The jpeg `configure` script fails to detect clang as a functioning C compiler because it uses a test with a `main` that returns an implicit `int`, which results in an error with clang 16. --- .../perl-modules/tk-configure-implicit-int-fix.patch | 11 +++++++++++ pkgs/top-level/perl-packages.nix | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/perl-modules/tk-configure-implicit-int-fix.patch diff --git a/pkgs/development/perl-modules/tk-configure-implicit-int-fix.patch b/pkgs/development/perl-modules/tk-configure-implicit-int-fix.patch new file mode 100644 index 000000000000..215bf864cfe4 --- /dev/null +++ b/pkgs/development/perl-modules/tk-configure-implicit-int-fix.patch @@ -0,0 +1,11 @@ +--- a/JPEG/jpeg/configure 2013-11-15 18:50:03.000000000 -0500 ++++ b/JPEG/jpeg/configure 2023-09-05 23:36:12.675151164 -0400 +@@ -623,7 +623,7 @@ + cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then + ac_cv_prog_cc_works=yes diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index e720a70fafc3..35fff6aa5969 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -26585,6 +26585,11 @@ with self; { url = "mirror://cpan/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz"; hash = "sha256-Mqpycaa9/twzMBGbOCXa3dCqS1yTb4StdOq7kyogCl4="; }; + patches = [ + # Fix failing configure test due to implicit int return value of main, which results + # in an error with clang 16. + ../development/perl-modules/tk-configure-implicit-int-fix.patch + ]; makeMakerFlags = [ "X11INC=${pkgs.xorg.libX11.dev}/include" "X11LIB=${pkgs.xorg.libX11.out}/lib" ]; buildInputs = [ pkgs.xorg.libX11 pkgs.libpng ]; doCheck = false; # Expects working X11. From ba881ef6132b55d533630a9e8ae43710831abdcb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 7 Sep 2023 01:17:27 +0200 Subject: [PATCH 15/73] firefox-esr-102-unwrapped: remove The Firefox ESR 102.0 series has reached its end of life. Removes package and test and references to them. --- nixos/tests/all-tests.nix | 1 - .../networking/browsers/firefox/packages.nix | 29 ------------------- pkgs/development/libraries/nspr/default.nix | 2 +- pkgs/development/libraries/nss/generic.nix | 4 +-- pkgs/top-level/all-packages.nix | 2 -- 5 files changed, 3 insertions(+), 35 deletions(-) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index e5affdab8890..4b2c875b26e0 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -275,7 +275,6 @@ in { firefox-beta = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-beta; }; firefox-devedition = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-devedition; }; firefox-esr = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-esr; }; # used in `tested` job - firefox-esr-102 = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-esr-102; }; firefox-esr-115 = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-esr-115; }; firejail = handleTest ./firejail.nix {}; firewall = handleTest ./firewall.nix { nftables = false; }; diff --git a/pkgs/applications/networking/browsers/firefox/packages.nix b/pkgs/applications/networking/browsers/firefox/packages.nix index a98fbd99642b..fe403a8396ea 100644 --- a/pkgs/applications/networking/browsers/firefox/packages.nix +++ b/pkgs/applications/networking/browsers/firefox/packages.nix @@ -88,35 +88,6 @@ env.MOZ_REQUIRE_SIGNING = ""; }); - firefox-esr-102 = buildMozillaMach rec { - pname = "firefox-esr-102"; - version = "102.15.0esr"; - applicationName = "Mozilla Firefox ESR"; - src = fetchurl { - url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz"; - sha512 = "87db6e32fda215253f9b3bd233ef7fa91a64349310064b8482e5c634f34cbe99a2a111d74d2b9f2a99a0b3b510dbf9039ebe4ccfc176c2554d65bc9cfb508bf9"; - }; - - meta = { - changelog = "https://www.mozilla.org/en-US/firefox/${lib.removeSuffix "esr" version}/releasenotes/"; - description = "A web browser built from Firefox Extended Support Release source tree"; - homepage = "http://www.mozilla.com/en-US/firefox/"; - maintainers = with lib.maintainers; [ hexa ]; - platforms = lib.platforms.unix; - badPlatforms = lib.platforms.darwin; - broken = stdenv.buildPlatform.is32bit; # since Firefox 60, build on 32-bit platforms fails with "out of memory". - # not in `badPlatforms` because cross-compilation on 64-bit machine might work. - license = lib.licenses.mpl20; - mainProgram = "firefox"; - }; - tests = [ nixosTests.firefox-esr-102 ]; - updateScript = callPackage ./update.nix { - attrPath = "firefox-esr-102-unwrapped"; - versionPrefix = "102"; - versionSuffix = "esr"; - }; - }; - firefox-esr-115 = buildMozillaMach rec { pname = "firefox-esr-115"; version = "115.2.0esr"; diff --git a/pkgs/development/libraries/nspr/default.nix b/pkgs/development/libraries/nspr/default.nix index 7d8877c79ad1..59a3b4975793 100644 --- a/pkgs/development/libraries/nspr/default.nix +++ b/pkgs/development/libraries/nspr/default.nix @@ -46,7 +46,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; passthru.tests = { - inherit (nixosTests) firefox firefox-esr-102 firefox-esr-115; + inherit (nixosTests) firefox firefox-esr-115; }; meta = with lib; { diff --git a/pkgs/development/libraries/nss/generic.nix b/pkgs/development/libraries/nss/generic.nix index 8badbf9e8760..592dbffbdffc 100644 --- a/pkgs/development/libraries/nss/generic.nix +++ b/pkgs/development/libraries/nss/generic.nix @@ -182,9 +182,9 @@ stdenv.mkDerivation rec { passthru.updateScript = ./update.sh; passthru.tests = lib.optionalAttrs (lib.versionOlder version nss_latest.version) { - inherit (nixosTests) firefox-esr-102; + inherit (nixosTests) firefox-esr-115; } // lib.optionalAttrs (lib.versionAtLeast version nss_latest.version) { - inherit (nixosTests) firefox firefox-esr-115; + inherit (nixosTests) firefox; }; meta = with lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 52791b5a8a1f..70e1e497e4aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32035,7 +32035,6 @@ with pkgs; firefox-unwrapped = firefoxPackages.firefox; firefox-beta-unwrapped = firefoxPackages.firefox-beta; firefox-devedition-unwrapped = firefoxPackages.firefox-devedition; - firefox-esr-102-unwrapped = firefoxPackages.firefox-esr-102; firefox-esr-115-unwrapped = firefoxPackages.firefox-esr-115; firefox-esr-unwrapped = firefoxPackages.firefox-esr-115; @@ -32046,7 +32045,6 @@ with pkgs; firefox-mobile = callPackage ../applications/networking/browsers/firefox/mobile-config.nix { }; firefox-esr = firefox-esr-115; - firefox-esr-102 = wrapFirefox firefox-esr-102-unwrapped { }; firefox-esr-115 = wrapFirefox firefox-esr-115-unwrapped { }; firefox-bin-unwrapped = callPackage ../applications/networking/browsers/firefox-bin { From 47a99ab5251e41e7c90e0326734bf7bf74a75527 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 7 Sep 2023 10:52:00 -0400 Subject: [PATCH 16/73] pdns: 4.8.1 -> 4.8.2 Changelog: https://doc.powerdns.com/authoritative/changelog/4.8.html#change-4.8.2 --- pkgs/servers/dns/pdns/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/dns/pdns/default.nix b/pkgs/servers/dns/pdns/default.nix index ab95b5cedbba..44150271b1b7 100644 --- a/pkgs/servers/dns/pdns/default.nix +++ b/pkgs/servers/dns/pdns/default.nix @@ -23,11 +23,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "pdns"; - version = "4.8.1"; + version = "4.8.2"; src = fetchurl { url = "https://downloads.powerdns.com/releases/pdns-${finalAttrs.version}.tar.bz2"; - hash = "sha256-Zt0+4mVPQrTrgCYPlOy0jjE6gYF/WBJc5IwUwtJuMJ4="; + hash = "sha256-Oxc/2kxRuwe1pR2MWZ7t15YqAgVrQQ48nZ1p7Ze+Nbk="; }; # redact configure flags from version output to reduce closure size patches = [ ./version.patch ]; From 9c5afb2f9acdd7d9eb15b8fe1689cd91af05ed8c Mon Sep 17 00:00:00 2001 From: LuoChen Date: Fri, 8 Sep 2023 19:23:53 +0800 Subject: [PATCH 17/73] nixos/binfmt: improve type annotations --- nixos/modules/system/boot/binfmt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix index fb7afce4a580..8c9483f01c10 100644 --- a/nixos/modules/system/boot/binfmt.nix +++ b/nixos/modules/system/boot/binfmt.nix @@ -279,7 +279,7 @@ in { support your new systems. Warning: the builder can execute all emulated systems within the same build, which introduces impurities in the case of cross compilation. ''; - type = types.listOf types.str; + type = types.listOf (types.enum (builtins.attrNames magics)); }; }; }; From a23d0e45c08dc7cff2926ab43cdf0283a14dc996 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 8 Sep 2023 16:02:59 +0300 Subject: [PATCH 18/73] gnome-frog: set meta.mainProgram --- pkgs/applications/misc/gnome-frog/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/misc/gnome-frog/default.nix b/pkgs/applications/misc/gnome-frog/default.nix index de12d9751287..10ab732735f8 100644 --- a/pkgs/applications/misc/gnome-frog/default.nix +++ b/pkgs/applications/misc/gnome-frog/default.nix @@ -83,6 +83,7 @@ python3Packages.buildPythonApplication rec { description = "Intuitive text extraction tool (OCR) for GNOME desktop"; license = licenses.mit; + mainProgram = "frog"; maintainers = with maintainers; [ foo-dogsquared ]; platforms = platforms.linux; }; From cb3749e4235b008f489ec5a4f3f2a6099551903b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Sep 2023 15:54:14 +0200 Subject: [PATCH 19/73] transmission-remote-gtk: 1.5.1 -> 1.6.0 Changelog: https://github.com/transmission-remote-gtk/transmission-remote-gtk/releases/tag/1.6.0 --- .../p2p/transmission-remote-gtk/default.nix | 59 +++++++++++++++---- 1 file changed, 46 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/networking/p2p/transmission-remote-gtk/default.nix b/pkgs/applications/networking/p2p/transmission-remote-gtk/default.nix index 6c6cc99f5a1a..b85a440b0ed4 100644 --- a/pkgs/applications/networking/p2p/transmission-remote-gtk/default.nix +++ b/pkgs/applications/networking/p2p/transmission-remote-gtk/default.nix @@ -1,32 +1,65 @@ -{ lib, stdenv, wrapGAppsHook, fetchFromGitHub, pkg-config, gtk3, json-glib, curl -, glib, appstream-glib, desktop-file-utils, meson, ninja, geoip, gettext -, libappindicator, libmrss, libproxy }: +{ lib +, stdenv +, appstream-glib +, curl +, desktop-file-utils +, fetchFromGitHub +, geoip +, gettext +, glib +, gtk3 +, json-glib +, libappindicator +, libmrss +, libproxy +, libsoup_3 +, meson +, ninja +, pkg-config +, wrapGAppsHook +}: stdenv.mkDerivation rec { pname = "transmission-remote-gtk"; - version = "1.5.1"; + version = "1.6.0"; src = fetchFromGitHub { owner = "transmission-remote-gtk"; repo = "transmission-remote-gtk"; - rev = version; - sha256 = "4/ID12JukDDvJzWupc76r7W8Us5erwv8oXZhDnB6VDk="; + rev = "refs/tags/${version}"; + hash = "sha256-/syZI/5LhuYLvXrNknnpbGHEH0z5iHeye2YRNJFWZJ0="; }; - nativeBuildInputs = - [ desktop-file-utils wrapGAppsHook meson ninja pkg-config appstream-glib ]; + nativeBuildInputs = [ + appstream-glib + desktop-file-utils + meson + ninja + pkg-config + wrapGAppsHook + ]; - buildInputs = - [ gtk3 json-glib curl glib gettext libmrss geoip libproxy libappindicator ]; + buildInputs = [ + curl + geoip + gettext + glib + gtk3 + json-glib + libappindicator + libmrss + libproxy + libsoup_3 + ]; doCheck = false; # Requires network access meta = with lib; { description = "GTK remote control for the Transmission BitTorrent client"; - homepage = - "https://github.com/transmission-remote-gtk/transmission-remote-gtk"; + homepage = "https://github.com/transmission-remote-gtk/transmission-remote-gtk"; + changelog = "https://github.com/transmission-remote-gtk/transmission-remote-gtk/releases/tag/${version}"; license = licenses.gpl2; - maintainers = [ maintainers.ehmry ]; + maintainers = with maintainers; [ ehmry ]; platforms = platforms.linux; }; } From 966f8ac265a3dd2764a67878d4ff6bd104e25d6c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Sep 2023 16:49:25 +0200 Subject: [PATCH 20/73] ldeep: 1.0.11 -> 1.0.34 --- pkgs/tools/security/ldeep/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/ldeep/default.nix b/pkgs/tools/security/ldeep/default.nix index 82d0456a05b7..80a2e07f44f0 100644 --- a/pkgs/tools/security/ldeep/default.nix +++ b/pkgs/tools/security/ldeep/default.nix @@ -10,11 +10,11 @@ buildPythonApplication rec { pname = "ldeep"; - version = "1.0.11"; + version = "1.0.34"; src = fetchPypi { inherit pname version; - sha256 = "sha256-MYVC8fxLW85n8uZVMhb2Zml1lQ8vW9gw/eRLcmemQx4="; + sha256 = "sha256-0fLaef/3SJgoBlXS0/ocauE1gjlvSlIc25RcLKl3O5g="; }; propagatedBuildInputs = [ From 512804bd67997a5acf9707ff4ed80cb064f87231 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Sep 2023 17:26:40 +0200 Subject: [PATCH 21/73] ldeep: migrate to python3.pkgs.buildPythonApplication --- pkgs/tools/security/ldeep/default.nix | 31 ++++++++++++++++----------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/pkgs/tools/security/ldeep/default.nix b/pkgs/tools/security/ldeep/default.nix index 80a2e07f44f0..008ff90ee60a 100644 --- a/pkgs/tools/security/ldeep/default.nix +++ b/pkgs/tools/security/ldeep/default.nix @@ -1,37 +1,42 @@ { lib -, buildPythonApplication -, fetchPypi -, commandparse -, dnspython -, ldap3 -, termcolor -, tqdm +, fetchFromGitHub +, python3 }: -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "ldeep"; version = "1.0.34"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-0fLaef/3SJgoBlXS0/ocauE1gjlvSlIc25RcLKl3O5g="; + src = fetchFromGitHub { + owner = "franc-pentest"; + repo = "ldeep"; + rev = "refs/tags/${version}"; + hash = "sha256-Gskbxfqp2HqI6rCEiuT0lgHQtD0rZjtLgH3idEkfmjc="; }; - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ commandparse + cryptography dnspython ldap3 + pycryptodomex + six termcolor tqdm ]; # no tests are present doCheck = false; - pythonImportsCheck = [ "ldeep" ]; + + pythonImportsCheck = [ + "ldeep" + ]; meta = with lib; { description = "In-depth LDAP enumeration utility"; homepage = "https://github.com/franc-pentest/ldeep"; + changelog = "https://github.com/franc-pentest/ldeep/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6d5b3d42d636..1be9548d67a4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10311,7 +10311,7 @@ with pkgs; ldapvi = callPackage ../tools/misc/ldapvi { }; - ldeep = python3Packages.callPackage ../tools/security/ldeep { }; + ldeep = callPackage ../tools/security/ldeep { }; ldns = callPackage ../development/libraries/ldns { }; From 4f175d005bb9b3b609f3b62e32a79a75aadf5017 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Sep 2023 21:02:16 +0200 Subject: [PATCH 22/73] python311Packages.ansi2image: init at 0.1.4 Module to convert ANSI text to an image https://github.com/helviojunior/ansi2image --- .../python-modules/ansi2image/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/ansi2image/default.nix diff --git a/pkgs/development/python-modules/ansi2image/default.nix b/pkgs/development/python-modules/ansi2image/default.nix new file mode 100644 index 000000000000..1d66f846bacd --- /dev/null +++ b/pkgs/development/python-modules/ansi2image/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, colorama +, fetchFromGitHub +, pillow +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "ansi2image"; + version = "0.1.4"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "helviojunior"; + repo = "ansi2image"; + rev = "refs/tags/v${version}"; + hash = "sha256-1sPEEWcOzesLQXSeMsUra8ZRSMAKzH6iisOgdhpxhKM="; + }; + + propagatedBuildInputs = [ + colorama + pillow + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "ansi2image" + ]; + + pytestFlagsArray = [ + "tests/tests.py" + ]; + + meta = with lib; { + description = "Module to convert ANSI text to an image"; + homepage = "https://github.com/helviojunior/ansi2image"; + changelog = "https://github.com/helviojunior/ansi2image/blob/${version}/CHANGELOG"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f096bc9503d8..9200c0f9b89c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -524,6 +524,8 @@ self: super: with self; { ansi2html = callPackage ../development/python-modules/ansi2html { }; + ansi2image = callPackage ../development/python-modules/ansi2image { }; + ansible = callPackage ../development/python-modules/ansible { }; ansible-compat = callPackage ../development/python-modules/ansible-compat { }; From 42699ad01cb9273cdd57c2bdd102ecd49acecd59 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Sep 2023 21:08:40 +0200 Subject: [PATCH 23/73] knowsmore: init at 0.1.37 --- pkgs/tools/security/knowsmore/default.nix | 55 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/tools/security/knowsmore/default.nix diff --git a/pkgs/tools/security/knowsmore/default.nix b/pkgs/tools/security/knowsmore/default.nix new file mode 100644 index 000000000000..d9a806ef2a58 --- /dev/null +++ b/pkgs/tools/security/knowsmore/default.nix @@ -0,0 +1,55 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "knowsmore"; + version = "0.1.37"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "helviojunior"; + repo = "knowsmore"; + rev = "refs/tags/v${version}"; + hash = "sha256-UxBoWK3L4u9xSQaGGHpzvs/mRlmhF3EqiS/4BYyTKos="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + aioconsole + ansi2image + beautifulsoup4 + clint + colorama + impacket + levenshtein + minikerberos + neo4j + numpy + pypsrp + requests + tabulate + urllib3 + xmltodict + ]; + + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "knowsmore" + ]; + + pytestFlagsArray = [ + "tests/tests*" + ]; + + meta = with lib; { + description = "Tool for pentesting Microsoft Active Directory"; + homepage = "https://github.com/helviojunior/knowsmore"; + changelog = "https://github.com/helviojunior/knowsmore/releases/tag/v${version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8453e42e0066..92578e9246d5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9766,6 +9766,8 @@ with pkgs; knockpy = callPackage ../tools/security/knockpy { }; + knowsmore = callPackage ../tools/security/knowsmore { }; + kool = callPackage ../development/tools/misc/kool { }; kore = callPackage ../development/web/kore { From 2de435ae54e205f51377a809d640126c5ae7226e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Sep 2023 17:21:17 +0200 Subject: [PATCH 24/73] python311Packages.proxy-db: init at 0.3.1 --- .../python-modules/proxy-db/default.nix | 56 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 58 insertions(+) create mode 100644 pkgs/development/python-modules/proxy-db/default.nix diff --git a/pkgs/development/python-modules/proxy-db/default.nix b/pkgs/development/python-modules/proxy-db/default.nix new file mode 100644 index 000000000000..1a6781b763f9 --- /dev/null +++ b/pkgs/development/python-modules/proxy-db/default.nix @@ -0,0 +1,56 @@ +{ lib +, beautifulsoup4 +, buildPythonPackage +, click +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, requests +, requests-mock +, six +, sqlalchemy +}: + +buildPythonPackage rec { + pname = "proxy-db"; + version = "0.3.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Nekmo"; + repo = "proxy-db"; + rev = "refs/tags/v${version}"; + hash = "sha256-NdbvK2sJKKoWNYsuBaCMWtKEvuMhgyKXcKZXQgTC4bY="; + }; + + propagatedBuildInputs = [ + beautifulsoup4 + click + requests + six + sqlalchemy + ]; + + nativeCheckInputs = [ + pytestCheckHook + requests-mock + ]; + + preCheck = '' + export HOME=$(mktemp -d) + ''; + + pythonImportsCheck = [ + "proxy_db" + ]; + + meta = with lib; { + description = "Module to manage proxies in a local database"; + homepage = "https://github.com/Nekmo/proxy-db/"; + changelog = "https://github.com/Nekmo/proxy-db/blob/v${version}/HISTORY.rst"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f096bc9503d8..f588e829f435 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8156,6 +8156,8 @@ self: super: with self; { proxy_tools = callPackage ../development/python-modules/proxy_tools { }; + proxy-db = callPackage ../development/python-modules/proxy-db { }; + py-nextbusnext = callPackage ../development/python-modules/py-nextbusnext { }; py65 = callPackage ../development/python-modules/py65 { }; From 003526627a79b9266db8bf22282f355abc96cd57 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 8 Sep 2023 23:02:19 +0200 Subject: [PATCH 25/73] python311Packages.androidtv: 0.0.71 -> 0.0.72 Diff: https://github.com/JeffLIrion/python-androidtv/compare/v0.0.71...v0.0.72 --- pkgs/development/python-modules/androidtv/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/androidtv/default.nix b/pkgs/development/python-modules/androidtv/default.nix index f2afe5278330..8ea691eb485c 100644 --- a/pkgs/development/python-modules/androidtv/default.nix +++ b/pkgs/development/python-modules/androidtv/default.nix @@ -1,6 +1,7 @@ { lib , adb-shell , aiofiles +, async-timeout , buildPythonPackage , fetchFromGitHub , mock @@ -11,7 +12,7 @@ buildPythonPackage rec { pname = "androidtv"; - version = "0.0.71"; + version = "0.0.72"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -20,11 +21,12 @@ buildPythonPackage rec { owner = "JeffLIrion"; repo = "python-androidtv"; rev = "v${version}"; - hash = "sha256-vFEMOGxkt4zfOeKTKwr2tcBUSYRPSWNlaKUVcPIM34w="; + hash = "sha256-oDC5NWmdo6Ijxz2ER9CjtCZxWkancUNyxVe2ofH4c+Q="; }; propagatedBuildInputs = [ adb-shell + async-timeout pure-python-adb ]; From f18f45cb839227dac3c9e2128d6bd3e22bedab9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Sat, 9 Sep 2023 02:16:10 +0200 Subject: [PATCH 26/73] pick-colour-picker: unstable-2021-01-19 -> unstable-2022-05-08 --- pkgs/applications/graphics/pick-colour-picker/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/graphics/pick-colour-picker/default.nix b/pkgs/applications/graphics/pick-colour-picker/default.nix index 137a858820ac..a4b8bbc9c2fd 100644 --- a/pkgs/applications/graphics/pick-colour-picker/default.nix +++ b/pkgs/applications/graphics/pick-colour-picker/default.nix @@ -12,18 +12,18 @@ buildPythonPackage rec { pname = "pick-colour-picker"; - version = "unstable-2021-01-19"; + version = "unstable-2022-05-08"; src = fetchFromGitHub { owner = "stuartlangridge"; repo = "ColourPicker"; - rev = "dec8f144918aa7964aaf86a346161beb7e997f09"; - sha256 = "hW2rarfchZ3M0JVfz5RbJRvMhv2PpyLNEMyMAp2gC+o="; - fetchSubmodules = false; + rev = "e3e4c2bcec5d7285425582b92bb564c74be2cf77"; + hash = "sha256-vW8mZiB3JFQtbOCWauhJGfZMlGsA/nNcljNNPtJtgGw="; }; postPatch = '' sed "s|sys\.prefix|'\.'|g" -i setup.py + sed "s|os.environ.get(\"SNAP\")|'$out'|g" -i pick/__main__.py sed "s|os.environ.get('SNAP'), \"usr\"|'$out'|g" -i pick/__main__.py ''; From 3050fea1e21762114b91ff16ca35a05c96c299fa Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 00:17:44 +0000 Subject: [PATCH 27/73] jsonnet-language-server: 0.13.0 -> 0.13.1 --- .../language-servers/jsonnet-language-server/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/language-servers/jsonnet-language-server/default.nix b/pkgs/development/tools/language-servers/jsonnet-language-server/default.nix index e681f7807083..1331d02810fd 100644 --- a/pkgs/development/tools/language-servers/jsonnet-language-server/default.nix +++ b/pkgs/development/tools/language-servers/jsonnet-language-server/default.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "jsonnet-language-server"; - version = "0.13.0"; + version = "0.13.1"; src = fetchFromGitHub { owner = "grafana"; repo = "jsonnet-language-server"; rev = "refs/tags/v${version}"; - hash = "sha256-8hy+lRh6WqyjInqGD21GHdS0QWz8g0e8MdZbQblv8II="; + hash = "sha256-4tJrEipVbiYQY0L9sDH0f/qT8WY7c3md/Bar/dST+VI="; }; vendorHash = "sha256-/mfwBHaouYN8JIxPz720/7MlMVh+5EEB+ocnYe4B020="; From b2255c853984248296333112f5534b64a6eb5ac4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 01:14:00 +0000 Subject: [PATCH 28/73] kafkactl: 3.2.0 -> 3.3.0 --- pkgs/development/tools/kafkactl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/kafkactl/default.nix b/pkgs/development/tools/kafkactl/default.nix index 870f9b52023f..67e507d01da6 100644 --- a/pkgs/development/tools/kafkactl/default.nix +++ b/pkgs/development/tools/kafkactl/default.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "kafkactl"; - version = "3.2.0"; + version = "3.3.0"; src = fetchFromGitHub { owner = "deviceinsight"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-Rehf0mbdHgfjcsRKYCAqaUKsys3rRZFJxwHk2h/aICM="; + hash = "sha256-Yh+82gtHACTfctnIHQS+t7Pn+eZ5ZY5ySh/ae6g81lU="; }; vendorHash = "sha256-5LHL0L7xTmy3yBs7rtrC1uvUjLKBU8LpjQaHyeRyFhw="; From 0f5391d982709145c0c0ade00e0d25e199cbec7d Mon Sep 17 00:00:00 2001 From: Shogo Takata Date: Sat, 9 Sep 2023 10:28:04 +0900 Subject: [PATCH 29/73] circt: 1.53.0 -> 1.54.0 --- pkgs/development/compilers/circt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/circt/default.nix b/pkgs/development/compilers/circt/default.nix index 1f58859f8a4e..afe6bb21b9c4 100644 --- a/pkgs/development/compilers/circt/default.nix +++ b/pkgs/development/compilers/circt/default.nix @@ -13,12 +13,12 @@ let in stdenv.mkDerivation rec { pname = "circt"; - version = "1.53.0"; + version = "1.54.0"; src = fetchFromGitHub { owner = "llvm"; repo = "circt"; rev = "firtool-${version}"; - sha256 = "sha256-F3pGXZC4jSG9TV2sc5G9bQtKMY6xcPknwO0fqQ6uBoA="; + sha256 = "sha256-jHDQl6UJTyNGZ4PUTEiZCIN/RSRbBxlaVutkwrWbK9M="; fetchSubmodules = true; }; From a50329c71e8e2cdebe1980defe02b98b3ad746a5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 01:38:20 +0000 Subject: [PATCH 30/73] python310Packages.django-admin-sortable2: 2.1.8 -> 2.1.9 --- .../python-modules/django-admin-sortable2/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/django-admin-sortable2/default.nix b/pkgs/development/python-modules/django-admin-sortable2/default.nix index f96d8093609f..2f1c6e3c32a1 100644 --- a/pkgs/development/python-modules/django-admin-sortable2/default.nix +++ b/pkgs/development/python-modules/django-admin-sortable2/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "django-admin-sortable2"; - version = "2.1.8"; + version = "2.1.9"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit version pname; - hash = "sha256-aTOpu6nb7cShBrtIjkuKH7hcvgRZ+0ZQT+YC1l2/0+k="; + hash = "sha256-vwNnhcWYaFoAGesINAuI/mynS9F4Az4ikObEG2L6S/E="; }; propagatedBuildInputs = [ From c06df7d5cf3e74d19284dbe2942f4c07a0525c8e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 01:53:25 +0000 Subject: [PATCH 31/73] appgate-sdp: 6.2.1 -> 6.2.2 --- pkgs/applications/networking/appgate-sdp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/appgate-sdp/default.nix b/pkgs/applications/networking/appgate-sdp/default.nix index 2acf0f010c4e..bd810cfe7310 100644 --- a/pkgs/applications/networking/appgate-sdp/default.nix +++ b/pkgs/applications/networking/appgate-sdp/default.nix @@ -86,11 +86,11 @@ let in stdenv.mkDerivation rec { pname = "appgate-sdp"; - version = "6.2.1"; + version = "6.2.2"; src = fetchurl { url = "https://bin.appgate-sdp.com/${lib.versions.majorMinor version}/client/appgate-sdp_${version}_amd64.deb"; - sha256 = "sha256-TjwVUBSBYo67lJyTXeee1bSaCnYLGE/MKSt+YEV+/Hw="; + sha256 = "sha256-5xbwBCLTlZ0cE273n3ErykZSEr59dZjQWhVTK91W9a4="; }; # just patch interpreter From 8cb20d59d1ae0e55ed85d6cc09a267106eff3f10 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sat, 9 Sep 2023 10:12:39 +0800 Subject: [PATCH 32/73] kubernetes-helmPlugins.helm-cm-push: 0.10.3 -> 0.10.4 --- .../networking/cluster/helm/plugins/helm-cm-push.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/helm/plugins/helm-cm-push.nix b/pkgs/applications/networking/cluster/helm/plugins/helm-cm-push.nix index f54d2b332f27..a5a2f7566b46 100644 --- a/pkgs/applications/networking/cluster/helm/plugins/helm-cm-push.nix +++ b/pkgs/applications/networking/cluster/helm/plugins/helm-cm-push.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "helm-cm-push"; - version = "0.10.3"; + version = "0.10.4"; src = fetchFromGitHub { owner = "chartmuseum"; repo = "helm-push"; rev = "v${version}"; - hash = "sha256-GyVhjCosVaUS1DtztztFxKuuRlUdxlsOP4/QMQ7+TaU="; + hash = "sha256-YnhI1/BDk9swr3YFm5ajGf4LLgPty7blA2tlsMH0erY="; }; - vendorSha256 = "sha256-9LhokpQrREmcyBqwb33BSMyG8z7IAsl9NtE3B631PnM="; + vendorHash = "sha256-7bUDKqkvBV1Upcrj4DQnVCP74QtKlSwF0Kl2sPFZpjc="; subPackage = [ "cmd/helm-cm-push" ]; From edfb23dd6bd661e5bef1c57cc0d0c6461dcf5619 Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 8 Sep 2023 18:38:55 -0400 Subject: [PATCH 33/73] zxpy: init at 1.6.3 https://github.com/tusharsadhwani/zxpy --- pkgs/by-name/zx/zxpy/package.nix | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pkgs/by-name/zx/zxpy/package.nix diff --git a/pkgs/by-name/zx/zxpy/package.nix b/pkgs/by-name/zx/zxpy/package.nix new file mode 100644 index 000000000000..1735a6523b0b --- /dev/null +++ b/pkgs/by-name/zx/zxpy/package.nix @@ -0,0 +1,53 @@ +{ lib +, python3 +, fetchFromGitHub +, fetchpatch +, deterministic-uname +}: + +python3.pkgs.buildPythonApplication rec { + pname = "zxpy"; + version = "1.6.3"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "tusharsadhwani"; + repo = "zxpy"; + rev = version; + hash = "sha256-/sOLSIqaAUkaAghPqe0Zoq7C8CSKAd61o8ivtjJFcJY="; + }; + + patches = [ + # fix test caused by `uname -p` printing unknown + # https://github.com/tusharsadhwani/zxpy/pull/53 + (fetchpatch { + name = "allow-unknown-processor-in-injection-test.patch"; + url = "https://github.com/tusharsadhwani/zxpy/commit/95ad80caddbab82346f60ad80a601258fd1238c9.patch"; + hash = "sha256-iXasOKjWuxNjjTpb0umNMNhbFgBjsu5LsOpTaXllATM="; + }) + ]; + + nativeBuildInputs = [ + python3.pkgs.setuptools + python3.pkgs.wheel + ]; + + nativeCheckInputs = [ + deterministic-uname + python3.pkgs.pytestCheckHook + ]; + + preCheck = '' + export PATH=$out/bin:$PATH + ''; + + pythonImportsCheck = [ "zx" ]; + + meta = with lib; { + description = "Shell scripts made simple"; + homepage = "https://github.com/tusharsadhwani/zxpy"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "zxpy"; + }; +} From f25f2a4209f9f86ce3d795f7531e128476ef9f68 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 9 Sep 2023 07:15:56 +0300 Subject: [PATCH 34/73] nixos/stage-2-init: dont use install to create /etc/nixos if it's a symlink MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it should be checking that it is not a broken symlink but bash conditionals are difficult -d was causing the directory to not be created if it does not exist ``` $ install -m 0755 -d $PWD/hello $ ls hello/ $ ln -s something notexist 'notexist' -> 'something' $ ls -l lrwxrwxrwx artturin artturin 9 B Sat Sep 9 06:59:44 2023 notexist@ ⇒ something drwxr-xr-x artturin artturin 2 B Sat Sep 9 06:59:36 2023 hello/ $ install -m 0755 -d $PWD/notexist install: cannot change permissions of ‘/home/artturin/nixgits/my-nixpkgs/test/notexist’: No such file or directory ``` --- nixos/modules/system/boot/stage-2-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/stage-2-init.sh b/nixos/modules/system/boot/stage-2-init.sh index c0af29e3b990..5a2133f960e2 100755 --- a/nixos/modules/system/boot/stage-2-init.sh +++ b/nixos/modules/system/boot/stage-2-init.sh @@ -105,7 +105,7 @@ fi # Required by the activation script install -m 0755 -d /etc -if [ -d "/etc/nixos" ]; then +if [ ! -h "/etc/nixos" ]; then install -m 0755 -d /etc/nixos fi install -m 01777 -d /tmp From ad12666129bae0a15d38fbe5dfae7397a536a728 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 05:15:55 +0000 Subject: [PATCH 35/73] linuxptp: 4.0 -> 4.1 --- pkgs/os-specific/linux/linuxptp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/linuxptp/default.nix b/pkgs/os-specific/linux/linuxptp/default.nix index fb7f410db8dc..e5a1443d3225 100644 --- a/pkgs/os-specific/linux/linuxptp/default.nix +++ b/pkgs/os-specific/linux/linuxptp/default.nix @@ -3,11 +3,11 @@ stdenv.mkDerivation rec { pname = "linuxptp"; - version = "4.0"; + version = "4.1"; src = fetchurl { url = "mirror://sourceforge/linuxptp/${pname}-${version}.tgz"; - hash = "sha256-0n1e8pa7PSheIuafda4CO0tCovRlUTDW05DYr8vD2TM="; + hash = "sha256-4XQ9RPggiJfjCJXaNXnmcP+Rm5FP60talJ8+Qh3d5TU="; }; postPatch = '' From 9b92c01581969e01cbe67bc5b11aca6b361132de Mon Sep 17 00:00:00 2001 From: Shogo Takata Date: Sat, 9 Sep 2023 14:47:05 +0900 Subject: [PATCH 36/73] circt: add update script --- pkgs/development/compilers/circt/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/circt/default.nix b/pkgs/development/compilers/circt/default.nix index afe6bb21b9c4..c6f787078b67 100644 --- a/pkgs/development/compilers/circt/default.nix +++ b/pkgs/development/compilers/circt/default.nix @@ -6,6 +6,7 @@ , git , fetchFromGitHub , ninja +, gitUpdater }: let @@ -69,6 +70,10 @@ stdenv.mkDerivation rec { doCheck = true; checkTarget = "check-circt check-circt-integration"; + passthru.updateScript = gitUpdater { + rev-prefix = "firtool-"; + }; + meta = { description = "Circuit IR compilers and tools"; homepage = "https://circt.org/"; From f11fd24a0f63726f3d9e307550782085796b8381 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 9 Sep 2023 14:49:29 +0900 Subject: [PATCH 37/73] pylyzer: 0.0.42 -> 0.0.43 Diff: https://github.com/mtshiba/pylyzer/compare/v0.0.42...v0.0.43 Changelog: https://github.com/mtshiba/pylyzer/releases/tag/v0.0.43 --- pkgs/development/tools/language-servers/pylyzer/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/language-servers/pylyzer/default.nix b/pkgs/development/tools/language-servers/pylyzer/default.nix index 757eeb2b4d9e..262f37db09d9 100644 --- a/pkgs/development/tools/language-servers/pylyzer/default.nix +++ b/pkgs/development/tools/language-servers/pylyzer/default.nix @@ -12,16 +12,16 @@ rustPlatform.buildRustPackage rec { pname = "pylyzer"; - version = "0.0.42"; + version = "0.0.43"; src = fetchFromGitHub { owner = "mtshiba"; repo = "pylyzer"; rev = "v${version}"; - hash = "sha256-SZwMgxQUuGq74mca1mgZ41esW/mr+mvlOhHXFALjd8U="; + hash = "sha256-+h69AtuFBvqy/P6Qe5s0Ht66eXzg5KDs2ipoNyKludo="; }; - cargoHash = "sha256-iPNdkKLvLyJGwdd19tNNwuxVBctp1K+UuQjjLLzkgHg="; + cargoHash = "sha256-Jqe3mswnbrfvUdQm4DfnCkJGksEuGzfuxNjEI7cEyQs="; nativeBuildInputs = [ git From 670578191cccdd0337b64f5b7ad11ec9c105ed3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 8 Sep 2023 22:50:38 -0700 Subject: [PATCH 38/73] pika-backup: 0.6.1 -> 0.6.2 Diff: https://gitlab.gnome.org/World/pika-backup/-/compare/v0.6.1...v0.6.2 Changelog: https://gitlab.gnome.org/World/pika-backup/-/blob/v0.6.2/CHANGELOG.md --- pkgs/applications/backup/pika-backup/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/backup/pika-backup/default.nix b/pkgs/applications/backup/pika-backup/default.nix index 284a992d3c3f..dd4049daa139 100644 --- a/pkgs/applications/backup/pika-backup/default.nix +++ b/pkgs/applications/backup/pika-backup/default.nix @@ -21,20 +21,20 @@ stdenv.mkDerivation rec { pname = "pika-backup"; - version = "0.6.1"; + version = "0.6.2"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "World"; repo = "pika-backup"; rev = "v${version}"; - hash = "sha256-7sgAp9/CKKxPr8rWbOot+FPAwaC8EPLa9pjVcC4TjW8="; + hash = "sha256-RTeRlfRmA/fXBcdzP41mbs88ArKlbU49AA0lnW3xRlg="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; - hash = "sha256-Va7qLC6WvsLmG9JVmdT1FdIlWP4W/EFmsy7JOagQ+X8="; + hash = "sha256-2B0N/Yq9A4LqKh8EKWmzNzTelwGE3Y9FL9IAqAgFSV8="; }; patches = [ From e4f179cf0435b995518f74c98f55aece2d5ae461 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 09:21:05 +0000 Subject: [PATCH 39/73] pokeget-rs: 1.2.0 -> 1.3.0 --- pkgs/tools/misc/pokeget-rs/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/pokeget-rs/default.nix b/pkgs/tools/misc/pokeget-rs/default.nix index 9185f55d8044..9dcd70219a44 100644 --- a/pkgs/tools/misc/pokeget-rs/default.nix +++ b/pkgs/tools/misc/pokeget-rs/default.nix @@ -5,17 +5,17 @@ rustPlatform.buildRustPackage rec { pname = "pokeget-rs"; - version = "1.2.0"; + version = "1.3.0"; src = fetchFromGitHub { owner = "talwat"; repo = "pokeget-rs"; rev = version; - hash = "sha256-0HWv0o0wmcRomLQul99RjGAF+/qKBK6SGeNOFRTHiCc="; + hash = "sha256-UAkSMdHukwxDzOU/sIOuTazBbD68ORIGAWuwRxoC+EY="; fetchSubmodules = true; }; - cargoHash = "sha256-nsF6rInbM1Eshi2B4AYxkHj+DBrPc2doCtZSeBfs5b0="; + cargoHash = "sha256-A5bDZU/L3G2RWbc3Y6KEQAmLS4RuNSG+ROypxINlwLk="; meta = with lib; { description = "A better rust version of pokeget"; From 15101633674f34798ae8a53e7ef3106078b3d4c4 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Sat, 9 Sep 2023 19:42:48 +1000 Subject: [PATCH 40/73] chainsaw: 2.6.2 -> 2.7.3 --- pkgs/tools/security/chainsaw/Cargo.lock | 843 ++++++++++------------- pkgs/tools/security/chainsaw/default.nix | 6 +- 2 files changed, 379 insertions(+), 470 deletions(-) diff --git a/pkgs/tools/security/chainsaw/Cargo.lock b/pkgs/tools/security/chainsaw/Cargo.lock index e7aab2b647a5..8ddb4bbf29e0 100644 --- a/pkgs/tools/security/chainsaw/Cargo.lock +++ b/pkgs/tools/security/chainsaw/Cargo.lock @@ -8,25 +8,16 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "once_cell", "version_check", ] [[package]] name = "aho-corasick" -version = "0.7.20" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" -dependencies = [ - "memchr", -] - -[[package]] -name = "aho-corasick" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" +checksum = "6748e8def348ed4d14996fa801f4122cd763fff530258cdc03f64b25f89d3a5a" dependencies = [ "memchr", ] @@ -63,15 +54,15 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" +checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd" [[package]] name = "anstyle-parse" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" +checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" dependencies = [ "utf8parse", ] @@ -87,9 +78,9 @@ dependencies = [ [[package]] name = "anstyle-wincon" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180abfa45703aebe0093f79badacc01b8fd4ea2e35118747e5811127f926e188" +checksum = "c677ab05e09154296dd37acecd46420c17b9713e8366facafa8fc0885167cf4c" dependencies = [ "anstyle", "windows-sys 0.48.0", @@ -97,9 +88,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.71" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" +checksum = "f768393e7fabd388fe8409b13faa4d93ab0fef35db1508438dfdb066918bcf38" [[package]] name = "arrayref" @@ -109,20 +100,20 @@ checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" [[package]] name = "arrayvec" -version = "0.5.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" +checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] name = "assert_cmd" -version = "2.0.11" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86d6b683edf8d1119fe420a94f8a7e389239666aa72e65495d91c00462510151" +checksum = "88903cb14723e4d4003335bb7f8a14f27691649105346a0f0957466c096adfe6" dependencies = [ "anstyle", "bstr", "doc-comment", - "predicates 3.0.3", + "predicates", "predicates-core", "predicates-tree", "wait-timeout", @@ -145,6 +136,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "base64" +version = "0.21.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" + [[package]] name = "bincode" version = "1.3.3" @@ -161,40 +158,41 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] -name = "bitvec" -version = "0.19.6" +name = "bitflags" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55f93d0ef3363c364d5976646a38f04cf67cfe1d4c8d160cdea02cab2c116b33" -dependencies = [ - "funty", - "radium", - "tap", - "wyz", -] +checksum = "b4682ae6287fcf752ecaabbfcc7b6f9b72aa33933dc23a554d853aea8eea8635" [[package]] name = "blake3" -version = "0.3.8" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b64485778c4f16a6a5a9d335e80d449ac6c70cdd6a06d2af18a6f6f775a125b3" +checksum = "199c42ab6972d92c9f8995f086273d25c42fc0f7b2a1fcefba465c1352d25ba5" dependencies = [ "arrayref", "arrayvec", "cc", - "cfg-if 0.1.10", + "cfg-if", "constant_time_eq", - "crypto-mac", "digest", ] [[package]] -name = "bstr" -version = "1.5.0" +name = "block-buffer" +version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a246e68bb43f6cd9db24bea052a53e40405417c5fb372e3d1a8a7f770a564ef5" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bstr" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6798148dccfbff0fae41c7574d2fa8f1ef3492fba0face179de5d8d447d67b05" dependencies = [ "memchr", - "once_cell", "regex-automata", "serde", ] @@ -225,18 +223,18 @@ checksum = "38fcc2979eff34a4b84e1cf9a1e3da42a7d44b3b690a40cdcb23e3d556cfb2e5" [[package]] name = "camino" -version = "1.1.4" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c530edf18f37068ac2d977409ed5cd50d53d73bc653c7647b48eb78976ac9ae2" +checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c" dependencies = [ "serde", ] [[package]] name = "cargo-platform" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbdb825da8a5df079a43676dbe042702f1707b1109f713a01420fbb4cc71fa27" +checksum = "2cfa25e60aea747ec7e1124f238816749faa93759c6ff5b31f1ccdda137f4479" dependencies = [ "serde", ] @@ -256,15 +254,12 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.79" +version = "1.0.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" +checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01" +dependencies = [ + "libc", +] [[package]] name = "cfg-if" @@ -274,17 +269,18 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chainsaw" -version = "2.6.2" +version = "2.7.3" dependencies = [ - "aho-corasick 0.7.20", + "aho-corasick", "anyhow", "assert_cmd", + "base64", "bincode", "bytesize", "chrono", "chrono-tz", - "clap 4.3.1", - "colour", + "clap 4.3.21", + "crossterm", "evtx", "indicatif", "lazy_static", @@ -292,17 +288,19 @@ dependencies = [ "notatin", "once_cell", "paste", - "predicates 2.1.5", + "predicates", "prettytable-rs", - "quick-xml 0.27.1", + "quick-xml 0.30.0", "rayon", "regex", "rustc-hash", "serde", "serde_json", "serde_yaml", + "smallvec", "tau-engine", - "term_size", + "tempfile", + "terminal_size", "uuid", ] @@ -324,9 +322,9 @@ dependencies = [ [[package]] name = "chrono-tz" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9cc2b23599e6d7479755f3594285efb3f74a1bdca7a7374948bc831e23a552" +checksum = "f1369bc6b9e9a7dfdae2055f6ec151fe9c554a9d23d357c0237cee2e25eaabb7" dependencies = [ "chrono", "chrono-tz-build", @@ -336,9 +334,9 @@ dependencies = [ [[package]] name = "chrono-tz-build" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9998fb9f7e9b2111641485bf8beb32f92945f97f92a3d061f744cfef335f751" +checksum = "e2f5ebdc942f57ed96d560a6d1a459bae5851102a25d5bf89dc04ae453e31ecf" dependencies = [ "parse-zoneinfo", "phf", @@ -352,9 +350,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ea181bf566f71cb9a5d17a59e1871af638180a18fb0035c92ae62b705207123" dependencies = [ "atty", - "bitflags", + "bitflags 1.3.2", "clap_lex 0.2.4", - "indexmap", + "indexmap 1.9.3", "strsim", "termcolor", "textwrap", @@ -362,9 +360,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.3.1" +version = "4.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4ed2379f8603fa2b7509891660e802b88c70a79a6427a70abb5968054de2c28" +checksum = "c27cdf28c0f604ba3f512b0c9a409f8de8513e4816705deb0498b627e7c3a3fd" dependencies = [ "clap_builder", "clap_derive", @@ -373,27 +371,26 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.3.1" +version = "4.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72394f3339a76daf211e57d4bcb374410f3965dcc606dd0e03738c7888766980" +checksum = "08a9f1ab5e9f01a9b81f202e8562eb9a10de70abf9eaeac1be465c28b75aa4aa" dependencies = [ "anstream", "anstyle", - "bitflags", "clap_lex 0.5.0", "strsim", ] [[package]] name = "clap_derive" -version = "4.3.1" +version = "4.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59e9ef9a08ee1c0e1f2e162121665ac45ac3783b0f897db7244ae75ad9a8f65b" +checksum = "54a9bb5758fc5dfe728d1019941681eccaf0cf8a4189b692a0ee2f2ecf90a050" dependencies = [ - "heck 0.4.1", + "heck", "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.28", ] [[package]] @@ -417,15 +414,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" -[[package]] -name = "colour" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a27e4532f26f510c24bb8477d963c0c3ef27e293c3b2c507cccb0536d493201a" -dependencies = [ - "crossterm 0.19.0", -] - [[package]] name = "console" version = "0.15.7" @@ -441,9 +429,9 @@ dependencies = [ [[package]] name = "constant_time_eq" -version = "0.1.5" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" +checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" [[package]] name = "core-foundation-sys" @@ -457,7 +445,7 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -466,7 +454,7 @@ version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "crossbeam-utils", ] @@ -476,19 +464,19 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "crossbeam-epoch", "crossbeam-utils", ] [[package]] name = "crossbeam-epoch" -version = "0.9.14" +version = "0.9.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" dependencies = [ "autocfg", - "cfg-if 1.0.0", + "cfg-if", "crossbeam-utils", "memoffset", "scopeguard", @@ -496,71 +484,46 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.15" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] name = "crossterm" -version = "0.19.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c36c10130df424b2f3552fcc2ddcd9b28a27b1e54b358b45874f88d1ca6888c" +checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df" dependencies = [ - "bitflags", - "crossterm_winapi 0.7.0", - "lazy_static", + "bitflags 2.4.0", + "crossterm_winapi", "libc", "mio", "parking_lot", - "signal-hook 0.1.17", - "winapi", -] - -[[package]] -name = "crossterm" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "486d44227f71a1ef39554c0dc47e44b9f4139927c75043312690c3f476d1d788" -dependencies = [ - "bitflags", - "crossterm_winapi 0.8.0", - "libc", - "mio", - "parking_lot", - "signal-hook 0.3.15", + "signal-hook", "signal-hook-mio", "winapi", ] [[package]] name = "crossterm_winapi" -version = "0.7.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da8964ace4d3e4a044fd027919b2237000b24315a37c916f61809f1ff2140b9" +checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" dependencies = [ "winapi", ] [[package]] -name = "crossterm_winapi" -version = "0.8.0" +name = "crypto-common" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a6966607622438301997d3dac0d2f6e9a90c68bb6bc1785ea98456ab93c0507" -dependencies = [ - "winapi", -] - -[[package]] -name = "crypto-mac" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", - "subtle", + "typenum", ] [[package]] @@ -584,6 +547,12 @@ dependencies = [ "memchr", ] +[[package]] +name = "deranged" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7684a49fb1af197853ef7b2ee694bc1f5b4179556f1e5710e1760c5db6f5e929" + [[package]] name = "dialoguer" version = "0.10.4" @@ -604,11 +573,13 @@ checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" [[package]] name = "digest" -version = "0.9.0" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "generic-array", + "block-buffer", + "crypto-common", + "subtle", ] [[package]] @@ -617,7 +588,7 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "dirs-sys-next", ] @@ -640,9 +611,9 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "either" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" [[package]] name = "encode_unicode" @@ -745,10 +716,16 @@ dependencies = [ ] [[package]] -name = "errno" -version = "0.3.1" +name = "equivalent" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "errno" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f" dependencies = [ "errno-dragonfly", "libc", @@ -781,7 +758,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3c0a23f64c81e962c993ccb5d9e88bbd62a3fcabdec20b037a8383f7c3e163f" dependencies = [ "anyhow", - "bitflags", + "bitflags 1.3.2", "byteorder", "chrono", "clap 3.2.25", @@ -802,12 +779,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "1.9.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be" -dependencies = [ - "instant", -] +checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764" [[package]] name = "float-cmp" @@ -818,12 +792,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "funty" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7" - [[package]] name = "generic-array" version = "0.14.7" @@ -836,11 +804,11 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" +checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "libc", "wasi 0.11.0+wasi-snapshot-preview1", ] @@ -867,13 +835,10 @@ dependencies = [ ] [[package]] -name = "heck" -version = "0.3.3" +name = "hashbrown" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] +checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" [[package]] name = "heck" @@ -892,18 +857,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.2.6" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" -dependencies = [ - "libc", -] - -[[package]] -name = "hermit-abi" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" [[package]] name = "humantime" @@ -916,9 +872,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.56" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0722cd7114b7de04316e7ea5456a0bbb20e4adb46fd27a3697adb812cff0f37c" +checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -948,10 +904,20 @@ dependencies = [ ] [[package]] -name = "indicatif" -version = "0.17.4" +name = "indexmap" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db45317f37ef454e6519b6c3ed7d377e5f23346f0823f86e65ca36912d1d0ef8" +checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" +dependencies = [ + "equivalent", + "hashbrown 0.14.0", +] + +[[package]] +name = "indicatif" +version = "0.17.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b297dc40733f23a0e52728a58fa9489a5b7638a324932de16b41adc3ef80730" dependencies = [ "console", "instant", @@ -968,9 +934,9 @@ checksum = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306" [[package]] name = "indoc" -version = "2.0.1" +version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f2cb48b81b1dc9f39676bf99f5499babfec7cd8fe14307f7b3d747208fb5690" +checksum = "2c785eefb63ebd0e33416dfcb8d6da0bf27ce752843a45632a67bf10d4d4b5c4" [[package]] name = "instant" @@ -978,7 +944,7 @@ version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -987,20 +953,19 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi 0.3.2", "libc", "windows-sys 0.48.0", ] [[package]] name = "is-terminal" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" +checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ - "hermit-abi 0.3.1", - "io-lifetimes", - "rustix", + "hermit-abi 0.3.2", + "rustix 0.38.8", "windows-sys 0.48.0", ] @@ -1015,15 +980,15 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" +checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" [[package]] name = "js-sys" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f37a4a5928311ac501dee68b3c7613a1037d0edb30c8e5427bd832d55d1b790" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] @@ -1034,24 +999,11 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -[[package]] -name = "lexical-core" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6607c62aa161d23d17a9072cc5da0be67cdfc89d3afb1e8d9c842bebc2525ffe" -dependencies = [ - "arrayvec", - "bitflags", - "cfg-if 1.0.0", - "ryu", - "static_assertions", -] - [[package]] name = "libc" -version = "0.2.144" +version = "0.2.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" +checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "linux-raw-sys" @@ -1060,10 +1012,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] -name = "lock_api" -version = "0.4.9" +name = "linux-raw-sys" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503" + +[[package]] +name = "lock_api" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16" dependencies = [ "autocfg", "scopeguard", @@ -1071,9 +1029,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.18" +version = "0.4.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" +checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "lru" @@ -1098,9 +1056,9 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memoffset" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" dependencies = [ "autocfg", ] @@ -1112,14 +1070,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "52cf53faa705fc7f6574f99a34fae16ffa12b6391eabd9f7269377738e583e99" dependencies = [ "anyhow", - "bitflags", + "bitflags 1.3.2", "byteorder", "chrono", - "clap 4.3.1", + "clap 4.3.21", "csv", "dialoguer", "encoding", - "indoc 2.0.1", + "indoc 2.0.3", "itertools", "log", "lru", @@ -1135,38 +1093,31 @@ dependencies = [ ] [[package]] -name = "mio" -version = "0.7.14" +name = "minimal-lexical" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "mio" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" dependencies = [ "libc", "log", - "miow", - "ntapi", - "winapi", -] - -[[package]] -name = "miow" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" -dependencies = [ - "winapi", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.48.0", ] [[package]] name = "nom" -version = "6.1.2" +version = "7.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7413f999671bd4745a7b624bd370a569fb6bc574b23c83a3c5ed2e453f3d5e2" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" dependencies = [ - "bitvec", - "funty", - "lexical-core", "memchr", - "version_check", + "minimal-lexical", ] [[package]] @@ -1177,13 +1128,13 @@ checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" [[package]] name = "notatin" -version = "0.1.0" -source = "git+https://github.com/strozfriedberg/notatin?rev=9783169f4649c8df92f94b8c20421df8f4aa070a#9783169f4649c8df92f94b8c20421df8f4aa070a" +version = "1.0.0" +source = "git+https://github.com/strozfriedberg/notatin?tag=v1.0.0#f07fddb498d5dfc8a61e1988ced0a28a2c8f253c" dependencies = [ - "bitflags", + "bitflags 2.4.0", "blake3", "chrono", - "crossterm 0.21.0", + "crossterm", "enum-primitive-derive", "md5", "nom", @@ -1198,20 +1149,11 @@ dependencies = [ "winstructs", ] -[[package]] -name = "ntapi" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" -dependencies = [ - "winapi", -] - [[package]] name = "num" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43db66d1170d347f9a065114077f7dccb00c1b9478c89384490a3425279a4606" +checksum = "b05180d69e3da0e530ba2a1dae5110317e49e3b7f3d41be227dc5f92e49ee7af" dependencies = [ "num-bigint", "num-complex", @@ -1234,9 +1176,9 @@ dependencies = [ [[package]] name = "num-complex" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d" +checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214" dependencies = [ "num-traits", ] @@ -1287,20 +1229,20 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" dependencies = [ "autocfg", ] [[package]] name = "num_cpus" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.2.6", + "hermit-abi 0.3.2", "libc", ] @@ -1321,39 +1263,37 @@ checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" [[package]] name = "once_cell" -version = "1.17.2" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" +checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "os_str_bytes" -version = "6.5.0" +version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceedf44fb00f2d1984b0bc98102627ce622e083e49a5bacdb3e514fa4238e267" +checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" [[package]] name = "parking_lot" -version = "0.11.2" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ - "instant", "lock_api", "parking_lot_core", ] [[package]] name = "parking_lot_core" -version = "0.8.6" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" +checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447" dependencies = [ - "cfg-if 1.0.0", - "instant", + "cfg-if", "libc", - "redox_syscall 0.2.16", + "redox_syscall 0.3.5", "smallvec", - "winapi", + "windows-targets 0.48.2", ] [[package]] @@ -1367,24 +1307,24 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" +checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" [[package]] name = "phf" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c" +checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ "phf_shared", ] [[package]] name = "phf_codegen" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56ac890c5e3ca598bbdeaa99964edb5b0258a583a9eb6ef4e89fc85d9224770" +checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" dependencies = [ "phf_generator", "phf_shared", @@ -1392,9 +1332,9 @@ dependencies = [ [[package]] name = "phf_generator" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1181c94580fa345f50f19d738aaa39c0ed30a600d95cb2d3e23f94266f14fbf" +checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" dependencies = [ "phf_shared", "rand", @@ -1402,24 +1342,24 @@ dependencies = [ [[package]] name = "phf_shared" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1fb5f6f826b772a8d4c0394209441e7d37cbbb967ae9c7e0e8134365c9ee676" +checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" dependencies = [ "siphasher", ] [[package]] name = "pin-project-lite" -version = "0.2.9" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" +checksum = "12cc1b0bf1727a77a54b6654e7b5f1af8604923edc8b81885f8ec92f9e3f0a05" [[package]] name = "portable-atomic" -version = "1.3.3" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "767eb9f07d4a5ebcb39bbf2d452058a93c011373abf6832e24194a1c3f004794" +checksum = "f32154ba0af3a075eefa1eda8bb414ee928f62303a54ea85b8d6638ff1a6ee9e" [[package]] name = "ppv-lite86" @@ -1427,20 +1367,6 @@ version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" -[[package]] -name = "predicates" -version = "2.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59230a63c37f3e18569bdb90e4a89cbf5bf8b06fea0b84e65ea10cc4df47addd" -dependencies = [ - "difflib", - "float-cmp", - "itertools", - "normalize-line-endings", - "predicates-core", - "regex", -] - [[package]] name = "predicates" version = "3.0.3" @@ -1449,8 +1375,11 @@ checksum = "09963355b9f467184c04017ced4a2ba2d75cbcb4e7462690d388233253d4b1a9" dependencies = [ "anstyle", "difflib", + "float-cmp", "itertools", + "normalize-line-endings", "predicates-core", + "regex", ] [[package]] @@ -1485,9 +1414,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.59" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" +checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" dependencies = [ "unicode-ident", ] @@ -1498,7 +1427,7 @@ version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77a1a2f1f0a7ecff9c31abbe177637be0e97a0aef46cf8738ece09327985d998" dependencies = [ - "bitflags", + "bitflags 1.3.2", "memchr", "unicase", ] @@ -1520,9 +1449,9 @@ dependencies = [ [[package]] name = "quick-xml" -version = "0.27.1" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc053f057dd768a56f62cd7e434c42c831d296968997e9ac1f76ea7c2d14c41" +checksum = "eff6510e86862b57b210fd8cbe8ed3f0d7d600b9c2863cd4549a2e033c66e956" dependencies = [ "memchr", "serde", @@ -1530,19 +1459,13 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.28" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" +checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" dependencies = [ "proc-macro2", ] -[[package]] -name = "radium" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "941ba9d78d8e2f7ce474c015eea4d9c6d25b6a3327f9832ee29a4de27f91bbb8" - [[package]] name = "rand" version = "0.8.5" @@ -1601,7 +1524,7 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -1610,7 +1533,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -1626,26 +1549,32 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.3" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" +checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a" dependencies = [ - "aho-corasick 1.0.1", + "aho-corasick", "memchr", + "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" -version = "0.1.10" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" +checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] [[package]] name = "regex-syntax" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" +checksum = "e5ea92a5b6195c6ef2a0295ea818b312502c6fc94dde986c5553242e18fd4ce2" [[package]] name = "rustc-hash" @@ -1655,29 +1584,42 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.37.19" +version = "0.37.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" +checksum = "4d69718bf81c6127a49dc64e44a742e8bb9213c0ff8869a22c308f84c1d4ab06" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", "io-lifetimes", "libc", - "linux-raw-sys", + "linux-raw-sys 0.3.8", + "windows-sys 0.48.0", +] + +[[package]] +name = "rustix" +version = "0.38.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ed4fa021d81c8392ce04db050a3da9a60299050b7ae1cf482d862b54a7218f" +dependencies = [ + "bitflags 2.4.0", + "errno", + "libc", + "linux-raw-sys 0.4.5", "windows-sys 0.48.0", ] [[package]] name = "rustversion" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f3208ce4d8448b3f3e7d168a73f5e0c43a61e32930de3bceeccedb388b6bf06" +checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "ryu" -version = "1.0.13" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" +checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "same-file" @@ -1690,44 +1632,44 @@ dependencies = [ [[package]] name = "scopeguard" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "semver" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed" +checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" dependencies = [ "serde", ] [[package]] name = "serde" -version = "1.0.163" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" +checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.163" +version = "1.0.183" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" +checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.28", ] [[package]] name = "serde_json" -version = "1.0.96" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +checksum = "076066c5f1078eac5b722a31827a8832fe108bed65dfa75e233c89f8206e976c" dependencies = [ "itoa", "ryu", @@ -1736,11 +1678,11 @@ dependencies = [ [[package]] name = "serde_yaml" -version = "0.9.21" +version = "0.9.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9d684e3ec7de3bf5466b32bd75303ac16f0736426e5a4e0d6e489559ce1249c" +checksum = "1a49e178e4452f45cb61d0cd8cebc1b0fafd3e41929e996cef79aa3aca91f574" dependencies = [ - "indexmap", + "indexmap 2.0.0", "itoa", "ryu", "serde", @@ -1755,20 +1697,9 @@ checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde" [[package]] name = "signal-hook" -version = "0.1.17" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e31d442c16f047a671b5a71e2161d6e68814012b7f5379d269ebd915fac2729" -dependencies = [ - "libc", - "mio", - "signal-hook-registry", -] - -[[package]] -name = "signal-hook" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "732768f1176d21d09e076c23a93123d40bba92d50c4058da34d45c8de8e682b9" +checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801" dependencies = [ "libc", "signal-hook-registry", @@ -1782,7 +1713,7 @@ checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af" dependencies = [ "libc", "mio", - "signal-hook 0.3.15", + "signal-hook", ] [[package]] @@ -1802,7 +1733,7 @@ checksum = "acee08041c5de3d5048c8b3f6f13fafb3026b24ba43c6a695a0c76179b844369" dependencies = [ "log", "termcolor", - "time 0.3.21", + "time 0.3.25", ] [[package]] @@ -1828,15 +1759,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" - -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9" [[package]] name = "strsim" @@ -1846,14 +1771,15 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "strum_macros" -version = "0.22.0" +version = "0.25.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" +checksum = "ad8d03b598d3d0fff69bf533ee3ef19b8eeb342729596df84bcc7e1f96ec4059" dependencies = [ - "heck 0.3.3", + "heck", "proc-macro2", "quote", - "syn 1.0.109", + "rustversion", + "syn 2.0.28", ] [[package]] @@ -1875,28 +1801,22 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.18" +version = "2.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" +checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] -[[package]] -name = "tap" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" - [[package]] name = "tau-engine" -version = "1.13.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bca00d3f1468fd80527d52d69c81dcf192379cdc3ff5125ebd32d49aaa7d43c" +checksum = "4566a9d67931bc2b779cbabb58ddef3e9b452e6059333fb34992ca46525a8413" dependencies = [ - "aho-corasick 0.7.20", + "aho-corasick", "lazy_static", "regex", "serde", @@ -1907,15 +1827,15 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.5.0" +version = "3.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9fbec84f381d5795b08656e4912bec604d162bff9291d6189a78f4c8ab87998" +checksum = "dc02fddf48964c42031a0b3fe0428320ecf3a73c401040fc0096f97794310651" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "fastrand", "redox_syscall 0.3.5", - "rustix", - "windows-sys 0.45.0", + "rustix 0.38.8", + "windows-sys 0.48.0", ] [[package]] @@ -1929,16 +1849,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "term_size" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "termcolor" version = "1.1.3" @@ -1948,6 +1858,16 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "terminal_size" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e6bf6f19e9f8ed8d4048dc22981458ebcf406d67e94cd422e5ecd73d63b3237" +dependencies = [ + "rustix 0.37.23", + "windows-sys 0.48.0", +] + [[package]] name = "termtree" version = "0.4.1" @@ -1962,22 +1882,22 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "dedd246497092a89beedfe2c9f176d44c1b672ea6090edc20544ade01fbb7ea0" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "7d7b1fadccbbc7e19ea64708629f9d8dccd007c260d66485f20a6d41bc1cf4b3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.28", ] [[package]] @@ -1993,10 +1913,11 @@ dependencies = [ [[package]] name = "time" -version = "0.3.21" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3403384eaacbca9923fa06940178ac13e4edb725486d70e8e15881d0c836cc" +checksum = "b0fdd63d58b18d663fbdf70e049f00a22c8e42be082203be7f26589213cd75ea" dependencies = [ + "deranged", "itoa", "libc", "num_threads", @@ -2013,9 +1934,9 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" [[package]] name = "time-macros" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b" +checksum = "eb71511c991639bb078fd5bf97757e03914361c48100d52878b8e52b46fb92cd" dependencies = [ "time-core", ] @@ -2026,7 +1947,7 @@ version = "0.1.37" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -2034,13 +1955,13 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.24" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f57e3ca2a01450b1a921183a9c9cbfda207fd822cef4ccb00a65402cbba7a74" +checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.28", ] [[package]] @@ -2069,15 +1990,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" - -[[package]] -name = "unicode-segmentation" -version = "1.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" +checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" [[package]] name = "unicode-width" @@ -2087,9 +2002,9 @@ checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b" [[package]] name = "unsafe-libyaml" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1865806a559042e51ab5414598446a5871b561d21b6764f2eabb0dd481d880a6" +checksum = "f28467d3e1d3c6586d8f25fa243f544f5800fec42d97032474e17222c2b75cfa" [[package]] name = "utf8parse" @@ -2099,9 +2014,9 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "uuid" -version = "1.3.3" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "345444e32442451b267fc254ae85a209c64be56d2890e601a0c37ff0c3c5ecd2" +checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" dependencies = [ "getrandom", "serde", @@ -2146,34 +2061,34 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bba0e8cb82ba49ff4e229459ff22a191bbe9a1cb3a341610c9c33efc27ddf73" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b04bc93f9d6bdee709f6bd2118f57dd6679cf1176a1af464fca3ab0d66d8fb" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.28", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14d6b024f1a526bb0234f52840389927257beb670610081360e5a03c5df9c258" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2181,22 +2096,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e128beba882dd1eb6200e1dc92ae6c5dbaa4311aa7bb211ca035779e5efc39f8" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.18", + "syn 2.0.28", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed9d5b4305409d1fc9482fee2d7f9bcbf24b3972bf59817ef757e23982242a93" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "winapi" @@ -2235,7 +2150,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows-targets 0.48.0", + "windows-targets 0.48.2", ] [[package]] @@ -2253,7 +2168,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.0", + "windows-targets 0.48.2", ] [[package]] @@ -2273,17 +2188,17 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" +checksum = "d1eeca1c172a285ee6c2c84c341ccea837e7c01b12fbb2d0fe3c9e550ce49ec8" dependencies = [ - "windows_aarch64_gnullvm 0.48.0", - "windows_aarch64_msvc 0.48.0", - "windows_i686_gnu 0.48.0", - "windows_i686_msvc 0.48.0", - "windows_x86_64_gnu 0.48.0", - "windows_x86_64_gnullvm 0.48.0", - "windows_x86_64_msvc 0.48.0", + "windows_aarch64_gnullvm 0.48.2", + "windows_aarch64_msvc 0.48.2", + "windows_i686_gnu 0.48.2", + "windows_i686_msvc 0.48.2", + "windows_x86_64_gnu 0.48.2", + "windows_x86_64_gnullvm 0.48.2", + "windows_x86_64_msvc 0.48.2", ] [[package]] @@ -2294,9 +2209,9 @@ checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +checksum = "b10d0c968ba7f6166195e13d593af609ec2e3d24f916f081690695cf5eaffb2f" [[package]] name = "windows_aarch64_msvc" @@ -2306,9 +2221,9 @@ checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +checksum = "571d8d4e62f26d4932099a9efe89660e8bd5087775a2ab5cdd8b747b811f1058" [[package]] name = "windows_i686_gnu" @@ -2318,9 +2233,9 @@ checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +checksum = "2229ad223e178db5fbbc8bd8d3835e51e566b8474bfca58d2e6150c48bb723cd" [[package]] name = "windows_i686_msvc" @@ -2330,9 +2245,9 @@ checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +checksum = "600956e2d840c194eedfc5d18f8242bc2e17c7775b6684488af3a9fff6fe3287" [[package]] name = "windows_x86_64_gnu" @@ -2342,9 +2257,9 @@ checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +checksum = "ea99ff3f8b49fb7a8e0d305e5aec485bd068c2ba691b6e277d29eaeac945868a" [[package]] name = "windows_x86_64_gnullvm" @@ -2354,9 +2269,9 @@ checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +checksum = "8f1a05a1ece9a7a0d5a7ccf30ba2c33e3a61a30e042ffd247567d1de1d94120d" [[package]] name = "windows_x86_64_msvc" @@ -2366,9 +2281,9 @@ checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" -version = "0.48.0" +version = "0.48.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" +checksum = "d419259aba16b663966e29e6d7c6ecfa0bb8425818bb96f6f1f3c3eb71a6e7b9" [[package]] name = "winstructs" @@ -2376,7 +2291,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13eb723aae62864dbb48c23bd55a51be9c53a1880c7762805efdd62570c22acf" dependencies = [ - "bitflags", + "bitflags 1.3.2", "byteorder", "chrono", "env_logger", @@ -2388,12 +2303,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "wyz" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85e60b0d1b5f99db2556934e21937020776a5d31520bf169e851ac44e6420214" - [[package]] name = "zeroize" version = "1.6.0" diff --git a/pkgs/tools/security/chainsaw/default.nix b/pkgs/tools/security/chainsaw/default.nix index 17222e4050d7..fc4c3d523625 100644 --- a/pkgs/tools/security/chainsaw/default.nix +++ b/pkgs/tools/security/chainsaw/default.nix @@ -7,19 +7,19 @@ rustPlatform.buildRustPackage rec { pname = "chainsaw"; - version = "2.6.2"; + version = "2.7.3"; src = fetchFromGitHub { owner = "WithSecureLabs"; repo = "chainsaw"; rev = "refs/tags/v${version}"; - hash = "sha256-Et90CW1fHt6GuHgQP2nRvcS7in4zw2UgBiQhblQGM+8="; + hash = "sha256-plfEVVMbiTXzBhshO3NZVeuHuNeI9+Lcw1G5xeBiTks="; }; cargoLock = { lockFile = ./Cargo.lock; outputHashes = { - "notatin-0.1.0" = "sha256-YHC/NavKf0FoYtd5NM8ovUfSd4ODhKaA82mAT+HcefA="; + "notatin-1.0.0" = "sha256-eeryJhH7kX8QWwVuEq5RzanVT2FBfFJWAzUDFgUKqR8="; }; }; From 909980af3eb291a60aa4665a0c71d24bd09471ac Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 10:41:29 +0000 Subject: [PATCH 41/73] automatic-timezoned: 1.0.124 -> 1.0.125 --- pkgs/tools/system/automatic-timezoned/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/system/automatic-timezoned/default.nix b/pkgs/tools/system/automatic-timezoned/default.nix index deed778823f8..9e936c2dfc7a 100644 --- a/pkgs/tools/system/automatic-timezoned/default.nix +++ b/pkgs/tools/system/automatic-timezoned/default.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { pname = "automatic-timezoned"; - version = "1.0.124"; + version = "1.0.125"; src = fetchFromGitHub { owner = "maxbrunet"; repo = pname; rev = "v${version}"; - sha256 = "sha256-zfQ9CVMsPAeGcEMhOX7k6am/9+JjsJTk0NOvXqewDmw="; + sha256 = "sha256-gXuAgiz4pqc1UXTqU47G8Dve+RdCM/61jIROzy6bzII="; }; - cargoHash = "sha256-NAA4zvjGpsVlmESO60dKbBbUbVcxGh9YNDVALCxXc1E="; + cargoHash = "sha256-8zW5CHgAZHMcIIhtyjf4WA/lB+eUWiH/Nu4vkwrAx3Q="; meta = with lib; { description = "Automatically update system timezone based on location"; From 5e27c21084cb29d3a3c3f78c3da6e87e654deccf Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 11:10:21 +0000 Subject: [PATCH 42/73] python310Packages.nlpcloud: 1.1.43 -> 1.1.44 --- pkgs/development/python-modules/nlpcloud/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/nlpcloud/default.nix b/pkgs/development/python-modules/nlpcloud/default.nix index e995f6a97fa8..49fdb5e528fa 100644 --- a/pkgs/development/python-modules/nlpcloud/default.nix +++ b/pkgs/development/python-modules/nlpcloud/default.nix @@ -6,12 +6,12 @@ buildPythonPackage rec { pname = "nlpcloud"; - version = "1.1.43"; + version = "1.1.44"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-y3OZ5Tgd9FJmuon+9UyFmJgoASd1UyZVsWxmlPaxqEI="; + hash = "sha256-dOW/M9FJJiCii4+lZJ6Pg2bAdSpul4JRtzYdI7VgJbM="; }; propagatedBuildInputs = [ From 9be01e3f142b4221b8d235574c07b29703d2ed77 Mon Sep 17 00:00:00 2001 From: "Sam A. Horvath-Hunt" Date: Sat, 9 Sep 2023 12:42:23 +0100 Subject: [PATCH 43/73] statix: 0.5.6 -> 0.5.8 --- pkgs/tools/nix/statix/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/nix/statix/default.nix b/pkgs/tools/nix/statix/default.nix index 1ae3a8525a8f..8b2b26420ecc 100644 --- a/pkgs/tools/nix/statix/default.nix +++ b/pkgs/tools/nix/statix/default.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { # also update version of the vim plugin in # pkgs/applications/editors/vim/plugins/overrides.nix # the version can be found in flake.nix of the source code - version = "0.5.6"; + version = "0.5.8"; src = fetchFromGitHub { owner = "nerdypepper"; repo = pname; rev = "v${version}"; - sha256 = "sha256-OQk80eTUufVUbYvZ38el2lmkgkU+5gr0hLTrBvzIp4A="; + sha256 = "sha256-bMs3XMiGP6sXCqdjna4xoV6CANOIWuISSzCaL5LYY4c="; }; - cargoSha256 = "sha256-j+FcV5JtO66Aa0ncIUfjuWtqnMmFb7zW7rNXttYBUU4="; + cargoSha256 = "sha256-QF7P0CWlKfBzVQC//eKhf/u1qV9AfLIJDxWDDWzMG8g="; buildFeatures = lib.optional withJson "json"; From 10562d692dae1d8a564da68129fe433c1fb90e55 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 12:09:46 +0000 Subject: [PATCH 44/73] besu: 23.4.4 -> 23.7.2 --- pkgs/applications/blockchains/besu/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/blockchains/besu/default.nix b/pkgs/applications/blockchains/besu/default.nix index aa963a499af5..3700799ce4cc 100644 --- a/pkgs/applications/blockchains/besu/default.nix +++ b/pkgs/applications/blockchains/besu/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "besu"; - version = "23.4.4"; + version = "23.7.2"; src = fetchurl { url = "https://hyperledger.jfrog.io/artifactory/${pname}-binaries/${pname}/${version}/${pname}-${version}.tar.gz"; - sha256 = "sha256-vUdtI1tv4fI2pivHCfQch962i3LEe7W1jla52Sg68sQ="; + sha256 = "sha256-90sywaNDy62QqIqlkna0xe7+pGQ+5UKrorv4mPha4kI="; }; nativeBuildInputs = [ makeWrapper ]; From 69bfaafc9d41bb4e36920c0d96ceb489c21fd129 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Wed, 6 Sep 2023 16:23:31 -0600 Subject: [PATCH 45/73] nixos/cfdyndns: add option to use CF token --- nixos/modules/services/misc/cfdyndns.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/cfdyndns.nix b/nixos/modules/services/misc/cfdyndns.nix index 9cd8b188ffae..5a02de2aad21 100644 --- a/nixos/modules/services/misc/cfdyndns.nix +++ b/nixos/modules/services/misc/cfdyndns.nix @@ -23,6 +23,15 @@ in ''; }; + apiTokenFile = mkOption { + default = null; + type = types.nullOr types.str; + description = lib.mdDoc '' + The path to a file containing the API Token + used to authenticate with CloudFlare. + ''; + }; + apikeyFile = mkOption { default = null; type = types.nullOr types.str; @@ -55,12 +64,15 @@ in Group = config.ids.gids.cfdyndns; }; environment = { - CLOUDFLARE_EMAIL="${cfg.email}"; CLOUDFLARE_RECORDS="${concatStringsSep "," cfg.records}"; }; script = '' ${optionalString (cfg.apikeyFile != null) '' export CLOUDFLARE_APIKEY="$(cat ${escapeShellArg cfg.apikeyFile})" + export CLOUDFLARE_EMAIL="${cfg.email}" + ''} + ${optionalString (cfg.apiTokenFile != null) '' + export CLOUDFLARE_APITOKEN="$(cat ${escapeShellArg cfg.apiTokenFile})" ''} ${pkgs.cfdyndns}/bin/cfdyndns ''; From 300d4b8114931e641062ad94d4c9011eefe89618 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Sep 2023 14:31:54 +0200 Subject: [PATCH 46/73] python311Packages.pysigma-backend-elasticsearch: 1.0.6 -> 1.0.7 Diff: https://github.com/SigmaHQ/pySigma-backend-elasticsearch/compare/refs/tags/v1.0.6...v1.0.7 Changelog: https://github.com/SigmaHQ/pySigma-backend-elasticsearch/releases/tag/v1.0.7 --- .../python-modules/pysigma-backend-elasticsearch/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix index 6d6f4c3baa4f..4461c02c8cab 100644 --- a/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-elasticsearch/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "pysigma-backend-elasticsearch"; - version = "1.0.6"; + version = "1.0.7"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "SigmaHQ"; repo = "pySigma-backend-elasticsearch"; rev = "refs/tags/v${version}"; - hash = "sha256-bP64JMDhSYusLzRq0Mv89x1c9DflmYFTih9RP+dY4/c="; + hash = "sha256-qvWrMucaSx7LltWYru30qVPDTVHtuqf8tKGFL+Fl8fU="; }; postPatch = '' From 9ca9bd1a81f5fbdaf79bf42429c02716d15be7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Thu, 7 Sep 2023 23:31:03 +1000 Subject: [PATCH 47/73] nushellPlugins: format plugin and fix darwin Fix compilation under darwin and add the formats plugin to support ini, ical and others. --- pkgs/shells/nushell/plugins/default.nix | 5 +++-- pkgs/shells/nushell/plugins/formats.nix | 29 +++++++++++++++++++++++++ pkgs/shells/nushell/plugins/gstat.nix | 3 ++- pkgs/top-level/all-packages.nix | 2 +- 4 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 pkgs/shells/nushell/plugins/formats.nix diff --git a/pkgs/shells/nushell/plugins/default.nix b/pkgs/shells/nushell/plugins/default.nix index e79373da156e..44b5b05a739f 100644 --- a/pkgs/shells/nushell/plugins/default.nix +++ b/pkgs/shells/nushell/plugins/default.nix @@ -1,6 +1,7 @@ -{ lib, newScope, IOKit, CoreFoundation }: +{ lib, newScope, IOKit, CoreFoundation, Foundation, Security }: lib.makeScope newScope (self: with self; { - gstat = callPackage ./gstat.nix { }; + gstat = callPackage ./gstat.nix { inherit Security; }; + formats = callPackage ./formats.nix { inherit IOKit Foundation; }; query = callPackage ./query.nix { inherit IOKit CoreFoundation; }; }) diff --git a/pkgs/shells/nushell/plugins/formats.nix b/pkgs/shells/nushell/plugins/formats.nix new file mode 100644 index 000000000000..bc63789633a2 --- /dev/null +++ b/pkgs/shells/nushell/plugins/formats.nix @@ -0,0 +1,29 @@ +{ stdenv +, lib +, rustPlatform +, nushell +, pkg-config +, IOKit +, Foundation +}: + +let + pname = "nushell_plugin_formats"; +in +rustPlatform.buildRustPackage { + inherit pname; + version = "0.84.0"; + src = nushell.src; + cargoHash = "sha256-pwOdSJHd9njR0lr4n2EzCcqRonh0cbBHGZgAJ1l8FEk="; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ IOKit Foundation ]; + cargoBuildFlags = [ "--package nu_plugin_formats" ]; + doCheck = false; + meta = with lib; { + description = "A formats plugin for Nushell"; + homepage = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_formats"; + license = licenses.mpl20; + maintainers = with maintainers; [ viraptor ]; + platforms = with platforms; all; + }; +} diff --git a/pkgs/shells/nushell/plugins/gstat.nix b/pkgs/shells/nushell/plugins/gstat.nix index 4cab90c7e05a..39af12a6a935 100644 --- a/pkgs/shells/nushell/plugins/gstat.nix +++ b/pkgs/shells/nushell/plugins/gstat.nix @@ -4,6 +4,7 @@ , openssl , nushell , pkg-config +, Security }: let @@ -15,7 +16,7 @@ rustPlatform.buildRustPackage { src = nushell.src; cargoHash = "sha256-RcwCYfIEV0+NbZ99uWaCOLqLap3wZ4qXIsc02fqkBSQ="; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; cargoBuildFlags = [ "--package nu_plugin_gstat" ]; doCheck = false; # some tests fail meta = with lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e4f4f03438d2..6ef2e8020498 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28512,7 +28512,7 @@ with pkgs; nu_scripts = callPackage ../shells/nushell/nu_scripts { }; nushellPlugins = callPackage ../shells/nushell/plugins { - inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation; + inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreFoundation Foundation Security; }; nettools = if stdenv.isLinux From 7a061b54de052f57588058cd188f44c79984e073 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 8 Sep 2023 16:04:41 +0300 Subject: [PATCH 48/73] gnome-frog: 1.3.0 -> 1.4.2 Diff: https://github.com/TenderOwl/Frog/compare/refs/tags/1.3.0...1.4.2 --- pkgs/applications/misc/gnome-frog/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/gnome-frog/default.nix b/pkgs/applications/misc/gnome-frog/default.nix index 10ab732735f8..6570ea796853 100644 --- a/pkgs/applications/misc/gnome-frog/default.nix +++ b/pkgs/applications/misc/gnome-frog/default.nix @@ -11,6 +11,8 @@ , desktop-file-utils , glib , gobject-introspection +, blueprint-compiler +, libxml2 , libnotify , libadwaita , libportal @@ -18,17 +20,18 @@ , librsvg , tesseract5 , zbar +, gst_all_1 }: python3Packages.buildPythonApplication rec { pname = "gnome-frog"; - version = "1.3.0"; + version = "1.4.2"; src = fetchFromGitHub { owner = "TenderOwl"; repo = "Frog"; rev = "refs/tags/${version}"; - sha256 = "sha256-ErDHrdD9UZxOIGwgN5eakY6vhNvE6D9SoRYXZhzmYX4="; + sha256 = "sha256-w/ENUhJt7bYy5htBLolb/HysK8/scRaPQX5qEezQcXY="; }; format = "other"; @@ -52,6 +55,8 @@ python3Packages.buildPythonApplication rec { glib wrapGAppsHook4 gobject-introspection + blueprint-compiler + libxml2 ]; buildInputs = [ @@ -61,6 +66,7 @@ python3Packages.buildPythonApplication rec { libportal zbar tesseract5 + gst_all_1.gstreamer ]; propagatedBuildInputs = with python3Packages; [ @@ -68,6 +74,7 @@ python3Packages.buildPythonApplication rec { pillow pytesseract pyzbar + gtts ]; # This is to prevent double-wrapping the package. We'll let From b33a0a2674bb5efcd45e51f7ab9b69a0a841e3bf Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 9 Sep 2023 13:10:49 +0000 Subject: [PATCH 49/73] kubernetes-polaris: 8.5.0 -> 8.5.1 --- pkgs/tools/security/kubernetes-polaris/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/kubernetes-polaris/default.nix b/pkgs/tools/security/kubernetes-polaris/default.nix index a5640e87fb8c..c8f8dbf07b87 100644 --- a/pkgs/tools/security/kubernetes-polaris/default.nix +++ b/pkgs/tools/security/kubernetes-polaris/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "kubernetes-polaris"; - version = "8.5.0"; + version = "8.5.1"; src = fetchFromGitHub { owner = "FairwindsOps"; repo = "polaris"; rev = version; - sha256 = "sha256-Xn3NZxZ2aMEgI8XnrPNjNkt8aTQ95brYcdJO2ba3L14="; + sha256 = "sha256-cfasYaZvUF5Ptc/BDVhafQ8wP6FA5msY+2IaeqmOvD8="; }; vendorHash = "sha256-ZWetW+Xar4BXXlR0iG+O/NRqYk41x+PPVCGis2W2Nkk="; From fb5b92dcf8f8d1a45bac7f44144305c6cbeae75a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Sep 2023 15:18:04 +0200 Subject: [PATCH 50/73] python311Packages.pydiscovergy: init at 2.0.3 --- .../python-modules/pydiscovergy/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/pydiscovergy/default.nix diff --git a/pkgs/development/python-modules/pydiscovergy/default.nix b/pkgs/development/python-modules/pydiscovergy/default.nix new file mode 100644 index 000000000000..31ef680c85c2 --- /dev/null +++ b/pkgs/development/python-modules/pydiscovergy/default.nix @@ -0,0 +1,59 @@ +{ lib +, authlib +, buildPythonPackage +, dataclasses-json +, fetchFromGitHub +, httpx +, marshmallow +, pytest-httpx +, poetry-core +, pytestCheckHook +, pythonOlder +, pytz +, respx +}: + +buildPythonPackage rec { + pname = "pydiscovergy"; + version = "2.0.3"; + format = "pyproject"; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "jpbede"; + repo = "pydiscovergy"; + rev = "refs/tags/${version}"; + hash = "sha256-iE80r9xXDI01gG0S9zhWsLSdVLQo2R4A5Ktnccsetzk="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + authlib + dataclasses-json + httpx + marshmallow + pytz + ]; + + nativeCheckInputs = [ + pytest-httpx + pytestCheckHook + respx + ]; + + pythonImportsCheck = [ + "pydiscovergy" + ]; + + meta = with lib; { + description = "Async Python 3 library for interacting with the Discovergy API"; + homepage = "https://github.com/jpbede/pydiscovergy"; + changelog = "https://github.com/jpbede/pydiscovergy/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 22fecaea0e4a..d7e54f7cb3ef 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9018,6 +9018,8 @@ self: super: with self; { pydiscourse = callPackage ../development/python-modules/pydiscourse { }; + pydiscovergy = callPackage ../development/python-modules/pydiscovergy { }; + pydispatcher = callPackage ../development/python-modules/pydispatcher { }; pydmd = callPackage ../development/python-modules/pydmd { }; From 8d4a1b0941b48cc4f3438209c58a4d040537fa1a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 23:06:44 +0200 Subject: [PATCH 51/73] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 78829b1b0014..3e4ebd91cbc0 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -826,7 +826,8 @@ nextcord ]; "discovergy" = ps: with ps; [ - ]; # missing inputs: pydiscovergy + pydiscovergy + ]; "dlib_face_detect" = ps: with ps; [ face-recognition ]; @@ -5011,6 +5012,7 @@ "dialogflow" "directv" "discord" + "discovergy" "dlna_dmr" "dlna_dms" "dnsip" From 6f50091de76f06c63fe74fc401069c60cae64c53 Mon Sep 17 00:00:00 2001 From: revol-xut Date: Thu, 31 Aug 2023 21:50:33 +0200 Subject: [PATCH 52/73] nixos/listmonk: fixing datatype of options --- nixos/modules/services/mail/listmonk.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/mail/listmonk.nix b/nixos/modules/services/mail/listmonk.nix index 251362fdd89d..11b2a5186229 100644 --- a/nixos/modules/services/mail/listmonk.nix +++ b/nixos/modules/services/mail/listmonk.nix @@ -54,7 +54,7 @@ let smtp = mkOption { type = listOf (submodule { - freeformType = with types; attrsOf (oneOf [ str int bool ]); + freeformType = with types; attrsOf anything; options = { enabled = mkEnableOption (lib.mdDoc "this SMTP server for listmonk"); @@ -86,7 +86,7 @@ let # TODO: refine this type based on the smtp one. "bounce.mailboxes" = mkOption { type = listOf - (submodule { freeformType = with types; oneOf [ str int bool ]; }); + (submodule { freeformType = with types; listOf (attrsOf anything); }); default = [ ]; description = lib.mdDoc "List of bounce mailboxes"; }; From 1bacce1fdf3efc0f1e2e3426d1d54ac8e3bcae0b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Sep 2023 16:07:00 +0200 Subject: [PATCH 53/73] python311Packages.python-roborock: 0.32.4 -> 0.33.2 Diff: https://github.com/humbertogontijo/python-roborock/compare/refs/tags/v0.32.4...v0.33.2 Changelog: https://github.com/humbertogontijo/python-roborock/blob/v0.33.2/CHANGELOG.md --- pkgs/development/python-modules/python-roborock/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-roborock/default.nix b/pkgs/development/python-modules/python-roborock/default.nix index 5eb3b19afe06..a8e019ce88b7 100644 --- a/pkgs/development/python-modules/python-roborock/default.nix +++ b/pkgs/development/python-modules/python-roborock/default.nix @@ -20,7 +20,7 @@ buildPythonPackage rec { pname = "python-roborock"; - version = "0.32.4"; + version = "0.33.2"; format = "pyproject"; disabled = pythonOlder "3.10"; @@ -29,7 +29,7 @@ buildPythonPackage rec { owner = "humbertogontijo"; repo = "python-roborock"; rev = "refs/tags/v${version}"; - hash = "sha256-tZ0nyjARqXDffDOBTsGQ1iZSzzkMToUENb+NwhJ7xY4="; + hash = "sha256-UAQlKfh6oljeWtEGYx7JiT1z9yFCAXRSlI4Ot6JUnoQ="; }; pythonRelaxDeps = [ From a1abee0758440a5ba542f1f1466792b6b78a5739 Mon Sep 17 00:00:00 2001 From: John Hamelink Date: Sat, 9 Sep 2023 15:09:26 +0100 Subject: [PATCH 54/73] Fix mujs dylib on Darwin --- pkgs/applications/video/mpv/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 057b9874162a..afc0733458d9 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -225,6 +225,9 @@ in stdenv'.mkDerivation (finalAttrs: { # See the explanation in addOpenGLRunpath. postFixup = lib.optionalString stdenv.isLinux '' addOpenGLRunpath $out/bin/mpv + '' + lib.optionalString (stdenv.isDarwin && javascriptSupport) '' + ${stdenv.cc.targetPrefix}install_name_tool -change "build/release/libmujs.dylib" \ + "${mujs}/lib/libmujs.dylib" $out/bin/mpv ''; passthru = { From df8e73951466837fa0faca15078a90e606746683 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 9 Sep 2023 10:17:03 -0400 Subject: [PATCH 55/73] typstfmt: 0.2.1 -> 0.2.2 Diff: https://github.com/astrale-sharp/typstfmt/compare/0.2.1...0.2.2 Changelog: https://github.com/astrale-sharp/typstfmt/blob/0.2.2/CHANGELOG.md --- pkgs/tools/typesetting/typstfmt/Cargo.lock | 4 ++-- pkgs/tools/typesetting/typstfmt/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/typesetting/typstfmt/Cargo.lock b/pkgs/tools/typesetting/typstfmt/Cargo.lock index 5cc5d755f21b..c4123f470f46 100644 --- a/pkgs/tools/typesetting/typstfmt/Cargo.lock +++ b/pkgs/tools/typesetting/typstfmt/Cargo.lock @@ -504,7 +504,7 @@ dependencies = [ [[package]] name = "typstfmt" -version = "0.2.1" +version = "0.2.2" dependencies = [ "lexopt", "typstfmt_lib", @@ -512,7 +512,7 @@ dependencies = [ [[package]] name = "typstfmt_lib" -version = "0.2.1" +version = "0.2.2" dependencies = [ "globmatch", "insta", diff --git a/pkgs/tools/typesetting/typstfmt/default.nix b/pkgs/tools/typesetting/typstfmt/default.nix index 2a2fb16d8478..46298a0761e4 100644 --- a/pkgs/tools/typesetting/typstfmt/default.nix +++ b/pkgs/tools/typesetting/typstfmt/default.nix @@ -2,13 +2,13 @@ rustPlatform.buildRustPackage rec { pname = "typstfmt"; - version = "0.2.1"; + version = "0.2.2"; src = fetchFromGitHub { owner = "astrale-sharp"; repo = "typstfmt"; rev = version; - hash = "sha256-cxiT8QVioZ7cGdkxsa8ampwNBWcdpAu4fO1ijfviHhI="; + hash = "sha256-y6uXWKG3npgxIfZeou7Xs8/zqjIFB4BvciDmAJIXw78="; }; cargoLock = { From 73ccde3dbce16c9fbd2c0028bb1a18e9df97cb38 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 9 Sep 2023 10:19:28 -0400 Subject: [PATCH 56/73] cargo-hack: 0.6.5 -> 0.6.6 Diff: https://diff.rs/cargo-hack/0.6.5/0.6.6 Changelog: https://github.com/taiki-e/cargo-hack/blob/v0.6.6/CHANGELOG.md --- pkgs/development/tools/rust/cargo-hack/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-hack/default.nix b/pkgs/development/tools/rust/cargo-hack/default.nix index 507ec3a71430..99a1610381e9 100644 --- a/pkgs/development/tools/rust/cargo-hack/default.nix +++ b/pkgs/development/tools/rust/cargo-hack/default.nix @@ -2,14 +2,14 @@ rustPlatform.buildRustPackage rec { pname = "cargo-hack"; - version = "0.6.5"; + version = "0.6.6"; src = fetchCrate { inherit pname version; - sha256 = "sha256-loGQTCi6lTNB/jn47fvWTqKr01p4xRqyq+Y02a/UwSc="; + sha256 = "sha256-yLxWV9/e+0IAe4z11i+wwNb6yUehzQwV+EYCe3Z1MOM="; }; - cargoSha256 = "sha256-gk/0aTMlUWYKfJJ9CfTvYLTZ6/ShIRuhpywhuwFHD5E="; + cargoSha256 = "sha256-/Za1T+HYI7mmKQHn7qm1d6hqh1qyp9DAOOMi32Tev9g="; # some necessary files are absent in the crate version doCheck = false; From c8883bd0b785ddb2638175fd3697b0cff5690771 Mon Sep 17 00:00:00 2001 From: Stig Palmquist Date: Sat, 9 Sep 2023 14:18:43 +0200 Subject: [PATCH 57/73] perldevel: add throwing alias Add throw explaining that `perldevel` has been dropped due to not being regularly updated in nixpkgs, and because devel versions of perl are not consistently supported by perl-cross releases. --- pkgs/top-level/aliases.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index d34e5e3fd7c0..95041195aaa1 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1305,6 +1305,8 @@ mapAliases ({ percona-server = percona-server56; # Added 2022-11-01 percona-server56 = throw "'percona-server56' has been dropped due to lack of maintenance, no upstream support and security issues"; # Added 2022-11-01 percona-xtrabackup_2_4 = throw "'percona-xtrabackup_2_4' has been renamed to/replaced by 'percona-xtrabackup'"; # Added 2022-12-23 + perldevel = throw "'perldevel' has been dropped due to lack of updates in nixpkgs and lack of consistent support for devel versions by 'perl-cross' releases, use 'perl' instead"; + perldevelPackages = perldevel; perlXMLParser = throw "'perlXMLParser' has been renamed to/replaced by 'perlPackages.XMLParser'"; # Converted to throw 2022-02-22 perlArchiveCpio = throw "'perlArchiveCpio' has been renamed to/replaced by 'perlPackages.ArchiveCpio'"; # Converted to throw 2022-02-22 pgadmin = pgadmin4; From 154ba6c2430db3c1dc5cfeea71a179d660ce5fcd Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sun, 13 Aug 2023 15:28:06 +0200 Subject: [PATCH 58/73] wipeout-rewrite: init at unstable-2023-08-13 --- pkgs/games/wipeout-rewrite/default.nix | 71 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 75 insertions(+) create mode 100644 pkgs/games/wipeout-rewrite/default.nix diff --git a/pkgs/games/wipeout-rewrite/default.nix b/pkgs/games/wipeout-rewrite/default.nix new file mode 100644 index 000000000000..16703fad517b --- /dev/null +++ b/pkgs/games/wipeout-rewrite/default.nix @@ -0,0 +1,71 @@ +{ stdenv +, lib +, fetchFromGitHub +, makeWrapper +, Foundation +, glew +, SDL2 +, writeShellScript +}: + +let + datadir = "\"\${XDG_DATA_HOME:-$HOME/.local/share}\"/wipeout-rewrite"; + datadirCheck = writeShellScript "wipeout-rewrite-check-datadir.sh" '' + datadir=${datadir} + + if [ ! -d "$datadir" ]; then + echo "[Wrapper] Creating data directory $datadir" + mkdir -p "$datadir" + fi + + echo "[Wrapper] Remember to put your game assets into $datadir/wipeout if you haven't done so yet!" + echo "[Wrapper] Check https://github.com/phoboslab/wipeout-rewrite#running for the required format." + ''; +in +stdenv.mkDerivation (finalAttrs: { + pname = "wipeout-rewrite"; + version = "unstable-2023-08-13"; + + src = fetchFromGitHub { + owner = "phoboslab"; + repo = "wipeout-rewrite"; + rev = "7a9f757a79d5c6806252cc1268bda5cdef463e23"; + hash = "sha256-21IG9mZPGgRhVkT087G+Bz/zLkknkHKGmWjSpcLw8vE="; + }; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + makeWrapper + ]; + + buildInputs = [ + glew + SDL2 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + Foundation + ]; + + installPhase = '' + runHook preInstall + + install -Dm755 wipegame $out/bin/wipegame + + # I can't get --chdir to not expand the bash variables in datadir at build time (so they point to /homeless-shelter) + # or put them inside single quotes (breaking the expansion at runtime) + wrapProgram $out/bin/wipegame \ + --run '${datadirCheck}' \ + --run 'cd ${datadir}' + + runHook postInstall + ''; + + meta = with lib; { + mainProgram = "wipegame"; + description = "A re-implementation of the 1995 PSX game wipEout"; + homepage = "https://github.com/phoboslab/wipeout-rewrite"; + license = licenses.unfree; + maintainers = with maintainers; [ OPNA2608 ]; + platforms = platforms.all; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c498c4bf3498..900277fc29fb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -37541,6 +37541,10 @@ with pkgs; shipwright = callPackage ../games/shipwright { }; + wipeout-rewrite = callPackage ../games/wipeout-rewrite { + inherit (darwin.apple_sdk.frameworks) Foundation; + }; + ### GAMES/DOOM-PORTS dhewm3 = callPackage ../games/doom-ports/dhewm3 { }; From a49eb940a293f5ff3660d422ce1de00c41518338 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Thu, 7 Sep 2023 20:11:12 -0300 Subject: [PATCH 59/73] zig: reword setup hook - Move the huge comment from setup-hook.sh to hook.nix - Prefix zig in the echoCmd calls --- pkgs/development/compilers/zig/hook.nix | 20 +++++++++++++++ pkgs/development/compilers/zig/setup-hook.sh | 26 +++----------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/pkgs/development/compilers/zig/hook.nix b/pkgs/development/compilers/zig/hook.nix index 788c432591ee..0c099a4c0d11 100644 --- a/pkgs/development/compilers/zig/hook.nix +++ b/pkgs/development/compilers/zig/hook.nix @@ -9,6 +9,26 @@ makeSetupHook { propagatedBuildInputs = [ zig ]; substitutions = { + # This zig_default_flags below is meant to avoid CPU feature impurity in + # Nixpkgs. However, this flagset is "unstable": it is specifically meant to + # be controlled by the upstream development team - being up to that team + # exposing or not that flags to the outside (especially the package manager + # teams). + + # Because of this hurdle, @andrewrk from Zig Software Foundation proposed + # some solutions for this issue. Hopefully they will be implemented in + # future releases of Zig. When this happens, this flagset should be + # revisited accordingly. + + # Below are some useful links describing the discovery process of this 'bug' + # in Nixpkgs: + + # https://github.com/NixOS/nixpkgs/issues/169461 + # https://github.com/NixOS/nixpkgs/issues/185644 + # https://github.com/NixOS/nixpkgs/pull/197046 + # https://github.com/NixOS/nixpkgs/pull/241741#issuecomment-1624227485 + # https://github.com/ziglang/zig/issues/14281#issuecomment-1624220653 + zig_default_flags = let releaseType = diff --git a/pkgs/development/compilers/zig/setup-hook.sh b/pkgs/development/compilers/zig/setup-hook.sh index f84a02a3268c..689ebec8a307 100644 --- a/pkgs/development/compilers/zig/setup-hook.sh +++ b/pkgs/development/compilers/zig/setup-hook.sh @@ -1,25 +1,5 @@ # shellcheck shell=bash disable=SC2154,SC2086 -# This readonly zigDefaultBuildFlagsArray below is meant to avoid CPU feature -# impurity in Nixpkgs. However, this flagset is "unstable": it is specifically -# meant to be controlled by the upstream development team - being up to that -# team exposing or not that flags to the outside (especially the package manager -# teams). - -# Because of this hurdle, @andrewrk from Zig Software Foundation proposed some -# solutions for this issue. Hopefully they will be implemented in future -# releases of Zig. When this happens, this flagset should be revisited -# accordingly. - -# Below are some useful links describing the discovery process of this 'bug' in -# Nixpkgs: - -# https://github.com/NixOS/nixpkgs/issues/169461 -# https://github.com/NixOS/nixpkgs/issues/185644 -# https://github.com/NixOS/nixpkgs/pull/197046 -# https://github.com/NixOS/nixpkgs/pull/241741#issuecomment-1624227485 -# https://github.com/ziglang/zig/issues/14281#issuecomment-1624220653 - readonly zigDefaultFlagsArray=(@zig_default_flags@) function zigSetGlobalCacheDir { @@ -35,7 +15,7 @@ function zigBuildPhase { $zigBuildFlags "${zigBuildFlagsArray[@]}" ) - echoCmd 'build flags' "${flagsArray[@]}" + echoCmd 'zig build flags' "${flagsArray[@]}" zig build "${flagsArray[@]}" runHook postBuild @@ -49,7 +29,7 @@ function zigCheckPhase { $zigCheckFlags "${zigCheckFlagsArray[@]}" ) - echoCmd 'check flags' "${flagsArray[@]}" + echoCmd 'zig check flags' "${flagsArray[@]}" zig build test "${flagsArray[@]}" runHook postCheck @@ -69,7 +49,7 @@ function zigInstallPhase { flagsArray+=("${prefixKey:---prefix}" "$prefix") fi - echoCmd 'install flags' "${flagsArray[@]}" + echoCmd 'zig install flags' "${flagsArray[@]}" zig build install "${flagsArray[@]}" runHook postInstall From 1b75ac310a4fba9e8245a23760bd796f103eb851 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Thu, 7 Sep 2023 20:15:21 -0300 Subject: [PATCH 60/73] doc/hooks/zig.section.md: reword - Refer to stdenv documentation instead of repeating it --- doc/hooks/zig.section.md | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/doc/hooks/zig.section.md b/doc/hooks/zig.section.md index 483fd285f416..8178866f44c9 100644 --- a/doc/hooks/zig.section.md +++ b/doc/hooks/zig.section.md @@ -29,31 +29,35 @@ stdenv.mkDerivation { ## Variables controlling zig.hook {#variables-controlling-zig-hook} -### `dontUseZigBuild` {#dontUseZigBuild} +### `zig.hook` Exclusive Variables {#zigHookExclusiveVariables} + +The variables below are exclusive to `zig.hook`. + +#### `dontUseZigBuild` {#dontUseZigBuild} Disables using `zigBuildPhase`. -### `zigBuildFlags` {#zigBuildFlags} - -Controls the flags passed to the build phase. - -### `dontUseZigCheck` {#dontUseZigCheck} +#### `dontUseZigCheck` {#dontUseZigCheck} Disables using `zigCheckPhase`. -### `zigCheckFlags` {#zigCheckFlags} - -Controls the flags passed to the check phase. - -### `dontUseZigInstall` {#dontUseZigInstall} +#### `dontUseZigInstall` {#dontUseZigInstall} Disables using `zigInstallPhase`. -### `zigInstallFlags` {#zigInstallFlags} +### Similar variables {#similarVariables} -Controls the flags passed to the install phase. +The following variables are similar to their `stdenv.mkDerivation` counterparts. + +| `zig.hook` Variable | `stdenv.mkDerivation` Counterpart | +|---------------------|-----------------------------------| +| `zigBuildFlags` | `buildFlags` | +| `zigCheckFlags` | `checkFlags` | +| `zigInstallFlags` | `installFlags` | ### Variables honored by zig.hook {#variables-honored-by-zig-hook} +The following variables commonly used by `stdenv.mkDerivation` are honored by `zig.hook`. + - `prefixKey` - `dontAddPrefix` From bd374243c08040fba0897727d05e05f08145fdf2 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 3 Sep 2023 23:01:22 +0200 Subject: [PATCH 61/73] npmHooks: use adjacent packages, not buildPackages Hooks are essentially implemented as special shell packages that run on their respective host platform. When they are used, they appear as nativeBuildInputs (as they need to be executed as part of the build of a package using them) so are taken from buildPackages relative to the derivation using them. Since the override in buildNpmPackage nullifies splicing, we take npmHooks from buildPackages manually. Fixes pkgsCross.ghcjs.buildPackages.emscripten and thus pkgsCross.ghcjs.haskellPackages.ghc. --- .../node/build-npm-package/default.nix | 9 ++++++-- .../node/build-npm-package/hooks/default.nix | 23 +++++++++++++------ 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/pkgs/build-support/node/build-npm-package/default.nix b/pkgs/build-support/node/build-npm-package/default.nix index 0a988cbbaf3f..7cfc0e9f9c0a 100644 --- a/pkgs/build-support/node/build-npm-package/default.nix +++ b/pkgs/build-support/node/build-npm-package/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchNpmDeps, npmHooks, nodejs }: +{ lib, stdenv, fetchNpmDeps, buildPackages, nodejs }: { name ? "${args.pname}-${args.version}" , src ? null @@ -44,7 +44,12 @@ let hash = npmDepsHash; }; - inherit (npmHooks.override { inherit nodejs; }) npmConfigHook npmBuildHook npmInstallHook; + # .override {} negates splicing, so we need to use buildPackages explicitly + npmHooks = buildPackages.npmHooks.override { + inherit nodejs; + }; + + inherit (npmHooks) npmConfigHook npmBuildHook npmInstallHook; in stdenv.mkDerivation (args // { inherit npmDeps npmBuildScript; diff --git a/pkgs/build-support/node/build-npm-package/hooks/default.nix b/pkgs/build-support/node/build-npm-package/hooks/default.nix index 3f2b0adf1668..36f0319e3d23 100644 --- a/pkgs/build-support/node/build-npm-package/hooks/default.nix +++ b/pkgs/build-support/node/build-npm-package/hooks/default.nix @@ -1,4 +1,13 @@ -{ lib, makeSetupHook, nodejs, srcOnly, buildPackages, makeWrapper }: +{ lib +, srcOnly +, makeSetupHook +, makeWrapper +, nodejs +, jq +, prefetch-npm-deps +, diffutils +, installShellFiles +}: { npmConfigHook = makeSetupHook @@ -6,13 +15,13 @@ name = "npm-config-hook"; substitutions = { nodeSrc = srcOnly nodejs; - nodeGyp = "${buildPackages.nodejs}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"; + nodeGyp = "${nodejs}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"; # Specify `diff`, `jq`, and `prefetch-npm-deps` by abspath to ensure that the user's build # inputs do not cause us to find the wrong binaries. - diff = "${buildPackages.diffutils}/bin/diff"; - jq = "${buildPackages.jq}/bin/jq"; - prefetchNpmDeps = "${buildPackages.prefetch-npm-deps}/bin/prefetch-npm-deps"; + diff = "${diffutils}/bin/diff"; + jq = "${jq}/bin/jq"; + prefetchNpmDeps = "${prefetch-npm-deps}/bin/prefetch-npm-deps"; nodeVersion = nodejs.version; nodeVersionMajor = lib.versions.major nodejs.version; @@ -27,13 +36,13 @@ npmInstallHook = makeSetupHook { name = "npm-install-hook"; - propagatedBuildInputs = with buildPackages; [ + propagatedBuildInputs = [ installShellFiles makeWrapper ]; substitutions = { hostNode = "${nodejs}/bin/node"; - jq = "${buildPackages.jq}/bin/jq"; + jq = "${jq}/bin/jq"; }; } ./npm-install-hook.sh; } From 27b3d6221184faa0157c3917b1f57b4f9485f276 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Sat, 9 Sep 2023 18:19:13 +0200 Subject: [PATCH 62/73] nix-doc: 0.6.0 -> 0.6.2 NixCon edition: "wow these ctags could use to be sorted better". So they now sort a = x first before inherit a; --- pkgs/tools/package-management/nix-doc/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/package-management/nix-doc/default.nix b/pkgs/tools/package-management/nix-doc/default.nix index 2166184eb6da..2d0815e8af9b 100644 --- a/pkgs/tools/package-management/nix-doc/default.nix +++ b/pkgs/tools/package-management/nix-doc/default.nix @@ -2,13 +2,13 @@ rustPlatform.buildRustPackage rec { pname = "nix-doc"; - version = "0.6.0"; + version = "0.6.2"; src = fetchFromGitHub { rev = "v${version}"; owner = "lf-"; repo = "nix-doc"; - sha256 = "sha256-1y4BSdKgsV4WLcaNICVh5rac1ZAtZxFM3BlhL2g/AcI="; + sha256 = "sha256-H81U0gR/7oWjP1z7JC8tTek+tqzTwyJWgaJQOSyNn5M="; }; doCheck = true; @@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec { RUSTFLAGS = "-Z relro-level=partial"; }; - cargoSha256 = "sha256-nP03WnXBcwazAi6nVe17CpDSeUxmG84BFFMA5ueey3M="; + cargoSha256 = "sha256-yYVDToPLhGUYLrPNyyKwsYXe3QOTR26wtl3SCw4Za5s="; meta = with lib; { description = "An interactive Nix documentation tool"; From 217407ff80823443c43db637dcd41461b913bd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 3 Sep 2023 16:30:37 +0200 Subject: [PATCH 63/73] tts: fix patching pyproject constraints --- pkgs/tools/audio/tts/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/audio/tts/default.nix b/pkgs/tools/audio/tts/default.nix index 6b2863213829..860909582354 100644 --- a/pkgs/tools/audio/tts/default.nix +++ b/pkgs/tools/audio/tts/default.nix @@ -41,9 +41,15 @@ python.pkgs.buildPythonApplication rec { in '' sed -r -i \ ${lib.concatStringsSep "\n" (map (package: - ''-e 's/${package}.*[<>=]+.*/${package}/g' \'' + ''-e 's/${package}\s*[<>=]+.+/${package}/g' \'' ) relaxedConstraints)} requirements.txt + + sed -r -i \ + ${lib.concatStringsSep "\n" (map (package: + ''-e 's/${package}\s*[<>=]+[^"]+/${package}/g' \'' + ) relaxedConstraints)} + pyproject.toml # only used for notebooks and visualization sed -r -i -e '/umap-learn/d' requirements.txt ''; From f8df5ffdfe8e416c320704b908bb92ca58fd5873 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Wed, 30 Aug 2023 00:04:56 +0200 Subject: [PATCH 64/73] nixos/tt-rss: fix and significantly simplify database setup the schema files referenced in the current preStart are empty. other ones exist, but don't apply cleanly either. calling update.php with --update-schema works for initial setup and updates. if the database schema is already up to date, it's idempotent. --- nixos/modules/services/web-apps/tt-rss.nix | 44 ++-------------------- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/nixos/modules/services/web-apps/tt-rss.nix b/nixos/modules/services/web-apps/tt-rss.nix index 3102e6a46953..592ab253f7da 100644 --- a/nixos/modules/services/web-apps/tt-rss.nix +++ b/nixos/modules/services/web-apps/tt-rss.nix @@ -595,47 +595,9 @@ let tt-rss = { description = "Tiny Tiny RSS feeds update daemon"; - preStart = let - callSql = e: - if cfg.database.type == "pgsql" then '' - ${optionalString (cfg.database.password != null) "PGPASSWORD=${cfg.database.password}"} \ - ${optionalString (cfg.database.passwordFile != null) "PGPASSWORD=$(cat ${cfg.database.passwordFile})"} \ - ${config.services.postgresql.package}/bin/psql \ - -U ${cfg.database.user} \ - ${optionalString (cfg.database.host != null) "-h ${cfg.database.host} --port ${toString dbPort}"} \ - -c '${e}' \ - ${cfg.database.name}'' - - else if cfg.database.type == "mysql" then '' - echo '${e}' | ${config.services.mysql.package}/bin/mysql \ - -u ${cfg.database.user} \ - ${optionalString (cfg.database.password != null) "-p${cfg.database.password}"} \ - ${optionalString (cfg.database.host != null) "-h ${cfg.database.host} -P ${toString dbPort}"} \ - ${cfg.database.name}'' - - else ""; - - in (optionalString (cfg.database.type == "pgsql") '' - exists=$(${callSql "select count(*) > 0 from pg_tables where tableowner = user"} \ - | tail -n+3 | head -n-2 | sed -e 's/[ \n\t]*//') - - if [ "$exists" == 'f' ]; then - ${callSql "\\i ${pkgs.tt-rss}/schema/ttrss_schema_${cfg.database.type}.sql"} - else - echo 'The database contains some data. Leaving it as it is.' - fi; - '') - - + (optionalString (cfg.database.type == "mysql") '' - exists=$(${callSql "select count(*) > 0 from information_schema.tables where table_schema = schema()"} \ - | tail -n+2 | sed -e 's/[ \n\t]*//') - - if [ "$exists" == '0' ]; then - ${callSql "\\. ${pkgs.tt-rss}/schema/ttrss_schema_${cfg.database.type}.sql"} - else - echo 'The database contains some data. Leaving it as it is.' - fi; - ''); + preStart = '' + ${pkgs.php81}/bin/php ${cfg.root}/www/update.php --update-schema + ''; serviceConfig = { User = "${cfg.user}"; From c439cbc78f3134a90cffda009fe21c68913b2902 Mon Sep 17 00:00:00 2001 From: Leandro Reina Date: Thu, 24 Aug 2023 13:56:12 +0200 Subject: [PATCH 65/73] python311Packages.dronecan: init at 1.0.25 --- .../python-modules/dronecan/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/dronecan/default.nix diff --git a/pkgs/development/python-modules/dronecan/default.nix b/pkgs/development/python-modules/dronecan/default.nix new file mode 100644 index 000000000000..51e7265725a4 --- /dev/null +++ b/pkgs/development/python-modules/dronecan/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "dronecan"; + version = "1.0.25"; + format = "setuptools"; + disabled = pythonOlder "3.3"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-0WKmVZwE6OgBckWWvPcn5BYqXMEt6Mr1P68UMHfRp4I="; + }; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "dronecan" + ]; + + meta = with lib; { + description = "Python implementation of the DroneCAN v1 protocol stack"; + longDescription = '' + DroneCAN is a lightweight protocol designed for reliable communication in aerospace and robotic applications via CAN bus. + ''; + homepage = "https://dronecan.github.io/"; + license = licenses.mit; + maintainers = [ teams.ororatech ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d7e54f7cb3ef..55993c603fef 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3220,6 +3220,8 @@ self: super: with self; { drms = callPackage ../development/python-modules/drms { }; + dronecan = callPackage ../development/python-modules/dronecan { }; + dropbox = callPackage ../development/python-modules/dropbox { }; ds-store = callPackage ../development/python-modules/ds-store { }; From 96942dd1d5589026d338fd257eb72e5fec09ec7e Mon Sep 17 00:00:00 2001 From: Ember Keske Date: Tue, 1 Aug 2023 16:08:54 +0200 Subject: [PATCH 66/73] camunda-modeler: init at 5.13.0 --- .../misc/camunda-modeler/default.nix | 71 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 73 insertions(+) create mode 100644 pkgs/applications/misc/camunda-modeler/default.nix diff --git a/pkgs/applications/misc/camunda-modeler/default.nix b/pkgs/applications/misc/camunda-modeler/default.nix new file mode 100644 index 000000000000..634e62e9eced --- /dev/null +++ b/pkgs/applications/misc/camunda-modeler/default.nix @@ -0,0 +1,71 @@ +{ stdenv +, lib +, fetchurl +, electron +, makeWrapper +, makeDesktopItem +, copyDesktopItems +}: + +stdenvNoCC.mkDerivation rec { + pname = "camunda-modeler"; + version = "5.13.0"; + + src = fetchurl { + url = "https://github.com/camunda/camunda-modeler/releases/download/v${version}/camunda-modeler-${version}-linux-x64.tar.gz"; + hash = "sha256-/9Af/1ZP2Hkc0PP9yXObNDNmxe6riBNWSv+JaM7O5Vs="; + }; + sourceRoot = "camunda-modeler-${version}-linux-x64"; + + dontConfigure = true; + dontBuild = true; + + nativeBuildInputs = [ + makeWrapper + copyDesktopItems + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin $out/share/${pname} + cp -a {locales,resources} $out/share/${pname} + install -Dm644 support/mime-types.xml $out/share/mime/packages/${pname}.xml + + for SIZE in 16 48 128; do + install -D -m0644 support/icon_''${SIZE}.png "$out/share/icons/hicolor/''${SIZE}x''${SIZE}/apps/${pname}.png" + done + + runHook postInstall + ''; + + postFixup = '' + makeWrapper ${electron}/bin/electron $out/bin/${pname} \ + --add-flags $out/share/${pname}/resources/app.asar + ''; + + desktopItems = [ + (makeDesktopItem { + name = pname; + exec = pname; + desktopName = "Camunda Modeler"; + icon = pname; + keywords = [ "bpmn" "cmmn" "dmn" "form" "modeler" "camunda"]; + genericName = "Process Modeling Tool"; + comment = meta.description; + mimeTypes = [ "application/bpmn" "application/cmmn" "application/dmn" "application/camunda-form" ]; + extraConfig = { + X-Ayatana-Desktop-Shortcuts = "NewWindow;RepositoryBrowser"; + }; + }) + ]; + + meta = with lib; { + homepage = "https://github.com/camunda/camunda-modeler"; + description = "An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io"; + maintainers = with maintainers; [ n0emis ]; + license = licenses.mit; + inherit (electron.meta) platforms; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d3ea833d6bc8..3195506e719d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -413,6 +413,8 @@ with pkgs; c64-debugger = callPackage ../applications/emulators/c64-debugger { }; + camunda-modeler = callPackage ../applications/misc/camunda-modeler { }; + caroline = callPackage ../development/libraries/caroline { }; cartridges = callPackage ../applications/misc/cartridges { }; From 6c3d0cbadba5c9bc8ed5fd21984cef8a14f1b310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 9 Sep 2023 19:40:26 +0200 Subject: [PATCH 67/73] camunda-modeler: fix eval sorry!!!! --- pkgs/applications/misc/camunda-modeler/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/camunda-modeler/default.nix b/pkgs/applications/misc/camunda-modeler/default.nix index 634e62e9eced..e42f022df7f2 100644 --- a/pkgs/applications/misc/camunda-modeler/default.nix +++ b/pkgs/applications/misc/camunda-modeler/default.nix @@ -1,4 +1,4 @@ -{ stdenv +{ stdenvNoCC , lib , fetchurl , electron From df68d342c94a37dde126cfe909d69c24871f47c9 Mon Sep 17 00:00:00 2001 From: hexchen Date: Mon, 2 Nov 2020 19:24:40 +0000 Subject: [PATCH 68/73] linuxPackages.decklink: init at 12.0a14 --- pkgs/os-specific/linux/decklink/default.nix | 63 +++++++++++++++++++++ pkgs/top-level/linux-kernels.nix | 2 + 2 files changed, 65 insertions(+) create mode 100644 pkgs/os-specific/linux/decklink/default.nix diff --git a/pkgs/os-specific/linux/decklink/default.nix b/pkgs/os-specific/linux/decklink/default.nix new file mode 100644 index 000000000000..de06ad748a1e --- /dev/null +++ b/pkgs/os-specific/linux/decklink/default.nix @@ -0,0 +1,63 @@ +{ stdenv, lib, requireFile, fetchpatch, kernel }: + +stdenv.mkDerivation rec { + pname = "decklink"; + version = "12.0a14"; + + src = requireFile { + name = "Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}.tar.gz"; + url = "https://www.blackmagicdesign.com/support/download/76b2edbed5884e1dbbfea104071f1643/Linux"; + sha256 = "e5a586ee705513cf5e6b024e1ec68621ab91d50b370981023e0bff73a19169c2"; + }; + + patches = [ + (fetchpatch { + name = "01-fix-get_user_pages.patch"; + url = "https://aur.archlinux.org/cgit/aur.git/plain/01-fix-get_user_pages.patch?h=decklink&id=212ec426d96db3de0fedad803238d0604cc4df76"; + sha256 = "193199d59kmwdajhyw9k98636lbxrxwnxwlbhhijp1qms6y1qn2j"; + }) + (fetchpatch { + name = "02-fix-have_unlocked_ioctl.patch"; + url = "https://aur.archlinux.org/cgit/aur.git/plain/02-fix-have_unlocked_ioctl.patch?h=decklink&id=212ec426d96db3de0fedad803238d0604cc4df76"; + sha256 = "0yf3bwry28zr1yfnx6wyh650d8kac4q70x95kz4p7sr6r7ajwzdm"; + }) + ]; + + KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; + INSTALL_MOD_PATH = placeholder "out"; + + nativeBuildInputs = kernel.moduleBuildDependencies; + + postUnpack = '' + tar xf Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}/other/${stdenv.hostPlatform.uname.processor}/desktopvideo-${version}-${stdenv.hostPlatform.uname.processor}.tar.gz + moduleRoot=$NIX_BUILD_TOP/desktopvideo-${version}-${stdenv.hostPlatform.uname.processor}/usr/src + ''; + + + buildPhase = '' + runHook preBuild + + make -C $moduleRoot/blackmagic-${version} -j$NIX_BUILD_CORES + make -C $moduleRoot/blackmagic-io-${version} -j$NIX_BUILD_CORES + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + make -C $KERNELDIR M=$moduleRoot/blackmagic-${version} modules_install + make -C $KERNELDIR M=$moduleRoot/blackmagic-io-${version} modules_install + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://www.blackmagicdesign.com/support/family/capture-and-playback"; + maintainers = [ maintainers.hexchen ]; + license = licenses.unfree; + description = "Kernel module for the Blackmagic Design Decklink cards"; + sourceProvenance = with lib.sourceTypes; [ binaryFirmware ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/linux-kernels.nix b/pkgs/top-level/linux-kernels.nix index 6a276557d027..96c95c819f6a 100644 --- a/pkgs/top-level/linux-kernels.nix +++ b/pkgs/top-level/linux-kernels.nix @@ -339,6 +339,8 @@ in { dddvb = callPackage ../os-specific/linux/dddvb { }; + decklink = callPackage ../os-specific/linux/decklink { }; + digimend = callPackage ../os-specific/linux/digimend { }; dpdk-kmods = callPackage ../os-specific/linux/dpdk-kmods { }; From 517cf05cd73e7ee399ac49e55c1049167af978ee Mon Sep 17 00:00:00 2001 From: hexchen Date: Mon, 2 Nov 2020 19:25:33 +0000 Subject: [PATCH 69/73] blackmagicDesktopVideo: init at 12.0a14 --- .../blackmagic-desktop-video/default.nix | 54 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/tools/video/blackmagic-desktop-video/default.nix diff --git a/pkgs/tools/video/blackmagic-desktop-video/default.nix b/pkgs/tools/video/blackmagic-desktop-video/default.nix new file mode 100644 index 000000000000..453628cae509 --- /dev/null +++ b/pkgs/tools/video/blackmagic-desktop-video/default.nix @@ -0,0 +1,54 @@ +{ stdenv, requireFile, lib, + libcxx, libcxxabi +}: + +stdenv.mkDerivation rec { + pname = "blackmagic-desktop-video"; + version = "12.0a14"; + + buildInputs = [ + libcxx libcxxabi + ]; + + src = requireFile { + name = "Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}.tar.gz"; + url = "https://www.blackmagicdesign.com/support/download/76b2edbed5884e1dbbfea104071f1643/Linux"; + sha256 = "e5a586ee705513cf5e6b024e1ec68621ab91d50b370981023e0bff73a19169c2"; + }; + + postUnpack = '' + tar xf Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}/other/${stdenv.hostPlatform.uname.processor}/desktopvideo-${version}-${stdenv.hostPlatform.uname.processor}.tar.gz + unpacked=$NIX_BUILD_TOP/desktopvideo-${version}-${stdenv.hostPlatform.uname.processor} + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/{bin,share/doc,lib/systemd/system} + cp -r $unpacked/usr/share/doc/desktopvideo $out/share/doc + cp $unpacked/usr/lib/*.so $out/lib + cp $unpacked/usr/lib/systemd/system/DesktopVideoHelper.service $out/lib/systemd/system + ln -s ${libcxx}/lib/* ${libcxxabi}/lib/* $out/lib + cp $unpacked/usr/lib/blackmagic/DesktopVideo/libgcc_s.so.1 $out/lib/ + cp $unpacked/usr/lib/blackmagic/DesktopVideo/DesktopVideoHelper $out/bin/ + + substituteInPlace $out/lib/systemd/system/DesktopVideoHelper.service --replace "/usr/lib/blackmagic/DesktopVideo/DesktopVideoHelper" "$out/bin/DesktopVideoHelper" + + runHook postInstall + ''; + + + postFixup = '' + patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \ + --set-rpath "$out/lib:${lib.makeLibraryPath [ libcxx libcxxabi ]}" \ + $out/bin/DesktopVideoHelper + ''; + + meta = with lib; { + homepage = "https://www.blackmagicdesign.com/support/family/capture-and-playback"; + maintainers = [ maintainers.hexchen ]; + license = licenses.unfree; + description = "Supporting applications for Blackmagic Decklink. Doesn't include the desktop applications, only the helper required to make the driver work"; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3195506e719d..e8fc010f7e7b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3535,6 +3535,8 @@ with pkgs; bkyml = callPackage ../tools/misc/bkyml { }; + blackmagic-desktop-video = callPackage ../tools/video/blackmagic-desktop-video { }; + blockbench-electron = callPackage ../applications/graphics/blockbench-electron { }; blocksat-cli = with python3Packages; toPythonApplication blocksat-cli; From 15db31b2d9b113dae91768637152407de3537f66 Mon Sep 17 00:00:00 2001 From: hexchen Date: Mon, 2 Nov 2020 19:26:11 +0000 Subject: [PATCH 70/73] nixos/decklink: init --- nixos/modules/hardware/decklink.nix | 16 ++++++++++++++++ nixos/modules/module-list.nix | 1 + 2 files changed, 17 insertions(+) create mode 100644 nixos/modules/hardware/decklink.nix diff --git a/nixos/modules/hardware/decklink.nix b/nixos/modules/hardware/decklink.nix new file mode 100644 index 000000000000..d179e1d7634f --- /dev/null +++ b/nixos/modules/hardware/decklink.nix @@ -0,0 +1,16 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.hardware.decklink; + kernelPackages = config.boot.kernelPackages; +in +{ + options.hardware.decklink.enable = lib.mkEnableOption "hardware support for the Blackmagic Design Decklink audio/video interfaces"; + + config = lib.mkIf cfg.enable { + boot.kernelModules = [ "blackmagic" "blackmagic-io" "snd_blackmagic-io" ]; + boot.extraModulePackages = [ kernelPackages.decklink ]; + systemd.packages = [ pkgs.blackmagic-desktop-video ]; + systemd.services.DesktopVideoHelper.wantedBy = [ "multi-user.target" ]; + }; +} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 58987313a0a2..018b9b6b44c5 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -55,6 +55,7 @@ ./hardware/cpu/amd-sev.nix ./hardware/cpu/intel-microcode.nix ./hardware/cpu/intel-sgx.nix + ./hardware/decklink.nix ./hardware/device-tree.nix ./hardware/digitalbitbox.nix ./hardware/flipperzero.nix From 59271ebaa548aa2c95d14afc166c10e16de336a8 Mon Sep 17 00:00:00 2001 From: hexchen Date: Sun, 28 Nov 2021 15:22:36 +0000 Subject: [PATCH 71/73] decklink: update to 12.2 --- pkgs/os-specific/linux/decklink/default.nix | 19 +++---------------- .../blackmagic-desktop-video/default.nix | 6 +++--- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/pkgs/os-specific/linux/decklink/default.nix b/pkgs/os-specific/linux/decklink/default.nix index de06ad748a1e..8d0d167bc7f5 100644 --- a/pkgs/os-specific/linux/decklink/default.nix +++ b/pkgs/os-specific/linux/decklink/default.nix @@ -2,27 +2,14 @@ stdenv.mkDerivation rec { pname = "decklink"; - version = "12.0a14"; + version = "12.2a12"; src = requireFile { name = "Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}.tar.gz"; - url = "https://www.blackmagicdesign.com/support/download/76b2edbed5884e1dbbfea104071f1643/Linux"; - sha256 = "e5a586ee705513cf5e6b024e1ec68621ab91d50b370981023e0bff73a19169c2"; + url = "https://www.blackmagicdesign.com/support/download/33abc1034cd54cf99101f9acd2edd93d/Linux"; + sha256 = "62954a18b60d9040aa4a959dff30ac9c260218ef78d6a63cbb243788f7abc05f"; }; - patches = [ - (fetchpatch { - name = "01-fix-get_user_pages.patch"; - url = "https://aur.archlinux.org/cgit/aur.git/plain/01-fix-get_user_pages.patch?h=decklink&id=212ec426d96db3de0fedad803238d0604cc4df76"; - sha256 = "193199d59kmwdajhyw9k98636lbxrxwnxwlbhhijp1qms6y1qn2j"; - }) - (fetchpatch { - name = "02-fix-have_unlocked_ioctl.patch"; - url = "https://aur.archlinux.org/cgit/aur.git/plain/02-fix-have_unlocked_ioctl.patch?h=decklink&id=212ec426d96db3de0fedad803238d0604cc4df76"; - sha256 = "0yf3bwry28zr1yfnx6wyh650d8kac4q70x95kz4p7sr6r7ajwzdm"; - }) - ]; - KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; INSTALL_MOD_PATH = placeholder "out"; diff --git a/pkgs/tools/video/blackmagic-desktop-video/default.nix b/pkgs/tools/video/blackmagic-desktop-video/default.nix index 453628cae509..48e16d3b94b6 100644 --- a/pkgs/tools/video/blackmagic-desktop-video/default.nix +++ b/pkgs/tools/video/blackmagic-desktop-video/default.nix @@ -4,7 +4,7 @@ stdenv.mkDerivation rec { pname = "blackmagic-desktop-video"; - version = "12.0a14"; + version = "12.2a12"; buildInputs = [ libcxx libcxxabi @@ -12,8 +12,8 @@ stdenv.mkDerivation rec { src = requireFile { name = "Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}.tar.gz"; - url = "https://www.blackmagicdesign.com/support/download/76b2edbed5884e1dbbfea104071f1643/Linux"; - sha256 = "e5a586ee705513cf5e6b024e1ec68621ab91d50b370981023e0bff73a19169c2"; + url = "https://www.blackmagicdesign.com/support/download/33abc1034cd54cf99101f9acd2edd93d/Linux"; + sha256 = "62954a18b60d9040aa4a959dff30ac9c260218ef78d6a63cbb243788f7abc05f"; }; postUnpack = '' From 08f93ba684b32e8cf4df1848b038370f0d0d3fc6 Mon Sep 17 00:00:00 2001 From: hexchen Date: Thu, 3 Aug 2023 19:44:16 +0000 Subject: [PATCH 72/73] decklink: update to 12.5 --- pkgs/os-specific/linux/decklink/default.nix | 16 ++-- .../blackmagic-desktop-video/default.nix | 86 +++++++++++++++---- 2 files changed, 78 insertions(+), 24 deletions(-) diff --git a/pkgs/os-specific/linux/decklink/default.nix b/pkgs/os-specific/linux/decklink/default.nix index 8d0d167bc7f5..63bfe4a63af2 100644 --- a/pkgs/os-specific/linux/decklink/default.nix +++ b/pkgs/os-specific/linux/decklink/default.nix @@ -1,14 +1,16 @@ -{ stdenv, lib, requireFile, fetchpatch, kernel }: +{ stdenv +, lib +, blackmagic-desktop-video +, kernel +}: stdenv.mkDerivation rec { pname = "decklink"; - version = "12.2a12"; - src = requireFile { - name = "Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}.tar.gz"; - url = "https://www.blackmagicdesign.com/support/download/33abc1034cd54cf99101f9acd2edd93d/Linux"; - sha256 = "62954a18b60d9040aa4a959dff30ac9c260218ef78d6a63cbb243788f7abc05f"; - }; + # the download is a horrible curl mess. we reuse it between the kernel module + # and desktop service, since the version of the two have to match anyways. + # See pkgs/tools/video/blackmagic-desktop-video/default.nix for more. + inherit (blackmagic-desktop-video) src version; KERNELDIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; INSTALL_MOD_PATH = placeholder "out"; diff --git a/pkgs/tools/video/blackmagic-desktop-video/default.nix b/pkgs/tools/video/blackmagic-desktop-video/default.nix index 48e16d3b94b6..dc6f2eff7873 100644 --- a/pkgs/tools/video/blackmagic-desktop-video/default.nix +++ b/pkgs/tools/video/blackmagic-desktop-video/default.nix @@ -1,20 +1,78 @@ -{ stdenv, requireFile, lib, - libcxx, libcxxabi +{ stdenv +, cacert +, curl +, runCommandLocal +, lib +, autoPatchelfHook +, libcxx +, libcxxabi +, libGL +, gcc7 }: stdenv.mkDerivation rec { pname = "blackmagic-desktop-video"; - version = "12.2a12"; + version = "12.5a15"; buildInputs = [ - libcxx libcxxabi + autoPatchelfHook + libcxx + libcxxabi + libGL + gcc7.cc.lib ]; - src = requireFile { - name = "Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}.tar.gz"; - url = "https://www.blackmagicdesign.com/support/download/33abc1034cd54cf99101f9acd2edd93d/Linux"; - sha256 = "62954a18b60d9040aa4a959dff30ac9c260218ef78d6a63cbb243788f7abc05f"; - }; + # yes, the below download function is an absolute mess. + # blame blackmagicdesign. + src = runCommandLocal "${pname}-${lib.versions.majorMinor version}-src.tar.gz" + rec { + outputHashMode = "recursive"; + outputHashAlgo = "sha256"; + outputHash = "sha256-ss7Ab5dy7cmXp9LBirFXMeGY4ZbYHvWnXmYvNeBq0RY="; + + impureEnvVars = lib.fetchers.proxyImpureEnvVars; + + nativeBuildInputs = [ curl ]; + + # ENV VARS + SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; + + # from the URL that the POST happens to, see browser console + DOWNLOADID = "fecacc0f9b2f4c2e8bf2863e9e26c8e1"; + # from the URL the download page where you click the "only download" button is at + REFERID = "052d944af6744608b27da496dfc4396d"; + SITEURL = "https://www.blackmagicdesign.com/api/register/us/download/${DOWNLOADID}"; + + USERAGENT = builtins.concatStringsSep " " [ + "User-Agent: Mozilla/5.0 (X11; Linux ${stdenv.targetPlatform.linuxArch})" + "AppleWebKit/537.36 (KHTML, like Gecko)" + "Chrome/77.0.3865.75" + "Safari/537.36" + ]; + + REQJSON = builtins.toJSON { + "country" = "nl"; + "downloadOnly" = true; + "platform" = "Linux"; + "policy" = true; + }; + + } '' + RESOLVEURL=$(curl \ + -s \ + -H "$USERAGENT" \ + -H 'Content-Type: application/json;charset=UTF-8' \ + -H "Referer: https://www.blackmagicdesign.com/support/download/$REFERID/Linux" \ + --data-ascii "$REQJSON" \ + --compressed \ + "$SITEURL") + + curl \ + --retry 3 --retry-delay 3 \ + --compressed \ + "$RESOLVEURL" \ + > $out + ''; postUnpack = '' tar xf Blackmagic_Desktop_Video_Linux_${lib.versions.majorMinor version}/other/${stdenv.hostPlatform.uname.processor}/desktopvideo-${version}-${stdenv.hostPlatform.uname.processor}.tar.gz @@ -28,8 +86,6 @@ stdenv.mkDerivation rec { cp -r $unpacked/usr/share/doc/desktopvideo $out/share/doc cp $unpacked/usr/lib/*.so $out/lib cp $unpacked/usr/lib/systemd/system/DesktopVideoHelper.service $out/lib/systemd/system - ln -s ${libcxx}/lib/* ${libcxxabi}/lib/* $out/lib - cp $unpacked/usr/lib/blackmagic/DesktopVideo/libgcc_s.so.1 $out/lib/ cp $unpacked/usr/lib/blackmagic/DesktopVideo/DesktopVideoHelper $out/bin/ substituteInPlace $out/lib/systemd/system/DesktopVideoHelper.service --replace "/usr/lib/blackmagic/DesktopVideo/DesktopVideoHelper" "$out/bin/DesktopVideoHelper" @@ -37,12 +93,8 @@ stdenv.mkDerivation rec { runHook postInstall ''; - - postFixup = '' - patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \ - --set-rpath "$out/lib:${lib.makeLibraryPath [ libcxx libcxxabi ]}" \ - $out/bin/DesktopVideoHelper - ''; + # i know this is ugly, but it's the cleanest way i found to tell the DesktopVideoHelper where to find its own library + appendRunpaths = [ "$ORIGIN/../lib" ]; meta = with lib; { homepage = "https://www.blackmagicdesign.com/support/family/capture-and-playback"; From 084dfe801e31dff372bcf424470ec0ae6dc07f38 Mon Sep 17 00:00:00 2001 From: hexchen Date: Fri, 4 Aug 2023 12:50:44 +0000 Subject: [PATCH 73/73] obs-studio: add flag for decklink support --- pkgs/applications/video/obs-studio/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index 1889d4354fdd..fd08ebb3bf0b 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -46,6 +46,8 @@ , nlohmann_json , websocketpp , asio +, decklinkSupport ? false +, blackmagic-desktop-video }: let @@ -134,9 +136,17 @@ stdenv.mkDerivation rec { ]; dontWrapGApps = true; - preFixup = '' + preFixup = let + wrapperLibraries = [ + xorg.libX11 + libvlc + libGL + ] ++ optionals decklinkSupport [ + blackmagic-desktop-video + ]; + in '' qtWrapperArgs+=( - --prefix LD_LIBRARY_PATH : "$out/lib:${lib.makeLibraryPath [ xorg.libX11 libvlc libGL ]}" + --prefix LD_LIBRARY_PATH : "$out/lib:${lib.makeLibraryPath wrapperLibraries}" ''${gappsWrapperArgs[@]} ) '';