From db30191b78bb3ad82a2edc268a3e372be6aa9887 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Tue, 10 May 2022 08:53:05 +0200 Subject: [PATCH 01/30] python3Packages.name-that-hash: init at 1.10 --- .../python-modules/name-that-hash/default.nix | 44 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/name-that-hash/default.nix diff --git a/pkgs/development/python-modules/name-that-hash/default.nix b/pkgs/development/python-modules/name-that-hash/default.nix new file mode 100644 index 00000000000..de073e502dc --- /dev/null +++ b/pkgs/development/python-modules/name-that-hash/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, click +, rich +}: + +buildPythonPackage rec { + pname = "name-that-hash"; + version = "1.10"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "HashPals"; + repo = pname; + rev = version; + hash = "sha256-3sddUPoC3NfKQzmNgqPf/uHaYN9VZBqsmV712uz1Phg="; + }; + + # TODO remove on next update which bumps rich + postPatch = '' + substituteInPlace pyproject.toml --replace 'rich = ">=9.9,<11.0"' 'rich = ">=9.9"' + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + click + rich + ]; + + pythonImportsCheck = [ "name_that_hash" ]; + + meta = with lib; { + longDescription = "Don't know what type of hash it is? Name That Hash will name that hash type! Identify MD5, SHA256 and 300+ other hashes."; + description = "Module and CLI for the identification of hashes"; + homepage = "https://github.com/HashPals/Name-That-Hash"; + license = with licenses; [ gpl3Plus ]; + maintainers = with maintainers; [ eyjhb ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c82544ce55b..6049bcabbd1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8660,6 +8660,8 @@ with pkgs; notable = callPackage ../applications/misc/notable { }; + nth = with python3Packages; toPythonApplication name-that-hash; + ntlmrecon = callPackage ../tools/security/ntlmrecon { }; numberstation = callPackage ../applications/misc/numberstation { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3fd57e228de..2fef28c24d7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5519,6 +5519,8 @@ in { names = callPackage ../development/python-modules/names { }; + name-that-hash = callPackage ../development/python-modules/name-that-hash { }; + nampa = callPackage ../development/python-modules/nampa { }; nanoleaf = callPackage ../development/python-modules/nanoleaf { }; From d33a05ab8962fa5653b0af25b46b2684bb2bf3a0 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Tue, 10 May 2022 09:53:04 +0100 Subject: [PATCH 02/30] dovecot: 2.3.18 -> 2.3.19 --- pkgs/servers/mail/dovecot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mail/dovecot/default.nix b/pkgs/servers/mail/dovecot/default.nix index 266bb0a383d..da4c2b04eb4 100644 --- a/pkgs/servers/mail/dovecot/default.nix +++ b/pkgs/servers/mail/dovecot/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { pname = "dovecot"; - version = "2.3.18"; + version = "2.3.19"; nativeBuildInputs = [ perl pkg-config ]; buildInputs = @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "https://dovecot.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.gz"; - hash = "sha256-Buc/ZoxsCTxFve7rfCA5irjcSTFyNPS1eBrF4sxdbDM="; + hash = "sha256:0ys3zq9b1rgj1cz6a0i9l421y6h2j3b5zak2ia5j9dj1sj9zcwq1"; }; enableParallelBuilding = true; From 20020f7c111c168f7a160e1454fc5ea3bf35486b Mon Sep 17 00:00:00 2001 From: ajs124 Date: Tue, 10 May 2022 09:54:17 +0100 Subject: [PATCH 03/30] dovecot_pigeonhole: 0.5.18 -> 0.5.19 --- pkgs/servers/mail/dovecot/plugins/pigeonhole/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mail/dovecot/plugins/pigeonhole/default.nix b/pkgs/servers/mail/dovecot/plugins/pigeonhole/default.nix index 3f1f2d270a3..c3f11bc14b2 100644 --- a/pkgs/servers/mail/dovecot/plugins/pigeonhole/default.nix +++ b/pkgs/servers/mail/dovecot/plugins/pigeonhole/default.nix @@ -3,11 +3,11 @@ let dovecotMajorMinor = lib.versions.majorMinor dovecot.version; in stdenv.mkDerivation rec { pname = "dovecot-pigeonhole"; - version = "0.5.18"; + version = "0.5.19"; src = fetchurl { url = "https://pigeonhole.dovecot.org/releases/${dovecotMajorMinor}/dovecot-${dovecotMajorMinor}-pigeonhole-${version}.tar.gz"; - hash = "sha256-ptgo+Nby3sulEFND7OXHplJFvZTkaorkQyptl1QxCKU="; + hash = "sha256:033kkhby9k9yrmgvlfmyzp8fccsw5bhq1dyvxj94sg3grkpj7f8h"; }; buildInputs = [ dovecot openssl ]; From 5eef62fc0b181fc2c3de2749de5332c6f0832040 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Wed, 11 May 2022 13:44:08 +0300 Subject: [PATCH 04/30] podman: 4.0.3 -> 4.1.0 --- pkgs/applications/virtualization/podman/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/podman/default.nix b/pkgs/applications/virtualization/podman/default.nix index 89568129918..8f9c1c1b774 100644 --- a/pkgs/applications/virtualization/podman/default.nix +++ b/pkgs/applications/virtualization/podman/default.nix @@ -17,13 +17,13 @@ buildGoModule rec { pname = "podman"; - version = "4.0.3"; + version = "4.1.0"; src = fetchFromGitHub { owner = "containers"; repo = "podman"; rev = "v${version}"; - sha256 = "sha256-o/CIs+3LnbaUUpOQI1hijrxH7f1qBnrQw56TJ18jKQw="; + sha256 = "sha256-3MR4ZhkhMLAK3KHu7JEV9z1/wlyCkxfx1i267TGxwt8="; }; vendorSha256 = null; From acce86078c84ae8e15ff3a1bcd86e43d7754e6f0 Mon Sep 17 00:00:00 2001 From: Christian Schmid Date: Wed, 11 May 2022 14:47:20 +0200 Subject: [PATCH 05/30] zammad: 5.1.0 -> 5.1.1 The update includes a fix for CVE-2022-29700 and CVE-2022-29701. --- .../networking/misc/zammad/default.nix | 2 +- .../networking/misc/zammad/gemset.nix | 31 +++++++++++++------ .../networking/misc/zammad/package.json | 2 +- .../networking/misc/zammad/source.json | 5 +-- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/networking/misc/zammad/default.nix b/pkgs/applications/networking/misc/zammad/default.nix index ca5e2222c8e..b7d5dbae760 100644 --- a/pkgs/applications/networking/misc/zammad/default.nix +++ b/pkgs/applications/networking/misc/zammad/default.nix @@ -21,7 +21,7 @@ let pname = "zammad"; - version = "5.1.0"; + version = "5.1.1"; src = applyPatches { diff --git a/pkgs/applications/networking/misc/zammad/gemset.nix b/pkgs/applications/networking/misc/zammad/gemset.nix index 2f9e77d4253..ceb3ef12958 100644 --- a/pkgs/applications/networking/misc/zammad/gemset.nix +++ b/pkgs/applications/networking/misc/zammad/gemset.nix @@ -664,10 +664,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "04vxmjr200akcil9fqxc9ghbb9q0lyrh2q03xxncycd5vln910fi"; + sha256 = "1pfk942d6qwhw151hxaz7n4knk6whyxqvvywdx2cdw9yhykyaqzq"; type = "gem"; }; - version = "6.2.0"; + version = "6.2.1"; }; factory_bot_rails = { dependencies = ["factory_bot" "railties"]; @@ -1452,10 +1452,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1p6b3q411h2mw4dsvhjrp1hh66hha5cm69fqg85vn2lizz71n6xz"; + sha256 = "1g43ii497cwdqhfnaxfl500bq5yfc5hfv5df1lvf6wcjnd708ihd"; type = "gem"; }; - version = "1.13.3"; + version = "1.13.4"; }; nori = { groups = ["default"]; @@ -1700,10 +1700,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "19mf9f5zx23cjjn0p77wz1igzpfr22mxhljgavffl8fwqq74v4ih"; + sha256 = "01ldw5ba6xfn2k97n75n52qs4f0fy8xmn58c4247xf476nfvg035"; type = "gem"; }; - version = "3.2.5"; + version = "3.2.6"; }; power_assert = { groups = ["default" "development" "test"]; @@ -1786,10 +1786,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1xvkz9xrd1cqnlm0qac1iwwxzndx3cc17zrjncpa4lzjfwbxhsnm"; + sha256 = "0df9bknc2dllk8v9fhgidzbvbryaxa8fgifrk40cdz9csjsphbky"; type = "gem"; }; - version = "4.3.11"; + version = "4.3.12"; }; pundit = { dependencies = ["activesupport"]; @@ -1833,6 +1833,17 @@ }; version = "2.2.3"; }; + rack-attack = { + dependencies = ["rack"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1rc6simyql7ax5zzp667x6krl0xxxh3asc1av6gcn8j6cyl86wsx"; + type = "gem"; + }; + version = "6.6.0"; + }; rack-livereload = { dependencies = ["rack"]; groups = ["development" "test"]; @@ -2273,10 +2284,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "134zg0dzd7216lyczkhv01v27ikkmipjihcy2bzi0qv72p1i923i"; + sha256 = "1wybcipkfawg4pragmayiig03xc084x3hbwywsh1dr9x9pa8f9hj"; type = "gem"; }; - version = "1.1.5"; + version = "1.1.6"; }; slack-notifier = { groups = ["default"]; diff --git a/pkgs/applications/networking/misc/zammad/package.json b/pkgs/applications/networking/misc/zammad/package.json index 00c22263200..28fd3fdf112 100644 --- a/pkgs/applications/networking/misc/zammad/package.json +++ b/pkgs/applications/networking/misc/zammad/package.json @@ -14,5 +14,5 @@ "stylelint-prettier": "^2.0.0" }, "name": "Zammad", - "version": "5.1.0" + "version": "5.1.1" } diff --git a/pkgs/applications/networking/misc/zammad/source.json b/pkgs/applications/networking/misc/zammad/source.json index 76e1321433f..03e8e1103b1 100644 --- a/pkgs/applications/networking/misc/zammad/source.json +++ b/pkgs/applications/networking/misc/zammad/source.json @@ -1,7 +1,8 @@ { "owner": "zammad", "repo": "zammad", - "rev": "eefae45c2ad6e6a96b8df631d2f50f290ecbd27d", - "sha256": "EjowvM//+UsAfEH9/0jgLkiD7EWH34M1NQ9U2DotBqc=", + "rev": "d71bd90ef964426230664cdfbaa2572325bfed4f", + "sha256": "yzDTkjnRBl71REtSKRblkanJWhj7gp/+exhWjxGCFWw=", "fetchSubmodules": true } + From 0d02ba8ffb2fd52fc8535c917992a88b7155595b Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 11 May 2022 11:24:56 -0700 Subject: [PATCH 06/30] emacsPackages.pdf-tools: fix build This is a temporary fix for #172178 --- .../editors/emacs/elisp-packages/melpa-packages.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index 7c481c6d977..39835c58b65 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -217,6 +217,12 @@ let flycheck-rtags = fix-rtags super.flycheck-rtags; pdf-tools = super.pdf-tools.overrideAttrs (old: { + # Temporary work around for: + # - https://github.com/vedang/pdf-tools/issues/102 + # - https://github.com/vedang/pdf-tools/issues/103 + # - https://github.com/vedang/pdf-tools/issues/109 + CXXFLAGS = "-std=c++17"; + nativeBuildInputs = [ pkgs.autoconf pkgs.automake From 7c8f0a3076e9e7757a7db046a48a34d296d6e014 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 May 2022 21:31:52 +0200 Subject: [PATCH 07/30] python39Packages.sentry-sdk: 1.5.11 -> 1.5.12 --- pkgs/development/python-modules/sentry-sdk/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index b368db45bf7..1a6c5c1418d 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -42,7 +42,7 @@ buildPythonPackage rec { pname = "sentry-sdk"; - version = "1.5.11"; + version = "1.5.12"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -51,7 +51,7 @@ buildPythonPackage rec { owner = "getsentry"; repo = "sentry-python"; rev = version; - hash = "sha256-2WN18hzOn/gomNvQNbm9R8CcxN6G1XxoodBHqsG6es0="; + hash = "sha256-8M0FWfvaGp74Fb+qJlhyiJPUVHN2ZdEleZf27d+bftE="; }; propagatedBuildInputs = [ From a0db18f052dc4104e60d44e662059a79caf070bf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 May 2022 23:30:27 +0200 Subject: [PATCH 08/30] python310Packages.python-rabbitair: init at 0.0.8 --- .../python-rabbitair/default.nix | 60 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/python-rabbitair/default.nix diff --git a/pkgs/development/python-modules/python-rabbitair/default.nix b/pkgs/development/python-modules/python-rabbitair/default.nix new file mode 100644 index 00000000000..7ebc98426d9 --- /dev/null +++ b/pkgs/development/python-modules/python-rabbitair/default.nix @@ -0,0 +1,60 @@ +{ lib +, buildPythonPackage +, cryptography +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, typing-extensions +, zeroconf +}: + +buildPythonPackage rec { + pname = "python-rabbitair"; + version = "0.0.8"; + format = "pyproject"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "rabbit-air"; + repo = pname; + rev = "v${version}"; + hash = "sha256-CGr7NvnGRNTiKq5BpB/zmfgyd/2ggTbO0nj+Q+MavTs="; + }; + + propagatedBuildInputs = [ + cryptography + zeroconf + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "rabbitair" + ]; + + disabledTests = [ + # Tests require network access + "test_info" + "test_no_response" + "test_protocol_error" + "test_sequential_requests" + "test_set_state" + "test_state_a2" + "test_state_a3" + "test_zeroconf" + ]; + + meta = with lib; { + description = "Module for the control of Rabbit Air air purifiers"; + homepage = "https://github.com/rabbit-air/python-rabbitair"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d6a95d90217..4fd36133f4e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8470,6 +8470,8 @@ in { python-rapidjson = callPackage ../development/python-modules/python-rapidjson { }; + python-rabbitair = callPackage ../development/python-modules/python-rabbitair { }; + python-redis-lock = callPackage ../development/python-modules/python-redis-lock { }; python-registry = callPackage ../development/python-modules/python-registry { }; From b54760df333ff2957075218d8c64784d0d08118d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 11 May 2022 23:43:08 +0200 Subject: [PATCH 09/30] checkov: 2.0.1132 -> 2.0.1136 --- pkgs/development/tools/analysis/checkov/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/analysis/checkov/default.nix b/pkgs/development/tools/analysis/checkov/default.nix index 50f4c1c004b..3c35544e9b3 100644 --- a/pkgs/development/tools/analysis/checkov/default.nix +++ b/pkgs/development/tools/analysis/checkov/default.nix @@ -32,13 +32,13 @@ with py.pkgs; buildPythonApplication rec { pname = "checkov"; - version = "2.0.1132"; + version = "2.0.1136"; src = fetchFromGitHub { owner = "bridgecrewio"; repo = pname; rev = version; - hash = "sha256-jy6a421lOfNGhxEuCOw+0JRD9RH7XJFP0dxhN0taKmk="; + hash = "sha256-J9ZY0Sy8XWSQ4l1uTeZq3PATVyHXs2tmX/VOUzZKak4="; }; nativeBuildInputs = with py.pkgs; [ From 73d152e6230812c80b8b859ff69c2e6ca88162ce Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Wed, 11 May 2022 21:44:51 +1000 Subject: [PATCH 10/30] podman: mark as broken on x86_64-darwin --- pkgs/applications/virtualization/podman/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/virtualization/podman/default.nix b/pkgs/applications/virtualization/podman/default.nix index 8f9c1c1b774..0c9ecf7e4d8 100644 --- a/pkgs/applications/virtualization/podman/default.nix +++ b/pkgs/applications/virtualization/podman/default.nix @@ -97,5 +97,8 @@ buildGoModule rec { changelog = "https://github.com/containers/podman/blob/v${version}/RELEASE_NOTES.md"; license = licenses.asl20; maintainers = with maintainers; [ marsam ] ++ teams.podman.members; + # requires >= 10.13 SDK https://github.com/NixOS/nixpkgs/issues/101229 + # Undefined symbols for architecture x86_64: "_utimensat" + broken = stdenv.isDarwin && stdenv.isx86_64; }; } From 98a2e49dd102663736d656724205f677a10598d1 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 12 May 2022 08:57:07 +1000 Subject: [PATCH 11/30] runc: 1.1.1 -> 1.1.2 https://github.com/opencontainers/runc/releases/tag/v1.1.2 --- pkgs/applications/virtualization/runc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/runc/default.nix b/pkgs/applications/virtualization/runc/default.nix index e295a51637a..dbe43457896 100644 --- a/pkgs/applications/virtualization/runc/default.nix +++ b/pkgs/applications/virtualization/runc/default.nix @@ -16,13 +16,13 @@ buildGoModule rec { pname = "runc"; - version = "1.1.1"; + version = "1.1.2"; src = fetchFromGitHub { owner = "opencontainers"; repo = "runc"; rev = "v${version}"; - sha256 = "sha256-6g2km+Y45INo2MTWMFFQFhfF8DAR5Su+YrJS8k3LYBY="; + sha256 = "sha256-tMneqB81w8lQp5RWWCjALyKbOY3xog+oqb6cYKasG/8="; }; vendorSha256 = null; From 9ee6f67f8464bbf08184564931f896a523abed52 Mon Sep 17 00:00:00 2001 From: "P. R. d. O" Date: Wed, 11 May 2022 18:10:45 -0600 Subject: [PATCH 12/30] python3Packages.atomman: disable python 3.10, disable failing tests As indicated on a comment, using pytestCheckHook does not work, so disabled tests need to be added --- pkgs/development/python-modules/atomman/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/atomman/default.nix b/pkgs/development/python-modules/atomman/default.nix index 7e1738ad33a..cdef83e999e 100644 --- a/pkgs/development/python-modules/atomman/default.nix +++ b/pkgs/development/python-modules/atomman/default.nix @@ -13,6 +13,7 @@ , pymatgen , pytest , pythonOlder +, pythonAtLeast , requests , scipy , toolz @@ -24,7 +25,7 @@ buildPythonPackage rec { pname = "atomman"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.6" || pythonAtLeast "3.10"; src = fetchFromGitHub { owner = "usnistgov"; @@ -57,8 +58,11 @@ buildPythonPackage rec { checkPhase = '' # pytestCheckHook doesn't work pytest tests -k "not test_rootdir and not test_version \ - and not test_atomic_mass and not imageflags" \ - --ignore tests/plot/test_interpolate.py + and not test_atomic_mass and not imageflags \ + and not test_build_unit and not test_set_and_get_in_units \ + and not test_set_literal and not test_scalar_model " \ + --ignore tests/plot/test_interpolate.py \ + --ignore tests/tools/test_vect_angle.py ''; pythonImportsCheck = [ From 17be6f75ce6cb42d7d4514c62f7e5907e5776e34 Mon Sep 17 00:00:00 2001 From: "P. R. d. O" Date: Wed, 11 May 2022 18:29:58 -0600 Subject: [PATCH 13/30] python3Packages.monosat: disable failing tests --- pkgs/applications/science/logic/monosat/default.nix | 9 ++++++++- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/logic/monosat/default.nix b/pkgs/applications/science/logic/monosat/default.nix index 1356c88d478..e49c80db9d6 100644 --- a/pkgs/applications/science/logic/monosat/default.nix +++ b/pkgs/applications/science/logic/monosat/default.nix @@ -65,7 +65,7 @@ let }; }; - python = { buildPythonPackage, cython }: buildPythonPackage { + python = { buildPythonPackage, cython, pytestCheckHook }: buildPythonPackage { inherit pname version src patches; propagatedBuildInputs = [ core cython ]; @@ -85,5 +85,12 @@ let substituteInPlace setup.py \ --replace 'library_dir = "../../../../"' 'library_dir = "${core}/lib/"' ''; + + checkInputs = [ pytestCheckHook ]; + + disabledTests = [ + "test_assertAtMostOne" + "test_assertEqual" + ]; }; in core diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 44f7328c6f9..3065d5a4d78 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5366,7 +5366,7 @@ in { monosat = pkgs.monosat.python { inherit buildPythonPackage; - inherit (self) cython; + inherit (self) cython pytestCheckHook; }; monotonic = callPackage ../development/python-modules/monotonic { }; From 3ad11bc20b69e0afa23d9d05c04158eb0c1c0c6d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 12 May 2022 01:08:29 +0000 Subject: [PATCH 14/30] python310Packages.eiswarnung: 1.0.0 -> 1.1.0 --- pkgs/development/python-modules/eiswarnung/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/eiswarnung/default.nix b/pkgs/development/python-modules/eiswarnung/default.nix index 87ff2a4287a..8bea9552b35 100644 --- a/pkgs/development/python-modules/eiswarnung/default.nix +++ b/pkgs/development/python-modules/eiswarnung/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "eiswarnung"; - version = "1.0.0"; + version = "1.1.0"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -20,8 +20,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "klaasnicolaas"; repo = "python-eiswarnung"; - rev = "v${version}"; - hash = "sha256-Cw/xRypErasdrOZJ/0dWLl4eYH01vBI9mYm98teIdRc="; + rev = "refs/tags/v${version}"; + hash = "sha256-fyxqVSZcbo/rrItad5ZTwmp4N8s0HGBdxvx3LBax/hc="; }; nativeBuildInputs = [ From 6875230170bc389de0110f35b5cb594b53cee2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 12 May 2022 01:32:02 +0000 Subject: [PATCH 15/30] python310Packages.rflink: disable failing test --- pkgs/development/python-modules/rflink/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/rflink/default.nix b/pkgs/development/python-modules/rflink/default.nix index c33d44f628f..fa6f44ef616 100644 --- a/pkgs/development/python-modules/rflink/default.nix +++ b/pkgs/development/python-modules/rflink/default.nix @@ -8,6 +8,7 @@ , pyserial-asyncio , setuptools , pytestCheckHook +, pythonAtLeast }: buildPythonPackage rec { @@ -34,6 +35,11 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [ + # https://github.com/aequitas/python-rflink/issues/65 + "tests/test_proxy.py" + ]; + postPatch = '' substituteInPlace setup.py \ --replace "version=version_from_git()" "version='${version}'" From c92ef7a135ddce27b294fe11b970f0d21bc9a152 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sat, 7 May 2022 22:31:56 -0400 Subject: [PATCH 16/30] nginx: build offline documentation --- pkgs/servers/http/nginx/generic.nix | 55 ++++++++++++++++++++++++- pkgs/servers/http/nginx/nginx-doc.patch | 29 +++++++++++++ 2 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 pkgs/servers/http/nginx/nginx-doc.patch diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index f6b91d77511..7bd7aaab681 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -1,4 +1,5 @@ { lib, stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt +, fetchhg , nixosTests , substituteAll, gd, geoip, perl @@ -16,6 +17,19 @@ , nginxVersion ? version , src ? null # defaults to upstream nginx ${version} , sha256 ? null # when not specifying src + +# Upstream maintains documentation (sources of https://nginx.org) in separate +# mercurial repository, which do not correspond to particular git commit, but at +# least has "introduced in version X.Y" comments. +# +# In other words, documentation does not necessary matches capabilities of +# $out/bin/nginx, but we have no better options. +, srcDoc ? fetchhg { + url = "https://hg.nginx.org/nginx.org"; + sha256 = "029n4mnmjw94h01qalmjgf1c2h3h7wm798xv5knk3padxiy4m28b"; + rev = "a3aee2697d4e"; + } +, extraPatchesDoc ? [ ./nginx-doc.patch ] , configureFlags ? [] , buildInputs ? [] , extraPatches ? [] @@ -23,6 +37,7 @@ , preConfigure ? "" , postInstall ? null , meta ? null +, nginx-doc ? outer.nginx-doc , passthru ? { tests = {}; } }: @@ -37,6 +52,31 @@ let if supports nginxVersion then mod.${attrPath} or [] else throw "Module at ${toString mod.src} does not support nginx version ${nginxVersion}!"); + # Output of this derivation is copied into $doc of resulting nginx to save on + # building time, since we have multiple nginx versions, but only one version + # of documentation. + # + # As such, this derivation never appears in user profile, so its name and + # compliance to conventions is not important. + documentation = stdenv.mkDerivation { + name = "nginx-doc"; + src = srcDoc; + patches = extraPatchesDoc; + nativeBuildInputs = [ libxslt libxml2 ]; + + # Generated documentation is not local-friendly, since it assumes that link to directory + # is the same as link to index.html in that directory, which is not how browsers behave + # with local filesystem. + # + # TODO: patch all relative links that do not end with .html. + + # /en subdirectory must exist, relative links expect it. + installPhase = '' + mkdir -p $out/share/doc/nginx + mv libxslt/en $out/share/doc/nginx + ''; + }; + in stdenv.mkDerivation { @@ -44,6 +84,8 @@ stdenv.mkDerivation { inherit version; inherit nginxVersion; + outputs = ["out" "doc"]; + src = if src != null then src else fetchurl { url = "https://nginx.org/download/nginx-${version}.tar.gz"; inherit sha256; @@ -114,8 +156,12 @@ stdenv.mkDerivation { configurePlatforms = []; - preConfigure = preConfigure - + concatMapStringsSep "\n" (mod: mod.preConfigure or "") modules; + # Disable _multioutConfig hook which adds --bindir=$out/bin into configureFlags, + # which breaks build, since nginx does not actually use autoconf. + preConfigure = '' + setOutputFlags= + '' + preConfigure + + concatMapStringsSep "\n" (mod: mod.preConfigure or "") modules; patches = map fixPatch ([ (substituteAll { @@ -145,6 +191,11 @@ stdenv.mkDerivation { enableParallelBuilding = true; + preInstall = '' + mkdir -p $doc + cp -r ${documentation}/* $doc + ''; + postInstall = if postInstall != null then postInstall else '' mv $out/sbin $out/bin ''; diff --git a/pkgs/servers/http/nginx/nginx-doc.patch b/pkgs/servers/http/nginx/nginx-doc.patch new file mode 100644 index 00000000000..c2f3f520c3d --- /dev/null +++ b/pkgs/servers/http/nginx/nginx-doc.patch @@ -0,0 +1,29 @@ +Kill google analytics from local documentation. + +diff -r bb0a2fbdc886 xslt/ga.xslt +--- a/xslt/ga.xslt Mon Apr 06 11:17:11 2020 +0100 ++++ b/xslt/ga.xslt Thu Apr 09 10:29:02 2020 -0400 +@@ -6,23 +6,6 @@ + + + +- +- +- + + + From aa9eb4509c2bb0c258f84d3d465096888c1e0565 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Sun, 8 May 2022 17:36:26 -0400 Subject: [PATCH 17/30] nginx-doc-unstable: init at 2022-05-05 Build documentation of nginx (which is maintained separately from webserver itself) and make it available both as "nginx-doc" attribute and as "doc" output of "nginx" derivation. --- pkgs/data/documentation/nginx-doc/default.nix | 40 +++++++++++++++++ .../nginx-doc/exclude-google-analytics.patch} | 0 pkgs/servers/http/nginx/generic.nix | 44 ++----------------- pkgs/top-level/all-packages.nix | 2 + 4 files changed, 45 insertions(+), 41 deletions(-) create mode 100644 pkgs/data/documentation/nginx-doc/default.nix rename pkgs/{servers/http/nginx/nginx-doc.patch => data/documentation/nginx-doc/exclude-google-analytics.patch} (100%) diff --git a/pkgs/data/documentation/nginx-doc/default.nix b/pkgs/data/documentation/nginx-doc/default.nix new file mode 100644 index 00000000000..c367912d6f9 --- /dev/null +++ b/pkgs/data/documentation/nginx-doc/default.nix @@ -0,0 +1,40 @@ +{ lib, stdenv, libxml2, libxslt, fetchhg }: + +# Upstream maintains documentation (sources of https://nginx.org) in separate +# mercurial repository, which do not correspond to particular git commit, but at +# least has "introduced in version X.Y" comments. +# +# In other words, documentation does not necessary matches capabilities of +# $out/bin/nginx, but we have no better options. +stdenv.mkDerivation { + pname = "nginx-doc-unstable"; + version = "2022-05-05"; + src = fetchhg { + url = "https://hg.nginx.org/nginx.org"; + rev = "a3aee2697d4e"; + sha256 = "029n4mnmjw94h01qalmjgf1c2h3h7wm798xv5knk3padxiy4m28b"; + }; + patches = [ ./exclude-google-analytics.patch ]; + nativeBuildInputs = [ libxslt libxml2 ]; + + # Generated documentation is not local-friendly, since it assumes that link to directory + # is the same as link to index.html in that directory, which is not how browsers behave + # with local filesystem. + # + # TODO: patch all relative links that do not end with .html. + + # /en subdirectory must exist, relative links expect it. + installPhase = '' + mkdir -p $out/share/doc/nginx + mv libxslt/en $out/share/doc/nginx + ''; + + meta = with lib; { + description = "A reverse proxy and lightweight webserver (documentation)"; + homepage = "https://nginx.org/"; + license = licenses.bsd2; + platforms = platforms.all; + priority = 6; + maintainers = with maintainers; [ kaction ]; + }; +} diff --git a/pkgs/servers/http/nginx/nginx-doc.patch b/pkgs/data/documentation/nginx-doc/exclude-google-analytics.patch similarity index 100% rename from pkgs/servers/http/nginx/nginx-doc.patch rename to pkgs/data/documentation/nginx-doc/exclude-google-analytics.patch diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 7bd7aaab681..e189a7d2fdf 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -1,5 +1,5 @@ -{ lib, stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt -, fetchhg +outer@{ lib, stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt +, nginx-doc , nixosTests , substituteAll, gd, geoip, perl @@ -17,19 +17,6 @@ , nginxVersion ? version , src ? null # defaults to upstream nginx ${version} , sha256 ? null # when not specifying src - -# Upstream maintains documentation (sources of https://nginx.org) in separate -# mercurial repository, which do not correspond to particular git commit, but at -# least has "introduced in version X.Y" comments. -# -# In other words, documentation does not necessary matches capabilities of -# $out/bin/nginx, but we have no better options. -, srcDoc ? fetchhg { - url = "https://hg.nginx.org/nginx.org"; - sha256 = "029n4mnmjw94h01qalmjgf1c2h3h7wm798xv5knk3padxiy4m28b"; - rev = "a3aee2697d4e"; - } -, extraPatchesDoc ? [ ./nginx-doc.patch ] , configureFlags ? [] , buildInputs ? [] , extraPatches ? [] @@ -52,31 +39,6 @@ let if supports nginxVersion then mod.${attrPath} or [] else throw "Module at ${toString mod.src} does not support nginx version ${nginxVersion}!"); - # Output of this derivation is copied into $doc of resulting nginx to save on - # building time, since we have multiple nginx versions, but only one version - # of documentation. - # - # As such, this derivation never appears in user profile, so its name and - # compliance to conventions is not important. - documentation = stdenv.mkDerivation { - name = "nginx-doc"; - src = srcDoc; - patches = extraPatchesDoc; - nativeBuildInputs = [ libxslt libxml2 ]; - - # Generated documentation is not local-friendly, since it assumes that link to directory - # is the same as link to index.html in that directory, which is not how browsers behave - # with local filesystem. - # - # TODO: patch all relative links that do not end with .html. - - # /en subdirectory must exist, relative links expect it. - installPhase = '' - mkdir -p $out/share/doc/nginx - mv libxslt/en $out/share/doc/nginx - ''; - }; - in stdenv.mkDerivation { @@ -193,7 +155,7 @@ stdenv.mkDerivation { preInstall = '' mkdir -p $doc - cp -r ${documentation}/* $doc + cp -r ${nginx-doc}/* $doc ''; postInstall = if postInstall != null then postInstall else '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 377656e0d2f..28075971a8c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21984,6 +21984,8 @@ with pkgs; nginx = nginxStable; + nginx-doc = callPackage ../data/documentation/nginx-doc { }; + nginxQuic = callPackage ../servers/http/nginx/quic.nix { zlib = zlib-ng.override { withZlibCompat = true; }; withPerl = false; From 1c5cd8bb2f3ac8ad96cde8672b00ca43f06ce57b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 12 May 2022 03:07:52 +0000 Subject: [PATCH 18/30] python310Packages.puremagic: 1.12 -> 1.13 --- pkgs/development/python-modules/puremagic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/puremagic/default.nix b/pkgs/development/python-modules/puremagic/default.nix index e5d91f38fa2..fbc1bd69370 100644 --- a/pkgs/development/python-modules/puremagic/default.nix +++ b/pkgs/development/python-modules/puremagic/default.nix @@ -6,14 +6,14 @@ buildPythonPackage rec { pname = "puremagic"; - version = "1.12"; + version = "1.13"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-jAuuwImSExc2KjD6yi6WeMkdXpfOAE3Gp8HGaeBUeDg="; + sha256 = "sha256-yaHw/pOqWLUtYoM3l/JB0JToLXdi04n0BSccRdbCVDw="; }; # test data not included on pypi From c02bee786b6349087df7a6b0e9ee07bb6d6ceafd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 12 May 2022 03:25:16 +0000 Subject: [PATCH 19/30] python310Packages.ftputil: 5.0.3 -> 5.0.4 --- pkgs/development/python-modules/ftputil/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ftputil/default.nix b/pkgs/development/python-modules/ftputil/default.nix index e9e445f11c3..4cb2fe442d3 100644 --- a/pkgs/development/python-modules/ftputil/default.nix +++ b/pkgs/development/python-modules/ftputil/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "ftputil"; - version = "5.0.3"; + version = "5.0.4"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-m4buZ8GYDOHYmxN1K8SLlJP+4GNJy0doKFlOduCPhIg="; + hash = "sha256-aInbhkndINm21ApsXw+EzPNAp9rB4L/A8AJAkPwq+zM="; }; checkInputs = [ From 407b7c551c4e9014bd8d4303a97a544672440b2a Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 12 May 2022 00:00:42 -0500 Subject: [PATCH 20/30] kdash: fix Darwin build The AppKit dependency needs to be added as a buildInput. --- pkgs/development/tools/kdash/default.nix | 7 +++++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/kdash/default.nix b/pkgs/development/tools/kdash/default.nix index 90bd304c87c..daa07f1ceed 100644 --- a/pkgs/development/tools/kdash/default.nix +++ b/pkgs/development/tools/kdash/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitHub , rustPlatform , pkg-config @@ -6,6 +7,7 @@ , python3 , openssl , xorg +, AppKit }: rustPlatform.buildRustPackage rec { @@ -21,7 +23,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ perl python3 pkg-config ]; - buildInputs = [ openssl xorg.xcbutil ]; + buildInputs = [ openssl xorg.xcbutil ] + ++ lib.optional stdenv.isDarwin AppKit; cargoSha256 = "0nb554y8r7gvw7ls6gnrg98xxbws0mc6zdsc6ss3p2x9z8xwx204"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e89aa5c04a8..1651b8ce85a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7397,7 +7397,9 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) AppKit; }; - kdash = callPackage ../development/tools/kdash { }; + kdash = callPackage ../development/tools/kdash { + inherit (darwin.apple_sdk.frameworks) AppKit; + }; kdbplus = pkgsi686Linux.callPackage ../applications/misc/kdbplus { }; From d9163e4a030cb0f637a2b6b2b879d6f4a72b68e7 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 12 May 2022 00:17:53 -0500 Subject: [PATCH 21/30] zsh-fzf-tab: fix Darwin build Old patch for Darwin is no longer needed, since the current version pulled in already includes it. --- pkgs/shells/zsh/zsh-fzf-tab/darwin.patch | 11 ----------- pkgs/shells/zsh/zsh-fzf-tab/default.nix | 2 -- 2 files changed, 13 deletions(-) delete mode 100644 pkgs/shells/zsh/zsh-fzf-tab/darwin.patch diff --git a/pkgs/shells/zsh/zsh-fzf-tab/darwin.patch b/pkgs/shells/zsh/zsh-fzf-tab/darwin.patch deleted file mode 100644 index 54b6ce26138..00000000000 --- a/pkgs/shells/zsh/zsh-fzf-tab/darwin.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff --git a/modules/Src/aloxaf/fzftab.c b/modules/Src/aloxaf/fzftab.c -index 60b6330..91975d8 100644 ---- a/modules/Src/aloxaf/fzftab.c -+++ b/modules/Src/aloxaf/fzftab.c -@@ -1,6 +1,5 @@ - #include "fzftab.mdh" - #include "fzftab.pro" --#include - #include - #include - #include diff --git a/pkgs/shells/zsh/zsh-fzf-tab/default.nix b/pkgs/shells/zsh/zsh-fzf-tab/default.nix index 029950b9bee..be12ec147d5 100644 --- a/pkgs/shells/zsh/zsh-fzf-tab/default.nix +++ b/pkgs/shells/zsh/zsh-fzf-tab/default.nix @@ -15,8 +15,6 @@ in stdenv.mkDerivation rec { buildInputs = [ ncurses ]; - patches = lib.optionals stdenv.isDarwin [ ./darwin.patch ]; - postConfigure = '' pushd modules ./configure --disable-gdbm --without-tcsetpgrp From 41b8306849138b19f1f06016c8a95b83e053b361 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 12 May 2022 05:32:45 +0000 Subject: [PATCH 22/30] python310Packages.google-cloud-pubsub: 2.12.0 -> 2.12.1 --- .../python-modules/google-cloud-pubsub/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-pubsub/default.nix b/pkgs/development/python-modules/google-cloud-pubsub/default.nix index 9ba7f9145e3..6871296a763 100644 --- a/pkgs/development/python-modules/google-cloud-pubsub/default.nix +++ b/pkgs/development/python-modules/google-cloud-pubsub/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "google-cloud-pubsub"; - version = "2.12.0"; + version = "2.12.1"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-5RoIpyVm/y2+6pN4mJPWHbVUwxH6yWI/vIuCVNJU2aw="; + hash = "sha256-mTphUjL61NwaE7vKDgeCv+0WeA15FNQzvnY/6fHZ/QU="; }; propagatedBuildInputs = [ From a061adc787c5a2eb371694eb4076b08ee36973e8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 12 May 2022 05:52:19 +0000 Subject: [PATCH 23/30] python310Packages.dash: 2.3.1 -> 2.4.1 --- pkgs/development/python-modules/dash/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/dash/default.nix b/pkgs/development/python-modules/dash/default.nix index dfae5ea249d..064c6f2b12f 100644 --- a/pkgs/development/python-modules/dash/default.nix +++ b/pkgs/development/python-modules/dash/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "dash"; - version = "2.3.1"; + version = "2.4.1"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -23,8 +23,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "plotly"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-gsP/WbALUkO3AB0uuX/ByhzaeIDSUUE1Cb8Cnh4GEh0="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-7B1LEcEgUGJ/gDCDD4oURqli8I5YTJo9jl7l4E1aLVQ="; }; propagatedBuildInputs = [ From 5d44c9a2223e4493e9bac4e5c57beb587530289f Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Tue, 10 May 2022 20:47:14 -0700 Subject: [PATCH 24/30] vhd2vl: fix the tests The testing scheme for vhd2vl is sensitive to subtle shifts in iverilog's parenthesization choices, meaning that the golden test outputs require constant maintenance. The patch previously applied in order to deal with this situation is no longer sufficient, so a patch which is sufficient has been added. Also, the `buildTargets` and `checkTarget` attributes have been set, so future benign failures of this sort can be dealt with through `doCheck=false` in a pinch. --- .../science/electronics/vhd2vl/default.nix | 16 +++++---- .../science/electronics/vhd2vl/test.patch | 35 +++++++++++++++++++ 2 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 pkgs/applications/science/electronics/vhd2vl/test.patch diff --git a/pkgs/applications/science/electronics/vhd2vl/default.nix b/pkgs/applications/science/electronics/vhd2vl/default.nix index f0dd990a35b..089ebb9bb19 100644 --- a/pkgs/applications/science/electronics/vhd2vl/default.nix +++ b/pkgs/applications/science/electronics/vhd2vl/default.nix @@ -1,6 +1,5 @@ { lib, stdenv , fetchFromGitHub -, fetchpatch , bison , flex , verilog @@ -19,12 +18,8 @@ stdenv.mkDerivation rec { }; patches = lib.optionals (!stdenv.isAarch64) [ - # fix build with verilog 11.0 - https://github.com/ldoolitt/vhd2vl/pull/15 - # for some strange reason, this is not needed for aarch64 - (fetchpatch { - url = "https://github.com/ldoolitt/vhd2vl/commit/ce9b8343ffd004dfe8779a309f4b5a594dbec45e.patch"; - sha256 = "1qaqhm2mk66spb2dir9n91b385rarglc067js1g6pcg8mg5v3hhf"; - }) + # fix build with verilog 11.0 + ./test.patch ]; nativeBuildInputs = [ @@ -37,6 +32,13 @@ stdenv.mkDerivation rec { verilog ]; + # the "translate" target both (a) builds the software and (b) runs + # the tests (without validating the results) + buildTargets = [ "translate" ]; + + # the "diff" target examines the test results + checkTarget = "diff"; + installPhase = '' runHook preInstall install -D -m755 src/vhd2vl $out/bin/vdh2vl diff --git a/pkgs/applications/science/electronics/vhd2vl/test.patch b/pkgs/applications/science/electronics/vhd2vl/test.patch new file mode 100644 index 00000000000..85b91964e39 --- /dev/null +++ b/pkgs/applications/science/electronics/vhd2vl/test.patch @@ -0,0 +1,35 @@ +--- a/translated_examples/fifo.v 1970-01-01 00:00:01.000000000 +0000 ++++ a/temp/verilog/fifo.v 2022-05-11 03:44:43.173604945 +0000 +@@ -107,7 +107,7 @@ + //--- Read address counter -------------- + //--------------------------------------- + assign add_RD_CE = (iempty == 1'b1) ? 1'b0 : (RD == 1'b0) ? 1'b0 : 1'b1; +- assign n_add_RD = (add_RD) + 4'h1; ++ assign n_add_RD = add_RD + 4'h1; + always @(posedge clk_RD, posedge rst) begin + if((rst == 1'b1)) begin + add_RD <= {5{1'b0}}; +diff -u '--exclude=Makefile' '--exclude-from=examples/exclude' translated_examples/test.v temp/verilog/test.v +--- a/translated_examples/test.v 1970-01-01 00:00:01.000000000 +0000 ++++ a/temp/verilog/test.v 2022-05-11 03:44:43.189604945 +0000 +@@ -125,7 +125,7 @@ + endcase + end + +- assign code1[1:0] = a[6:5] ^ ({a[4],b[6]}); ++ assign code1[1:0] = a[6:5] ^ {a[4],b[6]}; + // Asynch process + always @(we, addr, config1, bip) begin + if(we == 1'b1) begin +diff -u '--exclude=Makefile' '--exclude-from=examples/exclude' translated_examples/withselect.v temp/verilog/withselect.v +--- a/translated_examples/withselect.v 1970-01-01 00:00:01.000000000 +0000 ++++ a/temp/verilog/withselect.v 2022-05-11 03:44:43.193604945 +0000 +@@ -33,7 +33,7 @@ + endcase + end + +- assign code1[1:0] = a[6:5] ^ ({a[4],b[6]}); ++ assign code1[1:0] = a[6:5] ^ {a[4],b[6]}; + assign foo = {(((1 + 1))-((0))+1){1'b0}}; + assign egg = {78{1'b0}}; + assign baz = {(((bus_width * 4))-((bus_width * 3 - 1))+1){1'b1}}; From f51dc9526531f3438c96b569d6146877f794224f Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 11 May 2022 22:31:11 -0500 Subject: [PATCH 25/30] flatbuffers: remove version 1.12 It has not been updated upstream for over two years, and it is starting to become time consuming to maintain. --- .../libraries/flatbuffers/1.12.nix | 26 ------------------- .../development/libraries/flatbuffers/2.0.nix | 16 ------------ .../flatbuffers/{generic.nix => default.nix} | 19 +++++++++----- pkgs/top-level/aliases.nix | 2 ++ pkgs/top-level/all-packages.nix | 4 +-- 5 files changed, 15 insertions(+), 52 deletions(-) delete mode 100644 pkgs/development/libraries/flatbuffers/1.12.nix delete mode 100644 pkgs/development/libraries/flatbuffers/2.0.nix rename pkgs/development/libraries/flatbuffers/{generic.nix => default.nix} (67%) diff --git a/pkgs/development/libraries/flatbuffers/1.12.nix b/pkgs/development/libraries/flatbuffers/1.12.nix deleted file mode 100644 index 1ad490d3a01..00000000000 --- a/pkgs/development/libraries/flatbuffers/1.12.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ callPackage, fetchpatch, lib, stdenv }: - -callPackage ./generic.nix { - version = "1.12.0"; - sha256 = "0f7xd66vc1lzjbn7jzd5kyqrgxpsfxi4zc7iymhb5xrwyxipjl1g"; - - patches = [ - (fetchpatch { - # Fixed a compilation error with GCC 10.0 to 11.0. June 1, 2020. - # Should be included in the next release after 1.12.0 - url = "https://github.com/google/flatbuffers/commit/988164f6e1675bbea9c852e2d6001baf4d1fcf59.patch"; - sha256 = "0d8c2bywqmkhdi0a41cry85wy4j58pl0vd6h5xpfqm3fr8w0mi9s"; - excludes = [ "src/idl_gen_cpp.cpp" ]; - }) - (fetchpatch { - # Fixed a compilation error with GCC 10.0 to 11.0. July 6, 2020. - # Should be included in the next release after 1.12.0 - url = "https://github.com/google/flatbuffers/pull/6020/commits/44c7a4cf439b0a298720b5a448bcc243a882b0c9.patch"; - sha256 = "126xwkvnlc4ignjhxv9jygfd9j6kr1jx39hyk0ddpcmvzfqsccf4"; - }) - ]; - - preConfigure = lib.optionalString stdenv.buildPlatform.isDarwin '' - rm BUILD - ''; -} diff --git a/pkgs/development/libraries/flatbuffers/2.0.nix b/pkgs/development/libraries/flatbuffers/2.0.nix deleted file mode 100644 index 27b661ee090..00000000000 --- a/pkgs/development/libraries/flatbuffers/2.0.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ callPackage, fetchpatch }: - -callPackage ./generic.nix { - version = "2.0.0"; - sha256 = "1zbf6bdpps8369r1ql00irxrp58jnalycc8jcapb8iqg654vlfz8"; - - patches = [ - # Pull patch pending upstream inclustion for gcc-12 support: - # https://github.com/google/flatbuffers/pull/6946 - (fetchpatch { - name = "gcc-12.patch"; - url = "https://github.com/google/flatbuffers/commit/17d9f0c4cf47a9575b4f43a2ac33eb35ba7f9e3e.patch"; - sha256 = "0sksk47hi7camja9ppnjr88jfdgj0nxqxy8976qs1nx73zkgbpf9"; - }) - ]; -} diff --git a/pkgs/development/libraries/flatbuffers/generic.nix b/pkgs/development/libraries/flatbuffers/default.nix similarity index 67% rename from pkgs/development/libraries/flatbuffers/generic.nix rename to pkgs/development/libraries/flatbuffers/default.nix index c06dad87d95..a6eefe77c46 100644 --- a/pkgs/development/libraries/flatbuffers/generic.nix +++ b/pkgs/development/libraries/flatbuffers/default.nix @@ -1,25 +1,30 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake -, version -, sha256 -, patches ? [ ] -, preConfigure ? null }: stdenv.mkDerivation rec { pname = "flatbuffers"; - inherit version; + version = "2.0.0"; src = fetchFromGitHub { owner = "google"; repo = "flatbuffers"; rev = "v${version}"; - inherit sha256; + sha256 = "1zbf6bdpps8369r1ql00irxrp58jnalycc8jcapb8iqg654vlfz8"; }; - inherit patches preConfigure; + patches = [ + # Pull patch pending upstream inclustion for gcc-12 support: + # https://github.com/google/flatbuffers/pull/6946 + (fetchpatch { + name = "gcc-12.patch"; + url = "https://github.com/google/flatbuffers/commit/17d9f0c4cf47a9575b4f43a2ac33eb35ba7f9e3e.patch"; + sha256 = "0sksk47hi7camja9ppnjr88jfdgj0nxqxy8976qs1nx73zkgbpf9"; + }) + ]; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 38d1e796db4..d213a4b2a1f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -403,6 +403,8 @@ mapAliases ({ flashplayer-standalone = throw "flashplayer-standalone has been removed as Adobe Flash Player is now deprecated"; # Added 2021-02-07 flashplayer = throw "flashplayer has been removed as Adobe Flash Player is now deprecated"; # Added 2021-02-07 flashtool = throw "flashtool was removed from nixpkgs, because the download is down for copyright reasons and the site looks very fishy"; # Added 2021-06-31 + flatbuffers_1_12 = throw "FlatBuffers version 1.12 has been removed, because upstream no longer maintains it"; # Added 2022-05-12 + flatbuffers_2_0 = flatbuffers; # Added 2022-05-12 flink_1_5 = throw "flink_1_5 was removed, use flink instead"; # Added 2021-01-25 flutter-beta = throw "Non-stable versions of Flutter have been removed. You can use flutterPackages.mkFlutter to generate a package for other Flutter versions"; # Added 2020-01-15 flutter-dev = throw "Non-stable versions of Flutter have been removed. You can use flutterPackages.mkFlutter to generate a package for other Flutter versions"; # Added 2020-01-15 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e89aa5c04a8..982826f81fd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20135,9 +20135,7 @@ with pkgs; protozero = callPackage ../development/libraries/protozero { }; - flatbuffers = flatbuffers_2_0; - flatbuffers_2_0 = callPackage ../development/libraries/flatbuffers/2.0.nix { }; - flatbuffers_1_12 = callPackage ../development/libraries/flatbuffers/1.12.nix { }; + flatbuffers = callPackage ../development/libraries/flatbuffers { }; nanopb = callPackage ../development/libraries/nanopb { }; From 110ca8783810797ca4188850abd777a3dbd6b300 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 12 May 2022 10:23:13 +0200 Subject: [PATCH 26/30] python310Packages.dparse2: init at 0.6.1 --- .../python-modules/dparse2/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/dparse2/default.nix diff --git a/pkgs/development/python-modules/dparse2/default.nix b/pkgs/development/python-modules/dparse2/default.nix new file mode 100644 index 00000000000..d3b61574cf8 --- /dev/null +++ b/pkgs/development/python-modules/dparse2/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, toml +, pyyaml +, packaging +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "dparse2"; + version = "0.6.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "nexB"; + repo = pname; + rev = version; + hash = "sha256-1tbNW7Gy7gvMnETdAM2ahHiwbhG9qvdYZggia1+7eGo="; + }; + + propagatedBuildInputs = [ + toml + pyyaml + packaging + ]; + + checkInputs = [ + pytestCheckHook + ]; + + disabledTestPaths = [ + # Requries pipenv + "tests/test_parse.py" + ]; + + pythonImportsCheck = [ + "dparse2" + ]; + + meta = with lib; { + description = "Module to parse Python dependency files"; + homepage = "https://github.com/nexB/dparse2"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d6a95d90217..87336680358 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2512,6 +2512,8 @@ in { dparse = callPackage ../development/python-modules/dparse { }; + dparse2 = callPackage ../development/python-modules/dparse2 { }; + dpath = callPackage ../development/python-modules/dpath { }; dpkt = callPackage ../development/python-modules/dpkt { }; From b93f65a5f353531ecda1ea1ea958dcfd3d6e4b54 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 10 May 2022 21:56:49 +0300 Subject: [PATCH 27/30] linux-firmware: 20220310 -> 20220509 --- pkgs/os-specific/linux/firmware/linux-firmware/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/firmware/linux-firmware/default.nix b/pkgs/os-specific/linux/firmware/linux-firmware/default.nix index 22dc930d293..ec05c659498 100644 --- a/pkgs/os-specific/linux/firmware/linux-firmware/default.nix +++ b/pkgs/os-specific/linux/firmware/linux-firmware/default.nix @@ -2,12 +2,12 @@ stdenvNoCC.mkDerivation rec { pname = "linux-firmware"; - version = "20220310"; + version = "20220509"; src = fetchgit { url = "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"; rev = "refs/tags/${version}"; - sha256 = "sha256-U5XZHzriZaPlgiAcrZnAA7K8PKnIGy58Pi6JziVFTR8="; + sha256 = "sha256-pNuKA4XigrHU9qC5Ch6HLs3/tcv0zIkAzow9VOIVKdQ="; }; installFlags = [ "DESTDIR=$(out)" ]; @@ -17,7 +17,7 @@ stdenvNoCC.mkDerivation rec { outputHashMode = "recursive"; outputHashAlgo = "sha256"; - outputHash = "sha256-CAYJssH36aKhzvl0q60HyxgDXeAluspfnLLmawmWIQw="; + outputHash = "sha256-pXzWAu7ch4dHXvKzfrK826vtNqovCqL7pd+TIVbWnJQ="; meta = with lib; { description = "Binary firmware collection packaged by kernel.org"; From e2456aed84d8c42c2098d48f9529d7949040230e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 11 May 2022 22:57:54 +0000 Subject: [PATCH 28/30] getmail6: 6.18.8 -> 6.18.9 https://github.com/getmail6/getmail6/releases/tag/v6.18.9 --- pkgs/tools/networking/getmail6/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/getmail6/default.nix b/pkgs/tools/networking/getmail6/default.nix index e143760c498..82122b15066 100644 --- a/pkgs/tools/networking/getmail6/default.nix +++ b/pkgs/tools/networking/getmail6/default.nix @@ -5,13 +5,13 @@ python3.pkgs.buildPythonApplication rec { pname = "getmail6"; - version = "6.18.8"; + version = "6.18.9"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - hash = "sha256-MIK5++3SaGm1BMpU8G4X7n/SCBw+N39U44cyX65tPcQ="; + hash = "sha256-qzlURYdE7nv+/wxK3B6WddmhW6xiLS7em3X5O5+CBbI="; }; # needs a Docker setup From e4bb2cac3926fbe3858050acbfcc79eb69b8a7e4 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Mon, 9 May 2022 18:10:49 +0200 Subject: [PATCH 29/30] vimPlugins.fzf-lua: init at 2022-05-07 --- pkgs/applications/editors/vim/plugins/generated.nix | 12 ++++++++++++ pkgs/applications/editors/vim/plugins/overrides.nix | 4 ++++ .../editors/vim/plugins/vim-plugin-names | 1 + 3 files changed, 17 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index d01b240e347..d9cfc6873c4 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -2566,6 +2566,18 @@ final: prev: meta.homepage = "https://github.com/gfanto/fzf-lsp.nvim/"; }; + fzf-lua = buildVimPluginFrom2Nix { + pname = "fzf-lua"; + version = "2022-05-07"; + src = fetchFromGitHub { + owner = "ibhagwan"; + repo = "fzf-lua"; + rev = "b614a9d315512ec4ce9c1df41474e5ab8e12f7df"; + sha256 = "0gb7q4fbv3754ck44h6dd93dcy8j4czhhna1d2kgq21614xs303k"; + }; + meta.homepage = "https://github.com/ibhagwan/fzf-lua/"; + }; + fzf-vim = buildVimPluginFrom2Nix { pname = "fzf.vim"; version = "2022-04-07"; diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index bbdd19f22f1..3273d841c65 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -293,6 +293,10 @@ self: super: { ''; }); + fzf-lua = super.fzf-lua.overrideAttrs (old: { + propagatedBuildInputs = [ fzf ]; + }); + fzf-vim = super.fzf-vim.overrideAttrs (old: { dependencies = with self; [ fzfWrapper ]; }); diff --git a/pkgs/applications/editors/vim/plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index 1a307c8c7c7..49f8f44334d 100644 --- a/pkgs/applications/editors/vim/plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names @@ -214,6 +214,7 @@ https://github.com/BeneCollyridam/futhark-vim/,, https://github.com/rktjmp/fwatch.nvim/,, https://github.com/stsewd/fzf-checkout.vim/,, https://github.com/gfanto/fzf-lsp.nvim/,, +https://github.com/ibhagwan/fzf-lua/,HEAD, https://github.com/junegunn/fzf.vim/,, https://github.com/NTBBloodbath/galaxyline.nvim/,, https://github.com/jsfaint/gen_tags.vim/,, From 05f976210a24e476cc6f87fd6c069eba44f0e2a3 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Wed, 11 May 2022 12:15:59 +0200 Subject: [PATCH 30/30] rapidsvn: fix the build and use Python 3 Moved back to C++14 where dynamic exception specifications are deprecated but still present. ZHF: #172160 --- .../version-management/rapidsvn/default.nix | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/rapidsvn/default.nix b/pkgs/applications/version-management/rapidsvn/default.nix index 60d011b653d..bcb90c20698 100644 --- a/pkgs/applications/version-management/rapidsvn/default.nix +++ b/pkgs/applications/version-management/rapidsvn/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, wxGTK, subversion, apr, aprutil, python2 }: +{ lib, stdenv, fetchurl, wxGTK, subversion, apr, aprutil, python3, fetchpatch }: stdenv.mkDerivation rec { pname = "rapidsvn"; @@ -9,13 +9,28 @@ stdenv.mkDerivation rec { sha256 = "1bmcqjc12k5w0z40k7fkk8iysqv4fw33i80gvcmbakby3d4d4i4p"; }; - buildInputs = [ wxGTK subversion apr aprutil python2 ]; + buildInputs = [ wxGTK subversion apr aprutil python3 ]; + + NIX_CFLAGS_COMPILE = [ "-std=c++14" ]; configureFlags = [ "--with-svn-include=${subversion.dev}/include" "--with-svn-lib=${subversion.out}/lib" ]; patches = [ ./fix-build.patch + # Python 3 compatibility patches + (fetchpatch { + url = "https://github.com/RapidSVN/RapidSVN/pull/44/commits/2e26fd5d6a413d6c3a055c17ac4840b95d1537e9.patch"; + hash = "sha256-8acABzscgZh1bfAt35KHfU+nfaiO7P1b+lh34Bj0REI="; + }) + (fetchpatch { + url = "https://github.com/RapidSVN/RapidSVN/pull/44/commits/92927af764f92b3731333ed3dba637f98611167a.patch"; + hash = "sha256-4PdShGcfFwxjdI3ygbnKFAa8l9dGERq/xSl54WisgKM="; + }) + (fetchpatch { + url = "https://github.com/RapidSVN/RapidSVN/pull/44/commits/3e375f11d94cb8faddb8b7417354a9fb51f304ec.patch"; + hash = "sha256-BUpCMEH7jctOLtJktDUE52bxexfLemLItZ0IgdAnq9g="; + }) ]; meta = { @@ -23,5 +38,7 @@ stdenv.mkDerivation rec { homepage = "http://rapidsvn.tigris.org/"; license = lib.licenses.gpl3Plus; maintainers = [ lib.maintainers.viric ]; + platforms = lib.platforms.unix; + broken = stdenv.isDarwin; }; }