From 4e7290929bad55d69f3340958ec32fa61cd5ed3a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 29 Jul 2023 11:16:26 +0000 Subject: [PATCH 01/39] vault-bin: 1.13.3 -> 1.14.1 --- pkgs/tools/security/vault/vault-bin.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/security/vault/vault-bin.nix b/pkgs/tools/security/vault/vault-bin.nix index 0cf2f8e633bc..96a65465c1d9 100644 --- a/pkgs/tools/security/vault/vault-bin.nix +++ b/pkgs/tools/security/vault/vault-bin.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { pname = "vault-bin"; - version = "1.13.3"; + version = "1.14.1"; src = let @@ -16,11 +16,11 @@ stdenv.mkDerivation rec { aarch64-darwin = "darwin_arm64"; }; sha256 = selectSystem { - x86_64-linux = "sha256-heC2VX656nAlYoTwfa4Tv+tlkclfKxNTTpWa+Y6XWLA="; - aarch64-linux = "sha256-Alx8Lacb0IO8kSjYwkeytGxQkCM57zTSk+JXATxZ1eU="; - i686-linux = "sha256-eJW6boE0KG4oF/Sf1UxWVXkwLOx5R6ohrpog3YXKfvY="; - x86_64-darwin = "sha256-lWLEr0arVR7fpgxGEZqkoj/w4YHzNQo+jILZRQ53Eok="; - aarch64-darwin = "sha256-hGlmOKLpb9P/pO8ilxG2dLYDULXarp55/e8HoSbHz98="; + x86_64-linux = "sha256-4CBj8XMRrK9BNzjC6/5A62q85LgnGx/K5jselB5bb+g="; + aarch64-linux = "sha256-MAIudk/2X+2WWF0hv3qKklIYuymQPx75Dg8e0gV1gt0="; + i686-linux = "sha256-bqkdOLa99uNwsUIkkIygFcWYgmMplty/YaL46o+LWEM="; + x86_64-darwin = "sha256-a1CSMOTVpYIjto25VkiAmKEwBr0CaMJhiTFYEUcwqPM="; + aarch64-darwin = "sha256-OZ3l6/gyHI80dABmhaLrFbsau3Yp9hE2U7qPLVBwjoo="; }; in fetchzip { From a8b91a52e5f32ee5c104522025d103a9d1ba58f8 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 9 Aug 2023 21:34:28 -0400 Subject: [PATCH 02/39] maintainers/teams: add zig team --- maintainers/team-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/team-list.nix b/maintainers/team-list.nix index 975a1e2c42c9..831ed3ffeb19 100644 --- a/maintainers/team-list.nix +++ b/maintainers/team-list.nix @@ -891,4 +891,14 @@ with lib.maintainers; { shortName = "Xfce"; enableFeatureFreezePing = true; }; + + zig = { + members = [ + AndersonTorres + figsoda + ]; + scope = "Maintain the Zig compiler toolchain and nixpkgs integration."; + shortName = "Zig"; + enableFeatureFreezePing = true; + }; } From 55a8deab40f8c2f7b145a0fd610f59541c1f664e Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 9 Aug 2023 21:34:53 -0400 Subject: [PATCH 03/39] zig: maintained by the zig team --- pkgs/development/compilers/zig/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/zig/generic.nix b/pkgs/development/compilers/zig/generic.nix index 5cc75cbbf6eb..5729819df027 100644 --- a/pkgs/development/compilers/zig/generic.nix +++ b/pkgs/development/compilers/zig/generic.nix @@ -58,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://ziglang.org/"; changelog = "https://ziglang.org/download/${finalAttrs.version}/release-notes.html"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ aiotter andrewrk AndersonTorres figsoda ]; + maintainers = with lib.maintainers; [ aiotter andrewrk ] ++ lib.teams.zig.members; platforms = lib.platforms.unix; }; } // removeAttrs args [ "hash" ]) From cc9cde3c7dc90c1525e1a215fcd0177fd988de3f Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 9 Aug 2023 21:36:29 -0400 Subject: [PATCH 04/39] CODEOWNERS: add the zig team --- .github/CODEOWNERS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 45bc58a9def7..f96d058c374b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -305,5 +305,9 @@ nixos/lib/make-multi-disk-zfs-image.nix @raitobezarius nixos/modules/tasks/filesystems/zfs.nix @raitobezarius nixos/tests/zfs.nix @raitobezarius +# Zig +/pkgs/development/compilers/zig @AndersonTorres @figsoda +/doc/hooks/zig.section.md @AndersonTorres @figsoda + # Linux Kernel pkgs/os-specific/linux/kernel/manual-config.nix @amjoseph-nixpkgs From d4884873364b23f67a97cc69c75adb210674040b Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 11 Aug 2023 09:31:40 -0400 Subject: [PATCH 05/39] zig: remove aiotter from maintainers https://github.com/NixOS/nixpkgs/pull/248252#issuecomment-1674462834 --- pkgs/development/compilers/zig/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/zig/generic.nix b/pkgs/development/compilers/zig/generic.nix index 5729819df027..b5bd198951f5 100644 --- a/pkgs/development/compilers/zig/generic.nix +++ b/pkgs/development/compilers/zig/generic.nix @@ -58,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://ziglang.org/"; changelog = "https://ziglang.org/download/${finalAttrs.version}/release-notes.html"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ aiotter andrewrk ] ++ lib.teams.zig.members; + maintainers = with lib.maintainers; [ andrewrk ] ++ lib.teams.zig.members; platforms = lib.platforms.unix; }; } // removeAttrs args [ "hash" ]) From f4e1e8627d421d7c3bbdc2811abebd8c15169019 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Fri, 11 Aug 2023 22:21:00 +0800 Subject: [PATCH 06/39] nixos/pantheon: Drop qgnomeplatform The upstream is not maintained, and qadwaitadecoration does not seem to be xorg-related. We should have proper shadows when using SSD. --- nixos/doc/manual/release-notes/rl-2311.section.md | 2 +- nixos/modules/services/x11/desktop-managers/pantheon.nix | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 2f286d13f2b6..8ede5b28b3e2 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -140,7 +140,7 @@ - The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration. -- GNOME module no longer forces Qt applications to use Adwaita style since it was buggy and is no longer maintained upstream. If you still want it, you can add the following options to your configuration but it will probably be eventually removed: +- GNOME, Pantheon module no longer forces Qt applications to use Adwaita style since it was buggy and is no longer maintained upstream. If you still want it, you can add the following options to your configuration but it will probably be eventually removed: ```nix qt = { diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index d8a47e93afc7..eef7aa14057e 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -200,7 +200,6 @@ in gtk3.out # for gtk-launch program onboard orca # elementary/greeter#668 - qgnomeplatform sound-theme-freedesktop xdg-user-dirs # Update user dirs as described in http://freedesktop.org/wiki/Software/xdg-user-dirs/ ]) ++ (with pkgs.pantheon; [ @@ -260,10 +259,10 @@ in programs.bash.vteIntegration = mkDefault true; programs.zsh.vteIntegration = mkDefault true; - # Harmonize Qt applications under Pantheon - qt.enable = true; - qt.platformTheme = "gnome"; - qt.style = "adwaita"; + # Use native GTK file chooser on Qt apps. This is because Qt does not know Pantheon. + # https://invent.kde.org/qt/qt/qtbase/-/blob/6.6/src/gui/platform/unix/qgenericunixthemes.cpp#L1312 + # https://github.com/elementary/default-settings/blob/7.0.2/profile.d/qt-qpa-platformtheme.sh + environment.variables.QT_QPA_PLATFORMTHEME = mkDefault "gtk3"; # Default Fonts fonts.packages = with pkgs; [ From ddd4973ddb8807a9cec272d224cffd104a4f54a1 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Fri, 11 Aug 2023 22:22:38 +0800 Subject: [PATCH 07/39] nixos/cinnamon: Drop qgnomeplatform The upstream is not maintained, and qadwaitadecoration does not seem to be xorg-related. We should have proper shadows when using SSD. --- nixos/doc/manual/release-notes/rl-2311.section.md | 2 +- nixos/modules/services/x11/desktop-managers/cinnamon.nix | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 8ede5b28b3e2..e42f7a5d58d2 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -140,7 +140,7 @@ - The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration. -- GNOME, Pantheon module no longer forces Qt applications to use Adwaita style since it was buggy and is no longer maintained upstream. If you still want it, you can add the following options to your configuration but it will probably be eventually removed: +- GNOME, Pantheon, Cinnamon module no longer forces Qt applications to use Adwaita style since it was buggy and is no longer maintained upstream. If you still want it, you can add the following options to your configuration but it will probably be eventually removed: ```nix qt = { diff --git a/nixos/modules/services/x11/desktop-managers/cinnamon.nix b/nixos/modules/services/x11/desktop-managers/cinnamon.nix index b3cbe4c324df..d2e16da93456 100644 --- a/nixos/modules/services/x11/desktop-managers/cinnamon.nix +++ b/nixos/modules/services/x11/desktop-managers/cinnamon.nix @@ -212,11 +212,6 @@ in programs.bash.vteIntegration = mkDefault true; programs.zsh.vteIntegration = mkDefault true; - # Harmonize Qt applications under Cinnamon - qt.enable = true; - qt.platformTheme = "gnome"; - qt.style = "adwaita"; - # Default Fonts fonts.packages = with pkgs; [ source-code-pro # Default monospace font in 3.32 From c20dd15b69139fdc92b4512080d9d1c9e4cb4f97 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Fri, 28 Jul 2023 02:21:23 +0000 Subject: [PATCH 08/39] aws-nuke: 2.22.1 -> 2.23.0 --- pkgs/tools/admin/aws-nuke/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/admin/aws-nuke/default.nix b/pkgs/tools/admin/aws-nuke/default.nix index c933ad4de303..6d1ec85fb6cd 100644 --- a/pkgs/tools/admin/aws-nuke/default.nix +++ b/pkgs/tools/admin/aws-nuke/default.nix @@ -5,23 +5,22 @@ buildGoModule rec { pname = "aws-nuke"; - version = "2.22.1"; + version = "2.23.0"; src = fetchFromGitHub { owner = "rebuy-de"; repo = pname; rev = "v${version}"; - sha256 = "sha256-cI6HoXclJDMDGBk2RdvzG7kNzfMu133mx+a83gQM5aA="; + hash = "sha256-fvEUZWnYjSZrdTLTq1WVuZ3GaIWqdk3+qnuXDwT0K/0="; }; - vendorSha256 = "sha256-DkamoQxwJUhO3Q0dh3pig9j6ZiYhZXVPWltK1P8dzhc="; + vendorHash = "sha256-c9OpKsP4TQ4aDZnHPSy6tNmNBN6tsj4Kb8WOig5+ogI="; - preBuild = '' - if [ "x$outputHashAlgo" != "x" ]; then - # Only `go generate` when fetching the go mod vendor code + overrideModAttrs = _: { + preBuild = '' go generate ./... - fi - ''; + ''; + }; doCheck = false; From f5e554e6166d534814817711a0961cbb5f7f1fa6 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 12 Aug 2023 22:36:33 -0700 Subject: [PATCH 09/39] python3.pkgs.aws-lambda-builders: add missing pip test dependency --- pkgs/development/python-modules/aws-lambda-builders/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/aws-lambda-builders/default.nix b/pkgs/development/python-modules/aws-lambda-builders/default.nix index b42e64bdfa22..536a67b48372 100644 --- a/pkgs/development/python-modules/aws-lambda-builders/default.nix +++ b/pkgs/development/python-modules/aws-lambda-builders/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , mock , parameterized +, pip , pyelftools , pytestCheckHook , pythonOlder @@ -30,6 +31,7 @@ buildPythonPackage rec { nativeCheckInputs = [ mock parameterized + pip pyelftools pytestCheckHook ]; From b09606fc0a5cf751a5f44256eedb9ac06e6b747e Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 13 Aug 2023 15:50:40 +0800 Subject: [PATCH 10/39] eigenmath: unstable-2023-06-16 -> unstable-2023-08-03 Diff: https://github.com/georgeweigt/eigenmath/compare/800adc5c0bd654eb9ad28497e1b78c4061b3a4cb...f202cf0c342e54e994c4d416daecc1b1dc8b9c98 --- pkgs/applications/science/math/eigenmath/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/science/math/eigenmath/default.nix b/pkgs/applications/science/math/eigenmath/default.nix index a408f105c8bf..345eab6d3282 100644 --- a/pkgs/applications/science/math/eigenmath/default.nix +++ b/pkgs/applications/science/math/eigenmath/default.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "eigenmath"; - version = "unstable-2023-06-16"; + version = "unstable-2023-08-03"; src = fetchFromGitHub { owner = "georgeweigt"; repo = pname; - rev = "800adc5c0bd654eb9ad28497e1b78c4061b3a4cb"; - hash = "sha256-/ViU44E3myAc7B8amm/TaIh70g2Z7IC4KRRG3++nOKs="; + rev = "f202cf0c342e54e994c4d416daecc1b1dc8b9c98"; + hash = "sha256-kp4zWTPYt2DiuPgTK+ib8NbKg2BJVxJDDCvIlWNuwgs="; }; checkPhase = let emulator = stdenv.hostPlatform.emulator buildPackages; in '' From e737f504155b06a1ac4c79b5d1bd9d14f754dc75 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 13 Aug 2023 11:48:30 +0200 Subject: [PATCH 11/39] python311Packages.google-api-python-client: 2.88.0 -> 2.96.0 Changelog: https://github.com/googleapis/google-api-python-client/releases/tag/v2.96.0 --- .../python-modules/google-api-python-client/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-api-python-client/default.nix b/pkgs/development/python-modules/google-api-python-client/default.nix index c99ecbdcb465..aea6bd04d844 100644 --- a/pkgs/development/python-modules/google-api-python-client/default.nix +++ b/pkgs/development/python-modules/google-api-python-client/default.nix @@ -13,14 +13,14 @@ buildPythonPackage rec { pname = "google-api-python-client"; - version = "2.88.0"; + version = "2.96.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-NwaEU/eeoo5TlKj+IKS6YgWU5/hUEGi+ouhE2s3MnTM="; + hash = "sha256-9xI3PQPTOK9XufX+mMkfS1uqqHZUabAVvGI8RoHFvVE="; }; propagatedBuildInputs = [ From f6538bb83af2ca47dbcf013bc0bad56f28b1f069 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 13 Aug 2023 17:31:58 +0200 Subject: [PATCH 12/39] eigenmath: set platforms --- pkgs/applications/science/math/eigenmath/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/science/math/eigenmath/default.nix b/pkgs/applications/science/math/eigenmath/default.nix index 345eab6d3282..8abcd96f08d2 100644 --- a/pkgs/applications/science/math/eigenmath/default.nix +++ b/pkgs/applications/science/math/eigenmath/default.nix @@ -43,5 +43,6 @@ stdenv.mkDerivation rec { homepage = "https://georgeweigt.github.io"; license = licenses.bsd2; maintainers = with maintainers; [ nickcao ]; + platforms = platforms.unix; }; } From 7f466dbc36f0a1a76631d073769d9cf47bc33635 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 13 Aug 2023 16:23:35 +0000 Subject: [PATCH 13/39] ssm-session-manager-plugin: 1.2.463.0 -> 1.2.497.0 --- .../networking/cluster/ssm-session-manager-plugin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/ssm-session-manager-plugin/default.nix b/pkgs/applications/networking/cluster/ssm-session-manager-plugin/default.nix index 069fd056b62a..128482d705b0 100644 --- a/pkgs/applications/networking/cluster/ssm-session-manager-plugin/default.nix +++ b/pkgs/applications/networking/cluster/ssm-session-manager-plugin/default.nix @@ -5,7 +5,7 @@ buildGoPackage rec { pname = "ssm-session-manager-plugin"; - version = "1.2.463.0"; + version = "1.2.497.0"; goPackagePath = "github.com/aws/session-manager-plugin"; @@ -13,7 +13,7 @@ buildGoPackage rec { owner = "aws"; repo = "session-manager-plugin"; rev = version; - hash = "sha256-0n7/3CAPf+ioSE041Zik9xeHt5qtrdHotJjBWhizExo="; + hash = "sha256-DX+Jm7u0gNX3o0QYIbE6Vzsmqys+09lQGHpIuqBEwMI="; }; postPatch = '' From 018d022c781e5c064af046f4bc01816e23678f45 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 3 Jun 2023 22:15:45 +0200 Subject: [PATCH 14/39] python311Packages.jupyterhub: 1.5.0 -> 4.0.0 Changelog: https://github.com/jupyterhub/jupyterhub/blob/4.0.0/docs/source/changelog.md --- .../python-modules/jupyterhub/default.nix | 66 ++++++++++++++----- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/jupyterhub/default.nix b/pkgs/development/python-modules/jupyterhub/default.nix index b1bb40ad70f7..a039ca01219b 100644 --- a/pkgs/development/python-modules/jupyterhub/default.nix +++ b/pkgs/development/python-modules/jupyterhub/default.nix @@ -1,30 +1,32 @@ { lib , stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchzip , alembic , async-generator +, beautifulsoup4 +, buildPythonPackage , certipy -, python-dateutil +, cryptography , entrypoints +, fetchPypi +, fetchzip +, importlib-metadata , jinja2 , jupyter-telemetry +, nodePackages +, notebook , oauthlib , pamela , prometheus-client +, pytest-asyncio +, pytestCheckHook +, python-dateutil +, pythonOlder , requests +, requests-mock +, selenium , sqlalchemy , tornado , traitlets -, nodePackages -, beautifulsoup4 -, cryptography -, notebook -, pytest-asyncio -, pytestCheckHook -, requests-mock , virtualenv }: @@ -61,12 +63,14 @@ in buildPythonPackage rec { pname = "jupyterhub"; - version = "1.5.0"; - disabled = pythonOlder "3.6"; + version = "4.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-3GGPZXwjukYoDjYlflCTGAZnS6Dp5kmK+wke/GIm1p0="; + hash = "sha256-LKspluSafStwwLtYCpkuRCBZSD4K8YrwYaKayCsUqGc="; }; # Most of this only applies when building from source (e.g. js/css assets are @@ -111,7 +115,6 @@ buildPythonPackage rec { ''; propagatedBuildInputs = [ - # https://github.com/jupyterhub/jupyterhub/blob/master/requirements.txt alembic async-generator certipy @@ -123,9 +126,12 @@ buildPythonPackage rec { pamela prometheus-client requests + selenium sqlalchemy tornado traitlets + ] ++ lib.optionals (pythonOlder "3.10") [ + importlib-metadata ]; preCheck = '' @@ -134,7 +140,6 @@ buildPythonPackage rec { ''; nativeCheckInputs = [ - # https://github.com/jupyterhub/jupyterhub/blob/master/dev-requirements.txt beautifulsoup4 cryptography notebook @@ -151,14 +156,39 @@ buildPythonPackage rec { "test_external_service" # attempts to do ssl connection "test_connection_notebook_wrong_certs" + # AttributeError: 'coroutine' object... + "test_valid_events" + "test_invalid_events" + "test_user_group_roles" + ]; + + disabledTestPaths = [ + # Not testing with a running instance + # AttributeError: 'coroutine' object has no attribute 'db' + "docs/test_docs.py" + "jupyterhub/tests/test_orm.py" + "jupyterhub/tests/test_api.py" + "jupyterhub/tests/test_auth.py" + "jupyterhub/tests/test_auth_expiry.py" + "jupyterhub/tests/test_metrics.py" + "jupyterhub/tests/test_named_servers.py" + "jupyterhub/tests/selenium/test_browser.py" + "jupyterhub/tests/test_user.py" + "jupyterhub/tests/test_singleuser.py" + "jupyterhub/tests/test_spawner.py" + "jupyterhub/tests/test_services_auth.py" + "jupyterhub/tests/test_scopes.py" + "jupyterhub/tests/test_proxy.py" + "jupyterhub/tests/test_pages.py" ]; meta = with lib; { - broken = lib.versionAtLeast sqlalchemy.version "2.0"; description = "Serves multiple Jupyter notebook instances"; homepage = "https://jupyter.org/"; changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/changelog.md"; license = licenses.bsd3; maintainers = with maintainers; [ ixxie cstrahan ]; + # darwin: E OSError: dlopen(/nix/store/43zml0mlr17r5jsagxr00xxx91hz9lky-openpam-20170430/lib/libpam.so, 6): image not found + broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; }; } From 2c7244099faa0c80a36c7275c85c16075421db25 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 25 Jun 2023 23:10:59 +0200 Subject: [PATCH 15/39] python311Packages.jupyterhub: 4.0.0 -> 4.0.1 Changelog: https://github.com/jupyterhub/jupyterhub/blob/4.0.1/docs/source/reference/changelog.md --- .../python-modules/jupyterhub/default.nix | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/jupyterhub/default.nix b/pkgs/development/python-modules/jupyterhub/default.nix index a039ca01219b..82ecc45804a5 100644 --- a/pkgs/development/python-modules/jupyterhub/default.nix +++ b/pkgs/development/python-modules/jupyterhub/default.nix @@ -11,11 +11,16 @@ , fetchzip , importlib-metadata , jinja2 +, jsonschema , jupyter-telemetry +, jupyterlab +, mock +, nbclassic , nodePackages , notebook , oauthlib , pamela +, playwright , prometheus-client , pytest-asyncio , pytestCheckHook @@ -63,14 +68,14 @@ in buildPythonPackage rec { pname = "jupyterhub"; - version = "4.0.0"; + version = "4.0.1"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-LKspluSafStwwLtYCpkuRCBZSD4K8YrwYaKayCsUqGc="; + hash = "sha256-jig/9Z5cQBZxIHfSVJ7XSs2RWjKDb+ACGGeKh4G9ft4="; }; # Most of this only applies when building from source (e.g. js/css assets are @@ -143,6 +148,11 @@ buildPythonPackage rec { beautifulsoup4 cryptography notebook + jsonschema + nbclassic + mock + jupyterlab + playwright pytest-asyncio pytestCheckHook requests-mock @@ -166,26 +176,26 @@ buildPythonPackage rec { # Not testing with a running instance # AttributeError: 'coroutine' object has no attribute 'db' "docs/test_docs.py" - "jupyterhub/tests/test_orm.py" + "jupyterhub/tests/browser/test_browser.py" "jupyterhub/tests/test_api.py" - "jupyterhub/tests/test_auth.py" "jupyterhub/tests/test_auth_expiry.py" + "jupyterhub/tests/test_auth.py" "jupyterhub/tests/test_metrics.py" "jupyterhub/tests/test_named_servers.py" - "jupyterhub/tests/selenium/test_browser.py" - "jupyterhub/tests/test_user.py" + "jupyterhub/tests/test_orm.py" + "jupyterhub/tests/test_pages.py" + "jupyterhub/tests/test_proxy.py" + "jupyterhub/tests/test_scopes.py" + "jupyterhub/tests/test_services_auth.py" "jupyterhub/tests/test_singleuser.py" "jupyterhub/tests/test_spawner.py" - "jupyterhub/tests/test_services_auth.py" - "jupyterhub/tests/test_scopes.py" - "jupyterhub/tests/test_proxy.py" - "jupyterhub/tests/test_pages.py" + "jupyterhub/tests/test_user.py" ]; meta = with lib; { description = "Serves multiple Jupyter notebook instances"; homepage = "https://jupyter.org/"; - changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/changelog.md"; + changelog = "https://github.com/jupyterhub/jupyterhub/blob/${version}/docs/source/reference/changelog.md"; license = licenses.bsd3; maintainers = with maintainers; [ ixxie cstrahan ]; # darwin: E OSError: dlopen(/nix/store/43zml0mlr17r5jsagxr00xxx91hz9lky-openpam-20170430/lib/libpam.so, 6): image not found From 190342668f6e78338c941ea1f114ae18fbb84c2e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 25 Jun 2023 23:39:14 +0200 Subject: [PATCH 16/39] python311Packages.batchspawner: add missing input --- pkgs/development/python-modules/batchspawner/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/batchspawner/default.nix b/pkgs/development/python-modules/batchspawner/default.nix index 70c64827a8ca..4cf3c673b50f 100644 --- a/pkgs/development/python-modules/batchspawner/default.nix +++ b/pkgs/development/python-modules/batchspawner/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchFromGitHub , jupyterhub +, packaging , pythonOlder }: @@ -21,6 +22,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ jupyterhub + packaging ]; # Tests require a job scheduler e.g. slurm, pbs, etc. From a002fa1405216e181d539c4120f92111877c0247 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 26 Jun 2023 07:53:15 +0200 Subject: [PATCH 17/39] python311Packages.jupyterhub-systemdspawner: 0.11 -> 1.0.1 Diff: https://github.com/jupyterhub/systemdspawner/compare/refs/tags/v0.11...v1.0.1 Changelog: https://github.com/jupyterhub/systemdspawner/blob/v1.0.1/CHANGELOG.md --- .../jupyterhub-systemdspawner/default.nix | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix b/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix index 9907122b1135..409539ccb4a7 100644 --- a/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix +++ b/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix @@ -1,29 +1,26 @@ { lib +, bash , buildPythonPackage , fetchFromGitHub , jupyterhub +, pythonOlder , tornado -, bash }: buildPythonPackage rec { pname = "jupyterhub-systemdspawner"; - version = "0.15"; + version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "jupyterhub"; repo = "systemdspawner"; - rev = "v${version}"; - hash = "sha256-EUCA+CKCeYr+cLVrqTqe3Q32JkbqeALL6tfOnlVHk8Q="; + rev = "refs/tags/v${version}"; + hash = "sha256-2Pxswa472umovHBUVTIX1l+Glj6bzzgBLsu+p4IA6jA="; }; - propagatedBuildInputs = [ - jupyterhub - tornado - ]; - - buildInputs = [ bash ]; - postPatch = '' substituteInPlace systemdspawner/systemd.py \ --replace "/bin/bash" "${bash}/bin/bash" @@ -32,7 +29,16 @@ buildPythonPackage rec { --replace "/bin/bash" "${bash}/bin/bash" ''; - # no tests + buildInputs = [ + bash + ]; + + propagatedBuildInputs = [ + jupyterhub + tornado + ]; + + # Module has no tests doCheck = false; postInstall = '' @@ -41,9 +47,14 @@ buildPythonPackage rec { patchShebangs $out/bin ''; + pythonImportsCheck = [ + "systemdspawner" + ]; + meta = with lib; { description = "JupyterHub Spawner using systemd for resource isolation"; homepage = "https://github.com/jupyterhub/systemdspawner"; + changelog = "https://github.com/jupyterhub/systemdspawner/blob/v${version}/CHANGELOG.md"; license = licenses.bsd3; maintainers = with maintainers; [ ]; }; From 535180c612ab9b27c499d5f5fc035bf08de6e8b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 26 Jun 2023 07:54:12 +0200 Subject: [PATCH 18/39] python311Packages.jupyterhub: add packing --- pkgs/development/python-modules/jupyterhub/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/jupyterhub/default.nix b/pkgs/development/python-modules/jupyterhub/default.nix index 82ecc45804a5..7b6a1d0522dc 100644 --- a/pkgs/development/python-modules/jupyterhub/default.nix +++ b/pkgs/development/python-modules/jupyterhub/default.nix @@ -19,6 +19,7 @@ , nodePackages , notebook , oauthlib +, packaging , pamela , playwright , prometheus-client @@ -128,6 +129,7 @@ buildPythonPackage rec { jinja2 jupyter-telemetry oauthlib + packaging pamela prometheus-client requests From e5458c636233a47279000cac18f44b901d2c2f93 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 13 Aug 2023 22:12:58 +0200 Subject: [PATCH 19/39] python311Packages.batchspawner: add changelog to meta --- pkgs/development/python-modules/batchspawner/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/batchspawner/default.nix b/pkgs/development/python-modules/batchspawner/default.nix index 4cf3c673b50f..f2e8acfe7a0e 100644 --- a/pkgs/development/python-modules/batchspawner/default.nix +++ b/pkgs/development/python-modules/batchspawner/default.nix @@ -34,8 +34,9 @@ buildPythonPackage rec { meta = with lib; { description = "A spawner for Jupyterhub to spawn notebooks using batch resource managers"; - homepage = "https://jupyter.org"; + homepage = "https://github.com/jupyterhub/batchspawner"; + changelog = "https://github.com/jupyterhub/batchspawner/blob/v${version}/CHANGELOG.md"; license = licenses.bsd3; - maintainers = [ ]; + maintainers = with maintainers; [ ]; }; } From 2b8644f8831d714e01f500b1e3d84a88d295f324 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 13 Aug 2023 21:35:18 +0000 Subject: [PATCH 20/39] pgmetrics: 1.15.0 -> 1.15.1 --- pkgs/tools/misc/pgmetrics/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/pgmetrics/default.nix b/pkgs/tools/misc/pgmetrics/default.nix index d5fd68c59a8a..e6d4b3bed213 100644 --- a/pkgs/tools/misc/pgmetrics/default.nix +++ b/pkgs/tools/misc/pgmetrics/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "pgmetrics"; - version = "1.15.0"; + version = "1.15.1"; src = fetchFromGitHub { owner = "rapidloop"; repo = pname; rev = "v${version}"; - sha256 = "sha256-tEPn+/xTDBFWf3SH/+5R38zWGAmMCHcFw/JvuvG2Jvs="; + sha256 = "sha256-6JqlAJHFJAvJjLqOwXLmW7sRwQCmYFfLGrSw5lTY8Sc="; }; - vendorHash = "sha256-jRgOIhRB5F/rbfNniXoOllvDqoHP8nkVwmEPSreHYXg="; + vendorHash = "sha256-KIMnvGMIipuIFPTSeERtCfvlPuvHvEHdjBJ1TbT2d1s="; doCheck = false; From d0a131d85c80a0f49698e5bae9a421d28a5dd03f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 13 Aug 2023 22:07:20 +0000 Subject: [PATCH 21/39] minio-client: 2023-07-21T20-44-27Z -> 2023-08-08T17-23-59Z --- pkgs/tools/networking/minio-client/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/minio-client/default.nix b/pkgs/tools/networking/minio-client/default.nix index f685acc04982..b60fa715004a 100644 --- a/pkgs/tools/networking/minio-client/default.nix +++ b/pkgs/tools/networking/minio-client/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "minio-client"; - version = "2023-07-21T20-44-27Z"; + version = "2023-08-08T17-23-59Z"; src = fetchFromGitHub { owner = "minio"; repo = "mc"; rev = "RELEASE.${version}"; - sha256 = "sha256-y0+AGDI4zxMgcC65U51/UHW2mo0NNNKc+MQCcFevHmk="; + sha256 = "sha256-rXYpAidwwd1sa+22r39VAirVCDdhzFRE5qSQNZf65sg="; }; - vendorHash = "sha256-6duYIeNkqql9y1Wo+foMe88dmPmHZ625FBTDdKsHnCE="; + vendorHash = "sha256-2zBwqwYyE/9R8Ns5kkvu/JxxYyjnEULBnW+ObYnZ40w="; subPackages = [ "." ]; From e69de7fe01fc1b1d06025bbc7e83afaaad3dceba Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 13 Aug 2023 22:28:57 +0000 Subject: [PATCH 22/39] k6: 0.45.0 -> 0.45.1 --- pkgs/development/tools/k6/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/k6/default.nix b/pkgs/development/tools/k6/default.nix index d6767677d98e..5c45cfc29a74 100644 --- a/pkgs/development/tools/k6/default.nix +++ b/pkgs/development/tools/k6/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "k6"; - version = "0.45.0"; + version = "0.45.1"; src = fetchFromGitHub { owner = "grafana"; repo = pname; rev = "v${version}"; - sha256 = "sha256-nZXNUAS5HZTEMQ/sjetE30s/etpX/Hwp7QqgtOl3Rqs="; + sha256 = "sha256-TeZ4nAU5SorIrGeQ1zM8YWcDWPt3F2rhPLoKx2Vvl+Q="; }; subPackages = [ "./" ]; From f915c568160d0bd533476ed454baedc1bf2be432 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 13 Aug 2023 22:40:53 +0000 Subject: [PATCH 23/39] numix-icon-theme-circle: 23.07.21 -> 23.08.09 --- pkgs/data/icons/numix-icon-theme-circle/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/icons/numix-icon-theme-circle/default.nix b/pkgs/data/icons/numix-icon-theme-circle/default.nix index daf8c4410713..52325798033e 100644 --- a/pkgs/data/icons/numix-icon-theme-circle/default.nix +++ b/pkgs/data/icons/numix-icon-theme-circle/default.nix @@ -2,13 +2,13 @@ stdenvNoCC.mkDerivation rec { pname = "numix-icon-theme-circle"; - version = "23.07.21"; + version = "23.08.09"; src = fetchFromGitHub { owner = "numixproject"; repo = pname; rev = version; - sha256 = "sha256-QwbjJ38fWRkzd1nmsPWcwUQ7p96S/tGEvIfhLsOX1bg="; + sha256 = "sha256-YLr5WQox1TzGxRZGJf7NzFRhkNIPJaYFyOYwp9MfkDQ="; }; nativeBuildInputs = [ gtk3 ]; From fe4594ec3c2f5dbcccc48f479b55389dd05d2b51 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 13 Aug 2023 19:23:19 -0400 Subject: [PATCH 24/39] rustywind: 0.18.0 -> 0.19.0 Diff: https://github.com/avencera/rustywind/compare/v0.18.0...v0.19.0 Changelog: https://github.com/avencera/rustywind/blob/v0.19.0/CHANGELOG.md --- pkgs/development/tools/misc/rustywind/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/misc/rustywind/default.nix b/pkgs/development/tools/misc/rustywind/default.nix index 56f6447b1056..0050d026fcdd 100644 --- a/pkgs/development/tools/misc/rustywind/default.nix +++ b/pkgs/development/tools/misc/rustywind/default.nix @@ -7,16 +7,16 @@ rustPlatform.buildRustPackage rec { pname = "rustywind"; - version = "0.18.0"; + version = "0.19.0"; src = fetchFromGitHub { owner = "avencera"; repo = "rustywind"; rev = "v${version}"; - hash = "sha256-rItLlyYUQODFazdVhCdAQgrrF8K2Cjuhyt5pvRyhSro="; + hash = "sha256-wPr+BNj3/YP+g0OkqkGSN1X8g/p3xDRcHvdDMAOP9Cc="; }; - cargoHash = "sha256-sY4gXzMn7LTpJ/22BNKbmlHUbEx/CqS2+wa8DfLr/Fw="; + cargoHash = "sha256-frBE3pJvQdntt48/RHz3F2qqrgmXFR//5CyCfdcSfik="; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security From 7b0c7b911e38bcc8d043cdcbca18d078bce953a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Mon, 14 Aug 2023 08:35:33 +0900 Subject: [PATCH 25/39] mepo: 1.1.2 -> 1.2.0 --- pkgs/applications/misc/mepo/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/mepo/default.nix b/pkgs/applications/misc/mepo/default.nix index a16b0bfebf59..23a57c343b4f 100644 --- a/pkgs/applications/misc/mepo/default.nix +++ b/pkgs/applications/misc/mepo/default.nix @@ -17,23 +17,23 @@ , util-linux , xwininfo , zenity -, zig_0_10 +, zig_0_11 }: stdenv.mkDerivation (finalAttrs: { pname = "mepo"; - version = "1.1.2"; + version = "1.2.0"; src = fetchFromSourcehut { owner = "~mil"; repo = "mepo"; rev = finalAttrs.version; - hash = "sha256-rKIyhr0sxG1moFsapylJWoAoHi9FSRdugIHr/TqY71s="; + hash = "sha256-sxN7yTnk3KDAkP/d3miKa2bEgB3AUaf9/M9ajJyRt3g="; }; nativeBuildInputs = [ pkg-config - zig_0_10.hook + zig_0_11.hook makeWrapper ]; From eed5548ddb036bf9d7c878b35f1d03246e481d11 Mon Sep 17 00:00:00 2001 From: Felipe Silva Date: Sun, 13 Aug 2023 21:44:29 -0300 Subject: [PATCH 26/39] beets: add main program --- pkgs/tools/audio/beets/common.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/audio/beets/common.nix b/pkgs/tools/audio/beets/common.nix index 4c8f5ae80895..440606bdd836 100644 --- a/pkgs/tools/audio/beets/common.nix +++ b/pkgs/tools/audio/beets/common.nix @@ -181,5 +181,6 @@ EOF license = licenses.mit; maintainers = with maintainers; [ aszlig doronbehar lovesegfault pjones ]; platforms = platforms.linux; + mainProgram = "beet"; }; } From c8129bd5705825c59f77abe1aad095f42cbd0922 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 14 Aug 2023 01:01:39 +0000 Subject: [PATCH 27/39] python310Packages.traits: 6.4.1 -> 6.4.2 --- pkgs/development/python-modules/traits/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/traits/default.nix b/pkgs/development/python-modules/traits/default.nix index 36aa31086929..eeb04ba23477 100644 --- a/pkgs/development/python-modules/traits/default.nix +++ b/pkgs/development/python-modules/traits/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "traits"; - version = "6.4.1"; + version = "6.4.2"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-eLssyv1gr/YGUVqsRt5kZooKgctcVMZQuYd6hBqp6BI="; + hash = "sha256-W+fMX7epnLp+kBR4Y3PjrS9177RF7s7QlGVLuvOw+oI="; }; # Circular dependency From a262231ccac4edfe56e64a16ff401fc0be9ca22b Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 13 Aug 2023 18:58:28 -0500 Subject: [PATCH 28/39] postgresqlPackages.pg_net: init at 0.7.2 Signed-off-by: Austin Seipp --- pkgs/servers/sql/postgresql/ext/pg_net.nix | 31 ++++++++++++++++++++++ pkgs/servers/sql/postgresql/packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/servers/sql/postgresql/ext/pg_net.nix diff --git a/pkgs/servers/sql/postgresql/ext/pg_net.nix b/pkgs/servers/sql/postgresql/ext/pg_net.nix new file mode 100644 index 000000000000..fc52857de17d --- /dev/null +++ b/pkgs/servers/sql/postgresql/ext/pg_net.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, curl, postgresql }: + +stdenv.mkDerivation rec { + pname = "pg_net"; + version = "0.7.2"; + + buildInputs = [ curl postgresql ]; + + src = fetchFromGitHub { + owner = "supabase"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-9Ki3fyinHTYrfckxAY0fCTlzJd9l+n7QRUV7mIWrqmc="; + }; + + installPhase = '' + mkdir -p $out/{lib,share/postgresql/extension} + + cp *.so $out/lib + cp sql/*.sql $out/share/postgresql/extension + cp *.control $out/share/postgresql/extension + ''; + + meta = with lib; { + description = "Async networking for Postgres"; + homepage = "https://github.com/supabase/pg_net"; + maintainers = with maintainers; [ thoughtpolice ]; + platforms = postgresql.meta.platforms; + license = licenses.postgresql; + }; +} diff --git a/pkgs/servers/sql/postgresql/packages.nix b/pkgs/servers/sql/postgresql/packages.nix index 8a8fd8cca563..790afeed2af9 100644 --- a/pkgs/servers/sql/postgresql/packages.nix +++ b/pkgs/servers/sql/postgresql/packages.nix @@ -48,6 +48,8 @@ self: super: { pg_topn = super.callPackage ./ext/pg_topn.nix { }; + pg_net = super.callPackage ./ext/pg_net.nix { }; + pgtap = super.callPackage ./ext/pgtap.nix { }; pipelinedb = super.callPackage ./ext/pipelinedb.nix { }; From dbc8e3a3cfb7cd9a2b5e9df782043ac1a8f6a37f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 12 Aug 2023 19:16:37 +0000 Subject: [PATCH 29/39] uxn: unstable-2023-07-30 -> unstable-2023-08-10 --- pkgs/applications/emulators/uxn/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/emulators/uxn/default.nix b/pkgs/applications/emulators/uxn/default.nix index 7151f5b0f9be..85a3a541f963 100644 --- a/pkgs/applications/emulators/uxn/default.nix +++ b/pkgs/applications/emulators/uxn/default.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation { pname = "uxn"; - version = "unstable-2023-07-30"; + version = "unstable-2023-08-10"; src = fetchFromSourcehut { owner = "~rabbits"; repo = "uxn"; - rev = "9ca8e9623d0ab1c299f08d3dd9d54098557f5749"; - hash = "sha256-K51YiLnBwFWgD3h3l2BhsvzhnHHolZPsjjUWJSe4sPQ="; + rev = "a394dcb999525ac56ea37d0563d35849964b6d6a"; + hash = "sha256-3Q8460pkoATKCEqfa+OfpQ4Lp18Ro5i84s88pkz+uzU="; }; buildInputs = [ From 6ec3610cd8926d89c42ce657c00425e5872d8855 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 12 Aug 2023 23:24:28 -0300 Subject: [PATCH 30/39] uxn: refactor - use finalAttrs pattern - split projects into its own output - set strictDeps to true - set meta.mainProgram to uxnemu --- pkgs/applications/emulators/uxn/default.nix | 28 +++++++++++++++------ 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/emulators/uxn/default.nix b/pkgs/applications/emulators/uxn/default.nix index 85a3a541f963..66df76e1bac0 100644 --- a/pkgs/applications/emulators/uxn/default.nix +++ b/pkgs/applications/emulators/uxn/default.nix @@ -5,7 +5,7 @@ , unstableGitUpdater }: -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "uxn"; version = "unstable-2023-08-10"; @@ -16,12 +16,23 @@ stdenv.mkDerivation { hash = "sha256-3Q8460pkoATKCEqfa+OfpQ4Lp18Ro5i84s88pkz+uzU="; }; + outputs = [ "out" "projects" ]; + + nativeBuildInputs = [ + SDL2 + ]; + buildInputs = [ SDL2 ]; + strictDeps = true; + postPatch = '' - sed -i -e 's|UXNEMU_LDFLAGS="$(brew.*$|UXNEMU_LDFLAGS="$(sdl2-config --cflags --libs)"|' build.sh + patchShebangs build.sh + substituteInPlace build.sh \ + --replace "-L/usr/local/lib " "" \ + --replace "\$(brew --prefix)/lib/libSDL2.a " "" ''; buildPhase = '' @@ -32,13 +43,15 @@ stdenv.mkDerivation { runHook postBuild ''; + # ./build.sh --install is meant to install in $HOME, therefore not useful for + # package maintainers installPhase = '' runHook preInstall - install -d $out/bin/ $out/share/uxn/ - + install -d $out/bin/ cp bin/uxnasm bin/uxncli bin/uxnemu $out/bin/ - cp -r projects $out/share/uxn/ + install -d $projects/share/uxn/ + cp -r projects $projects/share/uxn/ runHook postInstall ''; @@ -49,7 +62,8 @@ stdenv.mkDerivation { homepage = "https://wiki.xxiivv.com/site/uxn.html"; description = "An assembler and emulator for the Uxn stack machine"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ AndersonTorres kototama ]; + maintainers = with lib.maintainers; [ AndersonTorres ]; + mainProgram = "uxnemu"; inherit (SDL2.meta) platforms; }; -} +}) From 6dfe73079d0721261a3ba916729315424c6d7ce9 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sun, 13 Aug 2023 18:19:03 -0300 Subject: [PATCH 31/39] uxn: mark as broken on Darwin --- pkgs/applications/emulators/uxn/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/emulators/uxn/default.nix b/pkgs/applications/emulators/uxn/default.nix index 66df76e1bac0..03b1fa6beb78 100644 --- a/pkgs/applications/emulators/uxn/default.nix +++ b/pkgs/applications/emulators/uxn/default.nix @@ -65,5 +65,9 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ AndersonTorres ]; mainProgram = "uxnemu"; inherit (SDL2.meta) platforms; + # ofborg complains about an error trying to link inexistent SDL2 library + # For full logs, run: + # 'nix log /nix/store/bmyhh0lpifl9swvkpflqldv43vcrgci1-uxn-unstable-2023-08-10.drv'. + broken = stdenv.isDarwin; }; }) From 2a600eea3eedd2a1be81d4595e8259bb780bd865 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sun, 13 Aug 2023 14:48:40 -0300 Subject: [PATCH 32/39] maintainers: remove kototama --- maintainers/maintainer-list.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index bcbb400b075a..010b3f031719 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9169,12 +9169,6 @@ githubId = 2037002; name = "Konstantinos"; }; - kototama = { - email = "kototama@posteo.jp"; - github = "kototama"; - githubId = 128620; - name = "Kototama"; - }; kouyk = { email = "skykinetic@stevenkou.xyz"; github = "kouyk"; From c26c708048cdafdffe8d3ca84b8f72b1037cb69f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 13 Aug 2023 21:00:15 +0000 Subject: [PATCH 33/39] edge-runtime: 1.8.1 -> 1.10.0 --- pkgs/development/web/edge-runtime/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/web/edge-runtime/default.nix b/pkgs/development/web/edge-runtime/default.nix index b5115aca9fb1..071d16b5f8f1 100644 --- a/pkgs/development/web/edge-runtime/default.nix +++ b/pkgs/development/web/edge-runtime/default.nix @@ -11,7 +11,7 @@ let pname = "edge-runtime"; - version = "1.8.1"; + version = "1.10.0"; in rustPlatform.buildRustPackage { inherit pname version; @@ -20,11 +20,11 @@ rustPlatform.buildRustPackage { owner = "supabase"; repo = pname; rev = "v${version}"; - hash = "sha256-B8XsH2aOvd87nxUGpSpaNnpTIY0tKDWh7RkXoJcBjrs="; + hash = "sha256-AWdgqL7Io4v3Z4XNS5JDDGuUeSqsNpF/NpJQ7h5oJZs="; fetchSubmodules = true; }; - cargoHash = "sha256-I8BC13WUlBdT6OxTD2t0Aw5qYXpUyOa0MYUB8H2XNx8="; + cargoHash = "sha256-AIwMoqbnCl4DFX0gSGblkV8DgtruwXPw8ngHeBDD6Dw="; nativeBuildInputs = [ pkg-config rustPlatform.bindgenHook ]; From df37614991669315b62da68add5574f2a85e53e0 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Mon, 14 Aug 2023 10:43:53 +0800 Subject: [PATCH 34/39] gomatrix: use sri hash --- pkgs/applications/misc/gomatrix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/gomatrix/default.nix b/pkgs/applications/misc/gomatrix/default.nix index c903f1ba1bbe..2b9ee3a15553 100644 --- a/pkgs/applications/misc/gomatrix/default.nix +++ b/pkgs/applications/misc/gomatrix/default.nix @@ -8,10 +8,10 @@ buildGoModule rec { owner = "GeertJohan"; repo = "gomatrix"; rev = "v${version}"; - sha256 = "1wq55rvpyz0gjn8kiwwj49awsmi86zy1fdjcphzgb7883xalgr2m"; + hash = "sha256-VeRHVR8InfU+vEw2F/w3KFbNVSKS8ziRlQ98f3cuBfM="; }; - vendorSha256 = "1yw0gph4zfg8w4343882l6b9lggwyak2zz8ic1l1m2m44p3aq169"; + vendorHash = "sha256-yQSsxiWkihpoYBH9L6by/D2alqECoUEG4ei5T+B9gPs="; doCheck = false; From f3c8f334ebfe26c8a86a583470d2a06896acfcbd Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Mon, 14 Aug 2023 11:09:44 +0800 Subject: [PATCH 35/39] uwc: 1.0.4 -> 1.0.5 --- pkgs/tools/text/uwc/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/text/uwc/default.nix b/pkgs/tools/text/uwc/default.nix index 14fe74723a3b..dc34ecfacff2 100644 --- a/pkgs/tools/text/uwc/default.nix +++ b/pkgs/tools/text/uwc/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "uwc"; - version = "1.0.4"; + version = "1.0.5"; src = fetchFromGitLab { owner = "dead10ck"; repo = pname; rev = "v${version}"; - sha256 = "1ywqq9hrrm3frvd2sswknxygjlxi195kcy7g7phwq63j7hkyrn50"; + hash = "sha256-x2mijB1GkxdraFroG1+PiBzWKPjsaAeoDt0HFL2v93I="; }; - cargoSha256 = "04pslga3ff766cpb73n6ivzmqfa0hm19gcla8iyv6p59ddsajh3q"; + cargoHash = "sha256-0IvOaQaXfdEz5tlXh5gTbnZG9QZSWDVHGOqYq8aWOIc="; doCheck = true; From 8a22de0a84861ff6be372009bffb5165967b1593 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Mon, 14 Aug 2023 11:55:23 +0800 Subject: [PATCH 36/39] rsbkb: 1.1 -> 1.2 --- pkgs/tools/text/rsbkb/default.nix | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/text/rsbkb/default.nix b/pkgs/tools/text/rsbkb/default.nix index 19ec2bcf7b14..fd02babac0b0 100644 --- a/pkgs/tools/text/rsbkb/default.nix +++ b/pkgs/tools/text/rsbkb/default.nix @@ -1,29 +1,29 @@ -{ lib, - fetchFromGitHub, - rustPlatform, - enableAppletSymlinks ? true, +{ lib +, fetchFromGitHub +, rustPlatform +, enableAppletSymlinks ? true }: rustPlatform.buildRustPackage rec { pname = "rsbkb"; - version = "1.1"; + version = "1.2"; src = fetchFromGitHub { owner = "trou"; repo = "rsbkb"; rev = "release-${version}"; - hash = "sha256-SqjeH0eOo+upSfPWh2IW75p1VHMqmzAbCchDrXhvMxs="; + hash = "sha256-Y6YTjEbefNUPcl6rNYWVZLGZYTUPr5pvfLabS+zDWqA="; }; - cargoSha256 = "N3Xlw2JzTjqWLiVNCZaomsWQl330kGVlwdz4Gf05TGU="; + + cargoHash = "sha256-RMX+ZdPaqtqRJvhHFJJrPZnBGwQwZSCXNg1oNo+v2+8="; # Setup symlinks for all the utilities, # busybox style - postInstall = lib.optionalString enableAppletSymlinks - '' + postInstall = lib.optionalString enableAppletSymlinks '' cd $out/bin || exit 1 path="$(realpath --canonicalize-missing ./rsbkb)" for i in $(./rsbkb list) ; do ln -s $path $i ; done - ''; + ''; meta = with lib; { description = "Command line tools to encode/decode things"; From 0ca8b2ebeb09ab8e86a9c4219a1cf81282f836ed Mon Sep 17 00:00:00 2001 From: Red Star Over Earth Date: Mon, 14 Aug 2023 12:06:51 +0800 Subject: [PATCH 37/39] maintainers: change rs0vere's email --- maintainers/maintainer-list.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 010b3f031719..d73b1ad119dd 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14656,7 +14656,7 @@ name = "Rahul Butani"; }; rs0vere = { - email = "rs0vere@outlook.com"; + email = "rs0vere@proton.me"; github = "rs0vere"; githubId = 140035635; keys = [{ From e85b6933d543dc98a5f80525150ed048209f5e73 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 13 Aug 2023 23:06:52 -0500 Subject: [PATCH 38/39] buck2: minor tweaks Signed-off-by: Austin Seipp --- .../development/tools/build-managers/buck2/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/build-managers/buck2/default.nix b/pkgs/development/tools/build-managers/buck2/default.nix index bb4e224f6eb2..6becdfc280d3 100644 --- a/pkgs/development/tools/build-managers/buck2/default.nix +++ b/pkgs/development/tools/build-managers/buck2/default.nix @@ -33,12 +33,12 @@ let buck2-version = "2023-08-01"; src = let - hashes = builtins.fromJSON (builtins.readFile ./hashes.json); - sha256 = hashes."${stdenv.hostPlatform.system}"; + allHashes = builtins.fromJSON (builtins.readFile ./hashes.json); + hash = allHashes."${stdenv.hostPlatform.system}"; url = "https://github.com/facebook/buck2/releases/download/${buck2-version}/buck2-${suffix}.zst"; - in fetchurl { inherit url sha256; }; + in fetchurl { inherit url hash; }; in -stdenv.mkDerivation { +stdenv.mkDerivation rec { pname = "buck2"; version = "unstable-${buck2-version}"; # TODO (aseipp): kill 'unstable' once a non-prerelease is made inherit src; @@ -77,7 +77,7 @@ stdenv.mkDerivation { homepage = "https://buck2.build"; changelog = "https://github.com/facebook/buck2/releases/tag/${buck2-version}"; license = with licenses; [ asl20 /* or */ mit ]; - mainProgram = "buck2"; + mainProgram = pname; maintainers = with maintainers; [ thoughtpolice ]; platforms = [ "x86_64-linux" "aarch64-linux" From 6e287913f7b1ef537c97aa301b67c34ea46b640f Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 13 Aug 2023 23:19:01 -0500 Subject: [PATCH 39/39] buck2: include prelude source in .prelude passthru Signed-off-by: Austin Seipp --- .../tools/build-managers/buck2/default.nix | 15 ++++++++++++++- .../tools/build-managers/buck2/hashes.json | 1 + .../tools/build-managers/buck2/update.sh | 15 ++++++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/build-managers/buck2/default.nix b/pkgs/development/tools/build-managers/buck2/default.nix index 6becdfc280d3..17637f69790c 100644 --- a/pkgs/development/tools/build-managers/buck2/default.nix +++ b/pkgs/development/tools/build-managers/buck2/default.nix @@ -30,13 +30,24 @@ let aarch64-linux = "aarch64-unknown-linux-musl"; }."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + allHashes = builtins.fromJSON (builtins.readFile ./hashes.json); + + # our version of buck2; this should be a git tag buck2-version = "2023-08-01"; src = let - allHashes = builtins.fromJSON (builtins.readFile ./hashes.json); hash = allHashes."${stdenv.hostPlatform.system}"; url = "https://github.com/facebook/buck2/releases/download/${buck2-version}/buck2-${suffix}.zst"; in fetchurl { inherit url hash; }; + + # compatible version of buck2 prelude; a git revision in the buck2-prelude repository + buck2-prelude = "acf49faaa61fd6ad9facd9e1418eed514bbb2ec8"; + prelude-src = + let + hash = allHashes."_prelude"; + url = "https://github.com/facebook/buck2-prelude/archive/${buck2-prelude}.tar.gz"; + in fetchurl { inherit url hash; }; + in stdenv.mkDerivation rec { pname = "buck2"; @@ -58,6 +69,8 @@ stdenv.mkDerivation rec { ''; passthru = { + prelude = prelude-src; + updateScript = ./update.sh; tests = testers.testVersion { package = buck2; diff --git a/pkgs/development/tools/build-managers/buck2/hashes.json b/pkgs/development/tools/build-managers/buck2/hashes.json index 69a7a0f72f3a..b4b1c3f73d48 100644 --- a/pkgs/development/tools/build-managers/buck2/hashes.json +++ b/pkgs/development/tools/build-managers/buck2/hashes.json @@ -1,4 +1,5 @@ { "_comment": "@generated by pkgs/development/tools/build-managers/buck2/update.sh" +, "_prelude": "sha256-SkCsVymQL/i8tUvKoLVtOQRYRm3zuF+WOFnbCggQwes=" , "x86_64-linux": "sha256-wZULK2FPZ4GtQ5MMQmgfmtbMHJ7sPbue2RdVY0dmRuE=" , "x86_64-darwin": "sha256-FmayArw2gswKjAEv0AzpFZNiXNx3GmJnPwH9g+Y/BGU=" , "aarch64-linux": "sha256-3M1dRIFU0CwoVCbmq3oghhz51wW37melzt9hdIHqzzY=" diff --git a/pkgs/development/tools/build-managers/buck2/update.sh b/pkgs/development/tools/build-managers/buck2/update.sh index c10774c15ec0..8e142dd1c978 100755 --- a/pkgs/development/tools/build-managers/buck2/update.sh +++ b/pkgs/development/tools/build-managers/buck2/update.sh @@ -9,7 +9,11 @@ VERSION=$(curl -s https://api.github.com/repos/facebook/buck2/releases \ (select ((.prerelease == true) and (.name != "latest"))) | first ) | .name') +PRELUDE_HASH=$(curl -sLo - "https://github.com/facebook/buck2/releases/download/${VERSION}/prelude_hash") +PRELUDE_DL_URL="https://github.com/facebook/buck2-prelude/archive/${PRELUDE_HASH}.tar.gz" + echo "Latest buck2 prerelease: $VERSION" +echo "Compatible buck2-prelude hash: $PRELUDE_HASH" ARCHS=( "x86_64-linux:x86_64-unknown-linux-musl" @@ -22,7 +26,12 @@ NFILE=pkgs/development/tools/build-managers/buck2/default.nix HFILE=pkgs/development/tools/build-managers/buck2/hashes.json rm -f "$HFILE" && touch "$HFILE" +PRELUDE_SHA256HASH="$(nix-prefetch-url --type sha256 "$PRELUDE_DL_URL")" +PRELUDE_SRIHASH="$(nix hash to-sri --type sha256 "$PRELUDE_SHA256HASH")" + printf "{ \"_comment\": \"@generated by pkgs/development/tools/build-managers/buck2/update.sh\"\n" >> "$HFILE" +printf ", \"_prelude\": \"$PRELUDE_SRIHASH\"\n" >> "$HFILE" + for arch in "${ARCHS[@]}"; do IFS=: read -r arch_name arch_target <<< "$arch" sha256hash="$(nix-prefetch-url --type sha256 "https://github.com/facebook/buck2/releases/download/${VERSION}/buck2-${arch_target}.zst")" @@ -35,4 +44,8 @@ sed -i \ 's/buck2-version\s*=\s*".*";/buck2-version = "'"$VERSION"'";/' \ "$NFILE" -echo "Done; wrote $HFILE and updated version" +sed -i \ + 's/buck2-prelude\s*=\s*".*";/buck2-prelude = "'"$PRELUDE_HASH"'";/' \ + "$NFILE" + +echo "Done; wrote $HFILE and updated version in $NFILE."