From 714410a12c2f02f85d70ce0c0f11be29ee739591 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Jul 2023 09:27:36 +0200 Subject: [PATCH 01/48] urlscan: add changelog to meta --- pkgs/applications/misc/urlscan/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/urlscan/default.nix b/pkgs/applications/misc/urlscan/default.nix index 726c749d604d..1cbb7809e313 100644 --- a/pkgs/applications/misc/urlscan/default.nix +++ b/pkgs/applications/misc/urlscan/default.nix @@ -20,11 +20,14 @@ python3Packages.buildPythonApplication rec { doCheck = false; # No tests available - pythonImportsCheck = [ "urlscan" ]; + pythonImportsCheck = [ + "urlscan" + ]; meta = with lib; { description = "Mutt and terminal url selector (similar to urlview)"; homepage = "https://github.com/firecat53/urlscan"; + changelog = "https://github.com/firecat53/urlscan/releases/tag/${version}"; license = licenses.gpl2Plus; maintainers = with maintainers; [ dpaetzel jfrankenau ]; }; From 62e11bcb582f79f9158bf4de28069ed5743dadaf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Jul 2023 09:32:33 +0200 Subject: [PATCH 02/48] urlscan: migrate to python3.pkgs --- pkgs/applications/misc/urlscan/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/urlscan/default.nix b/pkgs/applications/misc/urlscan/default.nix index 1cbb7809e313..bbeefc4e20cf 100644 --- a/pkgs/applications/misc/urlscan/default.nix +++ b/pkgs/applications/misc/urlscan/default.nix @@ -1,9 +1,9 @@ { lib -, python3Packages , fetchFromGitHub +, python3 }: -python3Packages.buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "urlscan"; version = "0.9.10"; @@ -14,11 +14,12 @@ python3Packages.buildPythonApplication rec { hash = "sha256-lCOOVAdsr5LajBGY7XUi4J5pJqm5rOH5IMKhA6fju5w="; }; - propagatedBuildInputs = [ - python3Packages.urwid + propagatedBuildInputs = with python3.pkgs; [ + urwid ]; - doCheck = false; # No tests available + # No tests available + doCheck = false; pythonImportsCheck = [ "urlscan" From 50c922e39552af0bf3f3b62259bf61c369cbd6dc Mon Sep 17 00:00:00 2001 From: r-vdp Date: Thu, 6 Jul 2023 17:10:58 +0200 Subject: [PATCH 03/48] nixos/test-driver: use the short form argument to base64 for busybox compatibility. Fixes #241938 --- nixos/lib/test-driver/test_driver/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index 7ef0ae89910b..eb69a56882f9 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -533,7 +533,7 @@ class Machine: # While sh is bash on NixOS, this is not the case for every distro. # We explicitly call bash here to allow for the driver to boot other distros as well. out_command = ( - f"{timeout_str} bash -c {shlex.quote(command)} | (base64 --wrap 0; echo)\n" + f"{timeout_str} bash -c {shlex.quote(command)} | (base64 -w 0; echo)\n" ) assert self.shell From c05483d2746039dab959065e061095a943d5ddd6 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Fri, 7 Jul 2023 10:58:13 +0200 Subject: [PATCH 04/48] nixos/test-driver: add a test for #241938. --- nixos/tests/all-tests.nix | 1 + nixos/tests/nixos-test-driver/busybox.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 nixos/tests/nixos-test-driver/busybox.nix diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index f7f57b3268ef..e3d3b9c7b425 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -89,6 +89,7 @@ in { extra-python-packages = handleTest ./nixos-test-driver/extra-python-packages.nix {}; lib-extend = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./nixos-test-driver/lib-extend.nix {}; node-name = runTest ./nixos-test-driver/node-name.nix; + busybox = runTest ./nixos-test-driver/busybox.nix; }; # NixOS vm tests and non-vm unit tests diff --git a/nixos/tests/nixos-test-driver/busybox.nix b/nixos/tests/nixos-test-driver/busybox.nix new file mode 100644 index 000000000000..6d8fdb005495 --- /dev/null +++ b/nixos/tests/nixos-test-driver/busybox.nix @@ -0,0 +1,16 @@ +{ + name = "Test for NixOS/nixpkgs#241938"; + + nodes = { + machine = ({ pkgs, ... }: { + environment.systemPackages = [ + pkgs.busybox + ]; + }); + }; + + testScript = '' + start_all() + machine.wait_for_unit("multi-user.target") + ''; +} From d18dd1e6fb0f1d9305b3b6f94647e052cc75a310 Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sun, 9 Jul 2023 07:47:35 +1000 Subject: [PATCH 05/48] thrift: 0.18.0 -> 0.18.1 --- pkgs/development/libraries/thrift/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/thrift/default.nix b/pkgs/development/libraries/thrift/default.nix index fd6b21a94f72..acb3a2404870 100644 --- a/pkgs/development/libraries/thrift/default.nix +++ b/pkgs/development/libraries/thrift/default.nix @@ -16,11 +16,11 @@ stdenv.mkDerivation rec { pname = "thrift"; - version = "0.18.0"; + version = "0.18.1"; src = fetchurl { url = "https://archive.apache.org/dist/thrift/${version}/${pname}-${version}.tar.gz"; - hash = "sha256-fBk4nLeRCiDli45GkDyMGjY1MAj5/MGwP3SKzPm18+E="; + hash = "sha256-BMbxDl14jKeOE+4u8NIVLHsHDAr1VIPWuULinP8pZyY="; }; # Workaround to make the Python wrapper not drop this package: @@ -102,6 +102,9 @@ stdenv.mkDerivation rec { "SecurityFromBufferTest" "python_test" + # fails on hydra, passes locally + "concurrency_test" + # Tests that fail in the Darwin sandbox when trying to use network "UnitTests" "TInterruptTest" From 230e21f8b275e8c0345b55250e79413e1d881afb Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Wed, 12 Jul 2023 02:42:05 +0000 Subject: [PATCH 06/48] osv-detector: 0.6.0 -> 0.11.1 --- pkgs/tools/security/osv-detector/default.nix | 22 +++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/osv-detector/default.nix b/pkgs/tools/security/osv-detector/default.nix index 63d4e07a7b56..58db4504d23d 100644 --- a/pkgs/tools/security/osv-detector/default.nix +++ b/pkgs/tools/security/osv-detector/default.nix @@ -7,16 +7,16 @@ buildGoModule rec { pname = "osv-detector"; - version = "0.6.0"; + version = "0.11.1"; src = fetchFromGitHub { owner = "G-Rath"; repo = pname; rev = "v${version}"; - hash = "sha256-Y/9q4ZJ4vxDitqrM4hGe49iqLYk4ebhTs4jrD7P8fdw="; + hash = "sha256-vIkLrKyDeMfRe/0EPhlKlHAO6XB0/OFY5mTUHeZbcg8="; }; - vendorSha256 = "sha256-KAxpDQIRrLZIOvfW8wf0CV4Fj6l3W6nNZNCH3ZE6yJc="; + vendorHash = "sha256-Rrosye8foVntoFDvDmyNuXgnEgjzcOXenOKBMZVCRio="; ldflags = [ "-w" @@ -24,6 +24,22 @@ buildGoModule rec { "-X main.version=${version}" ]; + checkFlags = + let + skippedTests = [ + # Disable tests requiring network access + "TestRun_ParseAs_CsvFile" + "TestRun_ParseAs_CsvRow" + "TestRun_DBs" + "TestRun_Lockfile" + "TestRun_ParseAsGlobal" + "TestRun_Ignores" + "TestRun_ParseAsSpecific" + "TestRun_Configs" + ]; + in + [ "-skip" "${builtins.concatStringsSep "|" skippedTests}" ]; + passthru.tests.version = testers.testVersion { package = osv-detector; command = "osv-detector -version"; From 9d70dfd612b811f9d18b57e159c9c469b7408850 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 18 Jul 2023 15:08:31 +0200 Subject: [PATCH 07/48] nixos/tests/nixos-test-driver/busybox: Improve name Co-authored-by: Sandro --- nixos/tests/nixos-test-driver/busybox.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/nixos-test-driver/busybox.nix b/nixos/tests/nixos-test-driver/busybox.nix index 6d8fdb005495..426f4494436e 100644 --- a/nixos/tests/nixos-test-driver/busybox.nix +++ b/nixos/tests/nixos-test-driver/busybox.nix @@ -1,5 +1,5 @@ { - name = "Test for NixOS/nixpkgs#241938"; + name = "Test that basic tests work when busybox is installed"; nodes = { machine = ({ pkgs, ... }: { From 531b083070d30c98b01bb8b3d2080ef536aa385f Mon Sep 17 00:00:00 2001 From: Jan Votava Date: Thu, 20 Jul 2023 10:33:04 +0700 Subject: [PATCH 08/48] maintainers: add votava --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 63ed17ec8d70..a891b2252ba4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17514,6 +17514,12 @@ githubId = 3413119; name = "Vonfry"; }; + votava = { + email = "votava@gmail.com"; + github = "janvotava"; + githubId = 367185; + name = "Jan Votava"; + }; vq = { email = "vq@erq.se"; github = "vq"; From a5fd93b951745d8c37ee0925f6f321cacbdc5e7a Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Thu, 20 Jul 2023 11:12:39 -0400 Subject: [PATCH 09/48] python310Packages.pyxnat: 1.5 -> 1.6 Also enabled tests and added changelog. --- .../python-modules/pyxnat/default.nix | 46 +++++++++++++++---- 1 file changed, 36 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pyxnat/default.nix b/pkgs/development/python-modules/pyxnat/default.nix index 16ba6b4de944..e8956dba3484 100644 --- a/pkgs/development/python-modules/pyxnat/default.nix +++ b/pkgs/development/python-modules/pyxnat/default.nix @@ -1,21 +1,27 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pythonOlder -, nose +, pytestCheckHook , lxml +, matplotlib +, networkx +, pandas , requests , six }: buildPythonPackage rec { pname = "pyxnat"; - version = "1.5"; - disabled = pythonOlder "3.7"; + version = "1.6"; + disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-Y8mj6OfZXyE1q3C8HyVzGySuZB6rLSsL/CV/7axxaec="; + # PyPI dist missing test configuration files: + src = fetchFromGitHub { + owner = "pyxnat"; + repo = "pyxnat"; + rev = "refs/tags/${version}"; + hash = "sha256-QejYisvQFN7CsDOx9wAgTHmRZcSEqgIr8twG4XucfZ4="; }; propagatedBuildInputs = [ @@ -30,17 +36,37 @@ buildPythonPackage rec { substituteInPlace setup.py \ --replace "pathlib>=1.0" "" \ --replace "future>=0.16" "" + sed -i '/--cov/d' setup.cfg ''; - nativeCheckInputs = [ nose ]; - checkPhase = "nosetests pyxnat/tests"; - doCheck = false; # requires a docker container running an XNAT server + nativeCheckInputs = [ + pytestCheckHook + matplotlib + networkx + pandas + ]; + preCheck = '' + export PYXNAT_SKIP_NETWORK_TESTS=1 + ''; + pytestFlagsArray = [ "pyxnat" ]; + disabledTestPaths = [ + # try to access network even though PYXNAT_SKIP_NETWORK_TESTS is set: + "pyxnat/tests/pipelines_test.py" + "pyxnat/tests/search_test.py" + "pyxnat/tests/user_and_project_management_test.py" + ]; + disabledTests = [ + # try to access network even though PYXNAT_SKIP_NETWORK_TESTS is set: + "test_ashs_volumes" + "test_inspector_structure" + ]; pythonImportsCheck = [ "pyxnat" ]; meta = with lib; { homepage = "https://pyxnat.github.io/pyxnat"; description = "Python API to XNAT"; + changelog = "https://github.com/pyxnat/pyxnat/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ bcdarwin ]; }; From f4f6be1e9a12e0c9e71d1d960fc2cc7b56566ace Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 21 Jul 2023 14:31:19 +0200 Subject: [PATCH 10/48] python310Packages.nbconflux: fix build --- .../python-modules/nbconflux/default.nix | 9 +++++++-- .../python-modules/nbconflux/setup-py.patch | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/python-modules/nbconflux/setup-py.patch diff --git a/pkgs/development/python-modules/nbconflux/default.nix b/pkgs/development/python-modules/nbconflux/default.nix index 2de84cf20eae..c986085a61e3 100644 --- a/pkgs/development/python-modules/nbconflux/default.nix +++ b/pkgs/development/python-modules/nbconflux/default.nix @@ -16,14 +16,19 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "Valassis-Digital-Media"; repo = "nbconflux"; - rev = version; - sha256 = "1708qkb275d6f7b4b5zmqx3i0jh56nrx2n9rwwp5nbaah5p2wwlh"; + rev = "refs/tags/${version}"; + hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw="; }; propagatedBuildInputs = [ nbconvert requests ]; nativeCheckInputs = [ pytestCheckHook responses ]; + patches = [ + # The original setup.py file is missing commas in the install_requires list + ./setup-py.patch + ]; + JUPYTER_PATH="${nbconvert}/share/jupyter"; disabledTests = [ "test_post_to_confluence" diff --git a/pkgs/development/python-modules/nbconflux/setup-py.patch b/pkgs/development/python-modules/nbconflux/setup-py.patch new file mode 100644 index 000000000000..1e92e2dd11c2 --- /dev/null +++ b/pkgs/development/python-modules/nbconflux/setup-py.patch @@ -0,0 +1,16 @@ +diff --git a/setup.py b/setup.py +index 26f882d..b7ccf67 100644 +--- a/setup.py ++++ b/setup.py +@@ -27,8 +27,8 @@ setup( + ] + }, + install_requires=[ +- 'nbconvert>=5.3' +- 'requests' +- 'traitlets' ++ 'nbconvert>=5.3', ++ 'requests', ++ 'traitlets', + ], + ) From fbab0d0d31dad1fcac897c23fdb4af36e8c08766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Fri, 21 Jul 2023 18:35:29 +0200 Subject: [PATCH 11/48] retroarch: prefer wrapper over patch * Remove the nixpkgs specific patch and configure the install paths to assets and core info with the wrapper. (The path to the cores themselves is configured in the wrapper, before *and* after this change.) Less rebuilds, easier maintenance. * Remove the withAssets/withCoreInfo parameters from retroarch expr as they make little sense to keep now. * Keep passing --disable-update_assets and --disable-update_core_info configure flags, as I think nixpkgs users prefer a declarative setup. --- .../emulators/retroarch/default.nix | 12 ------- ...-libretro_info_path-assets_directory.patch | 34 ------------------- pkgs/top-level/all-packages.nix | 7 ++-- 3 files changed, 3 insertions(+), 50 deletions(-) delete mode 100644 pkgs/applications/emulators/retroarch/use-default-values-for-libretro_info_path-assets_directory.patch diff --git a/pkgs/applications/emulators/retroarch/default.nix b/pkgs/applications/emulators/retroarch/default.nix index ba1bfe28b2a3..2abbdb1c46ef 100644 --- a/pkgs/applications/emulators/retroarch/default.nix +++ b/pkgs/applications/emulators/retroarch/default.nix @@ -2,8 +2,6 @@ , stdenv , nixosTests , enableNvidiaCgToolkit ? false -, withAssets ? false -, withCoreInfo ? false , withGamemode ? stdenv.isLinux , withVulkan ? stdenv.isLinux , withWayland ? stdenv.isLinux @@ -61,10 +59,6 @@ stdenv.mkDerivation rec { rev = "v${version}"; }; - patches = [ - ./use-default-values-for-libretro_info_path-assets_directory.patch - ]; - nativeBuildInputs = [ pkg-config wrapQtAppsHook ] ++ lib.optional withWayland wayland ++ lib.optional (runtimeLibs != [ ]) makeWrapper; @@ -109,14 +103,8 @@ stdenv.mkDerivation rec { "--enable-systemmbedtls" "--disable-builtinzlib" "--disable-builtinflac" - ] ++ - lib.optionals withAssets [ "--disable-update_assets" - "--with-assets_dir=${retroarch-assets}/share" - ] ++ - lib.optionals withCoreInfo [ "--disable-update_core_info" - "--with-core_info_dir=${libretro-core-info}/share" ] ++ lib.optionals stdenv.isLinux [ "--enable-dbus" diff --git a/pkgs/applications/emulators/retroarch/use-default-values-for-libretro_info_path-assets_directory.patch b/pkgs/applications/emulators/retroarch/use-default-values-for-libretro_info_path-assets_directory.patch deleted file mode 100644 index 7ef7f439ecd1..000000000000 --- a/pkgs/applications/emulators/retroarch/use-default-values-for-libretro_info_path-assets_directory.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 6960855a0cdfd671d214030260b340a73878af52 Mon Sep 17 00:00:00 2001 -From: Thiago Kenji Okada -Date: Fri, 23 Dec 2022 21:42:15 +0000 -Subject: [PATCH] Use default values for libretro_info_path/assets_directories - ---- - configuration.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/configuration.c b/configuration.c -index d9ab8370c4..15b575d8a2 100644 ---- a/configuration.c -+++ b/configuration.c -@@ -1483,7 +1483,7 @@ static struct config_path_setting *populate_settings_path( - SETTING_PATH("core_options_path", - settings->paths.path_core_options, false, NULL, true); - SETTING_PATH("libretro_info_path", -- settings->paths.path_libretro_info, false, NULL, true); -+ settings->paths.path_libretro_info, false, NULL, false); - SETTING_PATH("content_database_path", - settings->paths.path_content_database, false, NULL, true); - SETTING_PATH("cheat_database_path", -@@ -1539,7 +1539,7 @@ static struct config_path_setting *populate_settings_path( - SETTING_PATH("core_assets_directory", - settings->paths.directory_core_assets, true, NULL, true); - SETTING_PATH("assets_directory", -- settings->paths.directory_assets, true, NULL, true); -+ settings->paths.directory_assets, true, NULL, false); - SETTING_PATH("dynamic_wallpapers_directory", - settings->paths.directory_dynamic_wallpapers, true, NULL, true); - SETTING_PATH("thumbnails_directory", --- -2.38.1 - diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 951b7b41e4df..576f1416d21d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2672,12 +2672,11 @@ with pkgs; { inherit retroarch settings; }; retroarch = wrapRetroArch { - retroarch = retroarchBare.override { - withAssets = true; - withCoreInfo = true; - }; + retroarch = retroarchBare; settings = { + assets_directory = "${retroarch-assets}/share/retroarch/assets"; joypad_autoconfig_dir = "${retroarch-joypad-autoconfig}/share/libretro/autoconfig"; + libretro_info_path = "${libretro-core-info}/share/retroarch/cores"; }; }; From c7c2ee938a3f557171f03bfc6733e406550d11a8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 23 Jul 2023 02:29:24 +0200 Subject: [PATCH 12/48] go2rtc: 1.6.0 -> 1.6.2 https://github.com/AlexxIT/go2rtc/releases/tag/v1.6.1 https://github.com/AlexxIT/go2rtc/releases/tag/v1.6.2 --- pkgs/tools/video/go2rtc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/video/go2rtc/default.nix b/pkgs/tools/video/go2rtc/default.nix index b35a1b0e6ab6..ec787a0b1daf 100644 --- a/pkgs/tools/video/go2rtc/default.nix +++ b/pkgs/tools/video/go2rtc/default.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "go2rtc"; - version = "1.6.0"; + version = "1.6.2"; src = fetchFromGitHub { owner = "AlexxIT"; repo = "go2rtc"; rev = "refs/tags/v${version}"; - hash = "sha256-QRyzhNGdE7aGXyPxznA0FuVazu96Rd6NiiG1GHjN2ns="; + hash = "sha256-LKaVspv9R2N7og+3gb/vZuiWzWt1w+LEQ1Sk737+O7c="; }; vendorHash = "sha256-C2bRSzLp86aMF3UIGJ2G5WXvUaLjyhqzPsQkDSI0qb0="; From 67b8982a7af412714ee50cb6368a6e764977f09b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Jul 2023 09:10:58 +0200 Subject: [PATCH 13/48] urlscan: 0.9.10 -> 1.0.0 Changelog: https://github.com/firecat53/urlscan/releases/tag/1.0.0 --- pkgs/applications/misc/urlscan/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/urlscan/default.nix b/pkgs/applications/misc/urlscan/default.nix index bbeefc4e20cf..6b95a9b97340 100644 --- a/pkgs/applications/misc/urlscan/default.nix +++ b/pkgs/applications/misc/urlscan/default.nix @@ -5,15 +5,23 @@ python3.pkgs.buildPythonApplication rec { pname = "urlscan"; - version = "0.9.10"; + version = "1.0.0"; + format = "pyproject"; src = fetchFromGitHub { owner = "firecat53"; repo = pname; - rev = version; - hash = "sha256-lCOOVAdsr5LajBGY7XUi4J5pJqm5rOH5IMKhA6fju5w="; + rev = "refs/tags/${version}"; + hash = "sha256-IvCdc4f784hBM+TEa0zIACz/1/FUnEpGxHUGiS85tt8="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeBuildInputs = with python3.pkgs; [ + hatchling + hatch-vcs + ]; + propagatedBuildInputs = with python3.pkgs; [ urwid ]; From 0abe9b54d89af92de1c6cae8dd26aaec96303fa8 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 23 Jul 2023 14:42:30 -0400 Subject: [PATCH 14/48] kbt: init at 1.0.0 https://github.com/bloznelis/kbt --- pkgs/applications/misc/kbt/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/applications/misc/kbt/default.nix diff --git a/pkgs/applications/misc/kbt/default.nix b/pkgs/applications/misc/kbt/default.nix new file mode 100644 index 000000000000..4b1f1abda9e6 --- /dev/null +++ b/pkgs/applications/misc/kbt/default.nix @@ -0,0 +1,25 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "kbt"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "bloznelis"; + repo = "kbt"; + rev = version; + hash = "sha256-gZUZB7cbaYlDs3PfRhkRlyJ6FBqtUAANL/K8Q/Dk8Zc="; + }; + + cargoHash = "sha256-BcUxrZKJEgYgGQqgi9l6xcmwyTRNr9C2WWOgaFB5XSw="; + + meta = with lib; { + description = "Keyboard tester in terminal"; + homepage = "https://github.com/bloznelis/kbt"; + license = licenses.mit; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a84f1600cef6..d64aaa3213be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32578,6 +32578,8 @@ with pkgs; kapow = libsForQt5.callPackage ../applications/misc/kapow { }; + kbt = callPackage ../applications/misc/kbt { }; + kchmviewer = libsForQt5.callPackage ../applications/misc/kchmviewer { }; kappanhang = callPackage ../applications/radio/kappanhang { }; From 65e9c1bddeea3d1e6d11ce0893beb9c41f46ddc4 Mon Sep 17 00:00:00 2001 From: mdarocha Date: Sun, 23 Jul 2023 22:35:12 +0200 Subject: [PATCH 15/48] pbm: 1.3.1 -> 1.3.2 --- pkgs/tools/admin/pbm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/admin/pbm/default.nix b/pkgs/tools/admin/pbm/default.nix index 7a1997f1d197..39445a52354a 100644 --- a/pkgs/tools/admin/pbm/default.nix +++ b/pkgs/tools/admin/pbm/default.nix @@ -2,9 +2,9 @@ buildDotnetGlobalTool { pname = "pbm"; - version = "1.3.1"; + version = "1.3.2"; - nugetSha256 = "sha256-ZG2HFyKYhVNVYd2kRlkbAjZJq88OADe3yjxmLuxXDUo="; + nugetSha256 = "sha256-xu3g8NFLZYnHzBuoIhIiAzaPJqY0xhLWLYi+ORRADH8="; meta = with lib; { description = "CLI for managing Akka.NET applications and Akka.NET Clusters."; From 1aa855331bfc91bd7c9fa70de693f3c2904f09bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 23 Jul 2023 23:41:57 +0200 Subject: [PATCH 16/48] backends: move meta to the end, fix formatting in accordance with contributing guide --- .../libraries/phonon/backends/gstreamer.nix | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/pkgs/development/libraries/phonon/backends/gstreamer.nix b/pkgs/development/libraries/phonon/backends/gstreamer.nix index e0614c737417..fc0afbe2184c 100644 --- a/pkgs/development/libraries/phonon/backends/gstreamer.nix +++ b/pkgs/development/libraries/phonon/backends/gstreamer.nix @@ -7,14 +7,6 @@ stdenv.mkDerivation rec { pname = "phonon-backend-gstreamer"; version = "4.10.0"; - meta = with lib; { - homepage = "https://phonon.kde.org/"; - description = "GStreamer backend for Phonon"; - platforms = platforms.linux; - maintainers = with maintainers; [ ttuegel ]; - license = licenses.lgpl21; - }; - src = fetchurl { url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz"; sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5"; @@ -34,17 +26,16 @@ stdenv.mkDerivation rec { dontWrapQtApps = true; - env.NIX_CFLAGS_COMPILE = - let gstPluginPaths = - lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0" - (with gst_all_1; [ - gstreamer - gst-plugins-base - gst-plugins-good - gst-plugins-ugly - gst-plugins-bad - gst-libav - ]); + env.NIX_CFLAGS_COMPILE = let + gstPluginPaths = lib.makeSearchPathOutput "lib" "/lib/gstreamer-1.0" + (with gst_all_1; [ + gstreamer + gst-plugins-base + gst-plugins-good + gst-plugins-ugly + gst-plugins-bad + gst-libav + ]); in toString [ # This flag should be picked up through pkg-config, but it isn't. "-I${gst_all_1.gstreamer.dev}/lib/gstreamer-1.0/include" @@ -70,4 +61,12 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}" ]; + + meta = with lib; { + homepage = "https://phonon.kde.org/"; + description = "GStreamer backend for Phonon"; + platforms = platforms.linux; + maintainers = with maintainers; [ ttuegel ]; + license = licenses.lgpl21; + }; } From ff13fe9f6cec2893ea7812a07541759262fe3282 Mon Sep 17 00:00:00 2001 From: Ryota Kameoka Date: Sun, 5 Feb 2023 16:40:51 +0900 Subject: [PATCH 17/48] maintainers: add @ryota-ka --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 82916749f9a4..8d67750bc814 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12842,6 +12842,12 @@ githubId = 3280280; name = "Ryne Everett"; }; + ryota-ka = { + email = "ok@ryota-ka.me"; + github = "ryota-ka"; + githubId = 7309170; + name = "Ryota Kameoka"; + }; rytone = { email = "max@ryt.one"; github = "rastertail"; From 26248c58506ff638b771f618269c4676aa6fe613 Mon Sep 17 00:00:00 2001 From: Ryota Kameoka Date: Sun, 5 Feb 2023 16:41:17 +0900 Subject: [PATCH 18/48] yarn-berry: init at 3.4.1 --- pkgs/development/tools/yarn-berry/default.nix | 43 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/tools/yarn-berry/default.nix diff --git a/pkgs/development/tools/yarn-berry/default.nix b/pkgs/development/tools/yarn-berry/default.nix new file mode 100644 index 000000000000..b8181e812fc2 --- /dev/null +++ b/pkgs/development/tools/yarn-berry/default.nix @@ -0,0 +1,43 @@ +{ fetchFromGitHub, lib, nodejs, stdenv, yarn }: + +stdenv.mkDerivation rec { + name = "yarn-berry"; + version = "3.4.1"; + + src = fetchFromGitHub { + owner = "yarnpkg"; + repo = "berry"; + rev = "@yarnpkg/cli/${version}"; + hash = "sha256-eBBB/F+mnGi93Qf23xgt306/ogoV76RXOM90O14u5Tw="; + }; + + buildInputs = [ + nodejs + ]; + + nativeBuildInputs = [ + yarn + ]; + + dontConfigure = true; + + buildPhase = '' + runHook preBuild + yarn workspace @yarnpkg/cli build:cli + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + install -Dm 755 ./packages/yarnpkg-cli/bundles/yarn.js "$out/bin/yarn" + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://yarnpkg.com/"; + description = "Fast, reliable, and secure dependency management."; + license = licenses.bsd2; + maintainers = with maintainers; [ ryota-ka ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 29b02a714f17..a4195dab3237 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13592,6 +13592,8 @@ with pkgs; yarn = callPackage ../development/tools/yarn { }; + yarn-berry = callPackage ../development/tools/yarn-berry { }; + yarn2nix-moretea = callPackage ../development/tools/yarn2nix-moretea/yarn2nix { pkgs = pkgs.__splicedPackages; }; inherit (yarn2nix-moretea) From 893526b3971b191347884f38550ca172693acde3 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Wed, 19 Jul 2023 16:21:47 +1200 Subject: [PATCH 19/48] vcard: init at 0.15.4 Co-authored-by: Sandro --- maintainers/maintainer-list.nix | 6 ++++ .../python-modules/vcard/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 2 ++ 4 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/vcard/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4d4af4c9f47e..6bee5b431d13 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9128,6 +9128,12 @@ fingerprint = "5A9A 1C9B 2369 8049 3B48 CF5B 81A1 5409 4816 2372"; }]; }; + l0b0 = { + email = "victor@engmark.name"; + github = "l0b0"; + githubId = 168301; + name = "Victor Engmark"; + }; l3af = { email = "L3afMeAlon3@gmail.com"; matrix = "@L3afMe:matrix.org"; diff --git a/pkgs/development/python-modules/vcard/default.nix b/pkgs/development/python-modules/vcard/default.nix new file mode 100644 index 000000000000..d984e7c106cc --- /dev/null +++ b/pkgs/development/python-modules/vcard/default.nix @@ -0,0 +1,34 @@ +{ buildPythonPackage +, fetchFromGitLab +, lib +, pytestCheckHook +, python-dateutil +, pythonAtLeast +, pythonOlder +}: +buildPythonPackage rec { + pname = "vcard"; + version = "0.15.4"; + + disabled = pythonOlder "3.8" || pythonAtLeast "3.12"; + + src = fetchFromGitLab { + owner = "engmark"; + repo = "vcard"; + rev = "refs/tags/v${version}"; + hash = "sha256-7GNq6PoWZgwhhpxhWOkUEpqckeSfzocex1ZGN9CTJyo="; + }; + + propagatedBuildInputs = [ python-dateutil ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "vcard" ]; + + meta = { + homepage = "https://gitlab.com/engmark/vcard"; + description = "vCard validator, class and utility functions"; + license = lib.licenses.agpl3Plus; + maintainers = [ lib.maintainers.l0b0 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b7da8703dac6..56e3da79104a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17188,6 +17188,8 @@ with pkgs; vala-lint = callPackage ../development/tools/vala-lint { }; + vcard = python3Packages.toPythonApplication python3Packages.vcard; + inherit (callPackage ../development/compilers/vala { }) vala_0_48 vala_0_54 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d8ce44c7ce11..d4f2983359ff 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13161,6 +13161,8 @@ self: super: with self; { vat-moss = callPackage ../development/python-modules/vat-moss { }; + vcard = callPackage ../development/python-modules/vcard { }; + vcrpy = callPackage ../development/python-modules/vcrpy { }; vcver = callPackage ../development/python-modules/vcver { }; From 6068a73e5f10b686d8a2c4da97657cd09aff41ae Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:19:00 +0800 Subject: [PATCH 20/48] gen-license: init at 0.1.2 --- .../development/tools/gen-license/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/tools/gen-license/default.nix diff --git a/pkgs/development/tools/gen-license/default.nix b/pkgs/development/tools/gen-license/default.nix new file mode 100644 index 000000000000..b6d744c985a2 --- /dev/null +++ b/pkgs/development/tools/gen-license/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, rustPlatform +, fetchCrate +, Security +}: + +rustPlatform.buildRustPackage rec { + pname = "gen-license"; + version = "0.1.2"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-YZcycLQ436cjr2YTT7TEyMdeLTOl9oEfa5x3lgnnYyo="; + }; + + cargoHash = "sha256-2PT20eoXxBPhGsmHlEEGE2ZDyhyrD7tFdwnn3khjKNo="; + + buildInputs = lib.optional stdenv.isDarwin Security; + + meta = with lib; { + description = "Create licenses for your projects right from your terminal"; + homepage = "https://github.com/nexxeln/license-generator"; + license = licenses.mit; + maintainers = [ ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b7da8703dac6..250aff4de58f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1671,6 +1671,10 @@ with pkgs; gen6dns = callPackage ../tools/networking/gen6dns { }; + gen-license = callPackage ../development/tools/gen-license { + inherit (darwin.apple_sdk.frameworks) Security; + }; + github-copilot-cli = callPackage ../tools/misc/github-copilot-cli { }; gfshare = callPackage ../tools/security/gfshare { }; From 1242a9d55eae3621890fb45c62398362bbfa5af1 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:19:51 +0800 Subject: [PATCH 21/48] maintainers: add ryanccn --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/development/tools/gen-license/default.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4d4af4c9f47e..6e271f24246b 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14465,6 +14465,12 @@ githubId = 889991; name = "Ryan Artecona"; }; + ryanccn = { + email = "hello@ryanccn.dev"; + github = "ryanccn"; + githubId = 70191398; + name = "Ryan Cao"; + }; ryane = { email = "ryanesc@gmail.com"; github = "ryane"; diff --git a/pkgs/development/tools/gen-license/default.nix b/pkgs/development/tools/gen-license/default.nix index b6d744c985a2..a3495866576d 100644 --- a/pkgs/development/tools/gen-license/default.nix +++ b/pkgs/development/tools/gen-license/default.nix @@ -22,6 +22,6 @@ rustPlatform.buildRustPackage rec { description = "Create licenses for your projects right from your terminal"; homepage = "https://github.com/nexxeln/license-generator"; license = licenses.mit; - maintainers = [ ]; + maintainers = [ maintainers.ryanccn ]; }; } From 83c185b899cae4819f7890615f732f17b7b8e284 Mon Sep 17 00:00:00 2001 From: Jan Votava Date: Thu, 20 Jul 2023 10:33:19 +0700 Subject: [PATCH 22/48] timoni: init at 0.10.0 --- .../networking/cluster/timoni/default.nix | 46 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/applications/networking/cluster/timoni/default.nix diff --git a/pkgs/applications/networking/cluster/timoni/default.nix b/pkgs/applications/networking/cluster/timoni/default.nix new file mode 100644 index 000000000000..1ce1420ce3dd --- /dev/null +++ b/pkgs/applications/networking/cluster/timoni/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: + +buildGoModule rec { + pname = "timoni"; + version = "0.10.0"; + + src = fetchFromGitHub { + owner = "stefanprodan"; + repo = "timoni"; + rev = "v${version}"; + hash = "sha256-D49jpwldmtS7/+++4avqAGOhILaHmlUvnfjoV45KVc4="; + }; + + vendorHash = "sha256-QWNYBHxcKyAexnD6bHfJIDSOEST2J/09YKC/kDsXKHU="; + + subPackages = [ "cmd/timoni" ]; + nativeBuildInputs = [ installShellFiles ]; + + # Some tests require running Kubernetes instance + doCheck = false; + + ldflags = [ + "-s" + "-w" + "-X main.VERSION=${version}" + ]; + + postInstall = '' + installShellCompletion --cmd timoni \ + --bash <($out/bin/timoni completion bash) \ + --fish <($out/bin/timoni completion fish) \ + --zsh <($out/bin/timoni completion zsh) + ''; + + meta = with lib; { + homepage = "https://timoni.sh"; + changelog = "https://github.com/stefanprodan/timoni/releases/tag/${src.rev}"; + description = "A package manager for Kubernetes, powered by CUE and inspired by Helm"; + license = licenses.asl20; + maintainers = with maintainers; [ votava ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1a27f9e0bfbe..5fa1eb8481ac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32790,6 +32790,8 @@ with pkgs; electron = electron_22; }; + timoni = callPackage ../applications/networking/cluster/timoni { }; + kvirc = libsForQt5.callPackage ../applications/networking/irc/kvirc { }; lame = callPackage ../development/libraries/lame { }; From f67e1c6e508d7c3461c745b4c7913a19bd9ccb3f Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 24 Jul 2023 04:20:00 +0000 Subject: [PATCH 23/48] twspace-dl: 2023.1.22.1 -> 2023.7.24.1 Diff: https://github.com/HoloArchivists/twspace-dl/compare/2023.1.22.1...2023.7.24.1 Changelog: https://github.com/HoloArchivists/twspace-dl/releases/tag/2023.7.24.1 --- pkgs/tools/misc/twspace-dl/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/twspace-dl/default.nix b/pkgs/tools/misc/twspace-dl/default.nix index 403562e039f5..48f760b0e0f1 100644 --- a/pkgs/tools/misc/twspace-dl/default.nix +++ b/pkgs/tools/misc/twspace-dl/default.nix @@ -1,30 +1,32 @@ -{ lib, python3Packages, fetchPypi, ffmpeg }: +{ lib, python3Packages, fetchPypi, ffmpeg-headless }: python3Packages.buildPythonApplication rec { pname = "twspace-dl"; - version = "2023.1.22.1"; + version = "2023.7.24.1"; format = "pyproject"; src = fetchPypi { inherit version; pname = "twspace_dl"; - sha256 = "050e78b4583374351c288114e3b01ab34b0b19ad2d4971d15c5519521cf3f2f4"; + sha256 = "sha256-Oq9k5Nfixf1vihhna7g3ZkqCwEtCdnvlbxIuOnGVoKE="; }; nativeBuildInputs = with python3Packages; [ poetry-core ]; propagatedBuildInputs = with python3Packages; [ + mutagen requests ]; - makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg ]}" ]; + makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}" ]; pythonImportsCheck = [ "twspace_dl" ]; meta = with lib; { description = "A python module to download twitter spaces"; homepage = "https://github.com/HoloArchivists/twspace-dl"; + changelog = "https://github.com/HoloArchivists/twspace-dl/releases/tag/${version}"; license = licenses.gpl2Only; maintainers = with maintainers; [ marsam ]; mainProgram = "twspace_dl"; From a6b6203b6d2c85409eeea1a318910d1f6e6cfc66 Mon Sep 17 00:00:00 2001 From: SharzyL Date: Fri, 16 Jun 2023 00:32:11 +0800 Subject: [PATCH 24/48] sv-lang: init at 3.0 --- .../science/electronics/sv-lang/default.nix | 75 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 77 insertions(+) create mode 100644 pkgs/applications/science/electronics/sv-lang/default.nix diff --git a/pkgs/applications/science/electronics/sv-lang/default.nix b/pkgs/applications/science/electronics/sv-lang/default.nix new file mode 100644 index 000000000000..58ecf986cf7a --- /dev/null +++ b/pkgs/applications/science/electronics/sv-lang/default.nix @@ -0,0 +1,75 @@ +{ lib +, stdenv +, fetchFromGitHub +, boost182 +, catch2_3 +, cmake +, ninja +, fmt_9 +, python3 +}: + +let + # dependency for this library has been removed in master (i.e. next release) + unordered_dense = stdenv.mkDerivation rec { + version = "2.0.1"; + pname = "unordered_dense"; + src = fetchFromGitHub { + owner = "martinus"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-9zlWYAY4lOQsL9+MYukqavBi5k96FvglRgznLIwwRyw="; + }; + nativeBuildInputs = [ + cmake + ]; + }; + +in +stdenv.mkDerivation rec { + pname = "sv-lang"; + version = "3.0"; + + src = fetchFromGitHub { + owner = "MikePopoloski"; + repo = "slang"; + rev = "v${version}"; + sha256 = "sha256-v2sStvukLFMRXGeATxvizmnwEPDE4kwnS06n+37OrJA="; + }; + + cmakeFlags = [ + # fix for https://github.com/NixOS/nixpkgs/issues/144170 + "-DCMAKE_INSTALL_INCLUDEDIR=include" + "-DCMAKE_INSTALL_LIBDIR=lib" + + "-DSLANG_INCLUDE_TESTS=${if doCheck then "ON" else "OFF"}" + ]; + + nativeBuildInputs = [ + cmake + python3 + ninja + + # though only used in tests, cmake will complain its absence when configuring + catch2_3 + ]; + + buildInputs = [ + unordered_dense + boost182 + fmt_9 + ]; + + # TODO: a mysterious linker error occurs when building the unittests on darwin. + # The error occurs when using catch2_3 in nixpkgs, not when fetching catch2_3 using CMake + doCheck = !stdenv.isDarwin; + + meta = with lib; { + description = "SystemVerilog compiler and language services"; + homepage = "https://github.com/MikePopoloski/slang"; + license = licenses.mit; + maintainers = with maintainers; [ sharzy ]; + mainProgram = "slang"; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 349ba804223e..40e1f2c398d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24608,6 +24608,8 @@ with pkgs; stxxl = callPackage ../development/libraries/stxxl { }; + sv-lang = callPackage ../applications/science/electronics/sv-lang { }; + sqlite = lowPrio (callPackage ../development/libraries/sqlite { }); unqlite = lowPrio (callPackage ../development/libraries/unqlite { }); From 0310e3c7ac017b9fb2600ef90f7141e4f0e67a41 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 23 Jul 2023 21:27:59 -0700 Subject: [PATCH 25/48] CODEOWNERS: add ajoseph for kernel/manual-config.nix It is hard to get people to test changes to our kernel expression on anything other than x86_64 and aarch64 before merging changes. Therefore, I would like to be notified of PRs opened agains this file, so that I can hopefully catch breakage before it is merged, rather than afterwards. --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 73523dee3167..c15fccd28f81 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -313,3 +313,6 @@ nixos/lib/make-single-disk-zfs-image.nix @raitobezarius nixos/lib/make-multi-disk-zfs-image.nix @raitobezarius nixos/modules/tasks/filesystems/zfs.nix @raitobezarius nixos/tests/zfs.nix @raitobezarius + +# Linux Kernel +pkgs/os-specific/linux/kernel/manual-config.nix @amjoseph-nixpkgs From 1d0b3064664e89edb4322348397bcdeb51bdb8e6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Jul 2023 04:33:24 +0000 Subject: [PATCH 26/48] cmusfm: 0.4.1 -> 0.5.0 --- pkgs/applications/audio/cmusfm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/cmusfm/default.nix b/pkgs/applications/audio/cmusfm/default.nix index 17495ead355a..8f15b7d61146 100644 --- a/pkgs/applications/audio/cmusfm/default.nix +++ b/pkgs/applications/audio/cmusfm/default.nix @@ -3,13 +3,13 @@ stdenv.mkDerivation rec { pname = "cmusfm"; - version = "0.4.1"; + version = "0.5.0"; src = fetchFromGitHub { owner = "Arkq"; repo = pname; rev = "v${version}"; - sha256 = "1px2is80jdxchg8cpn5cizg6jvcbzyxl0qzs3bn0k3d10qjvdww5"; + sha256 = "sha256-CA585ZpkxMMLgzv81QB2kKMFg5R5CwKS9xAYrU+pAxs="; }; configureFlags = lib.optional libnotifySupport "--enable-libnotify" From 2e1db341fc618873bd5ea36127854e3edc95a25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 21 Jul 2023 10:38:01 +0200 Subject: [PATCH 27/48] apkg: 0.4.0 -> 0.4.1 https://apkg.readthedocs.io/en/latest/news/#apkg-041 --- .../tools/package-management/apkg/default.nix | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/pkgs/tools/package-management/apkg/default.nix b/pkgs/tools/package-management/apkg/default.nix index ebd1e15909f2..901a7aeff2b4 100644 --- a/pkgs/tools/package-management/apkg/default.nix +++ b/pkgs/tools/package-management/apkg/default.nix @@ -4,47 +4,38 @@ python3Packages.buildPythonApplication rec { pname = "apkg"; - version = "0.4.0"; + version = "0.4.1"; + format = "pyproject"; src = fetchFromGitLab { domain = "gitlab.nic.cz"; owner = "packaging"; repo = pname; rev = "v${version}"; - sha256 = "duZz2Kwjgek5pMJTDH8gMZAZ13uFwaIYT5E1brW7I7U="; + sha256 = "x7UYkqkF1XJ3OMfQpIQ4+27KI0dLvL42Wms5xQTY/H4="; }; - # TODO: solve this properly. Detection won't work anymore. - postPatch = '' - patch <<-EOF - --- a/setup.py - +++ b/setup.py - @@ -25,1 +25,1 @@ - - version=version, - + version='${version}', - EOF - ''; - propagatedBuildInputs = with python3Packages; [ # copy&pasted requirements.txt (almost exactly) beautifulsoup4 # upstream version detection - blessings # terminal colors + blessed # terminal colors build # apkg distribution - cached-property # @cached_property for python <= 3.7 + cached-property # for python <= 3.7; but pip complains even with 3.8 click # nice CLI framework distro # current distro detection jinja2 # templating packaging # version parsing requests # HTTP for humans™ - setuptools # required by minver toml # config files ]; + nativeBuildInputs = with python3Packages; [ hatchling ]; + makeWrapperArgs = [ # deps for `srcpkg` operation for other distros; could be optional "--prefix" "PATH" ":" (lib.makeBinPath [ gitMinimal rpm dpkg fakeroot ]) ]; - nativeCheckInputs = with python3Packages; [ pytest ]; + nativeCheckInputs = with python3Packages; [ pytest dunamai ]; checkPhase = '' runHook preCheck py.test # inspiration: .gitlab-ci.yml From 121b60ae9deb4b392a29dfaa5eeace6bd1297666 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Jul 2023 05:29:05 +0000 Subject: [PATCH 28/48] libqb: 2.0.7 -> 2.0.8 --- pkgs/development/libraries/libqb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libqb/default.nix b/pkgs/development/libraries/libqb/default.nix index 86624a1ecc2b..8e798e4a38a4 100644 --- a/pkgs/development/libraries/libqb/default.nix +++ b/pkgs/development/libraries/libqb/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "libqb"; - version = "2.0.7"; + version = "2.0.8"; src = fetchFromGitHub { owner = "ClusterLabs"; repo = pname; rev = "v${version}"; - sha256 = "sha256-Tfw5nGy3A3zLtVuyHn+8jzXPySRNwBx0opwkE+0k+RA="; + sha256 = "sha256-ZjxC7W4U8T68mZy/OvWj/e4W9pJIj2lVDoEjxXYr/G8="; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; From 319e47f43d87a4bbd84a04fdd553b397c0eaea7a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Jul 2023 05:46:11 +0000 Subject: [PATCH 29/48] dotter: 0.12.16 -> 0.13.0 --- pkgs/tools/misc/dotter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/dotter/default.nix b/pkgs/tools/misc/dotter/default.nix index a78a70e4a1a4..1356a3908d60 100644 --- a/pkgs/tools/misc/dotter/default.nix +++ b/pkgs/tools/misc/dotter/default.nix @@ -9,7 +9,7 @@ rustPlatform.buildRustPackage rec { pname = "dotter"; - version = "0.12.16"; + version = "0.13.0"; src = fetchFromGitHub { owner = "SuperCuber"; @@ -18,7 +18,7 @@ rustPlatform.buildRustPackage rec { hash = "sha256-mAvTy/11a9RGSQpElhpKMzsMC7vA7cbeHsNRy9MnIjw="; }; - cargoHash = "sha256-lVhATGh4pP7xj/L8XmPe5fuUUjwPz6qgCtOzIheOvGk="; + cargoHash = "sha256-XsDp/ssoNVdTHDTPm2ucgBeYmFgbeBIxQ/NsGjCl5Qg="; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; From e1ebc51ef647d5d54f0ae002fd13edea0ae3ae94 Mon Sep 17 00:00:00 2001 From: linsui Date: Mon, 10 Jul 2023 01:56:54 +0800 Subject: [PATCH 30/48] jabref: fix gapps wrapper --- pkgs/applications/office/jabref/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/office/jabref/default.nix b/pkgs/applications/office/jabref/default.nix index 786fa2f4623f..d218d7351b27 100644 --- a/pkgs/applications/office/jabref/default.nix +++ b/pkgs/applications/office/jabref/default.nix @@ -38,12 +38,12 @@ stdenv.mkDerivation rec { desktopItems = [ (makeDesktopItem { comment = meta.description; - name = "JabRef %U"; + name = "JabRef"; desktopName = "JabRef"; genericName = "Bibliography manager"; categories = [ "Office" ]; icon = "jabref"; - exec = "JabRef"; + exec = "JabRef %U"; startupWMClass = "org.jabref.gui.JabRefMain"; mimeTypes = [ "text/x-bibtex" ]; }) @@ -144,8 +144,14 @@ stdenv.mkDerivation rec { unzip $out/lib/javafx-web-*.jar libjfxwebkit.so -d $out/lib/ DEFAULT_JVM_OPTS=$(sed -n -E "s/^DEFAULT_JVM_OPTS='(.*)'$/\1/p" $out/bin/JabRef | sed -e "s|\$APP_HOME|$out|g" -e 's/"//g') + + runHook postInstall + ''; + + postFixup = '' rm $out/bin/* + # put this in postFixup because some gappsWrapperArgs are generated in gappsWrapperArgsHook in preFixup makeWrapper ${jdk}/bin/java $out/bin/JabRef \ "''${gappsWrapperArgs[@]}" \ --suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \ @@ -154,8 +160,6 @@ stdenv.mkDerivation rec { # lowercase alias (for convenience and required for browser extensions) ln -sf $out/bin/JabRef $out/bin/jabref - - runHook postInstall ''; meta = with lib; { From 1264b312da9b98478e16b5a4e5c0dbf831013305 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 24 Jul 2023 03:12:56 +0400 Subject: [PATCH 31/48] python3Packages.asyncua: fix build on darwin --- pkgs/development/python-modules/asyncua/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/asyncua/default.nix b/pkgs/development/python-modules/asyncua/default.nix index 7e36099f186c..0ad561ebfb9b 100644 --- a/pkgs/development/python-modules/asyncua/default.nix +++ b/pkgs/development/python-modules/asyncua/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , aiofiles , aiosqlite , buildPythonPackage @@ -60,6 +61,17 @@ buildPythonPackage rec { "asyncua" ]; + disabledTests = lib.optionals stdenv.isDarwin [ + # Failed: DID NOT RAISE + "test_publish" + # OSError: [Errno 48] error while attempting to bind on address ('127.0.0.1',... + "test_anonymous_rejection" + "test_certificate_handling_success" + "test_encrypted_private_key_handling_success" + "test_encrypted_private_key_handling_success_with_cert_props" + "test_encrypted_private_key_handling_failure" + ]; + meta = with lib; { description = "OPC UA / IEC 62541 Client and Server for Python"; homepage = "https://github.com/FreeOpcUa/opcua-asyncio"; From fb9dba73f3ef76847c6716a3c0c4a16673e99686 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 24 Jul 2023 03:17:59 +0400 Subject: [PATCH 32/48] opcua-client-gui: enable on darwin --- pkgs/misc/opcua-client-gui/default.nix | 20 +++++++++++++++----- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/pkgs/misc/opcua-client-gui/default.nix b/pkgs/misc/opcua-client-gui/default.nix index 2c684060758f..361b2627c973 100644 --- a/pkgs/misc/opcua-client-gui/default.nix +++ b/pkgs/misc/opcua-client-gui/default.nix @@ -1,22 +1,32 @@ { lib -, python3 +, stdenv +, python3Packages , fetchFromGitHub , makeDesktopItem , copyDesktopItems +, desktopToDarwinBundle +, wrapQtAppsHook }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "opcua-client-gui"; version = "0.8.4"; src = fetchFromGitHub { owner = "FreeOpcUa"; - repo = pname; + repo = "opcua-client-gui"; rev = version; hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8="; }; - propagatedBuildInputs = with python3.pkgs; [ + nativeBuildInputs = [ copyDesktopItems wrapQtAppsHook ] + ++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ]; + + makeWrapperArgs = [ + "\${qtWrapperArgs[@]}" + ]; + + propagatedBuildInputs = with python3Packages; [ pyqt5 asyncua opcua-widgets @@ -43,7 +53,7 @@ python3.pkgs.buildPythonApplication rec { meta = with lib; { description = "OPC UA GUI Client"; homepage = "https://github.com/FreeOpcUa/opcua-client-gui"; - platforms = platforms.linux; + platforms = platforms.unix; license = licenses.gpl3Only; maintainers = with maintainers; [ janik ]; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b7b067f71fe7..1e79439d4056 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33609,7 +33609,7 @@ with pkgs; opcr-policy = callPackage ../development/tools/opcr-policy { }; - opcua-client-gui = callPackage ../misc/opcua-client-gui { }; + opcua-client-gui = libsForQt5.callPackage ../misc/opcua-client-gui { }; open-policy-agent = callPackage ../development/tools/open-policy-agent { }; From d00a7933295d76378cbe967c45905d4515d2f7f7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Jul 2023 07:42:55 +0000 Subject: [PATCH 33/48] python310Packages.azure-mgmt-netapp: 10.0.0 -> 10.1.0 --- pkgs/development/python-modules/azure-mgmt-netapp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-netapp/default.nix b/pkgs/development/python-modules/azure-mgmt-netapp/default.nix index 4bd9877c48ab..46061f5a0028 100644 --- a/pkgs/development/python-modules/azure-mgmt-netapp/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-netapp/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "azure-mgmt-netapp"; - version = "10.0.0"; + version = "10.1.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-9+cXsY8Qr5ds9lYw39duWdcqm6QUTedQbjn8x6zJoyE="; + hash = "sha256-eJiWTOCk2C79Jotku9bKlu3vU6H8004hWrX+h76MjQM="; extension = "zip"; }; From d6cdb6a43ff374559d82c3429243a3eefa2aea03 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Sun, 2 Jul 2023 19:16:16 +0100 Subject: [PATCH 34/48] glabels-qt: init at unstable-2021-02-06 Co-authored-by: Sandro --- .../graphics/glabels-qt/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/applications/graphics/glabels-qt/default.nix diff --git a/pkgs/applications/graphics/glabels-qt/default.nix b/pkgs/applications/graphics/glabels-qt/default.nix new file mode 100644 index 000000000000..5715241fb757 --- /dev/null +++ b/pkgs/applications/graphics/glabels-qt/default.nix @@ -0,0 +1,31 @@ +{ lib +, fetchFromGitHub +, cmake +, mkDerivation +, qttools +}: + +mkDerivation { + pname = "glabels-qt"; + version = "unstable-2021-02-06"; + + src = fetchFromGitHub { + owner = "jimevins"; + repo = "glabels-qt"; + rev = "glabels-3.99-master564"; + hash = "sha256-SdNOkjspqf6NuuIBZDsJneY6PNrIiP4HU46wDpBLt9Y="; + }; + + nativeBuildInputs = [ + cmake + qttools + ]; + + meta = with lib; { + description = "GLabels Label Designer (Qt/C++)"; + homepage = "https://github.com/jimevins/glabels-qt"; + license = licenses.gpl3Only; + maintainers = [ maintainers.matthewcroughan ]; + platforms = lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1e5ba389773..7596cd13c614 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25831,6 +25831,8 @@ with pkgs; glabels = callPackage ../applications/graphics/glabels { }; + glabels-qt = libsForQt5.callPackage ../applications/graphics/glabels-qt { }; + nats-server = callPackage ../servers/nats-server { }; go-autoconfig = callPackage ../servers/go-autoconfig { }; From 49ecac852780039f7c040a3e8eccae7b8427adcb Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Jul 2023 09:55:15 +0000 Subject: [PATCH 35/48] python310Packages.discogs-client: 2.6 -> 2.7 --- pkgs/development/python-modules/discogs-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/discogs-client/default.nix b/pkgs/development/python-modules/discogs-client/default.nix index 49a563fcba84..ad4268b8f712 100644 --- a/pkgs/development/python-modules/discogs-client/default.nix +++ b/pkgs/development/python-modules/discogs-client/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "discogs-client"; - version = "2.6"; + version = "2.7"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "joalla"; repo = "discogs_client"; rev = "refs/tags/v${version}"; - hash = "sha256-Si1EH5TalNC3BY7L/GqbGSCjDBWzbodB4NZlNayhZYs="; + hash = "sha256-sTzYhUKPqaCE553FqWR4qdtDDtymhuybHWiDOUwgglA="; }; propagatedBuildInputs = [ From 27a83e4cc42d1f224812d6a48ba15e993b297713 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 24 Jul 2023 19:04:38 +0800 Subject: [PATCH 36/48] sing-box: 1.3.0 -> 1.3.3 --- pkgs/tools/networking/sing-box/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/sing-box/default.nix b/pkgs/tools/networking/sing-box/default.nix index 1e15eaf9a192..c12c31e99651 100644 --- a/pkgs/tools/networking/sing-box/default.nix +++ b/pkgs/tools/networking/sing-box/default.nix @@ -11,16 +11,16 @@ buildGoModule rec { pname = "sing-box"; - version = "1.3.0"; + version = "1.3.3"; src = fetchFromGitHub { owner = "SagerNet"; repo = pname; rev = "v${version}"; - hash = "sha256-+zEjuoGFAZhajUCFPZXNr1SoAprjOsHf12nVCbDKOeY="; + hash = "sha256-I6e0PkF52sCKPtQIOIlYdpWzySDnEqX8KmK/e29CQG8="; }; - vendorHash = "sha256-KJEjqcwtsNEByTQjp+TU9Yct/CJD8F9fnGuq9eeGtpQ="; + vendorHash = "sha256-CL+N2w8g5aMysFlPgPLszqjPu8MULoQ/xpz8Wd3lI6k="; tags = [ "with_quic" From 4ec8ab12c5d59b514557300296f90946f7a13686 Mon Sep 17 00:00:00 2001 From: surfaceflinger Date: Mon, 24 Jul 2023 13:45:37 +0200 Subject: [PATCH 37/48] jazz2: 2.0.0 -> 2.1.0 --- pkgs/games/jazz2/game.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/jazz2/game.nix b/pkgs/games/jazz2/game.nix index d29d1342fd92..22ddbfe337a7 100644 --- a/pkgs/games/jazz2/game.nix +++ b/pkgs/games/jazz2/game.nix @@ -16,13 +16,13 @@ stdenv.mkDerivation rec { pname = "jazz2"; - version = "2.0.0"; + version = "2.1.0"; src = fetchFromGitHub { owner = "deathkiller"; repo = "jazz2-native"; rev = version; - sha256 = "IJhMxnOUam6MdT5f0JBThf/sV4WxA++gpBMB2cGqJ14="; + sha256 = "nJha7+geP2Ov7ciEDzJ+XWdiF1jzv4Oeis1DwxcpJXo="; }; patches = [ ./nocontent.patch ]; From 59236a397915ad44a36c87e5d2b906cf9671de1a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 24 Jul 2023 11:45:56 +0000 Subject: [PATCH 38/48] jackett: 0.21.484 -> 0.21.532 --- pkgs/servers/jackett/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/jackett/default.nix b/pkgs/servers/jackett/default.nix index 4ff7acfee2f1..2d45a39fe8ae 100644 --- a/pkgs/servers/jackett/default.nix +++ b/pkgs/servers/jackett/default.nix @@ -9,13 +9,13 @@ buildDotnetModule rec { pname = "jackett"; - version = "0.21.484"; + version = "0.21.532"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - hash = "sha512-gjDhbtPV4wWOZUn7YJ9buoiukp5vkSU9Rk1+IBAzphoYKFdgzLqYDVJcrIBEAJks5KBAmMSIBY2Kdfb1WC5KvQ=="; + hash = "sha512-WBfFfE8KKkGViMNlxAv+MDt8HMSNQPpaxdxeIC75O02ldVr8rsMpyAdAVw+gH2KQhyJP3VGnLk++FhUCfFCLiw=="; }; projectFile = "src/Jackett.Server/Jackett.Server.csproj"; From 9135e2d0cccd186357d87bc5fc40572102ed88a9 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Mon, 24 Jul 2023 14:52:48 +0300 Subject: [PATCH 39/48] lazygit: 0.39.3 -> 0.39.4 --- pkgs/development/tools/lazygit/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/lazygit/default.nix b/pkgs/development/tools/lazygit/default.nix index 70e92fabcc6c..e26184cd7443 100644 --- a/pkgs/development/tools/lazygit/default.nix +++ b/pkgs/development/tools/lazygit/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "lazygit"; - version = "0.39.3"; + version = "0.39.4"; src = fetchFromGitHub { owner = "jesseduffield"; repo = pname; rev = "v${version}"; - sha256 = "sha256-VIWNuCHO41Wf6KM6Fz6BGzl/nS/SFprZpJUz7ZxaoJc="; + hash = "sha256-1eJmnLsQrcGw+A0rGXfZUFHwJAthZSNhNcc2zt/dx5M="; }; vendorHash = null; @@ -21,6 +21,6 @@ buildGoModule rec { homepage = "https://github.com/jesseduffield/lazygit"; changelog = "https://github.com/jesseduffield/lazygit/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ equirosa Br1ght0ne ]; + maintainers = with maintainers; [ Br1ght0ne equirosa paveloom ]; }; } From 3428dd4bef7ea4d81f6da347150281e0efb6d6c0 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Mon, 24 Jul 2023 14:26:11 +0200 Subject: [PATCH 40/48] docker: apply fix starting containers with a local connection with the CLI The change done in 4a526a901c3da5092e0ac7278ad49fe00940f0b4 was not enough to cover everything. In order for the Docker CLI to work when built with Go 1.20.6 it is also required to have the equivalent patch for the docker/cli repository. --- pkgs/applications/virtualization/docker/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 79f39f949ece..3913031e7bc2 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -188,6 +188,14 @@ rec { ++ lib.optional withSeccomp libseccomp ++ plugins; + patches = [ + (fetchpatch { + name = "fix-issue-with-go-1.20.6.patch"; + url = "https://github.com/docker/cli/pull/4441.patch"; + hash = "sha256-F4ueSbdBk1w8OqC4Dgh8+4Ql4zTjehaM368ET7k6Yx8="; + }) + ]; + postPatch = '' patchShebangs man scripts/build/ substituteInPlace ./scripts/build/.variables --replace "set -eu" "" From 7d57cbddc613acd5df610c45a4228b8681af4110 Mon Sep 17 00:00:00 2001 From: Mark Vainomaa Date: Mon, 24 Jul 2023 15:57:59 +0300 Subject: [PATCH 41/48] docker: remove mikroskeem from maintainers --- pkgs/applications/virtualization/docker/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/docker/default.nix b/pkgs/applications/virtualization/docker/default.nix index 3913031e7bc2..cf5698c5bbdc 100644 --- a/pkgs/applications/virtualization/docker/default.nix +++ b/pkgs/applications/virtualization/docker/default.nix @@ -273,7 +273,7 @@ rec { To enable the docker daemon on NixOS, set the `virtualisation.docker.enable` option to `true`. ''; license = licenses.asl20; - maintainers = with maintainers; [ offline vdemeester periklis mikroskeem maxeaubrey ]; + maintainers = with maintainers; [ offline vdemeester periklis maxeaubrey ]; }; }); From 048928fa014fdeb76c65e0b96a3b8a6b03b11f66 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 24 Jul 2023 09:36:58 -0400 Subject: [PATCH 42/48] repgrep: 0.14.1 -> 0.14.2 Diff: https://github.com/acheronfail/repgrep/compare/0.14.1...0.14.2 Changelog: https://github.com/acheronfail/repgrep/blob/0.14.2/CHANGELOG.md --- pkgs/tools/text/repgrep/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/text/repgrep/default.nix b/pkgs/tools/text/repgrep/default.nix index d732687b342c..5bce7d2f2b92 100644 --- a/pkgs/tools/text/repgrep/default.nix +++ b/pkgs/tools/text/repgrep/default.nix @@ -9,16 +9,16 @@ rustPlatform.buildRustPackage rec { pname = "repgrep"; - version = "0.14.1"; + version = "0.14.2"; src = fetchFromGitHub { owner = "acheronfail"; repo = "repgrep"; rev = version; - hash = "sha256-B3p1h1A8To7yDdioTr7d+C4/231YA7F45QKnzPb0AZs="; + hash = "sha256-sclBzv3F3M3oARRm0cNg/ABomzfgbDp0cFOXkRYjGEY="; }; - cargoHash = "sha256-V2jsH48QavHlCQQ3w3IoqlgOkY3SKXwVYhoa4KURruk="; + cargoHash = "sha256-o6pF32sNiDuCjsBaa5beZyFCv1PoqALZOhAb0GF0XyQ="; nativeBuildInputs = [ asciidoctor From df8d064819a5bb95a10875c781df197bf2bfbf57 Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 24 Jul 2023 09:39:25 -0400 Subject: [PATCH 43/48] wazero: 1.3.0 -> 1.3.1 Diff: https://github.com/tetratelabs/wazero/compare/v1.3.0...v1.3.1 Changelog: https://github.com/tetratelabs/wazero/releases/tag/v1.3.1 --- pkgs/development/interpreters/wazero/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/wazero/default.nix b/pkgs/development/interpreters/wazero/default.nix index 46a186d94987..f72f4be1fc50 100644 --- a/pkgs/development/interpreters/wazero/default.nix +++ b/pkgs/development/interpreters/wazero/default.nix @@ -7,13 +7,13 @@ buildGoModule rec { pname = "wazero"; - version = "1.3.0"; + version = "1.3.1"; src = fetchFromGitHub { owner = "tetratelabs"; repo = "wazero"; rev = "v${version}"; - hash = "sha256-jZCh7RMJKKEPsirxNFZAtm0T0EGpmWIoQrkXYR95Krg="; + hash = "sha256-gLiUEJdO/2btZb5D9O1r+uF3ZVBN4Oy3dFwqUNQRoW8="; }; vendorHash = null; From dbdbd6c97bf1713efdcb3f06cfac5f3713bccd5b Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 24 Jul 2023 09:42:02 -0400 Subject: [PATCH 44/48] cargo-diet: 1.2.5 -> 1.2.7 Diff: https://github.com/the-lean-crate/cargo-diet/compare/v1.2.5...v1.2.7 Changelog: https://github.com/the-lean-crate/cargo-diet/blob/v1.2.7/CHANGELOG.md --- pkgs/development/tools/rust/cargo-diet/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-diet/default.nix b/pkgs/development/tools/rust/cargo-diet/default.nix index f3804f4d1706..da3036187e2d 100644 --- a/pkgs/development/tools/rust/cargo-diet/default.nix +++ b/pkgs/development/tools/rust/cargo-diet/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "cargo-diet"; - version = "1.2.5"; + version = "1.2.7"; src = fetchFromGitHub { owner = "the-lean-crate"; - repo = pname; + repo = "cargo-diet"; rev = "v${version}"; - sha256 = "sha256-JzhSTbEf2Yl5cEIb+88y+s8lUN6c1Mir4NYvzAWMZwY="; + hash = "sha256-SuJ1H/2YfSVVigdgLUd9veMClI7ZT7xkkyQ4PfXoQdQ="; }; - cargoSha256 = "sha256-zW6ec8DHzP6AuNI6fcOQLH03ca+/yjdh56nltSM9pAA="; + cargoHash = "sha256-MASftcn3WmB3M6bvmtnK3nlroE8nq9zdkleSEgzA5lk="; meta = with lib; { description = "Help computing optimal include directives for your Cargo.toml manifest"; From 1b54927c85f63a5f8c2180de730f89c96540c018 Mon Sep 17 00:00:00 2001 From: William Veal Phan Date: Mon, 24 Jul 2023 16:41:01 +0200 Subject: [PATCH 45/48] sbt: 1.9.2 -> 1.9.3 (#245161) --- pkgs/development/tools/build-managers/sbt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/build-managers/sbt/default.nix b/pkgs/development/tools/build-managers/sbt/default.nix index a2b9f297ab31..f2065d41068d 100644 --- a/pkgs/development/tools/build-managers/sbt/default.nix +++ b/pkgs/development/tools/build-managers/sbt/default.nix @@ -8,11 +8,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "sbt"; - version = "1.9.2"; + version = "1.9.3"; src = fetchurl { url = "https://github.com/sbt/sbt/releases/download/v${finalAttrs.version}/sbt-${finalAttrs.version}.tgz"; - hash = "sha256-XdQ69GFnoboN9jhZv65uNS++1SXnZiLY69yJFCIlMrI="; + hash = "sha256-nM+UTsyzPGaDDvn/nUbDQCdBzcbYgyUQRSYdsz50joI="; }; postPatch = '' From 1a2d2661803baa43f223896fe043aa8b99f0ab27 Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Mon, 24 Jul 2023 10:44:55 -0400 Subject: [PATCH 46/48] temporal-cli: fix missing meta.platforms preventing Hydra builds (#243518) --- .../cluster/temporal-cli/default.nix | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/cluster/temporal-cli/default.nix b/pkgs/applications/networking/cluster/temporal-cli/default.nix index 6d30171e1e08..c35cf14e0644 100644 --- a/pkgs/applications/networking/cluster/temporal-cli/default.nix +++ b/pkgs/applications/networking/cluster/temporal-cli/default.nix @@ -1,6 +1,13 @@ { lib, fetchFromGitHub, buildGoModule, installShellFiles, symlinkJoin }: let + metaCommon = with lib; { + description = "Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal"; + homepage = "https://docs.temporal.io/cli"; + license = licenses.mit; + maintainers = with maintainers; [ aaronjheng ]; + }; + overrideModAttrs = old: { # https://gitlab.com/cznic/libc/-/merge_requests/10 postBuild = '' @@ -44,6 +51,10 @@ let ''; __darwinAllowLocalNetworking = true; + + meta = metaCommon // { + mainProgram = "temporal"; + }; }; tctl = buildGoModule rec { @@ -78,6 +89,10 @@ let ''; __darwinAllowLocalNetworking = true; + + meta = metaCommon // { + mainProgram = "tctl"; + }; }; in symlinkJoin rec { @@ -92,11 +107,8 @@ symlinkJoin rec { passthru = { inherit tctl tctl-next; }; - meta = with lib; { - description = "Temporal CLI"; - homepage = "https://temporal.io"; - license = licenses.mit; - maintainers = with maintainers; [ aaronjheng ]; + meta = metaCommon // { mainProgram = "temporal"; + platforms = lib.unique (lib.concatMap (drv: drv.meta.platforms) paths); }; } From acc4cfd48b3bf17b50a8394ea0d6a12c6fc11b2a Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 24 Jul 2023 14:56:50 +0200 Subject: [PATCH 47/48] vorta: strip away output dependency on `qt5.qtwayland.dev` `propagatedBuildInputs` is only required in this case to correctly build the `PYTHONPATH` for the final application. The QT hook doesn't need `qtwayland` in `propagatedBuildInputs`, `buildInputs` is sufficient for it to work. Additionally, this causes a closure-size reduction of ~22.5% because we get rid of the dependency to the `dev` output of `qtwayland`: $ nix path-info -Sh ./result-old /nix/store/i8i4p2i3wkjv4y95pp3i421nwg0f1shh-vorta-0.8.12 775.2M $ nix path-info -Sh ./result-new /nix/store/jcyrkk89my2lh00z7dy8z19xyvlf8yhr-vorta-0.8.12 599.5M --- pkgs/applications/backup/vorta/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/backup/vorta/default.nix b/pkgs/applications/backup/vorta/default.nix index 8c8d399d7d8b..7870b3c11ee6 100644 --- a/pkgs/applications/backup/vorta/default.nix +++ b/pkgs/applications/backup/vorta/default.nix @@ -4,6 +4,7 @@ , wrapQtAppsHook , borgbackup , qt5 +, stdenv }: python3Packages.buildPythonApplication rec { @@ -19,6 +20,10 @@ python3Packages.buildPythonApplication rec { nativeBuildInputs = [ wrapQtAppsHook ]; + buildInputs = lib.optionals stdenv.isLinux [ + qt5.qtwayland + ]; + propagatedBuildInputs = with python3Packages; [ peewee pyqt5 @@ -29,8 +34,6 @@ python3Packages.buildPythonApplication rec { appdirs setuptools platformdirs - ] ++ lib.optionals stdenv.isLinux [ - qt5.qtwayland ]; postPatch = '' From dd0b6dc833ddd91791490bd81ffb8c1ae2a8b7f6 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Thu, 20 Jul 2023 08:43:25 +0100 Subject: [PATCH 48/48] homepage-dashboard: 0.6.21 -> 0.6.23 --- pkgs/servers/homepage-dashboard/default.nix | 25 +++++++++++---------- pkgs/top-level/all-packages.nix | 5 ++++- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/pkgs/servers/homepage-dashboard/default.nix b/pkgs/servers/homepage-dashboard/default.nix index 1c8c283e9c3e..f09523cd7612 100644 --- a/pkgs/servers/homepage-dashboard/default.nix +++ b/pkgs/servers/homepage-dashboard/default.nix @@ -2,6 +2,9 @@ , fetchFromGitHub , nodePackages , python3 +, stdenv +, cctools +, IOKit , lib , fetchpatch , makeBinaryWrapper @@ -10,24 +13,16 @@ buildNpmPackage rec { pname = "homepage-dashboard"; - version = "0.6.21"; + version = "0.6.23"; src = fetchFromGitHub { owner = "benphelps"; repo = "homepage"; rev = "v${version}"; - hash = "sha256-kjxA02hJj/GAQ0fM1xTtXAnZSQgVyE+EMRrXis1Vr+o="; + hash = "sha256-Nr090221lTW7luuzh/URdDPByILnjMChyZcV2+AUG3o="; }; - npmDepsHash = "sha256-O6SQYx5vxscMsbWv0ynUYqdUkOp/nMtdvlZ/Mp95sBY="; - - patches = [ - (fetchpatch { - name = "env-config-dir.patch"; - url = "https://github.com/benphelps/homepage/commit/ca396ce96bce52f6c06a321f292aa94a66ceeb97.patch"; - hash = "sha256-eNnW/ce4ytoKR6jH1Ztc4UTWOmL0uGRdY6nYBIVYM6k="; - }) - ]; + npmDepsHash = "sha256-l6kVmKXAQMqpzu/GTrz92WeDorLhunfcUrbMVfUwR9U="; preBuild = '' mkdir -p config @@ -39,8 +34,14 @@ buildNpmPackage rec { patchShebangs .next/standalone/server.js ''; + nativeBuildInputs = lib.optionals stdenv.isDarwin [ + cctools + ]; + buildInputs = [ nodePackages.node-gyp-build + ] ++ lib.optionals stdenv.isDarwin [ + IOKit ]; env.PYTHON = "${python3}/bin/python"; @@ -68,7 +69,7 @@ buildNpmPackage rec { doDist = false; passthru.tests = { - inherit (nixosTests) homepage; + inherit (nixosTests) homepage-dashboard; }; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e3e6f6a5660c..b3b3deddcfde 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5398,7 +5398,10 @@ with pkgs; home-manager = callPackage ../tools/package-management/home-manager { }; - homepage-dashboard = callPackage ../servers/homepage-dashboard { }; + homepage-dashboard = callPackage ../servers/homepage-dashboard { + inherit (darwin) cctools; + inherit (darwin.apple_sdk.frameworks) IOKit; + }; hostsblock = callPackage ../tools/misc/hostsblock { };