From 6abc77ca5ceef471ecdf94afe58e62b2466bfe4a Mon Sep 17 00:00:00 2001 From: Vonixxx Date: Fri, 17 Nov 2023 08:59:48 +0100 Subject: [PATCH 01/40] maintainers: add vonixxx --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4a75aed9a611..0ed72341625f 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -18961,6 +18961,12 @@ githubId = 3413119; name = "Vonfry"; }; + vonixxx = { + email = "vonixxx@tuta.io"; + github = "vonixxx"; + githubId = 144771550; + name = "Luca Uricariu"; + }; votava = { email = "votava@gmail.com"; github = "janvotava"; From f8fda4730fe9d7567784540b26a054d64d70567d Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Fri, 17 Nov 2023 16:50:08 +0100 Subject: [PATCH 02/40] geos: 3.11.2 -> 3.12.1 --- pkgs/development/libraries/geos/default.nix | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/pkgs/development/libraries/geos/default.nix b/pkgs/development/libraries/geos/default.nix index 90bdfdb0d605..fc3cff98d7e8 100644 --- a/pkgs/development/libraries/geos/default.nix +++ b/pkgs/development/libraries/geos/default.nix @@ -1,7 +1,6 @@ { lib , stdenv , callPackage -, fetchpatch , fetchurl , testers @@ -10,23 +9,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "geos"; - version = "3.11.2"; + version = "3.12.1"; src = fetchurl { url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2"; - hash = "sha256-sfB3ZpSBxaPmKv/EnpbrBvKBmHpdNv2rIlIX5bgl5Mw="; + hash = "sha256-1up+SSIktRGT6CRP4+wXxNRNB3fzwyyk+xcRQFSaDQM="; }; - patches = [ - # Pull upstream fix of `gcc-13` build failure: - # https://github.com/libgeos/geos/pull/805 - (fetchpatch { - name = "gcc-13.patch"; - url = "https://github.com/libgeos/geos/commit/bea3188be44075034fd349f5bb117c943bdb7fb1.patch"; - hash = "sha256-dQT3Hf9YJchgjon/r46TLIXXbE6C0ZnewyvfYJea4jM="; - }) - ]; - nativeBuildInputs = [ cmake ]; doCheck = true; @@ -40,8 +29,9 @@ stdenv.mkDerivation (finalAttrs: { description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software"; homepage = "https://libgeos.org"; license = licenses.lgpl21Only; + mainProgram = "geosop"; maintainers = teams.geospatial.members; pkgConfigModules = [ "geos" ]; - mainProgram = "geosop"; + changelog = "https://github.com/libgeos/geos/releases/tag/${finalAttrs.finalPackage.version}"; }; }) From 1b2bab090cf0a4bb8eefec62bf382263bbecf122 Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Wed, 6 Dec 2023 15:56:33 +0100 Subject: [PATCH 03/40] geos: keep version 3.11 of package Keep old version of package due to requirements of following packages: * kikit * pygeos --- pkgs/development/libraries/geos/3.11.nix | 47 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/libraries/geos/3.11.nix diff --git a/pkgs/development/libraries/geos/3.11.nix b/pkgs/development/libraries/geos/3.11.nix new file mode 100644 index 000000000000..90bdfdb0d605 --- /dev/null +++ b/pkgs/development/libraries/geos/3.11.nix @@ -0,0 +1,47 @@ +{ lib +, stdenv +, callPackage +, fetchpatch +, fetchurl +, testers + +, cmake +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "geos"; + version = "3.11.2"; + + src = fetchurl { + url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2"; + hash = "sha256-sfB3ZpSBxaPmKv/EnpbrBvKBmHpdNv2rIlIX5bgl5Mw="; + }; + + patches = [ + # Pull upstream fix of `gcc-13` build failure: + # https://github.com/libgeos/geos/pull/805 + (fetchpatch { + name = "gcc-13.patch"; + url = "https://github.com/libgeos/geos/commit/bea3188be44075034fd349f5bb117c943bdb7fb1.patch"; + hash = "sha256-dQT3Hf9YJchgjon/r46TLIXXbE6C0ZnewyvfYJea4jM="; + }) + ]; + + nativeBuildInputs = [ cmake ]; + + doCheck = true; + + passthru.tests = { + pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + geos = callPackage ./tests.nix { geos = finalAttrs.finalPackage; }; + }; + + meta = with lib; { + description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software"; + homepage = "https://libgeos.org"; + license = licenses.lgpl21Only; + maintainers = teams.geospatial.members; + pkgConfigModules = [ "geos" ]; + mainProgram = "geosop"; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 91172ebdabf2..386a6d6d6116 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21455,6 +21455,8 @@ with pkgs; geos39 = callPackage ../development/libraries/geos/3.9.nix { }; + geos311 = callPackage ../development/libraries/geos/3.11.nix { }; + getdata = callPackage ../development/libraries/getdata { }; inherit (callPackages ../development/libraries/getdns { }) From 8a9d435c4a49c48aeeb233e8f1b93f604c01c19a Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Wed, 6 Dec 2023 16:00:45 +0100 Subject: [PATCH 04/40] python3Packages.pygeos: use GEOS 3.11 --- pkgs/development/python-modules/pygeos/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pygeos/default.nix b/pkgs/development/python-modules/pygeos/default.nix index 22f76d36c46d..3a5759dfb67a 100644 --- a/pkgs/development/python-modules/pygeos/default.nix +++ b/pkgs/development/python-modules/pygeos/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchPypi , python -, geos +, geos311 , pytestCheckHook , cython , numpy @@ -18,7 +18,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - geos # for geos-config + geos311 # for geos-config cython ]; From 18437fb33d2002cdf0423fa4dff0169d0f327bf7 Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Wed, 6 Dec 2023 16:49:42 +0100 Subject: [PATCH 05/40] python3Packages.shapely: keep version 1.8 Keep old version of package due to requirements of following packages: * kikit --- .../python-modules/shapely/1.8.nix | 89 +++++++++++++++++++ .../shapely/library-paths.patch | 31 +++++++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 122 insertions(+) create mode 100644 pkgs/development/python-modules/shapely/1.8.nix create mode 100644 pkgs/development/python-modules/shapely/library-paths.patch diff --git a/pkgs/development/python-modules/shapely/1.8.nix b/pkgs/development/python-modules/shapely/1.8.nix new file mode 100644 index 000000000000..2afbdba3d79b --- /dev/null +++ b/pkgs/development/python-modules/shapely/1.8.nix @@ -0,0 +1,89 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +, substituteAll + +, cython +, geos311 +, numpy +, oldest-supported-numpy +, setuptools +, wheel +}: + +buildPythonPackage rec { + pname = "Shapely"; + version = "1.8.5"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-6CttYOz7EkEgyI/hBqR4WWu+qxQhFtfn9ko2TayQKpI="; + }; + + # Environment variable used in shapely/_buildcfg.py + GEOS_LIBRARY_PATH = "${geos311}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}"; + + patches = [ + # Patch to search form GOES .so/.dylib files in a Nix-aware way + (substituteAll { + src = ./library-paths.patch; + libgeos_c = GEOS_LIBRARY_PATH; + libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6"; + }) + ]; + + postPatch = '' + substituteInPlace pyproject.toml --replace "setuptools<64" "setuptools" + ''; + + nativeBuildInputs = [ + cython + geos311 # for geos-config + oldest-supported-numpy + setuptools + wheel + ]; + + buildInputs = [ + geos311 + ]; + + propagatedBuildInputs = [ + numpy + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + preCheck = '' + rm -r shapely # prevent import of local shapely + ''; + + disabledTests = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # FIXME(lf-): these logging tests are broken, which is definitely our + # fault. I've tried figuring out the cause and failed. + # + # It is apparently some sandbox or no-sandbox related thing on macOS only + # though. + "test_error_handler_exception" + "test_error_handler" + "test_info_handler" + ]; + + pythonImportsCheck = [ "shapely" ]; + + meta = with lib; { + changelog = "https://github.com/shapely/shapely/blob/${version}/CHANGES.txt"; + description = "Manipulation and analysis of geometric objects"; + homepage = "https://github.com/shapely/shapely"; + license = licenses.bsd3; + maintainers = teams.geospatial.members; + }; +} diff --git a/pkgs/development/python-modules/shapely/library-paths.patch b/pkgs/development/python-modules/shapely/library-paths.patch new file mode 100644 index 000000000000..12f93e757f9a --- /dev/null +++ b/pkgs/development/python-modules/shapely/library-paths.patch @@ -0,0 +1,31 @@ +diff --git a/shapely/geos.py b/shapely/geos.py +index 88c5f53..1ccd6e4 100644 +--- a/shapely/geos.py ++++ b/shapely/geos.py +@@ -96,6 +96,7 @@ if sys.platform.startswith('linux'): + alt_paths = [ + 'libgeos_c.so.1', + 'libgeos_c.so', ++ '@libgeos_c@', + ] + _lgeos = load_dll('geos_c', fallbacks=alt_paths) + +@@ -160,6 +161,7 @@ elif sys.platform == 'darwin': + "/usr/local/lib/libgeos_c.dylib", + # homebrew Apple Silicon + "/opt/homebrew/lib/libgeos_c.dylib", ++ "@libgeos_c@", + ] + _lgeos = load_dll('geos_c', fallbacks=alt_paths) + +diff --git a/tests/test_dlls.py b/tests/test_dlls.py +index c71da8e..c36262c 100644 +--- a/tests/test_dlls.py ++++ b/tests/test_dlls.py +@@ -18,4 +18,5 @@ class LoadingTestCase(unittest.TestCase): + '/opt/homebrew/lib/libgeos_c.dylib', # homebrew (macOS) + os.path.join(sys.prefix, "lib", "libgeos_c.so"), # anaconda (Linux) + 'libgeos_c.so.1', +- 'libgeos_c.so']) ++ 'libgeos_c.so', ++ '@libgeos_c@']) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e965fe2441f2..cebbd1d18198 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12933,6 +12933,8 @@ self: super: with self; { shapely = callPackage ../development/python-modules/shapely { }; + shapely18 = callPackage ../development/python-modules/shapely/1.8.nix { }; + shaperglot = callPackage ../development/python-modules/shaperglot { }; sharedmem = callPackage ../development/python-modules/sharedmem { }; From 9a07607d713f3fdfe52c4275101d1bb59eb6e0ef Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Wed, 6 Dec 2023 16:56:02 +0100 Subject: [PATCH 06/40] kikit: use shapely 1.8 Use maintained version of shapely 1.8 instead of locally packaged version. --- pkgs/by-name/ki/kikit/default.nix | 8 +-- pkgs/by-name/ki/kikit/shapely/default.nix | 71 ------------------- .../ki/kikit/shapely/library-paths.patch | 31 -------- 3 files changed, 3 insertions(+), 107 deletions(-) delete mode 100644 pkgs/by-name/ki/kikit/shapely/default.nix delete mode 100644 pkgs/by-name/ki/kikit/shapely/library-paths.patch diff --git a/pkgs/by-name/ki/kikit/default.nix b/pkgs/by-name/ki/kikit/default.nix index 45209545aa3d..9d6d8375e634 100644 --- a/pkgs/by-name/ki/kikit/default.nix +++ b/pkgs/by-name/ki/kikit/default.nix @@ -16,13 +16,10 @@ , pcbnew-transition , pybars3 , versioneer +, shapely18 }: let solidpython = callPackage ./solidpython { }; - - # https://github.com/yaqwsx/KiKit/issues/574 - # copy-pasted from nixpkgs#8d8e62e74f511160a599471549a98bc9e4f4818d - shapely = callPackage ./shapely { }; in buildPythonApplication rec { pname = "kikit"; @@ -48,7 +45,8 @@ buildPythonApplication rec { wxPython_4_2 pcbnew-transition pybars3 - shapely + # https://github.com/yaqwsx/KiKit/issues/574 + shapely18 # https://github.com/yaqwsx/KiKit/issues/576 solidpython ]; diff --git a/pkgs/by-name/ki/kikit/shapely/default.nix b/pkgs/by-name/ki/kikit/shapely/default.nix deleted file mode 100644 index 7f136a1338ad..000000000000 --- a/pkgs/by-name/ki/kikit/shapely/default.nix +++ /dev/null @@ -1,71 +0,0 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, substituteAll -, pythonOlder -, geos -, pytestCheckHook -, cython -, numpy -}: - -buildPythonPackage rec { - pname = "Shapely"; - version = "1.8.4"; - disabled = pythonOlder "3.6"; - - src = fetchPypi { - inherit pname version; - sha256 = "sha256-oZXlHKr6IYKR8suqP+9p/TNTyT7EtlsqRyLEz0DDGYw="; - }; - - nativeBuildInputs = [ - geos # for geos-config - cython - ]; - - propagatedBuildInputs = [ - numpy - ]; - - checkInputs = [ - pytestCheckHook - ]; - - # Environment variable used in shapely/_buildcfg.py - GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}"; - - patches = [ - # Patch to search form GOES .so/.dylib files in a Nix-aware way - (substituteAll { - src = ./library-paths.patch; - libgeos_c = GEOS_LIBRARY_PATH; - libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6"; - }) - ]; - - preCheck = '' - rm -r shapely # prevent import of local shapely - ''; - - disabledTests = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # FIXME(lf-): these logging tests are broken, which is definitely our - # fault. I've tried figuring out the cause and failed. - # - # It is apparently some sandbox or no-sandbox related thing on macOS only - # though. - "test_error_handler_exception" - "test_error_handler" - "test_info_handler" - ]; - - pythonImportsCheck = [ "shapely" ]; - - meta = with lib; { - description = "Geometric objects, predicates, and operations"; - homepage = "https://pypi.python.org/pypi/Shapely/"; - license = with licenses; [ bsd3 ]; - maintainers = with maintainers; [ knedlsepp ]; - }; -} diff --git a/pkgs/by-name/ki/kikit/shapely/library-paths.patch b/pkgs/by-name/ki/kikit/shapely/library-paths.patch deleted file mode 100644 index 12f93e757f9a..000000000000 --- a/pkgs/by-name/ki/kikit/shapely/library-paths.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/shapely/geos.py b/shapely/geos.py -index 88c5f53..1ccd6e4 100644 ---- a/shapely/geos.py -+++ b/shapely/geos.py -@@ -96,6 +96,7 @@ if sys.platform.startswith('linux'): - alt_paths = [ - 'libgeos_c.so.1', - 'libgeos_c.so', -+ '@libgeos_c@', - ] - _lgeos = load_dll('geos_c', fallbacks=alt_paths) - -@@ -160,6 +161,7 @@ elif sys.platform == 'darwin': - "/usr/local/lib/libgeos_c.dylib", - # homebrew Apple Silicon - "/opt/homebrew/lib/libgeos_c.dylib", -+ "@libgeos_c@", - ] - _lgeos = load_dll('geos_c', fallbacks=alt_paths) - -diff --git a/tests/test_dlls.py b/tests/test_dlls.py -index c71da8e..c36262c 100644 ---- a/tests/test_dlls.py -+++ b/tests/test_dlls.py -@@ -18,4 +18,5 @@ class LoadingTestCase(unittest.TestCase): - '/opt/homebrew/lib/libgeos_c.dylib', # homebrew (macOS) - os.path.join(sys.prefix, "lib", "libgeos_c.so"), # anaconda (Linux) - 'libgeos_c.so.1', -- 'libgeos_c.so']) -+ 'libgeos_c.so', -+ '@libgeos_c@']) From c975ff60fc00336c64509e93b2b7e6b0b8af860a Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Thu, 7 Dec 2023 09:43:32 +0100 Subject: [PATCH 07/40] geos: rename geos39 to geos_3_9 --- pkgs/development/python-modules/django/3.nix | 4 ++-- .../python-modules/django/django_3_set_geos_gdal_lib.patch | 2 +- pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/django/3.nix b/pkgs/development/python-modules/django/3.nix index 077ea73bd8b9..295094c65928 100644 --- a/pkgs/development/python-modules/django/3.nix +++ b/pkgs/development/python-modules/django/3.nix @@ -3,7 +3,7 @@ , buildPythonPackage , fetchPypi , substituteAll -, geos39 +, geos_3_9 , gdal , asgiref , pytz @@ -33,7 +33,7 @@ buildPythonPackage rec { ] ++ lib.optional withGdal (substituteAll { src = ./django_3_set_geos_gdal_lib.patch; - inherit geos39; + inherit geos_3_9; inherit gdal; extension = stdenv.hostPlatform.extensions.sharedLibrary; }); diff --git a/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch b/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch index 15f0773dcf4f..a7dfa086a0a7 100644 --- a/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch +++ b/pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch @@ -18,7 +18,7 @@ diff -Nur a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos lib_path = settings.GEOS_LIBRARY_PATH except (AttributeError, ImportError, ImproperlyConfigured, OSError): - lib_path = None -+ lib_path = "@geos39@/lib/libgeos_c@extension@" ++ lib_path = "@geos_3_9@/lib/libgeos_c@extension@" # Setting the appropriate names for the GEOS-C library. if lib_path: diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 386a6d6d6116..22dbd23c4d2c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21453,7 +21453,7 @@ with pkgs; stdenv = if stdenv.cc.isClang then overrideLibcxx llvmPackages_14.stdenv else stdenv; }; - geos39 = callPackage ../development/libraries/geos/3.9.nix { }; + geos_3_9 = callPackage ../development/libraries/geos/3.9.nix { }; geos311 = callPackage ../development/libraries/geos/3.11.nix { }; From 0d883c3cea84a796499780d91930e7ca9633d387 Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Thu, 7 Dec 2023 09:45:06 +0100 Subject: [PATCH 08/40] geos: rename geos311 to geos_3_11 --- pkgs/development/python-modules/pygeos/default.nix | 4 ++-- pkgs/development/python-modules/shapely/1.8.nix | 8 ++++---- pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pygeos/default.nix b/pkgs/development/python-modules/pygeos/default.nix index 3a5759dfb67a..1e4d15c88089 100644 --- a/pkgs/development/python-modules/pygeos/default.nix +++ b/pkgs/development/python-modules/pygeos/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , fetchPypi , python -, geos311 +, geos_3_11 , pytestCheckHook , cython , numpy @@ -18,7 +18,7 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - geos311 # for geos-config + geos_3_11 # for geos-config cython ]; diff --git a/pkgs/development/python-modules/shapely/1.8.nix b/pkgs/development/python-modules/shapely/1.8.nix index 2afbdba3d79b..28a248af0bed 100644 --- a/pkgs/development/python-modules/shapely/1.8.nix +++ b/pkgs/development/python-modules/shapely/1.8.nix @@ -7,7 +7,7 @@ , substituteAll , cython -, geos311 +, geos_3_11 , numpy , oldest-supported-numpy , setuptools @@ -27,7 +27,7 @@ buildPythonPackage rec { }; # Environment variable used in shapely/_buildcfg.py - GEOS_LIBRARY_PATH = "${geos311}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}"; + GEOS_LIBRARY_PATH = "${geos_3_11}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}"; patches = [ # Patch to search form GOES .so/.dylib files in a Nix-aware way @@ -44,14 +44,14 @@ buildPythonPackage rec { nativeBuildInputs = [ cython - geos311 # for geos-config + geos_3_11 # for geos-config oldest-supported-numpy setuptools wheel ]; buildInputs = [ - geos311 + geos_3_11 ]; propagatedBuildInputs = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 22dbd23c4d2c..8d4ec8fb573e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21455,7 +21455,7 @@ with pkgs; geos_3_9 = callPackage ../development/libraries/geos/3.9.nix { }; - geos311 = callPackage ../development/libraries/geos/3.11.nix { }; + geos_3_11 = callPackage ../development/libraries/geos/3.11.nix { }; getdata = callPackage ../development/libraries/getdata { }; From 8b5d46f1ce15b75312c17b999a47fdd351a3b0a9 Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Thu, 7 Dec 2023 09:45:59 +0100 Subject: [PATCH 09/40] python3Packages.shapely: rename shapely18 to shapely_1_8 --- pkgs/by-name/ki/kikit/default.nix | 4 ++-- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ki/kikit/default.nix b/pkgs/by-name/ki/kikit/default.nix index 9d6d8375e634..886cca973837 100644 --- a/pkgs/by-name/ki/kikit/default.nix +++ b/pkgs/by-name/ki/kikit/default.nix @@ -16,7 +16,7 @@ , pcbnew-transition , pybars3 , versioneer -, shapely18 +, shapely_1_8 }: let solidpython = callPackage ./solidpython { }; @@ -46,7 +46,7 @@ buildPythonApplication rec { pcbnew-transition pybars3 # https://github.com/yaqwsx/KiKit/issues/574 - shapely18 + shapely_1_8 # https://github.com/yaqwsx/KiKit/issues/576 solidpython ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cebbd1d18198..85771452287d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12933,7 +12933,7 @@ self: super: with self; { shapely = callPackage ../development/python-modules/shapely { }; - shapely18 = callPackage ../development/python-modules/shapely/1.8.nix { }; + shapely_1_8 = callPackage ../development/python-modules/shapely/1.8.nix { }; shaperglot = callPackage ../development/python-modules/shaperglot { }; From 057a7ef32482e1bb6f1f7232aaaf905e96cd048b Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 8 Dec 2023 23:56:33 +0100 Subject: [PATCH 10/40] libbitcoin{,client,explorer,network,protocol}: 3.5.0 -> 3.8.0 --- .../misc/libbitcoin/fix-gcc11-compilation.patch | 12 ------------ pkgs/tools/misc/libbitcoin/libbitcoin-client.nix | 9 +++------ pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix | 9 +++------ pkgs/tools/misc/libbitcoin/libbitcoin-network.nix | 9 +++------ pkgs/tools/misc/libbitcoin/libbitcoin-protocol.nix | 9 +++------ pkgs/tools/misc/libbitcoin/libbitcoin.nix | 6 ++---- 6 files changed, 14 insertions(+), 40 deletions(-) delete mode 100644 pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch diff --git a/pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch b/pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch deleted file mode 100644 index fe1b9777275e..000000000000 --- a/pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/include/bitcoin/bitcoin/wallet/dictionary.hpp b/include/bitcoin/bitcoin/wallet/dictionary.hpp -index 632f1afc..63a51764 100644 ---- a/include/bitcoin/bitcoin/wallet/dictionary.hpp -+++ b/include/bitcoin/bitcoin/wallet/dictionary.hpp -@@ -19,6 +19,7 @@ - #ifndef LIBBITCOIN_WALLET_DICTIONARY_HPP - #define LIBBITCOIN_WALLET_DICTIONARY_HPP - -+#include - #include - #include - #include diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin-client.nix b/pkgs/tools/misc/libbitcoin/libbitcoin-client.nix index a940fba29676..266ef9accca6 100644 --- a/pkgs/tools/misc/libbitcoin/libbitcoin-client.nix +++ b/pkgs/tools/misc/libbitcoin/libbitcoin-client.nix @@ -1,18 +1,15 @@ { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook , boost, libbitcoin, libbitcoin-protocol }: -let +stdenv.mkDerivation rec { pname = "libbitcoin-client"; - version = "3.5.0"; - -in stdenv.mkDerivation { - name = "${pname}-${version}"; + version = "3.8.0"; src = fetchFromGitHub { owner = "libbitcoin"; repo = pname; rev = "v${version}"; - sha256 = "0a9c00f1pfi8wczbfd1djkvr7di3iw1ynak6if910w01dkhbm6v4"; + hash = "sha256-5qbxixaozHFsOcBxnuGEfNJyGL8UaYCOPwPakfc0bAg="; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix b/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix index 7d00e4c09add..48c8e9a4f721 100644 --- a/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix +++ b/pkgs/tools/misc/libbitcoin/libbitcoin-explorer.nix @@ -1,18 +1,15 @@ { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook , boost, libbitcoin-client, libbitcoin-network }: -let +stdenv.mkDerivation rec { pname = "libbitcoin-explorer"; - version = "3.5.0"; - -in stdenv.mkDerivation { - name = "${pname}-${version}"; + version = "3.8.0"; src = fetchFromGitHub { owner = "libbitcoin"; repo = pname; rev = "v${version}"; - sha256 = "033nrdzrha4kypxk4biixjsbjd16r4m2mjvpid4gdj5hzbbj1p93"; + hash = "sha256-NUAtjrfRbZg5ewQo4PZ1HEoG8GRrsPcNb78UYMHqdyo="; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin-network.nix b/pkgs/tools/misc/libbitcoin/libbitcoin-network.nix index 5d330ee3cacc..ee9cb1da687f 100644 --- a/pkgs/tools/misc/libbitcoin/libbitcoin-network.nix +++ b/pkgs/tools/misc/libbitcoin/libbitcoin-network.nix @@ -1,18 +1,15 @@ { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook , boost, libbitcoin, zeromq }: -let +stdenv.mkDerivation rec { pname = "libbitcoin-network"; - version = "3.5.0"; - -in stdenv.mkDerivation { - name = "${pname}-${version}"; + version = "3.8.0"; src = fetchFromGitHub { owner = "libbitcoin"; repo = pname; rev = "v${version}"; - sha256 = "0vqg3i40kwmbys4lyp82xvg2nx3ik4qhc66gcm8k66a86wpj9ji6"; + hash = "sha256-zDT92bvA779mzTodpKugCoxapB6vY2jCMSGZEkJLTXQ="; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin-protocol.nix b/pkgs/tools/misc/libbitcoin/libbitcoin-protocol.nix index 06f6546e964d..57e55400aa27 100644 --- a/pkgs/tools/misc/libbitcoin/libbitcoin-protocol.nix +++ b/pkgs/tools/misc/libbitcoin/libbitcoin-protocol.nix @@ -1,18 +1,15 @@ { lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook , boost, libbitcoin, secp256k1, zeromq }: -let +stdenv.mkDerivation rec { pname = "libbitcoin-protocol"; - version = "3.5.0"; - -in stdenv.mkDerivation { - name = "${pname}-${version}"; + version = "3.8.0"; src = fetchFromGitHub { owner = "libbitcoin"; repo = pname; rev = "v${version}"; - sha256 = "1ln9r04hlnc7qmv17rakyhrnzw1a541pg5jc1sw3ccn90a5x6cfv"; + hash = "sha256-xf0qQQnZ8h6ent1sgkVTo55+9drZM8Zbx0deYZnLBho="; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin.nix b/pkgs/tools/misc/libbitcoin/libbitcoin.nix index 347d6eae7ce4..70a0f9bff6ef 100644 --- a/pkgs/tools/misc/libbitcoin/libbitcoin.nix +++ b/pkgs/tools/misc/libbitcoin/libbitcoin.nix @@ -3,13 +3,13 @@ stdenv.mkDerivation rec { pname = "libbitcoin"; - version = "3.6.0"; + version = "3.8.0"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - sha256 = "1rppyp3zpb6ymwangjpblwf6qh4y3d1hczrjx8aavmrq7hznnrhq"; + hash = "sha256-7fxj2hnuGRUS4QSQ1w0s3looe9pMvE2U50/yhNyBMf0="; }; nativeBuildInputs = [ autoreconfHook pkg-config ]; @@ -18,8 +18,6 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - patches = [ ./fix-gcc11-compilation.patch ]; - configureFlags = [ "--with-tests=no" "--with-boost=${boost.dev}" From d28eb7c5fb481e3c44432cc5be5728ee193d6945 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Mon, 11 Dec 2023 17:56:15 +0100 Subject: [PATCH 11/40] grub: apply fixes for CVE-2023-4692 and CVE-2023-4693 --- pkgs/tools/misc/grub/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/pkgs/tools/misc/grub/default.nix b/pkgs/tools/misc/grub/default.nix index 52ccfa8ccaaa..727c6ae073e6 100644 --- a/pkgs/tools/misc/grub/default.nix +++ b/pkgs/tools/misc/grub/default.nix @@ -91,6 +91,32 @@ stdenv.mkDerivation rec { revert = true; hash = "sha256-p8Kcv9d7ri4eJU6Fgqyzdj0hV5MHSe50AF02FPDJx2Y="; }) + + # Fixes for NTFS bugs (CVE-2023-4692 and CVE-2023-4693) + (fetchpatch { + url = "https://git.savannah.gnu.org/cgit/grub.git/patch/?id=43651027d24e62a7a463254165e1e46e42aecdea"; + hash = "sha256-/oudbfL8Ph7ZsgsFUI0YIddji+7okFRG12E/rDsgvNM="; + }) + (fetchpatch { + url = "https://git.savannah.gnu.org/cgit/grub.git/patch/?id=0ed2458cc4eff6d9a9199527e2a0b6d445802f94"; + hash = "sha256-6EhLzVapN2n62Lgo+PnB4SRvDkYWFkrKNinCvArRUXk="; + }) + (fetchpatch { + url = "https://git.savannah.gnu.org/cgit/grub.git/patch/?id=7e5f031a6a6a3decc2360a7b0c71abbe598e7354"; + hash = "sha256-R2vmVGidm1ZFxopt/71y2816z2i/vvPrthZE52oc4CI="; + }) + (fetchpatch { + url = "https://git.savannah.gnu.org/cgit/grub.git/patch/?id=7a5a116739fa6d8a625da7d6b9272c9a2462f967"; + hash = "sha256-T1LglEcUl9GXQjJ6Y4fKuFyFAujNRbcAb9KoNkl6jXs="; + }) + (fetchpatch { + url = "https://git.savannah.gnu.org/cgit/grub.git/patch/?id=1fe82c41e070385e273d7bb1cfb482627a3c28e8"; + hash = "sha256-x/V7bmRaNxo8NNOUwVti59n9ST/2yTJ/blWjk3omdqE="; + }) + (fetchpatch { + url = "https://git.savannah.gnu.org/cgit/grub.git/patch/?id=e58b870ff926415e23fc386af41ff81b2f588763"; + hash = "sha256-a0faNQafL+uRIglnILkLj64ROWxqmczQTQSu3VdklSk="; + }) ]; postPatch = if kbdcompSupport then '' From 14447282cfbc797dace52dfd5869e867dc5692ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Wed, 13 Dec 2023 16:46:55 +0100 Subject: [PATCH 12/40] wavm: add missing platforms --- pkgs/development/interpreters/wavm/default.nix | 1 + pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/wavm/default.nix b/pkgs/development/interpreters/wavm/default.nix index a9ed260a0fd0..c4d4c4f5f2d2 100644 --- a/pkgs/development/interpreters/wavm/default.nix +++ b/pkgs/development/interpreters/wavm/default.nix @@ -22,5 +22,6 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: { homepage = "https://wavm.github.io"; license = licenses.bsd3; maintainers = with maintainers; [ ereslibre ]; + platforms = platforms.unix; }; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4f89a1d73db6..c4615d891668 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -41381,7 +41381,9 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreFoundation SystemConfiguration Security; }; - wavm = callPackage ../development/interpreters/wavm { }; + wavm = callPackage ../development/interpreters/wavm { + llvmPackages = llvmPackages_12; + }; yabasic = callPackage ../development/interpreters/yabasic { }; From 36ac9222715cea3c0e657b620dad9f21fda1ad43 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 13 Dec 2023 08:20:59 -0800 Subject: [PATCH 13/40] nixos/jigasi: update to use literalExpression I saw this trace when building my system configuration this morning: ``` lazy-options.json> trace: warning: literalExample is deprecated, use literalExpression instead, or use literalMD for a non-Nix description. ``` This warning was introduced in https://github.com/NixOS/nixpkgs/pull/237557. The option this commit changes was introduced in https://github.com/NixOS/nixpkgs/pull/137003. --- nixos/modules/services/networking/jigasi.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/jigasi.nix b/nixos/modules/services/networking/jigasi.nix index 8d2d25c6edfc..e701689031b1 100644 --- a/nixos/modules/services/networking/jigasi.nix +++ b/nixos/modules/services/networking/jigasi.nix @@ -96,7 +96,7 @@ in config = mkOption { type = attrsOf str; default = { }; - example = literalExample '' + example = literalExpression '' { "org.jitsi.jigasi.auth.URL" = "XMPP:jitsi-meet.example.com"; } From 316c70e2494f5894da445908858cab2d7536780c Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 13 Dec 2023 12:15:15 -0800 Subject: [PATCH 14/40] citrix_workspace: 23.09.0.24 -> 23.11.0.82 Full change log: https://docs.citrix.com/en-us/citrix-workspace-app-for-linux/whats-new.html I only tested this by opening the app once. --- .../networking/remote/citrix-workspace/default.nix | 1 - .../networking/remote/citrix-workspace/sources.nix | 11 +++++++++++ pkgs/top-level/all-packages.nix | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/remote/citrix-workspace/default.nix b/pkgs/applications/networking/remote/citrix-workspace/default.nix index c73789ddeb7b..f6004c2a3fae 100644 --- a/pkgs/applications/networking/remote/citrix-workspace/default.nix +++ b/pkgs/applications/networking/remote/citrix-workspace/default.nix @@ -5,7 +5,6 @@ let inherit (callPackage ./sources.nix { }) supportedVersions unsupportedVersions; - mkCitrix = callPackage ./generic.nix { }; toAttrName = x: "citrix_workspace_${builtins.replaceStrings [ "." ] [ "_" ] x}"; diff --git a/pkgs/applications/networking/remote/citrix-workspace/sources.nix b/pkgs/applications/networking/remote/citrix-workspace/sources.nix index f1b1a83102ac..3d9391168514 100644 --- a/pkgs/applications/networking/remote/citrix-workspace/sources.nix +++ b/pkgs/applications/networking/remote/citrix-workspace/sources.nix @@ -44,6 +44,17 @@ let x86hash = "95436fb289602cf31c65b7df89da145fc170233cb2e758a2f11116f15b57d382"; x64suffix = "24"; x86suffix = "24"; + homepage = "https://www.citrix.com/downloads/workspace-app/legacy-workspace-app-for-linux/workspace-app-for-linux-latest9.html"; + }; + + "23.11.0" = { + major = "23"; + minor = "11"; + patch = "0"; + x64hash = "d3dde64baa6db7675a025eff546d552544d3523f4f3047621884f7830a9e2822"; + x86hash = "65b8c144e51b5bd78b98ae69e0fa76d6c020a857d74fd5254be49492527072b6"; + x64suffix = "82"; + x86suffix = "82"; homepage = "https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html"; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4f89a1d73db6..a7e842ded0b8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6893,8 +6893,9 @@ with pkgs; citrix_workspace_23_02_0 citrix_workspace_23_07_0 citrix_workspace_23_09_0 + citrix_workspace_23_11_0 ; - citrix_workspace = citrix_workspace_23_09_0; + citrix_workspace = citrix_workspace_23_11_0; clima = callPackage ../tools/text/clima { }; From 408d21017d62379a10e4d52c2f75ed2a5382b2e1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 21:23:51 +0100 Subject: [PATCH 15/40] python311Packages.bluetooth-data-tools: 1.17.0 -> 1.18.0 Diff: https://github.com/Bluetooth-Devices/bluetooth-data-tools/compare/refs/tags/v1.17.0...v1.18.0 Changelog: https://github.com/Bluetooth-Devices/bluetooth-data-tools/blob/v1.18.0/CHANGELOG.md --- .../python-modules/bluetooth-data-tools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bluetooth-data-tools/default.nix b/pkgs/development/python-modules/bluetooth-data-tools/default.nix index 370dd50d41f7..1d2facc1ed1e 100644 --- a/pkgs/development/python-modules/bluetooth-data-tools/default.nix +++ b/pkgs/development/python-modules/bluetooth-data-tools/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "bluetooth-data-tools"; - version = "1.17.0"; + version = "1.18.0"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "Bluetooth-Devices"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-CJyTWNBtBk3YpoaiL1/P+aUE4ttthQDTdDuKBYEXrBg="; + hash = "sha256-AN0zalYQ4JQCaBDrE4tq2WwVEXz0LBlfvrxNiPL4oOs="; }; # The project can build both an optimized cython version and an unoptimized From 235fb206c62f948f567d7a57435347900fbb077b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 21:25:33 +0100 Subject: [PATCH 16/40] python311Packages.aemet-opendata: 0.4.6 -> 0.4.7 Diff: https://github.com/Noltari/AEMET-OpenData/compare/refs/tags/0.4.6...0.4.7 Changelog: https://github.com/Noltari/AEMET-OpenData/releases/tag/0.4.7 --- pkgs/development/python-modules/aemet-opendata/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aemet-opendata/default.nix b/pkgs/development/python-modules/aemet-opendata/default.nix index b238f184f0c1..6960b390ed03 100644 --- a/pkgs/development/python-modules/aemet-opendata/default.nix +++ b/pkgs/development/python-modules/aemet-opendata/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "aemet-opendata"; - version = "0.4.6"; + version = "0.4.7"; format = "pyproject"; disabled = pythonOlder "3.11"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "Noltari"; repo = "AEMET-OpenData"; rev = "refs/tags/${version}"; - hash = "sha256-eAHj37d0akxSz4rnf9f0tDknJQe//cMg0Korp1rtxfQ="; + hash = "sha256-kmU2HtNyYhfwWQv6asOtDpLZ6+O+eEICzBNLxUhAwaY="; }; nativeBuildInputs = [ From d08a3154a215e0f8ac9436447b9639af408c2e53 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 21:46:37 +0100 Subject: [PATCH 17/40] python311Packages.aiohappyeyeballs: init at 2.3.0 Modul for connecting with Happy Eyeballs https://github.com/bdraco/aiohappyeyeballs --- .../aiohappyeyeballs/default.nix | 54 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 56 insertions(+) create mode 100644 pkgs/development/python-modules/aiohappyeyeballs/default.nix diff --git a/pkgs/development/python-modules/aiohappyeyeballs/default.nix b/pkgs/development/python-modules/aiohappyeyeballs/default.nix new file mode 100644 index 000000000000..8922c8283adc --- /dev/null +++ b/pkgs/development/python-modules/aiohappyeyeballs/default.nix @@ -0,0 +1,54 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aiohappyeyeballs"; + version = "2.3.0"; + pyproject = true; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "bdraco"; + repo = "aiohappyeyeballs"; + rev = "refs/tags/v${version}"; + hash = "sha256-LMvELnN6Sy6DssXfH6fQ84N2rhdjqB8AlikTMidrjT4="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=aiohappyeyeballs --cov-report=term-missing:skip-covered" "" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "aiohappyeyeballs" + ]; + + disabledTestPaths = [ + # Test has typos + "tests/test_impl.py" + ]; + + meta = with lib; { + description = "Modul for connecting with Happy Eyeballs"; + homepage = "https://github.com/bdraco/aiohappyeyeballs"; + changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/${version}/CHANGELOG.md"; + license = licenses.psfl; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7cf03fc84e9e..0e337c6fc022 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -218,6 +218,8 @@ self: super: with self; { aiogram = callPackage ../development/python-modules/aiogram { }; + aiohappyeyeballs = callPackage ../development/python-modules/aiohappyeyeballs { }; + aioharmony = callPackage ../development/python-modules/aioharmony { }; aiohomekit = callPackage ../development/python-modules/aiohomekit { }; From 0b1da428d139fc4e3c2dd92750fdd62fd06b3f28 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 21:47:59 +0100 Subject: [PATCH 18/40] python311Packages.aiohomekit: 3.0.9 -> 3.1.0 Diff: https://github.com/Jc2k/aiohomekit/compare/refs/tags/3.0.9...3.1.0 Changelog: https://github.com/Jc2k/aiohomekit/releases/tag/3.1.0 --- .../python-modules/aiohomekit/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiohomekit/default.nix b/pkgs/development/python-modules/aiohomekit/default.nix index 79484a4beea9..8fe2e78372d3 100644 --- a/pkgs/development/python-modules/aiohomekit/default.nix +++ b/pkgs/development/python-modules/aiohomekit/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , aiocoap +, aiohappyeyeballs , async-interrupt , bleak , bleak-retry-connector @@ -19,16 +20,16 @@ buildPythonPackage rec { pname = "aiohomekit"; - version = "3.0.9"; - format = "pyproject"; + version = "3.1.0"; + pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "Jc2k"; - repo = pname; + repo = "aiohomekit"; rev = "refs/tags/${version}"; - hash = "sha256-YaLSpWSaiEP7X+IujrQgXgWl3aPc1WDMq2yaMUTu328="; + hash = "sha256-yaPliPKa/mS9amUkEx/iM398HGoiKrR6miCtK7fThNw="; }; nativeBuildInputs = [ @@ -37,6 +38,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ aiocoap + aiohappyeyeballs async-interrupt bleak bleak-retry-connector From 38fe5aa511994eaa3c695b96f5851793ccaa62e3 Mon Sep 17 00:00:00 2001 From: Vonixxx Date: Fri, 17 Nov 2023 09:05:40 +0100 Subject: [PATCH 19/40] when: init at 1.1.45 when: init at 1.1.46 incorporated suggestions when: init at 1.1.46 incorporated changes fixed stdenv incorporated changes incorporated changes incorporated changes incorporated changes fixed trailing whitespace --- pkgs/by-name/wh/when/package.nix | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/wh/when/package.nix diff --git a/pkgs/by-name/wh/when/package.nix b/pkgs/by-name/wh/when/package.nix new file mode 100644 index 000000000000..65fe306f447f --- /dev/null +++ b/pkgs/by-name/wh/when/package.nix @@ -0,0 +1,44 @@ +{ lib +, stdenvNoCC +, perl +, installShellFiles +, fetchFromBitbucket +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "when"; + version = "1.1.45"; + + src = fetchFromBitbucket { + repo = "when"; + owner = "ben-crowell"; + rev = finalAttrs.version; + hash = "sha256-+ggYjY6/aTUrdvREn0TTQ4Pu/VR4QTjflDaicRXuOMs="; + }; + + buildInputs = [ perl ]; + + nativeBuildInputs = [ installShellFiles ]; + + postBuild = '' + pod2man $src/when when.1 + ''; + + installPhase = '' + runHook preInstall + + install -Dm755 when $out/bin/when + installManPage when.1 + + runHook postInstall + ''; + + meta = with lib; { + description = "An extremely simple personal calendar program"; + homepage = "https://www.lightandmatter.com/when/when.html"; + license = licenses.gpl2Only; + mainProgram = "when"; + maintainers = with maintainers; [ vonixxx ]; + platforms = platforms.all; + }; +}) From aa65bb43b261f8020f6ebfeffdac3ccb64164f80 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 21:19:59 +0100 Subject: [PATCH 20/40] python311Packages.pyhiveapi: add changelog to meta --- pkgs/development/python-modules/pyhiveapi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyhiveapi/default.nix b/pkgs/development/python-modules/pyhiveapi/default.nix index 989b1d115d8d..341e08186470 100644 --- a/pkgs/development/python-modules/pyhiveapi/default.nix +++ b/pkgs/development/python-modules/pyhiveapi/default.nix @@ -15,8 +15,7 @@ buildPythonPackage rec { pname = "pyhiveapi"; version = "0.5.16"; - - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.6"; @@ -59,6 +58,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python library to interface with the Hive API"; homepage = "https://github.com/Pyhass/Pyhiveapi"; + changelog = "https://github.com/Pyhass/Pyhiveapi/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; From 7d90dd0a2f06c910a70b917e79e171b932af9d5c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 23:30:52 +0100 Subject: [PATCH 21/40] python311Packages.bleak-esphome: init at 0.2.0 Bleak backend of ESPHome https://github.com/bluetooth-devices/bleak-esphome --- .../python-modules/bleak-esphome/default.nix | 60 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/bleak-esphome/default.nix diff --git a/pkgs/development/python-modules/bleak-esphome/default.nix b/pkgs/development/python-modules/bleak-esphome/default.nix new file mode 100644 index 000000000000..8a6f46eaca9e --- /dev/null +++ b/pkgs/development/python-modules/bleak-esphome/default.nix @@ -0,0 +1,60 @@ +{ lib +, aioesphomeapi +, bleak +, bluetooth-data-tools +, buildPythonPackage +, fetchFromGitHub +, habluetooth +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "bleak-esphome"; + version = "0.2.0"; + pyproject = true; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "bluetooth-devices"; + repo = "bleak-esphome"; + rev = "refs/tags/v${version}"; + hash = "sha256-QtSkrX7xGaV/13FonQhYR4MpZxVwR8dAFCRvID0zSGo="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=bleak_esphome --cov-report=term-missing:skip-covered" "" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aioesphomeapi + bleak + bluetooth-data-tools + habluetooth + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "bleak_esphome" + ]; + + meta = with lib; { + description = "Bleak backend of ESPHome"; + homepage = "https://github.com/bluetooth-devices/bleak-esphome"; + changelog = "https://github.com/bluetooth-devices/bleak-esphome/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 07f44dcf96fd..6cf94c6a8abb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1496,6 +1496,8 @@ self: super: with self; { bleak = callPackage ../development/python-modules/bleak { }; + bleak-esphome = callPackage ../development/python-modules/bleak-esphome { }; + bleak-retry-connector = callPackage ../development/python-modules/bleak-retry-connector { }; blebox-uniapi = callPackage ../development/python-modules/blebox-uniapi { }; From ae17adee6f671384d658ec1f16b94a04977ccc2e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 23:36:39 +0100 Subject: [PATCH 22/40] python311Packages.aioesphomeapi: 19.2.1 -> 21.0.0 Diff: https://github.com/esphome/aioesphomeapi/compare/refs/tags/v19.2.1...v21.0.0 Changelog: https://github.com/esphome/aioesphomeapi/releases/tag/v21.0.0 --- .../python-modules/aioesphomeapi/default.nix | 35 +++++++++---------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/aioesphomeapi/default.nix b/pkgs/development/python-modules/aioesphomeapi/default.nix index ae981e949dec..04cf6abd82a4 100644 --- a/pkgs/development/python-modules/aioesphomeapi/default.nix +++ b/pkgs/development/python-modules/aioesphomeapi/default.nix @@ -1,28 +1,23 @@ { lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder - -# build-system -, cython_3 -, setuptools - -# dependencies +, aiohappyeyeballs , async-timeout +, buildPythonPackage , chacha20poly1305-reuseable +, cython_3 +, fetchFromGitHub +, mock , noiseprotocol , protobuf -, zeroconf - -# tests -, mock , pytest-asyncio , pytestCheckHook +, pythonOlder +, setuptools +, zeroconf }: buildPythonPackage rec { pname = "aioesphomeapi"; - version = "19.2.1"; + version = "21.0.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -31,7 +26,7 @@ buildPythonPackage rec { owner = "esphome"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-WSWGO0kI1m6oaImUYZ6m5WKJ+xPs/rtn5wVq1bDr+bE="; + hash = "sha256-KT38NY1BZM6Qr1EeC05vM9IcVKO7GaEx0102TUzkyRE="; }; nativeBuildInputs = [ @@ -40,6 +35,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ + aiohappyeyeballs chacha20poly1305-reuseable noiseprotocol protobuf @@ -48,19 +44,20 @@ buildPythonPackage rec { async-timeout ]; - pythonImportsCheck = [ - "aioesphomeapi" - ]; nativeCheckInputs = [ mock pytest-asyncio pytestCheckHook ]; + pythonImportsCheck = [ + "aioesphomeapi" + ]; + meta = with lib; { - changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}"; description = "Python Client for ESPHome native API"; homepage = "https://github.com/esphome/aioesphomeapi"; + changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab hexa ]; }; From 8eb3bd9a5d76d880060e9784b9db4a5cd8ad2776 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 23:40:00 +0100 Subject: [PATCH 23/40] python311Packages.chacha20poly1305-reuseable: 0.11.0 -> 0.12.0 Diff: https://github.com/bdraco/chacha20poly1305-reuseable/compare/v0.11.0...v0.12.0 Changelog: https://github.com/bdraco/chacha20poly1305-reuseable/blob/v0.12.0/CHANGELOG.md --- .../python-modules/chacha20poly1305-reuseable/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix b/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix index 1d1b21ceee57..4c2cabda2cd3 100644 --- a/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix +++ b/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix @@ -17,7 +17,7 @@ let pname = "chacha20poly1305-reuseable"; - version = "0.11.0"; + version = "0.12.0"; in buildPythonPackage { @@ -30,7 +30,7 @@ buildPythonPackage { owner = "bdraco"; repo = pname; rev = "v${version}"; - hash = "sha256-uRndA0NnSQtJTftALzBF3FWZtavRyMwBlnCBqoIXE5Q="; + hash = "sha256-g1sLmYy5SClkdBSjFFYtikh2nuxfTIoaCyktqoFl+Ho="; }; nativeBuildInputs = [ From 7f075f16ad0238b7a2ea126503d0ce23d2e31d67 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 23:46:26 +0100 Subject: [PATCH 24/40] python311Packages.dvc-objects: 1.4.9 -> 2.0.1 Diff: https://github.com/iterative/dvc-objects/compare/refs/tags/1.4.9...2.0.1 Changelog: https://github.com/iterative/dvc-objects/releases/tag/2.0.1 --- .../python-modules/dvc-objects/default.nix | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/dvc-objects/default.nix b/pkgs/development/python-modules/dvc-objects/default.nix index 0458828812d3..b5df60a987e6 100644 --- a/pkgs/development/python-modules/dvc-objects/default.nix +++ b/pkgs/development/python-modules/dvc-objects/default.nix @@ -1,48 +1,45 @@ { lib , buildPythonPackage , fetchFromGitHub -, flatten-dict , fsspec , funcy -, pygtrie , pytest-mock , pytestCheckHook , pythonOlder , reflink , setuptools-scm , shortuuid -, tqdm -, typing-extensions }: buildPythonPackage rec { pname = "dvc-objects"; - version = "1.4.9"; - format = "pyproject"; + version = "2.0.1"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "iterative"; - repo = pname; + repo = "dvc-objects"; rev = "refs/tags/${version}"; - hash = "sha256-9fuxlZDy83nl+rnVEFdAza1NHun8PdewgowMl3G5wZU="; + hash = "sha256-nxZN0Q9mRAZJUOoxfE58lXZVOrY0r05iROcuo+nV99A="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --benchmark-skip" "" + ''; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ - flatten-dict fsspec funcy - pygtrie shortuuid - tqdm - typing-extensions ]; nativeCheckInputs = [ From 1d50215dfd686e25ccb50af3c89e6acc099f8bd7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Dec 2023 23:47:45 +0100 Subject: [PATCH 25/40] python311Packages.dvc-data: 2.23.1 -> 2.24.0 Diff: https://github.com/iterative/dvc-data/compare/refs/tags/2.23.1...2.24.0 Changelog: https://github.com/iterative/dvc-data/releases/tag/2.24.0 --- pkgs/development/python-modules/dvc-data/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/dvc-data/default.nix b/pkgs/development/python-modules/dvc-data/default.nix index 3deec8ee65de..d8ea75e66017 100644 --- a/pkgs/development/python-modules/dvc-data/default.nix +++ b/pkgs/development/python-modules/dvc-data/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "dvc-data"; - version = "2.23.1"; + version = "2.24.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "iterative"; repo = "dvc-data"; rev = "refs/tags/${version}"; - hash = "sha256-UsWMlwG1g59I+TIn1uwp6vyzVIBtj1lfchp+3SYognc="; + hash = "sha256-CDy7Ye/DPg7GQY5cg/wR4OH4C9wIlsz3Cxc4ntoNYFw="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; From 0102fd19b5ecfc5b327eecc31cfd429756752e5e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Dec 2023 00:01:36 +0100 Subject: [PATCH 26/40] python311Packages.dvc: 3.33.3 -> 3.33.4 Diff: https://github.com/iterative/dvc/compare/refs/tags/3.33.3...3.33.4 Changelog: https://github.com/iterative/dvc/releases/tag/3.33.4 --- pkgs/development/python-modules/dvc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/dvc/default.nix b/pkgs/development/python-modules/dvc/default.nix index cf925f030944..c4577e691357 100644 --- a/pkgs/development/python-modules/dvc/default.nix +++ b/pkgs/development/python-modules/dvc/default.nix @@ -55,14 +55,14 @@ buildPythonPackage rec { pname = "dvc"; - version = "3.33.3"; + version = "3.33.4"; format = "pyproject"; src = fetchFromGitHub { owner = "iterative"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-S6RHRY0G6YYcLa7CBFNxi1fVSJH7ZdgyqAo3wmLUNbE="; + hash = "sha256-NWu12FVJDSSuxYGVWFNlbAEUINg05s64EJ6gIaErQ9E="; }; pythonRelaxDeps = [ From e9444f1b2df67250ee171e4a7692025e8933a00c Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Thu, 14 Dec 2023 00:42:47 +0100 Subject: [PATCH 27/40] abracadabra: 2.3.1 -> 2.3.4 --- pkgs/applications/radio/abracadabra/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/radio/abracadabra/default.nix b/pkgs/applications/radio/abracadabra/default.nix index a19c48fb72e3..417ca2bc3f42 100644 --- a/pkgs/applications/radio/abracadabra/default.nix +++ b/pkgs/applications/radio/abracadabra/default.nix @@ -6,13 +6,13 @@ stdenv.mkDerivation rec { pname = "abracadabra"; - version = "2.3.1"; + version = "2.3.4"; src = fetchFromGitHub { owner = "KejPi"; repo = "AbracaDABra"; rev = "v${version}"; - hash = "sha256-HRwgtNCrEzo6uXNJHG3PwpBAXVTppYUTmiwKWi3reho="; + hash = "sha256-giQJ6lOD5TaOa98e7nXf6/HHxP6/TxD9Pgr7xAxvZzs="; }; nativeBuildInputs = [ From 82b3151def372ceabdc762c7006c6720da1d2ce2 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 14 Dec 2023 01:17:33 +0100 Subject: [PATCH 28/40] bpftools: add homepage > This is the official home for bpftool. --- pkgs/os-specific/linux/bpftools/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/bpftools/default.nix b/pkgs/os-specific/linux/bpftools/default.nix index a23c4eb7b9e6..9ec4778ca38c 100644 --- a/pkgs/os-specific/linux/bpftools/default.nix +++ b/pkgs/os-specific/linux/bpftools/default.nix @@ -43,6 +43,7 @@ stdenv.mkDerivation rec { ''; meta = with lib; { + homepage = "https://github.com/libbpf/bpftool"; description = "Debugging/program analysis tools for the eBPF subsystem"; license = [ licenses.gpl2 licenses.bsd2 ]; platforms = platforms.linux; From 0b7e4691c98956403917264924746da30c5cfde8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 14 Dec 2023 01:59:41 +0000 Subject: [PATCH 29/40] cpp-utilities: 5.24.2 -> 5.24.4 --- pkgs/development/libraries/cpp-utilities/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/cpp-utilities/default.nix b/pkgs/development/libraries/cpp-utilities/default.nix index b15335a37ca4..b76153304dfa 100644 --- a/pkgs/development/libraries/cpp-utilities/default.nix +++ b/pkgs/development/libraries/cpp-utilities/default.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "cpp-utilities"; - version = "5.24.2"; + version = "5.24.4"; src = fetchFromGitHub { owner = "Martchus"; repo = "cpp-utilities"; rev = "v${finalAttrs.version}"; - sha256 = "sha256-boV0OO8GzgH0HpNh00nYLM2+wCmvuDxwKHvCMCdmiJs="; + sha256 = "sha256-YQNnf/DAtc58OwOWa2SBijIDpuhqWxFZHZCXLJ8PstI="; }; nativeBuildInputs = [ cmake ]; From 102500d2bae0b6a7af1affa8a42d8fb12d5b3702 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Thu, 14 Dec 2023 08:39:27 +0530 Subject: [PATCH 30/40] tailscale: 1.54.1 -> 1.56.0 --- pkgs/servers/tailscale/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/tailscale/default.nix b/pkgs/servers/tailscale/default.nix index 60f82bf57e88..1b1546427db0 100644 --- a/pkgs/servers/tailscale/default.nix +++ b/pkgs/servers/tailscale/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute2, procps, shadow, getent }: let - version = "1.54.1"; + version = "1.56.0"; in buildGoModule { pname = "tailscale"; @@ -11,9 +11,9 @@ buildGoModule { owner = "tailscale"; repo = "tailscale"; rev = "v${version}"; - hash = "sha256-dYYmqz1o3+FhdHmQ3KzUkAoSfEHNQhQt6neV3rFI+QE="; + hash = "sha256-st+s4fJMq1tad6IfPewGnM3LC7JDRoSt0LDV7392Kp4="; }; - vendorHash = "sha256-/kuu7DKPklMZOvYqJpsOp3TeDG9KDEET4U0G+sq+4qY="; + vendorHash = "sha256-bG/ydsJf2UncOcDo8/BXdvQJO3Mk0tl8JGje1b6kto4="; nativeBuildInputs = lib.optionals stdenv.isLinux [ makeWrapper ]; From eb4a64ebbd418b9e94b77e9c84b2302976cea758 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 12 Dec 2023 08:47:30 +0100 Subject: [PATCH 31/40] =?UTF-8?q?ocamlPackages.functoria:=204.3.6=20?= =?UTF-8?q?=E2=86=92=204.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ocaml-modules/functoria/default.nix | 16 +++++++--------- .../ocaml-modules/functoria/runtime.nix | 17 ++++++++++++----- .../ocaml-modules/mirage/default.nix | 1 - .../ocaml-modules/mirage/runtime.nix | 5 ++--- 4 files changed, 21 insertions(+), 18 deletions(-) diff --git a/pkgs/development/ocaml-modules/functoria/default.nix b/pkgs/development/ocaml-modules/functoria/default.nix index 1b4eb502b64a..e126c707285a 100644 --- a/pkgs/development/ocaml-modules/functoria/default.nix +++ b/pkgs/development/ocaml-modules/functoria/default.nix @@ -1,21 +1,19 @@ -{ lib, fetchurl, buildDunePackage, cmdliner +{ lib, buildDunePackage, cmdliner +, functoria-runtime , rresult, astring, fmt, logs, bos, fpath, emile, uri +, alcotest }: -buildDunePackage rec { +buildDunePackage { pname = "functoria"; - version = "4.3.6"; + inherit (functoria-runtime) version src; minimalOCamlVersion = "4.08"; - src = fetchurl { - url = "https://github.com/mirage/mirage/releases/download/v${version}/mirage-${version}.tbz"; - hash = "sha256-i/5sZHfxECoKYMdGje+U21GWxJ6dDZreVcQGtbuo4SE="; - }; - propagatedBuildInputs = [ cmdliner rresult astring fmt logs bos fpath emile uri ]; - doCheck = false; + doCheck = true; + checkInputs = [ alcotest functoria-runtime ]; meta = with lib; { description = "A DSL to organize functor applications"; diff --git a/pkgs/development/ocaml-modules/functoria/runtime.nix b/pkgs/development/ocaml-modules/functoria/runtime.nix index 1eb2eec48e44..3ede6096e508 100644 --- a/pkgs/development/ocaml-modules/functoria/runtime.nix +++ b/pkgs/development/ocaml-modules/functoria/runtime.nix @@ -1,14 +1,21 @@ -{ lib, buildDunePackage, functoria, cmdliner, fmt }: +{ lib, buildDunePackage, fetchurl, cmdliner }: -buildDunePackage { +buildDunePackage rec { pname = "functoria-runtime"; + version = "4.4.1"; - inherit (functoria) version src; + src = fetchurl { + url = "https://github.com/mirage/mirage/releases/download/v${version}/mirage-${version}.tbz"; + hash = "sha256-FKCdzrRJVpUrCWqrTiE8l00ZKJOYsvI9mNzJ0ZxDBwg="; + }; - propagatedBuildInputs = [ cmdliner fmt ]; + minimalOCamlVersion = "4.08"; + + propagatedBuildInputs = [ cmdliner ]; meta = with lib; { - inherit (functoria.meta) homepage license; + homepage = "https://github.com/mirage/functoria"; + license = licenses.isc; description = "Runtime support library for functoria-generated code"; maintainers = [ maintainers.sternenseemann ]; }; diff --git a/pkgs/development/ocaml-modules/mirage/default.nix b/pkgs/development/ocaml-modules/mirage/default.nix index 98d96cf146f0..410475b6b5c0 100644 --- a/pkgs/development/ocaml-modules/mirage/default.nix +++ b/pkgs/development/ocaml-modules/mirage/default.nix @@ -8,7 +8,6 @@ buildDunePackage rec { inherit (mirage-runtime) version src; minimalOCamlVersion = "4.08"; - duneVersion = "3"; outputs = [ "out" "dev" ]; diff --git a/pkgs/development/ocaml-modules/mirage/runtime.nix b/pkgs/development/ocaml-modules/mirage/runtime.nix index 0b7d929f5a8e..7e20e3363a47 100644 --- a/pkgs/development/ocaml-modules/mirage/runtime.nix +++ b/pkgs/development/ocaml-modules/mirage/runtime.nix @@ -1,5 +1,5 @@ { lib, buildDunePackage, fetchurl, ipaddr, functoria-runtime -, fmt, logs, lwt +, logs, lwt , alcotest }: @@ -8,9 +8,8 @@ buildDunePackage rec { inherit (functoria-runtime) src version; minimalOCamlVersion = "4.08"; - duneVersion = "3"; - propagatedBuildInputs = [ ipaddr functoria-runtime fmt logs lwt ]; + propagatedBuildInputs = [ ipaddr functoria-runtime logs lwt ]; checkInputs = [ alcotest ]; doCheck = true; From a9d183cff49c24ccc55a71a74be9b43f8078a7e0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Dec 2023 08:20:53 +0100 Subject: [PATCH 32/40] terrascan: 1.18.5 -> 1.18.7 Diff: https://github.com/accurics/terrascan/compare/refs/tags/v1.18.5...v1.18.7 Changelog: https://github.com/tenable/terrascan/blob/v1.18.7/CHANGELOG.md --- pkgs/tools/security/terrascan/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/terrascan/default.nix b/pkgs/tools/security/terrascan/default.nix index 9bff2f0679e4..c492ce43709e 100644 --- a/pkgs/tools/security/terrascan/default.nix +++ b/pkgs/tools/security/terrascan/default.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "terrascan"; - version = "1.18.5"; + version = "1.18.7"; src = fetchFromGitHub { owner = "accurics"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-RDKy588qUvs0SGysz4DnQMliKiTJn4GA53kDyMZhzQE="; + hash = "sha256-i621Qi0wlDYMpK/srFAiwALJ0cwMGh5jNlCqj8fM96w="; }; vendorHash = "sha256-9zD81p/UjH43B0aeqlItP9vrGMaT/zhVYv60ot153Gc="; From 452b8162ecc995793d906cde424b652fa3dd1314 Mon Sep 17 00:00:00 2001 From: Jeff Huffman Date: Sat, 9 Dec 2023 00:26:55 -0500 Subject: [PATCH 33/40] buildFHSEnv: use symlinks instead of bind mounts for files from host /etc Closes #247065 --- pkgs/build-support/build-fhsenv-bubblewrap/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix index 687cff3f01e2..ba28c68c3de3 100644 --- a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix +++ b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix @@ -150,10 +150,8 @@ let if [[ "''${etc_ignored[@]}" =~ "$i" ]]; then continue fi - if [[ -L $i ]]; then - symlinks+=(--symlink "$(${coreutils}/bin/readlink "$i")" "$i") - else - ro_mounts+=(--ro-bind-try "$i" "$i") + if [[ -e $i ]]; then + symlinks+=(--symlink "/.host-etc/''${i#/etc/}" "$i") fi done @@ -192,6 +190,7 @@ let ${lib.optionalString unshareCgroup "--unshare-cgroup"} ${lib.optionalString dieWithParent "--die-with-parent"} --ro-bind /nix /nix + --ro-bind /etc /.host-etc # Our glibc will look for the cache in its own path in `/nix/store`. # As such, we need a cache to exist there, because pressure-vessel # depends on the existence of an ld cache. However, adding one From 195248b6c101f3d58002d5c7e15be38231780786 Mon Sep 17 00:00:00 2001 From: Jeff Huffman Date: Sat, 9 Dec 2023 00:29:32 -0500 Subject: [PATCH 34/40] buildFHSEnv, steam: isolate steam's /tmp from host Works around steam's misbehavior: https://github.com/ValveSoftware/steam-for-linux/issues/9121 --- .../build-fhsenv-bubblewrap/default.nix | 10 +++++++--- pkgs/games/steam/fhsenv.nix | 17 ++++++++++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix index ba28c68c3de3..b6b5f13bba97 100644 --- a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix +++ b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix @@ -16,6 +16,7 @@ , extraInstallCommands ? "" , meta ? {} , passthru ? {} +, extraPreBwrapCmds ? "" , extraBwrapArgs ? [] , unshareUser ? false , unshareIpc ? false @@ -23,6 +24,7 @@ , unshareNet ? false , unshareUts ? false , unshareCgroup ? false +, privateTmp ? false , dieWithParent ? true , ... } @ args: @@ -38,8 +40,8 @@ let buildFHSEnv = callPackage ./buildFHSEnv.nix { }; fhsenv = buildFHSEnv (removeAttrs (args // { inherit name; }) [ - "runScript" "extraInstallCommands" "meta" "passthru" "extraBwrapArgs" "dieWithParent" - "unshareUser" "unshareCgroup" "unshareUts" "unshareNet" "unsharePid" "unshareIpc" + "runScript" "extraInstallCommands" "meta" "passthru" "extraPreBwrapCmds" "extraBwrapArgs" "dieWithParent" + "unshareUser" "unshareCgroup" "unshareUts" "unshareNet" "unsharePid" "unshareIpc" "privateTmp" "pname" "version" ]); @@ -116,7 +118,8 @@ let indentLines = str: lib.concatLines (map (s: " " + s) (filter (s: s != "") (lib.splitString "\n" str))); bwrapCmd = { initArgs ? "" }: '' - ignored=(/nix /dev /proc /etc) + ${extraPreBwrapCmds} + ignored=(/nix /dev /proc /etc ${lib.optionalString privateTmp "/tmp"}) ro_mounts=() symlinks=() etc_ignored=() @@ -191,6 +194,7 @@ let ${lib.optionalString dieWithParent "--die-with-parent"} --ro-bind /nix /nix --ro-bind /etc /.host-etc + ${lib.optionalString privateTmp "--tmpfs /tmp"} # Our glibc will look for the cache in its own path in `/nix/store`. # As such, we need a cache to exist there, because pressure-vessel # depends on the existence of an ld cache. However, adding one diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index 8ba5087ef7fe..0e4b5f3a8b29 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -3,11 +3,12 @@ , extraPkgs ? pkgs: [ ] # extra packages to add to targetPkgs , extraLibraries ? pkgs: [ ] # extra packages to add to multiPkgs , extraProfile ? "" # string to append to profile -, extraBwrapArgs ? [ ] # extra arguments to pass to bubblewrap +, extraPreBwrapCmds ? "" # extra commands to run before calling bubblewrap (real default is at usage site) +, extraBwrapArgs ? [ ] # extra arguments to pass to bubblewrap (real default is at usage site) , extraArgs ? "" # arguments to always pass to steam , extraEnv ? { } # Environment variables to pass to Steam , withGameSpecificLibraries ? true # include game specific libraries -}: +}@args: let commonTargetPkgs = pkgs: with pkgs; [ @@ -279,7 +280,17 @@ in buildFHSEnv rec { exec steam ${extraArgs} "$@" ''; - inherit extraBwrapArgs; + # steamwebhelper deletes unrelated electron programs' singleton cookies from /tmp on startup: + # https://github.com/ValveSoftware/steam-for-linux/issues/9121 + privateTmp = true; + + extraPreBwrapCmds = '' + install -m 1777 -d /tmp/dumps + '' + args.extraPreBwrapCmds or ""; + + extraBwrapArgs = [ + "--bind-try /tmp/dumps /tmp/dumps" + ] ++ args.extraBwrapArgs or []; meta = if steam != null From c3a429feac44321b8e3f98b64bb08c90e6bbada8 Mon Sep 17 00:00:00 2001 From: Jeff Huffman Date: Sat, 9 Dec 2023 00:30:47 -0500 Subject: [PATCH 35/40] steam: add glibc.bin to FHS for ldconfig --- pkgs/games/steam/fhsenv.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index 0e4b5f3a8b29..b3ef45fd437b 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -17,6 +17,8 @@ let lsb-release # Errors in output without those pciutils + # run.sh wants ldconfig + glibc.bin # Games' dependencies xorg.xrandr which From aa9d4729cbc99dabacb50e3994dcefb3ea0f7447 Mon Sep 17 00:00:00 2001 From: Jeff Huffman Date: Sat, 9 Dec 2023 00:31:45 -0500 Subject: [PATCH 36/40] steam: unset GIO_EXTRA_MODULES to supress errors --- pkgs/games/steam/fhsenv.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index b3ef45fd437b..7bcc7976f1f9 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -60,7 +60,10 @@ let fi ''; - envScript = lib.toShellVars extraEnv; + envScript = '' + # prevents various error messages + unset GIO_EXTRA_MODULES + '' + lib.toShellVars extraEnv; in buildFHSEnv rec { name = "steam"; From 13d8ffa26f0f8ba2429b88a4cda7a247a8557934 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Dec 2023 08:36:55 +0100 Subject: [PATCH 37/40] koodousfinder: init at 0.1.0 Tool to allows users to search for and analyze Android apps https://github.com/teixeira0xfffff/KoodousFinder --- pkgs/by-name/ko/koodousfinder/package.nix | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/ko/koodousfinder/package.nix diff --git a/pkgs/by-name/ko/koodousfinder/package.nix b/pkgs/by-name/ko/koodousfinder/package.nix new file mode 100644 index 000000000000..669783657081 --- /dev/null +++ b/pkgs/by-name/ko/koodousfinder/package.nix @@ -0,0 +1,42 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "koodousfinder"; + version = "0.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "teixeira0xfffff"; + repo = "KoodousFinder"; + # Not properly tagged, https://github.com/teixeira0xfffff/KoodousFinder/issues/7 + #rev = "refs/tags/v${version}"; + rev = "d9dab5572f44e5cd45c04e6fcda38956897855d1"; + hash = "sha256-skCbt2lDKgSyZdHY3WImbr6CF0icrDPTIXNV1736gKk="; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + keyring + requests + ]; + + # Project has no tests, re-check with next release + doCheck = false; + + pythonImportsCheck = [ + "koodousfinder" + ]; + + meta = with lib; { + description = "Tool to allows users to search for and analyze Android apps"; + homepage = "https://github.com/teixeira0xfffff/KoodousFinder"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} From 4fc44b7ddf8456f7b4163f328e6be2525807866d Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 6 Dec 2023 17:30:02 +0100 Subject: [PATCH 38/40] nixos/qmk: ensure plugdev groups exists QMK's udev rules are setting hidraw devices's group to plugdev. --- nixos/modules/hardware/keyboard/qmk.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/hardware/keyboard/qmk.nix b/nixos/modules/hardware/keyboard/qmk.nix index df3bcaeccd2e..d95d36dedb44 100644 --- a/nixos/modules/hardware/keyboard/qmk.nix +++ b/nixos/modules/hardware/keyboard/qmk.nix @@ -12,5 +12,6 @@ in config = mkIf cfg.enable { services.udev.packages = [ pkgs.qmk-udev-rules ]; + users.groups.plugdev = {}; }; } From 6f6435de1c363377ea1032eb8608bdef5dc2a498 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Thu, 14 Dec 2023 03:16:14 -0800 Subject: [PATCH 39/40] camunda-modeler: 5.17.0 -> 5.18.0 (#273963) --- pkgs/applications/misc/camunda-modeler/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/camunda-modeler/default.nix b/pkgs/applications/misc/camunda-modeler/default.nix index c9caa508f171..10bdf17813c5 100644 --- a/pkgs/applications/misc/camunda-modeler/default.nix +++ b/pkgs/applications/misc/camunda-modeler/default.nix @@ -9,11 +9,11 @@ stdenvNoCC.mkDerivation rec { pname = "camunda-modeler"; - version = "5.17.0"; + version = "5.18.0"; src = fetchurl { url = "https://github.com/camunda/camunda-modeler/releases/download/v${version}/camunda-modeler-${version}-linux-x64.tar.gz"; - hash = "sha256-yxph3Aor5nZOhu2PY4MGcfScaz9w24JXqXbhT+QKlNI="; + hash = "sha256-f7XYcFleEe1f6Uh6mOqfakzfWzOiQtBPhowTJUZU1MU="; }; sourceRoot = "camunda-modeler-${version}-linux-x64"; From f37be82593a90a414e879253e8624588b51153e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 11 Dec 2023 21:05:46 +0100 Subject: [PATCH 40/40] include-what-you-use: 0.19 -> 0.21 also add a compiler-wrapper similar to clang-tools so it can find dependencies in nix-shell environments. --- .../analysis/include-what-you-use/default.nix | 14 ++++++++-- .../analysis/include-what-you-use/wrapper | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100755 pkgs/development/tools/analysis/include-what-you-use/wrapper diff --git a/pkgs/development/tools/analysis/include-what-you-use/default.nix b/pkgs/development/tools/analysis/include-what-you-use/default.nix index 98aade37c2b5..7266b76a4ad6 100644 --- a/pkgs/development/tools/analysis/include-what-you-use/default.nix +++ b/pkgs/development/tools/analysis/include-what-you-use/default.nix @@ -3,11 +3,11 @@ stdenv.mkDerivation rec { pname = "include-what-you-use"; # Also bump llvmPackages in all-packages.nix to the supported version! - version = "0.19"; + version = "0.21"; src = fetchurl { url = "${meta.homepage}/downloads/${pname}-${version}.src.tar.gz"; - hash = "sha256-KxAVe2DqCK3AjjiWtJIcc/yt1exOtlKymjQSnVAeXuA="; + hash = "sha256-ajUZGf+JvafJXIlUcmAYaNs9qrlqlYs44DYokNWHYLY="; }; postPatch = '' @@ -17,11 +17,21 @@ stdenv.mkDerivation rec { nativeBuildInputs = with llvmPackages; [ cmake llvm.dev llvm python3 ]; buildInputs = with llvmPackages; [ libclang clang-unwrapped python3 ]; + clang = llvmPackages.clang; + cmakeFlags = [ "-DCMAKE_PREFIX_PATH=${llvmPackages.llvm.dev}" ]; postInstall = '' substituteInPlace $out/bin/iwyu_tool.py \ --replace "'include-what-you-use'" "'$out/bin/include-what-you-use'" + + + mv $out/bin/include-what-you-use $out/bin/.include-what-you-use-unwrapped + mv $out/bin/iwyu_tool.py $out/bin/.iwyu_tool.py-unwrapped + substituteAll ${./wrapper} $out/bin/include-what-you-use + ln -s $out/bin/include-what-you-use $out/bin/iwyu_tool.py + chmod +x $out/bin/include-what-you-use + patchShebangs $out/bin/include-what-you-use ''; meta = with lib; { diff --git a/pkgs/development/tools/analysis/include-what-you-use/wrapper b/pkgs/development/tools/analysis/include-what-you-use/wrapper new file mode 100755 index 000000000000..3fd37902cf2d --- /dev/null +++ b/pkgs/development/tools/analysis/include-what-you-use/wrapper @@ -0,0 +1,26 @@ +#!/bin/sh + +buildcpath() { + local path after + while (( $# )); do + case $1 in + -isystem) + shift + path=$path${path:+':'}$1 + ;; + -idirafter) + shift + after=$after${after:+':'}$1 + ;; + esac + shift + done + echo $path${after:+':'}$after +} + +export CPATH=${CPATH}${CPATH:+':'}$(buildcpath ${NIX_CFLAGS_COMPILE} \ + $(<@clang@/nix-support/libc-cflags)):@clang@/resource-root/include +export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}${CPLUS_INCLUDE_PATH:+':'}$(buildcpath ${NIX_CFLAGS_COMPILE} \ + $(<@clang@/nix-support/libcxx-cxxflags) \ + $(<@clang@/nix-support/libc-cflags)):@clang@/resource-root/include +exec -a "$0" @out@/bin/.$(basename $0)-unwrapped "$@" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e3311d2b5f47..8dd214b13296 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19390,7 +19390,7 @@ with pkgs; img = callPackage ../development/tools/img { }; include-what-you-use = callPackage ../development/tools/analysis/include-what-you-use { - llvmPackages = llvmPackages_15; + llvmPackages = llvmPackages_17; }; indent = callPackage ../development/tools/misc/indent { };