From 7ccd49546562fa11db090ec9d7bfc2b20fae6fbd Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Tue, 22 Aug 2023 18:21:51 +0800 Subject: [PATCH 01/31] apptainer, singularity: drop obsolete LOCALSTATEDIR dirs Leave only the SESSIONDIR, which is "$LOCALSTATEDIR/$projectName/mnt/session" --- nixos/modules/programs/singularity.nix | 4 ---- pkgs/build-support/singularity-tools/default.nix | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/nixos/modules/programs/singularity.nix b/nixos/modules/programs/singularity.nix index 05fdb4842c54..2e2074654715 100644 --- a/nixos/modules/programs/singularity.nix +++ b/nixos/modules/programs/singularity.nix @@ -82,10 +82,6 @@ in }; systemd.tmpfiles.rules = [ "d /var/lib/${cfg.packageOverriden.projectName}/mnt/session 0770 root root -" - "d /var/lib/${cfg.packageOverriden.projectName}/mnt/final 0770 root root -" - "d /var/lib/${cfg.packageOverriden.projectName}/mnt/overlay 0770 root root -" - "d /var/lib/${cfg.packageOverriden.projectName}/mnt/container 0770 root root -" - "d /var/lib/${cfg.packageOverriden.projectName}/mnt/source 0770 root root -" ]; }; diff --git a/pkgs/build-support/singularity-tools/default.nix b/pkgs/build-support/singularity-tools/default.nix index 9689e4124590..8d7ad9e742a1 100644 --- a/pkgs/build-support/singularity-tools/default.nix +++ b/pkgs/build-support/singularity-tools/default.nix @@ -111,7 +111,7 @@ rec { touch .${projectName}.d/env/94-appsbase.sh cd .. - mkdir -p /var/lib/${projectName}/mnt/{container,final,overlay,session,source} + mkdir -p /var/lib/${projectName}/mnt/session echo "root:x:0:0:System administrator:/root:/bin/sh" > /etc/passwd echo > /etc/resolv.conf TMPDIR=$(pwd -P) ${projectName} build $out ./img From ac776695313a2da0ee99ba328da474f606a7a9d9 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Tue, 22 Aug 2023 18:05:31 +0800 Subject: [PATCH 02/31] apptainer, singularity: make LOCALSTATEDIR internal by default Use "$out/var/lib" as LOCALSTATEDIR configuration value by default intsead of "/var/lib" as a way toward top-level-directory independent runtime. Add input argument externalLocalStateDir to optionally specify the path to external LOCALSTATEDIR if not null. Add NixOS module option programs.singularity.enableExternalLocalStateDir (default to true) to use "/var/lib" as LOCALSTATEDIR. --- .../manual/release-notes/rl-2311.section.md | 4 ++++ nixos/modules/programs/singularity.nix | 18 ++++++++++++++++-- .../virtualization/singularity/generic.nix | 5 ++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 825b1c5bd407..4d34a5315ab9 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -177,6 +177,10 @@ - A new option was added to the virtualisation module that enables specifying explicitly named network interfaces in QEMU VMs. The existing `virtualisation.vlans` is still supported for cases where the name of the network interface is irrelevant. +- Apptainer/Singularity now defaults to using `"$out/var/lib"` for the `LOCALSTATEDIR` configuration option instead of the top-level `"/var/lib"`. This change impacts the `SESSIONDIR` (container-run-time mount point) configuration, which is set to `$LOCALSTATEDIR//mnt/session`. This detaches the packages from the top-level directory, rendering the NixOS module optional. + + The default behavior of the NixOS module `programs.singularity` stays unchanged. We add a new option `programs.singularity.enableExternalSysConfDir` (default to `true`) to specify whether to set the top-level `"/var/lib"` as `LOCALSTATEDIR` or not. + - DocBook option documentation is no longer supported, all module documentation now uses markdown. - `buildGoModule` `go-modules` attrs have been renamed to `goModules`. diff --git a/nixos/modules/programs/singularity.nix b/nixos/modules/programs/singularity.nix index 2e2074654715..79695b29beca 100644 --- a/nixos/modules/programs/singularity.nix +++ b/nixos/modules/programs/singularity.nix @@ -45,6 +45,18 @@ in Use `lib.mkForce` to forcefully specify the overridden package. ''; }; + enableExternalLocalStateDir = mkOption { + type = types.bool; + default = true; + example = false; + description = mdDoc '' + Whether to use top-level directories as LOCALSTATEDIR + instead of the store path ones. + This affects the SESSIONDIR of Apptainer/Singularity. + If set to true, the SESSIONDIR will become + `/var/lib/''${projectName}/mnt/session`. + ''; + }; enableFakeroot = mkOption { type = types.bool; default = true; @@ -65,7 +77,9 @@ in config = mkIf cfg.enable { programs.singularity.packageOverriden = (cfg.package.override ( - optionalAttrs cfg.enableFakeroot { + optionalAttrs cfg.enableExternalLocalStateDir { + externalLocalStateDir = "/var/lib"; + } // optionalAttrs cfg.enableFakeroot { newuidmapPath = "/run/wrappers/bin/newuidmap"; newgidmapPath = "/run/wrappers/bin/newgidmap"; } // optionalAttrs cfg.enableSuid { @@ -80,7 +94,7 @@ in group = "root"; source = "${cfg.packageOverriden}/libexec/${cfg.packageOverriden.projectName}/bin/starter-suid.orig"; }; - systemd.tmpfiles.rules = [ + systemd.tmpfiles.rules = mkIf cfg.enableExternalLocalStateDir [ "d /var/lib/${cfg.packageOverriden.projectName}/mnt/session 0770 root root -" ]; }; diff --git a/pkgs/applications/virtualization/singularity/generic.nix b/pkgs/applications/virtualization/singularity/generic.nix index 2e4d589d158e..7451bcf6b96f 100644 --- a/pkgs/applications/virtualization/singularity/generic.nix +++ b/pkgs/applications/virtualization/singularity/generic.nix @@ -71,6 +71,8 @@ in , newuidmapPath ? null # Path to SUID-ed newgidmap executable , newgidmapPath ? null + # External LOCALSTATEDIR +, externalLocalStateDir ? null # Remove the symlinks to `singularity*` when projectName != "singularity" , removeCompat ? false # Workaround #86349 @@ -106,6 +108,7 @@ in inherit enableSeccomp enableSuid + externalLocalStateDir projectName removeCompat starterSuidPath @@ -141,7 +144,7 @@ in configureScript = "./mconfig"; configureFlags = [ - "--localstatedir=/var/lib" + "--localstatedir=${if externalLocalStateDir != null then externalLocalStateDir else "${placeholder "out"}/var/lib"}" "--runstatedir=/var/run" ] ++ lib.optional (!enableSeccomp) "--without-seccomp" From c75fed2f17dfcab315beb9be110f3e3eda053dfe Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 5 Nov 2023 02:49:44 +0000 Subject: [PATCH 03/31] parallel: 20230922 -> 20231022 --- pkgs/tools/misc/parallel/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/parallel/default.nix b/pkgs/tools/misc/parallel/default.nix index 9b223c12f8f4..a2aee41eff75 100644 --- a/pkgs/tools/misc/parallel/default.nix +++ b/pkgs/tools/misc/parallel/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "parallel"; - version = "20230922"; + version = "20231022"; src = fetchurl { url = "mirror://gnu/parallel/${pname}-${version}.tar.bz2"; - sha256 = "sha256-EUR0Ft1eXfZQE897RULhQJOKO/1fPzCVye2xaPy/4GM="; + sha256 = "sha256-k/K5TxhQeYpLXdoiva6G2ramVl41JYYOCORvJWPzJow="; }; outputs = [ "out" "man" "doc" ]; From 681e1e07bf6adbccfa002659a7b3dcea6787a279 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 21 Nov 2023 04:20:00 +0000 Subject: [PATCH 04/31] rqbit: 2.2.2 -> 3.1.0 Diff: https://github.com/ikatson/rqbit/compare/v2.2.2...v3.1.0 --- pkgs/by-name/rq/rqbit/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/rq/rqbit/package.nix b/pkgs/by-name/rq/rqbit/package.nix index 0505cbb1b69e..cb919a198cbf 100644 --- a/pkgs/by-name/rq/rqbit/package.nix +++ b/pkgs/by-name/rq/rqbit/package.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "rqbit"; - version = "2.2.2"; + version = "3.1.0"; src = fetchFromGitHub { owner = "ikatson"; repo = "rqbit"; rev = "v${version}"; - hash = "sha256-9yYHxlvRlO8iJ3SPi0+4lEgBgAaqaDffKChqAe4OsYU="; + hash = "sha256-bPLbraHxP/rV9OJROOx8nULycAsmwPzF3LGkgQFRfBk="; }; - cargoHash = "sha256-dUQiW6J3Wycp5D3mAwGwruU6CkQ534OyP1GdsY7jzEw="; + cargoHash = "sha256-j4iW9/ixoUu8W9yAhqIsflBQKRFiCbEtUVHhb775ezA="; nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]; From 7eeb6a2856ede52861747a062462dbe2a1793035 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 21 Nov 2023 04:20:00 +0000 Subject: [PATCH 05/31] rqbit: 3.1.0 -> 3.2.0 Diff: https://github.com/ikatson/rqbit/compare/v3.1.0...v3.2.0 --- pkgs/by-name/rq/rqbit/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/rq/rqbit/package.nix b/pkgs/by-name/rq/rqbit/package.nix index cb919a198cbf..078fd7a9b35d 100644 --- a/pkgs/by-name/rq/rqbit/package.nix +++ b/pkgs/by-name/rq/rqbit/package.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "rqbit"; - version = "3.1.0"; + version = "3.2.0"; src = fetchFromGitHub { owner = "ikatson"; repo = "rqbit"; rev = "v${version}"; - hash = "sha256-bPLbraHxP/rV9OJROOx8nULycAsmwPzF3LGkgQFRfBk="; + hash = "sha256-c0JYFr2yy1lcaJ+xOZnFsGzPVGPoFgCiFTGDlDaHdZk="; }; - cargoHash = "sha256-j4iW9/ixoUu8W9yAhqIsflBQKRFiCbEtUVHhb775ezA="; + cargoHash = "sha256-VnkAokOC5xSqO7MVASssKs0EqQ+re5EsEar4eLspTSA="; nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ]; From c2ef75a0ad9e92d283e1f0c4cced9239abf6bc28 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 Nov 2023 08:02:48 +0000 Subject: [PATCH 06/31] postgresql12JitPackages.postgis: 3.4.0 -> 3.4.1 --- pkgs/servers/sql/postgresql/ext/postgis.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/postgis.nix b/pkgs/servers/sql/postgresql/ext/postgis.nix index 583bde82f481..67f7b520b898 100644 --- a/pkgs/servers/sql/postgresql/ext/postgis.nix +++ b/pkgs/servers/sql/postgresql/ext/postgis.nix @@ -16,13 +16,13 @@ }: stdenv.mkDerivation rec { pname = "postgis"; - version = "3.4.0"; + version = "3.4.1"; outputs = [ "out" "doc" ]; src = fetchurl { url = "https://download.osgeo.org/postgis/source/postgis-${version}.tar.gz"; - sha256 = "sha256-rum2CmyITTVBZLMJbEZX8yRFQYZgf4WdHOBdiZeYr50="; + sha256 = "sha256-/vahQSE9D/J79FszuEnMOWwi3bH/xv7UNUacnokfyB0="; }; buildInputs = [ libxml2 postgresql geos proj gdal json_c protobufc pcre2.dev ] From c2bc209600f63794c089bf3670f9b6e0370841b0 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 22 Oct 2023 18:09:20 +0900 Subject: [PATCH 07/31] python311Packages.jupyter-server: 2.7.3 -> 2.10.1 Changelog: https://github.com/jupyter-server/jupyter_server/blob/v2.10.1/CHANGELOG.md --- pkgs/development/python-modules/jupyter-server/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jupyter-server/default.nix b/pkgs/development/python-modules/jupyter-server/default.nix index fbb9f0cacd83..5a61b06c5026 100644 --- a/pkgs/development/python-modules/jupyter-server/default.nix +++ b/pkgs/development/python-modules/jupyter-server/default.nix @@ -34,14 +34,14 @@ buildPythonPackage rec { pname = "jupyter-server"; - version = "2.7.3"; + version = "2.10.1"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { pname = "jupyter_server"; inherit version; - hash = "sha256-1JFshYHE67xTTOvaqOyiR42fO/3Yjq4p/KsBIOrFdkk="; + hash = "sha256-5tomV6lUp4ee7SjMCOCBewH/2B1+q4Y0ZgOXtV+SZHI="; }; nativeBuildInputs = [ @@ -90,9 +90,9 @@ buildPythonPackage rec { ''; disabledTests = [ - "test_server_extension_list" "test_cull_idle" "test_server_extension_list" + "test_subscribe_websocket" ] ++ lib.optionals stdenv.isDarwin [ # attempts to use trashcan, build env doesn't allow this "test_delete" From ce2903c1d919dedf28108ea5f1d6d8788d5669e2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Nov 2023 03:31:16 +0000 Subject: [PATCH 08/31] kubergrunt: 0.12.1 -> 0.13.0 --- pkgs/applications/networking/cluster/kubergrunt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/kubergrunt/default.nix b/pkgs/applications/networking/cluster/kubergrunt/default.nix index c38e4e247334..c69ec96df6a2 100644 --- a/pkgs/applications/networking/cluster/kubergrunt/default.nix +++ b/pkgs/applications/networking/cluster/kubergrunt/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "kubergrunt"; - version = "0.12.1"; + version = "0.13.0"; src = fetchFromGitHub { owner = "gruntwork-io"; repo = "kubergrunt"; rev = "v${version}"; - sha256 = "sha256-qd+7tYvRpRMg8Y83L/K8g8fWrfO4rAQj72EpunqfSsc="; + sha256 = "sha256-ZUuMQ0y6qXM9g/snJchqGPf7z+5skE/OPqC3rvRenXo="; }; vendorHash = "sha256-AUw1wJNWjpNVsjw/Hr1ZCePYWQkf1SqRVnQgi8tOFG0="; From 53cfd472352891ed535daa9efde818595d30c445 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Nov 2023 06:25:14 +0000 Subject: [PATCH 09/31] python311Packages.pebble: 5.0.3 -> 5.0.4 --- pkgs/development/python-modules/pebble/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pebble/default.nix b/pkgs/development/python-modules/pebble/default.nix index deeec443b85c..207787111cc6 100644 --- a/pkgs/development/python-modules/pebble/default.nix +++ b/pkgs/development/python-modules/pebble/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "pebble"; - version = "5.0.3"; + version = "5.0.4"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -16,7 +16,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "Pebble"; inherit version; - hash = "sha256-vc/Z6n4K7biVsgQXfBnm1lQ9mWL040AuurIXUASGPag="; + hash = "sha256-b3rfK97UQUvdNWLV9NVnvZT/EB5yav+HimZXW8mcEis="; }; nativeCheckInputs = [ From bd440c20a0819eced720afa1206367ed270209cc Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Nov 2023 06:49:34 +0000 Subject: [PATCH 10/31] python311Packages.rollbar: 0.16.3 -> 1.0.0 --- pkgs/development/python-modules/rollbar/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/rollbar/default.nix b/pkgs/development/python-modules/rollbar/default.nix index 51b4af38b2e2..d5caebf899b0 100644 --- a/pkgs/development/python-modules/rollbar/default.nix +++ b/pkgs/development/python-modules/rollbar/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "rollbar"; - version = "0.16.3"; + version = "1.0.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-AjE9/GBxDsc2qwM9D4yWnYV6i5kc1n4MGpFiDooE7eI="; + hash = "sha256-Y0e35J8i8ClvwoemrqddZCz2RJTS7hJwQqelk8l9868="; }; propagatedBuildInputs = [ From f926076200dc0cbcb1f0bef851e54411455a93db Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Nov 2023 08:32:44 +0100 Subject: [PATCH 11/31] python311Packages.pebble: add changelog to meta --- pkgs/development/python-modules/pebble/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/pebble/default.nix b/pkgs/development/python-modules/pebble/default.nix index 207787111cc6..5cdc198bc792 100644 --- a/pkgs/development/python-modules/pebble/default.nix +++ b/pkgs/development/python-modules/pebble/default.nix @@ -32,6 +32,7 @@ buildPythonPackage rec { meta = with lib; { description = "API to manage threads and processes within an application"; homepage = "https://github.com/noxdafox/pebble"; + changelog = "https://github.com/noxdafox/pebble/releases/tag/${version}"; license = licenses.lgpl3Plus; maintainers = with maintainers; [ orivej ]; }; From 0fe340d03ffe01bb293183948fa065d022025783 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Nov 2023 09:09:24 +0000 Subject: [PATCH 12/31] kubevirt: 1.0.1 -> 1.1.0 --- pkgs/tools/virtualization/kubevirt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/virtualization/kubevirt/default.nix b/pkgs/tools/virtualization/kubevirt/default.nix index 733c2ef62323..a9e49cc75c34 100644 --- a/pkgs/tools/virtualization/kubevirt/default.nix +++ b/pkgs/tools/virtualization/kubevirt/default.nix @@ -8,13 +8,13 @@ buildGoModule rec { pname = "kubevirt"; - version = "1.0.1"; + version = "1.1.0"; src = fetchFromGitHub { owner = "kubevirt"; repo = "kubevirt"; rev = "v${version}"; - sha256 = "sha256-L+spWtYuXq0bPYmE1eGnzTfCAh8Q3j5DUS+k6dNGdOU="; + sha256 = "sha256-dW2rHW/37Jpk3vuu3O87nynK8Mp0IAqpkRvBDxT/++I="; }; vendorHash = null; From ec03c1cd6e7fae25d292802800a61de3d629d417 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Nov 2023 09:31:37 +0000 Subject: [PATCH 13/31] python311Packages.publicsuffixlist: 0.10.0.20231121 -> 0.10.0.20231122 --- pkgs/development/python-modules/publicsuffixlist/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/publicsuffixlist/default.nix b/pkgs/development/python-modules/publicsuffixlist/default.nix index 46fb43943cac..ad60d8e79f85 100644 --- a/pkgs/development/python-modules/publicsuffixlist/default.nix +++ b/pkgs/development/python-modules/publicsuffixlist/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "publicsuffixlist"; - version = "0.10.0.20231121"; + version = "0.10.0.20231122"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-6Jc12xQchyjXfI0kvvCCBGPNpivsz51izgS/41JrVnQ="; + hash = "sha256-0CrHVPoQTS3I9ZPvf/4wWQX4vYn5vAeWUxNanjnbF60="; }; nativeBuildInputs = [ From 63869ecd540a748ff94975ee55838b8c9ee903b5 Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 22 Nov 2023 12:22:51 +0000 Subject: [PATCH 14/31] python3Packages.types-appdirs: Fix typo in `meta.homepage` --- pkgs/development/python-modules/types-appdirs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/types-appdirs/default.nix b/pkgs/development/python-modules/types-appdirs/default.nix index 7d316400a041..f6fe4cf6e1b3 100644 --- a/pkgs/development/python-modules/types-appdirs/default.nix +++ b/pkgs/development/python-modules/types-appdirs/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { meta = { description = "This is a PEP 561 type stub package for the appdirs package. It can be used by type-checking tools like mypy, pyright, pytype, PyCharm, etc. to check code that uses appdirs. "; - homepage = "https://pypi.org/project/types-appdirss"; + homepage = "https://pypi.org/project/types-appdirs"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ ]; }; From eb7e8003be23b12b41c458ca2a4cc43248c214c7 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 22 Nov 2023 14:55:02 +0100 Subject: [PATCH 15/31] python3Packages.plum-py: unbreak by disabling a test --- pkgs/development/python-modules/plum-py/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/plum-py/default.nix b/pkgs/development/python-modules/plum-py/default.nix index b0cd4c4aea5b..721786e608d9 100644 --- a/pkgs/development/python-modules/plum-py/default.nix +++ b/pkgs/development/python-modules/plum-py/default.nix @@ -38,6 +38,12 @@ buildPythonPackage rec { "tests" ]; + disabledTestPaths = [ + # tests enum.IntFlag behaviour which has been disallowed in python 3.11.6 + # https://gitlab.com/dangass/plum/-/issues/150 + "tests/flag/test_flag_invalid.py" + ]; + meta = with lib; { description = "Classes and utilities for packing/unpacking bytes"; homepage = "https://plum-py.readthedocs.io/"; From 356cfde2c3fe94012823b1cae93747dadbd85207 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Nov 2023 14:44:33 +0000 Subject: [PATCH 16/31] oxker: 0.3.3 -> 0.4.0 --- pkgs/applications/misc/oxker/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/oxker/default.nix b/pkgs/applications/misc/oxker/default.nix index 2e22cdbd1b3a..5d10c7156364 100644 --- a/pkgs/applications/misc/oxker/default.nix +++ b/pkgs/applications/misc/oxker/default.nix @@ -2,14 +2,14 @@ rustPlatform.buildRustPackage rec { pname = "oxker"; - version = "0.3.3"; + version = "0.4.0"; src = fetchCrate { inherit pname version; - sha256 = "sha256-2zdsVItGZYQydpC9E/uCbzOE9Xoh7zTqa9DpxA5qNCc="; + sha256 = "sha256-zre4ccMmv1NWcokLvEFRIf+kornAnge/a3c3b6IO03o="; }; - cargoHash = "sha256-FXYFQpiK2BGUz9GjsUPS9LWPeezbBQ3A33juoVCl71g="; + cargoHash = "sha256-xdfaTVRt5h4q0kfAE1l6pOXCfk0Cb8TnKNMZeeGvciY="; meta = with lib; { description = "A simple tui to view & control docker containers"; From e9fda01ca9779be81a049124db2bb9330181e675 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 23 Nov 2023 00:59:10 +0900 Subject: [PATCH 17/31] python311Packages.bqscales: fix build --- .../python-modules/bqscales/default.nix | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/bqscales/default.nix b/pkgs/development/python-modules/bqscales/default.nix index c8fa7879bd75..a5fae24a13eb 100644 --- a/pkgs/development/python-modules/bqscales/default.nix +++ b/pkgs/development/python-modules/bqscales/default.nix @@ -5,7 +5,6 @@ , hatchling , hatch-jupyter-builder , jupyterlab -, jupyter-packaging , ipywidgets , numpy , traitlets @@ -15,7 +14,7 @@ buildPythonPackage rec { pname = "bqscales"; version = "0.3.3"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchPypi { @@ -23,24 +22,10 @@ buildPythonPackage rec { hash = "sha256-SlnNw4dWOzRedwIN3kCyl95qVqkY92QGOMS3Eyoqk0I="; }; - # We relax dependencies here instead of pulling in a patch because upstream - # has released a new version using hatch-jupyter-builder, but it is not yet - # trivial to upgrade to that. - # - # Per https://github.com/bqplot/bqscales/issues/76, jupyterlab is not needed - # as a build dependency right now. - # - postPatch = '' - substituteInPlace pyproject.toml \ - --replace '"jupyterlab==3.*",' "" \ - --replace 'jupyter_packaging~=' 'jupyter_packaging>=' - ''; - nativeBuildInputs = [ hatch-jupyter-builder hatchling jupyterlab - jupyter-packaging ]; propagatedBuildInputs = [ @@ -50,6 +35,8 @@ buildPythonPackage rec { traittypes ]; + env.SKIP_JUPYTER_BUILDER = 1; + # no tests in PyPI dist doCheck = false; From 9df167eebb604af911e7a6cddd8e8d6160fbad50 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Nov 2023 17:27:03 +0000 Subject: [PATCH 18/31] python311Packages.pytorch-lightning: 2.1.1 -> 2.1.2 --- pkgs/development/python-modules/pytorch-lightning/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytorch-lightning/default.nix b/pkgs/development/python-modules/pytorch-lightning/default.nix index 1ed718a70032..c2244a1c1447 100644 --- a/pkgs/development/python-modules/pytorch-lightning/default.nix +++ b/pkgs/development/python-modules/pytorch-lightning/default.nix @@ -20,14 +20,14 @@ buildPythonPackage rec { pname = "pytorch-lightning"; - version = "2.1.1"; + version = "2.1.2"; format = "pyproject"; src = fetchFromGitHub { owner = "Lightning-AI"; repo = "pytorch-lightning"; rev = "refs/tags/${version}"; - hash = "sha256-1psTa++qF5WPDVXeDGWfcQ4hGz98uW297QDUKrQyoRE="; + hash = "sha256-d5DKAx67uuIPxtSgazIQnxLiHTBD0lwHaB6LD3R6vKA="; }; preConfigure = '' From 0dd3d66819dffaab1de615fc1da53af333b1e7de Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 Nov 2023 22:37:26 +0100 Subject: [PATCH 19/31] python311Packages.hahomematic: 2023.11.1 -> 2023.11.3 Diff: https://github.com/danielperna84/hahomematic/compare/refs/tags/2023.11.1...2023.11.3 Changelog: https://github.com/danielperna84/hahomematic/releases/tag/2023.11.3 --- pkgs/development/python-modules/hahomematic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hahomematic/default.nix b/pkgs/development/python-modules/hahomematic/default.nix index 620883eb6cd1..9aa97ebe293c 100644 --- a/pkgs/development/python-modules/hahomematic/default.nix +++ b/pkgs/development/python-modules/hahomematic/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "hahomematic"; - version = "2023.11.1"; + version = "2023.11.3"; format = "pyproject"; disabled = pythonOlder "3.11"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "danielperna84"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-C8KznmR3+G38MLQj6Sek7qW9R9yJr8gfcjgNjDyXG7I="; + hash = "sha256-jaZYJ/Hd4ad2Ye/d8W2uX0Vs95VxexrlNvwADXVdtP0="; }; postPatch = '' From 8d7ea3a6fb02a1a0248ce7f1e0a080e3d9f5d431 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Nov 2023 20:40:30 +0100 Subject: [PATCH 20/31] python311Packages.hahomematic: 2023.11.3 -> 2023.11.4 Diff: https://github.com/danielperna84/hahomematic/compare/refs/tags/2023.11.3...2023.11.4 Changelog: https://github.com/danielperna84/hahomematic/releases/tag/2023.11.4 --- pkgs/development/python-modules/hahomematic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hahomematic/default.nix b/pkgs/development/python-modules/hahomematic/default.nix index 9aa97ebe293c..e69d51887050 100644 --- a/pkgs/development/python-modules/hahomematic/default.nix +++ b/pkgs/development/python-modules/hahomematic/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "hahomematic"; - version = "2023.11.3"; + version = "2023.11.4"; format = "pyproject"; disabled = pythonOlder "3.11"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "danielperna84"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-jaZYJ/Hd4ad2Ye/d8W2uX0Vs95VxexrlNvwADXVdtP0="; + hash = "sha256-LB0BGj/DWjHGAFkyACkkzGY1oYNc7hJ2BeT1lHlNjqU="; }; postPatch = '' From e7d2400cd75aaca7d201145d57c80c25c956b213 Mon Sep 17 00:00:00 2001 From: ppenguin Date: Wed, 22 Nov 2023 22:48:42 +0100 Subject: [PATCH 21/31] maestral-qt: fix qt6 usage and crash on wayland --- pkgs/applications/networking/maestral-qt/default.nix | 12 ++++++++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/maestral-qt/default.nix b/pkgs/applications/networking/maestral-qt/default.nix index 6ce0abb6c0e6..51fde794a1c8 100644 --- a/pkgs/applications/networking/maestral-qt/default.nix +++ b/pkgs/applications/networking/maestral-qt/default.nix @@ -1,8 +1,11 @@ { lib , fetchFromGitHub , python3 -, qt6 +, qtbase +, qtsvg +, qtwayland , nixosTests +, wrapQtAppsHook }: python3.pkgs.buildPythonApplication rec { @@ -28,12 +31,13 @@ python3.pkgs.buildPythonApplication rec { ]; buildInputs = [ - qt6.qtbase - qt6.qtsvg # Needed for the systray icon + qtwayland + qtbase + qtsvg # Needed for the systray icon ]; nativeBuildInputs = [ - qt6.wrapQtAppsHook + wrapQtAppsHook ]; dontWrapQtApps = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 56c6c19f31c5..0dd960cae688 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35386,7 +35386,7 @@ with pkgs; maestral = with python3Packages; toPythonApplication maestral; - maestral-gui = libsForQt5.callPackage ../applications/networking/maestral-qt { }; + maestral-gui = qt6.callPackage ../applications/networking/maestral-qt { }; maestro = callPackage ../development/mobile/maestro { }; From c31544b31046e9831800b583acb31ad9e9677411 Mon Sep 17 00:00:00 2001 From: Ujp8LfXBJ6wCPR Date: Thu, 23 Nov 2023 03:03:17 +0100 Subject: [PATCH 22/31] aws2cli: fix urllib3 build (#268590) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the build by setting up the PEP517 builder to satisfy the format/pyproject requirement of python derivations. > assert (pyproject != null) -> (format == null); Co-authored-by: Carl Hjerpe Co-authored-by: P. Co-authored-by: André Vitor de Lima Matos --- pkgs/tools/admin/awscli2/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index b59f702701f7..5582f63ffc0c 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -19,10 +19,14 @@ let hash = "sha256-i3zml6LyEnUqNcGsQURx3BbEJMlXO+SSa1b/P10jt68="; }; }); - urllib3 = prev.urllib3.overridePythonAttrs (prev: { - format = "setuptools"; + urllib3 = prev.urllib3.overridePythonAttrs (prev: rec { + pyproject = true; + version = "1.26.18"; + nativeBuildInputs = with final; [ + setuptools + ]; src = prev.src.override { - version = "1.26.18"; + inherit version; hash = "sha256-+OzBu6VmdBNFfFKauVW/jGe0XbeZ0VkGYmFxnjKFgKA="; }; }); From 35d3f5241c1c5dd67894dc6ca8f080629a538acf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 23 Nov 2023 03:05:48 +0100 Subject: [PATCH 23/31] python311Packages.homeassistant-stubs: 2023.11.2 -> 2023.11.3 (#269348) https://github.com/KapJI/homeassistant-stubs/releases/tag/2023.11.3 --- pkgs/servers/home-assistant/stubs.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/home-assistant/stubs.nix b/pkgs/servers/home-assistant/stubs.nix index b3652e734f19..b6d6d1517af8 100644 --- a/pkgs/servers/home-assistant/stubs.nix +++ b/pkgs/servers/home-assistant/stubs.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "homeassistant-stubs"; - version = "2023.11.2"; + version = "2023.11.3"; format = "pyproject"; disabled = python.version != home-assistant.python.version; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "KapJI"; repo = "homeassistant-stubs"; rev = "refs/tags/${version}"; - hash = "sha256-stVfFXb5QfC+wZUSk53+jt/hb8kO1gCcgeOnHHpNlWE="; + hash = "sha256-x3FcUmbUYAUKGAPb85SqJk1kTWFKxpJSX2J+rTRj1KY="; }; nativeBuildInputs = [ From e7af27fd21ad18e8d5a408f026973399fa4bf1d2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 24 Aug 2023 19:03:27 +0530 Subject: [PATCH 24/31] seatd: update meta.description --- pkgs/applications/misc/seatd/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/seatd/default.nix b/pkgs/applications/misc/seatd/default.nix index 7cc2c967fe01..eb214760574e 100644 --- a/pkgs/applications/misc/seatd/default.nix +++ b/pkgs/applications/misc/seatd/default.nix @@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: { ]; meta = { - description = "A universal seat management library"; + description = "A minimal seat management daemon, and a universal seat management library"; changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${finalAttrs.version}"; homepage = "https://sr.ht/~kennylevinsen/seatd/"; license = lib.licenses.mit; From 8be0176e7c5b41595e7d9f3e5df50226dcba8521 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 25 Aug 2023 10:51:35 +0530 Subject: [PATCH 25/31] maintainers: add sinanmohd --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 04c939fd6a48..6848ff87e8e1 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -16592,6 +16592,13 @@ githubId = 2770647; name = "Simon Vandel Sillesen"; }; + sinanmohd = { + name = "Sinan Mohd"; + email = "sinan@firemail.cc"; + matrix = "@sinan:sinanmohd.com"; + github = "sinanmohd"; + githubId = 69694713; + }; sioodmy = { name = "Antoni Sokołowski"; github = "sioodmy"; From 9796cbb02175622a5576d53cd340d8e25a6944bc Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 24 Aug 2023 19:22:59 +0530 Subject: [PATCH 26/31] nixos/seatd: init --- .../manual/release-notes/rl-2311.section.md | 2 + nixos/modules/module-list.nix | 1 + nixos/modules/services/desktops/seatd.nix | 49 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 nixos/modules/services/desktops/seatd.nix diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index bb2b98c6f906..bfeca488d089 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -65,6 +65,8 @@ - [hddfancontrol](https://github.com/desbma/hddfancontrol), a service to regulate fan speeds based on hard drive temperature. Available as [services.hddfancontrol](#opt-services.hddfancontrol.enable). +- [seatd](https://sr.ht/~kennylevinsen/seatd/), A minimal seat management daemon. Available as [services.seatd](#opt-services.seatd.enable). + - [GoToSocial](https://gotosocial.org/), an ActivityPub social network server, written in Golang. Available as [services.gotosocial](#opt-services.gotosocial.enable). - [Castopod](https://castopod.org/), an open-source hosting platform made for podcasters who want to engage and interact with their audience. Available as [services.castopod](#opt-services.castopod.enable). diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index f4ca96d2ca16..cafde7f9efdf 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -474,6 +474,7 @@ ./services/desktops/pipewire/pipewire.nix ./services/desktops/pipewire/wireplumber.nix ./services/desktops/profile-sync-daemon.nix + ./services/desktops/seatd.nix ./services/desktops/system-config-printer.nix ./services/desktops/system76-scheduler.nix ./services/desktops/telepathy.nix diff --git a/nixos/modules/services/desktops/seatd.nix b/nixos/modules/services/desktops/seatd.nix new file mode 100644 index 000000000000..32fff587ab3c --- /dev/null +++ b/nixos/modules/services/desktops/seatd.nix @@ -0,0 +1,49 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.services.seatd; + inherit (lib) mkEnableOption mkOption mdDoc types; +in +{ + meta.maintainers = with lib.maintainers; [ sinanmohd ]; + + options.services.seatd = { + enable = mkEnableOption (mdDoc "seatd"); + + user = mkOption { + type = types.str; + default = "root"; + description = mdDoc "User to own the seatd socket"; + }; + group = mkOption { + type = types.str; + default = "seat"; + description = mdDoc "Group to own the seatd socket"; + }; + logLevel = mkOption { + type = types.enum [ "debug" "info" "error" "silent" ]; + default = "info"; + description = mdDoc "Logging verbosity"; + }; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [ seatd ]; + users.groups.seat = lib.mkIf (cfg.group == "seat") {}; + + systemd.services.seatd = { + description = "Seat management daemon"; + documentation = [ "man:seatd(1)" ]; + + wantedBy = [ "multi-user.target" ]; + restartIfChanged = false; + + serviceConfig = { + Type = "simple"; + ExecStart = "${pkgs.seatd.bin}/bin/seatd -u ${cfg.user} -g ${cfg.group} -l ${cfg.logLevel}"; + RestartSec = 1; + Restart = "always"; + }; + }; + }; +} From aa0b9d27801654dd3ff1e0cb50d34aefd651c799 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 25 Aug 2023 10:59:57 +0530 Subject: [PATCH 27/31] nixos/tests/seatd: init --- nixos/tests/all-tests.nix | 1 + nixos/tests/seatd.nix | 51 ++++++++++++++++++++++++ pkgs/applications/misc/seatd/default.nix | 3 ++ 3 files changed, 55 insertions(+) create mode 100644 nixos/tests/seatd.nix diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 44e99203856d..3b0871e36a77 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -742,6 +742,7 @@ in { sddm = handleTest ./sddm.nix {}; seafile = handleTest ./seafile.nix {}; searx = handleTest ./searx.nix {}; + seatd = handleTest ./seatd.nix {}; service-runner = handleTest ./service-runner.nix {}; sftpgo = runTest ./sftpgo.nix; sfxr-qt = handleTest ./sfxr-qt.nix {}; diff --git a/nixos/tests/seatd.nix b/nixos/tests/seatd.nix new file mode 100644 index 000000000000..138a6cb1cf44 --- /dev/null +++ b/nixos/tests/seatd.nix @@ -0,0 +1,51 @@ +import ./make-test-python.nix ({ pkgs, lib, ... }: + +let + seatd-test = pkgs.writeShellApplication { + name = "seatd-client-pid"; + text = '' + journalctl -u seatd --no-pager -b | while read -r line; do + case "$line" in + *"New client connected"*) + line="''${line##*pid: }" + pid="''${line%%,*}" + ;; + *"Opened client"*) + echo "$pid" + exit + esac + done; + ''; + }; +in +{ + name = "seatd"; + meta.maintainers = with lib.maintainers; [ sinanmohd ]; + + nodes.machine = { ... }: { + imports = [ ./common/user-account.nix ]; + services.getty.autologinUser = "alice"; + users.users.alice.extraGroups = [ "seat" "wheel" ]; + + fonts.enableDefaultPackages = true; + environment.systemPackages = with pkgs; [ + dwl + foot + seatd-test + ]; + + programs.bash.loginShellInit = '' + [ "$(tty)" = "/dev/tty1" ] && + dwl -s 'foot touch /tmp/foot_started' + ''; + + hardware.opengl.enable = true; + virtualisation.qemu.options = [ "-vga none -device virtio-gpu-pci" ]; + services.seatd.enable = true; + }; + + testScript = '' + machine.wait_for_file("/tmp/foot_started") + machine.succeed("test $(seatd-client-pid) = $(pgrep dwl)") + ''; +}) diff --git a/pkgs/applications/misc/seatd/default.nix b/pkgs/applications/misc/seatd/default.nix index eb214760574e..da3dda9fc8d7 100644 --- a/pkgs/applications/misc/seatd/default.nix +++ b/pkgs/applications/misc/seatd/default.nix @@ -6,6 +6,7 @@ , scdoc , stdenv , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd +, nixosTests }: stdenv.mkDerivation (finalAttrs: { @@ -40,6 +41,8 @@ stdenv.mkDerivation (finalAttrs: { "-Dserver=enabled" ]; + passthru.tests.basic = nixosTests.seatd; + meta = { description = "A minimal seat management daemon, and a universal seat management library"; changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${finalAttrs.version}"; From da35c07d235521ab19aa5f6fd83edd23f1aad134 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 14 Sep 2023 11:03:02 +0530 Subject: [PATCH 28/31] nixos/seatd: add readiness notification --- nixos/modules/services/desktops/seatd.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/desktops/seatd.nix b/nixos/modules/services/desktops/seatd.nix index 32fff587ab3c..51977dfd2153 100644 --- a/nixos/modules/services/desktops/seatd.nix +++ b/nixos/modules/services/desktops/seatd.nix @@ -28,7 +28,7 @@ in }; config = lib.mkIf cfg.enable { - environment.systemPackages = with pkgs; [ seatd ]; + environment.systemPackages = with pkgs; [ seatd sdnotify-wrapper ]; users.groups.seat = lib.mkIf (cfg.group == "seat") {}; systemd.services.seatd = { @@ -39,8 +39,10 @@ in restartIfChanged = false; serviceConfig = { - Type = "simple"; - ExecStart = "${pkgs.seatd.bin}/bin/seatd -u ${cfg.user} -g ${cfg.group} -l ${cfg.logLevel}"; + Type = "notify"; + NotifyAccess = "all"; + SyslogIdentifier = "seatd"; + ExecStart = "${pkgs.sdnotify-wrapper}/bin/sdnotify-wrapper ${pkgs.seatd.bin}/bin/seatd -n 1 -u ${cfg.user} -g ${cfg.group} -l ${cfg.logLevel}"; RestartSec = 1; Restart = "always"; }; From 9c05037545a6a9774dc9e2fce54ebb6d5aa7934f Mon Sep 17 00:00:00 2001 From: annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:47:44 +0000 Subject: [PATCH 29/31] python311Packages.polars: remove patch for rustc < 1.73; fix build --- .../python-modules/polars/all_horizontal.patch | 13 ------------- pkgs/development/python-modules/polars/default.nix | 7 ------- 2 files changed, 20 deletions(-) delete mode 100644 pkgs/development/python-modules/polars/all_horizontal.patch diff --git a/pkgs/development/python-modules/polars/all_horizontal.patch b/pkgs/development/python-modules/polars/all_horizontal.patch deleted file mode 100644 index 3caf548d4ac0..000000000000 --- a/pkgs/development/python-modules/polars/all_horizontal.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/crates/polars-lazy/src/frame/mod.rs b/crates/polars-lazy/src/frame/mod.rs -index 2d2ede651..be24b8809 100644 ---- a/crates/polars-lazy/src/frame/mod.rs -+++ b/crates/polars-lazy/src/frame/mod.rs -@@ -25,7 +25,7 @@ pub use parquet::*; - use polars_core::frame::explode::MeltArgs; - use polars_core::prelude::*; - use polars_io::RowCount; --use polars_plan::dsl::all_horizontal; -+use polars_plan::dsl::functions::all_horizontal; - pub use polars_plan::frame::{AllowedOptimizations, OptState}; - use polars_plan::global::FETCH_ROWS; - #[cfg(any(feature = "ipc", feature = "parquet", feature = "csv"))] diff --git a/pkgs/development/python-modules/polars/default.nix b/pkgs/development/python-modules/polars/default.nix index fc82d8638569..991a3a3684cd 100644 --- a/pkgs/development/python-modules/polars/default.nix +++ b/pkgs/development/python-modules/polars/default.nix @@ -32,13 +32,6 @@ buildPythonPackage { disabled = pythonOlder "3.6"; src = rootSource; - patches = [ - # workaround for apparent rustc bug - # remove when we're at Rust 1.73 - # https://github.com/pola-rs/polars/issues/12050 - ./all_horizontal.patch - ]; - # Cargo.lock file is sometimes behind actual release which throws an error, # thus the `sed` command # Make sure to check that the right substitutions are made when updating the package From f1df2acd4134c269a7754a44373d77d066bebea5 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 12 Nov 2023 00:18:50 +0100 Subject: [PATCH 30/31] python3Packages.trimesh: 4.0.1 -> 4.0.4 Changelog: https://github.com/mikedh/trimesh/releases/tag/4.0.4 --- pkgs/development/python-modules/trimesh/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/trimesh/default.nix b/pkgs/development/python-modules/trimesh/default.nix index 3943d185255d..6a38fed9c492 100644 --- a/pkgs/development/python-modules/trimesh/default.nix +++ b/pkgs/development/python-modules/trimesh/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "trimesh"; - version = "4.0.1"; + version = "4.0.4"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-jBVQqYNB8P7E0xkcTH6uYmbBZ/l5P9VLtyyRQxq/fOY="; + hash = "sha256-3XpncG6ISKQU+hqJpvck82s0BYgvYpNGn3zcdWkB5Ps="; }; nativeBuildInputs = [ setuptools ]; From c06cd5bfe25c58cda4cc9601e54394c7ee83546a Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 16 Nov 2023 05:58:01 +0100 Subject: [PATCH 31/31] =?UTF-8?q?ocamlPackages.syslog:=201.5=20=E2=86=92?= =?UTF-8?q?=202.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/syslog/default.nix | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/pkgs/development/ocaml-modules/syslog/default.nix b/pkgs/development/ocaml-modules/syslog/default.nix index ccec03296384..ad9204847e10 100644 --- a/pkgs/development/ocaml-modules/syslog/default.nix +++ b/pkgs/development/ocaml-modules/syslog/default.nix @@ -1,30 +1,22 @@ -{ lib, stdenv, fetchFromGitHub, ocaml, findlib }: +{ lib, fetchFromGitHub, buildDunePackage }: -assert lib.versionAtLeast (lib.getVersion ocaml) "4.03.0"; +buildDunePackage rec { + pname = "syslog"; + version = "2.0.2"; -stdenv.mkDerivation rec { - pname = "ocaml${ocaml.version}-syslog"; - version = "1.5"; + minimalOCamlVersion = "4.03"; src = fetchFromGitHub { - owner = "rixed"; + owner = "geneanet"; repo = "ocaml-syslog"; rev = "v${version}"; - sha256 = "1kqpc55ppzv9n555qgqpda49n7nvkqimzisyjx2a7338r7q4r5bw"; + hash = "sha256-WybNZBPhv4fhjzzb95E+6ZHcZUnfROLlNF3PMBGO9ys="; }; - nativeBuildInputs = [ ocaml findlib ]; - strictDeps = true; - - buildFlags = [ "all" "opt" ]; - - createFindlibDestdir = true; - meta = with lib; { - homepage = "https://github.com/rixed/ocaml-syslog"; + homepage = "https://github.com/geneanet/ocaml-syslog"; description = "Simple wrapper to access the system logger from OCaml"; license = licenses.lgpl21Plus; - inherit (ocaml.meta) platforms; maintainers = [ maintainers.rixed ]; }; }