From b969657bf9609e5ee5a90b1181e542359f998fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 26 Feb 2024 14:35:36 +0100 Subject: [PATCH 001/693] rustfmt: wrap cargo-fmt with cargo Before it failed with this error: failed to start `cargo metadata`: No such file or directory (os error 2) Suffixing it to PATH to make sure any other cargo is used before this. --- pkgs/development/compilers/rust/rustfmt.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/rust/rustfmt.nix b/pkgs/development/compilers/rust/rustfmt.nix index 9cc8df5a9e90..2a5f722a5b93 100644 --- a/pkgs/development/compilers/rust/rustfmt.nix +++ b/pkgs/development/compilers/rust/rustfmt.nix @@ -1,6 +1,14 @@ -{ lib, stdenv, rustPlatform, rustc, Security, asNightly ? false }: +{ lib +, stdenv +, cargo +, makeWrapper +, rustPlatform +, rustc +, Security +, asNightly ? false +}: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage { pname = "rustfmt" + lib.optionalString asNightly "-nightly"; inherit (rustc) version src; @@ -11,6 +19,10 @@ rustPlatform.buildRustPackage rec { # changes hash of vendor directory otherwise dontUpdateAutotoolsGnuConfigScripts = true; + nativeBuildInputs = [ + makeWrapper + ]; + buildInputs = [ rustc.llvm ] ++ lib.optional stdenv.isDarwin Security; @@ -34,6 +46,11 @@ rustPlatform.buildRustPackage rec { CFG_RELEASE = rustc.version; CFG_RELEASE_CHANNEL = if asNightly then "nightly" else "stable"; + postInstall = '' + wrapProgram $out/bin/cargo-fmt \ + --suffix PATH : ${lib.makeBinPath [ cargo ]} + ''; + meta = with lib; { description = "A tool for formatting Rust code according to style guidelines"; homepage = "https://github.com/rust-lang-nursery/rustfmt"; From 8e1442adb28858e61d893f943f844d0ce688f2e6 Mon Sep 17 00:00:00 2001 From: Mitchell Allain Date: Sun, 28 Jul 2024 17:16:55 -0700 Subject: [PATCH 002/693] Add return value to runPhase bash function in stdenv --- pkgs/stdenv/generic/setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 40bf6554183c..0de3edfc7587 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1624,6 +1624,7 @@ showPhaseFooter() { runPhase() { + local status=0 local curPhase="$*" if [[ "$curPhase" = unpackPhase && -n "${dontUnpack:-}" ]]; then return; fi if [[ "$curPhase" = patchPhase && -n "${dontPatch:-}" ]]; then return; fi @@ -1643,6 +1644,11 @@ runPhase() { local startTime endTime startTime=$(date +"%s") + # Evaluate the variable named $curPhase if it exists, otherwise the + # function named $curPhase. Trap errors in subshell to set error status. + trap 'status=1; trap - ERR' ERR + eval "set -o errtrace; ${!curPhase:-$curPhase}" + # Evaluate the variable named $curPhase if it exists, otherwise the # function named $curPhase. eval "${!curPhase:-$curPhase}" @@ -1657,6 +1663,8 @@ runPhase() { cd -- "${sourceRoot:-.}" fi + + return $status } From e93ca9b43cf5aa4e58c9557f561f7dbafbabe893 Mon Sep 17 00:00:00 2001 From: Mitchell Allain Date: Sun, 28 Jul 2024 17:20:44 -0700 Subject: [PATCH 003/693] Change from status to retval --- pkgs/stdenv/generic/setup.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 0de3edfc7587..9043b3c710ad 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1624,7 +1624,7 @@ showPhaseFooter() { runPhase() { - local status=0 + local retval=0 local curPhase="$*" if [[ "$curPhase" = unpackPhase && -n "${dontUnpack:-}" ]]; then return; fi if [[ "$curPhase" = patchPhase && -n "${dontPatch:-}" ]]; then return; fi @@ -1645,14 +1645,10 @@ runPhase() { startTime=$(date +"%s") # Evaluate the variable named $curPhase if it exists, otherwise the - # function named $curPhase. Trap errors in subshell to set error status. - trap 'status=1; trap - ERR' ERR + # function named $curPhase. Trap errors in subshell to set non-zero retval. + trap 'retval=1; trap - ERR' ERR eval "set -o errtrace; ${!curPhase:-$curPhase}" - # Evaluate the variable named $curPhase if it exists, otherwise the - # function named $curPhase. - eval "${!curPhase:-$curPhase}" - endTime=$(date +"%s") showPhaseFooter "$curPhase" "$startTime" "$endTime" @@ -1664,7 +1660,7 @@ runPhase() { cd -- "${sourceRoot:-.}" fi - return $status + return $retval } From dd3e4b41b440ebcb56f4c01ddad12ca221e9260f Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Fri, 19 Jul 2024 22:23:05 -0700 Subject: [PATCH 004/693] libiconv: update gnu config scripts --- pkgs/development/libraries/libiconv/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/libiconv/default.nix b/pkgs/development/libraries/libiconv/default.nix index b59887381f49..22b2bd2e6654 100644 --- a/pkgs/development/libraries/libiconv/default.nix +++ b/pkgs/development/libraries/libiconv/default.nix @@ -1,4 +1,5 @@ { fetchurl, stdenv, lib +, updateAutotoolsGnuConfigScriptsHook , enableStatic ? stdenv.hostPlatform.isStatic , enableShared ? !stdenv.hostPlatform.isStatic , enableDarwinABICompat ? false @@ -17,6 +18,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + # necessary to build on FreeBSD native pending inclusion of + # https://git.savannah.gnu.org/cgit/config.git/commit/?id=e4786449e1c26716e3f9ea182caf472e4dbc96e0 + nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ]; + setupHooks = [ ../../../build-support/setup-hooks/role.bash ./setup-hook.sh From fef4f7aa1780e1833b8c195608646816c0b7b62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 15 Oct 2024 14:01:41 -0700 Subject: [PATCH 005/693] python312Packages.pikepdf: 9.2.1 -> 9.3.0 Diff: https://github.com/pikepdf/pikepdf/compare/refs/tags/v9.2.1...v9.3.0 Changelog: https://github.com/pikepdf/pikepdf/blob/refs/tags/v9.3.0/docs/releasenotes/version9.rst --- pkgs/development/python-modules/pikepdf/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pikepdf/default.nix b/pkgs/development/python-modules/pikepdf/default.nix index da280313c9e9..6557869053e6 100644 --- a/pkgs/development/python-modules/pikepdf/default.nix +++ b/pkgs/development/python-modules/pikepdf/default.nix @@ -25,10 +25,10 @@ buildPythonPackage rec { pname = "pikepdf"; - version = "9.2.1"; + version = "9.3.0"; pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "pikepdf"; @@ -40,7 +40,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/.git_archival.txt" ''; - hash = "sha256-k50Wg/JvHgOULocUsYRjYH+q1M+5DTFLBZzHC6io+To="; + hash = "sha256-0V+6QR9q+SwLuzymifW8vmKkvaXvut/U0n6bj3H2sAo="; }; patches = [ From e872feae7623c5b35f9a1c71c6482e47ef811a34 Mon Sep 17 00:00:00 2001 From: Shaw Vrana Date: Wed, 16 Oct 2024 16:53:23 -0700 Subject: [PATCH 006/693] pydot: 2.0.0 -> 3.0.2 Resolves #349144 --- .../python-modules/pydot/default.nix | 39 ++++++++----------- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/pydot/default.nix b/pkgs/development/python-modules/pydot/default.nix index 3cad1aafe06c..594ee6bd5c83 100644 --- a/pkgs/development/python-modules/pydot/default.nix +++ b/pkgs/development/python-modules/pydot/default.nix @@ -2,30 +2,37 @@ lib, buildPythonPackage, fetchPypi, + setuptools, substituteAll, graphviz, pytestCheckHook, chardet, + parameterized, pythonOlder, pyparsing, }: buildPythonPackage rec { pname = "pydot"; - version = "2.0.0"; - format = "setuptools"; + version = "3.0.2"; + pyproject = true; - disabled = pythonOlder "3.5"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-YCRq8hUSP6Bi8hzXkb5n3aI6bygN8J9okZ5jeh5PMjU="; + hash = "sha256-kYDaVAtRs6oJ+/gRQLPt++IxXXeOhYmn0KSmnEEzK64="; }; - propagatedBuildInputs = [ pyparsing ]; + build-system = [ + setuptools + ]; + + dependencies = [ pyparsing ]; nativeCheckInputs = [ chardet + parameterized pytestCheckHook ]; @@ -36,29 +43,15 @@ buildPythonPackage rec { }) ]; - postPatch = '' - # test_graphviz_regression_tests also fails upstream: https://github.com/pydot/pydot/pull/198 - substituteInPlace test/pydot_unittest.py \ - --replace "test_graphviz_regression_tests" "no_test_graphviz_regression_tests" \ - # Patch path for pytestCheckHook - substituteInPlace test/pydot_unittest.py \ - --replace "shapefile_dir = os.path.join(test_dir, 'from-past-to-future')" "shapefile_dir = 'test/from-past-to-future'" \ - --replace "path = os.path.join(test_dir, TESTS_DIR_1)" "path = os.path.join('test/', TESTS_DIR_1)" - ''; - - pytestFlagsArray = [ "test/pydot_unittest.py" ]; - - disabledTests = [ - # broken, fixed after 2.0.0 - "test_graph_with_shapefiles" - ]; + pytestFlagsArray = [ "test/test_pydot.py" ]; pythonImportsCheck = [ "pydot" ]; - meta = with lib; { + meta = { description = "Allows to create both directed and non directed graphs from Python"; homepage = "https://github.com/erocarrera/pydot"; - license = licenses.mit; + changelog = "https://github.com/pydot/pydot/blob/v${version}/ChangeLog"; + license = lib.licenses.mit; maintainers = [ ]; }; } From bd565dc53d4b16def65154d7beb2635cb63294bd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 21 Oct 2024 00:37:55 +0000 Subject: [PATCH 007/693] swig: 4.2.1 -> 4.3.0 --- pkgs/by-name/sw/swig/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sw/swig/package.nix b/pkgs/by-name/sw/swig/package.nix index 1ccaf4fb13fe..22338889b02c 100644 --- a/pkgs/by-name/sw/swig/package.nix +++ b/pkgs/by-name/sw/swig/package.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "swig"; - version = "4.2.1"; + version = "4.3.0"; src = fetchFromGitHub { owner = "swig"; repo = "swig"; rev = "v${finalAttrs.version}"; - hash = "sha256-VlUsiRZLScmbC7hZDzKqUr9481YXVwo0eXT/jy6Fda8="; + hash = "sha256-hFHEE9wy8Lja9G396tI4fj4LhOkpPKJkDuy1L62AXr4="; }; PCRE_CONFIG = "${pcre2.dev}/bin/pcre-config"; From f451ce6d1f862d14c0da41a27cc6e13acc4c2837 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 21 Oct 2024 06:58:55 +0100 Subject: [PATCH 008/693] fluidsynth: 2.3.6 -> 2.3.7 Changes: https://github.com/FluidSynth/fluidsynth/releases/tag/v2.3.7 --- pkgs/applications/audio/fluidsynth/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/fluidsynth/default.nix b/pkgs/applications/audio/fluidsynth/default.nix index bbb71ab8c836..8d709faedf94 100644 --- a/pkgs/applications/audio/fluidsynth/default.nix +++ b/pkgs/applications/audio/fluidsynth/default.nix @@ -5,13 +5,13 @@ stdenv.mkDerivation rec { pname = "fluidsynth"; - version = "2.3.6"; + version = "2.3.7"; src = fetchFromGitHub { owner = "FluidSynth"; repo = "fluidsynth"; rev = "v${version}"; - hash = "sha256-bmA4eUh7MC4dXPsOOi9Q5jneSE5OGUWrztv+46LxaW0="; + hash = "sha256-4Jn8pyVPrTPYZGdPZB+8guxTbD6s/1OpmLJlioDQFMA="; }; outputs = [ "out" "dev" "man" ]; From b8d86f5728a8a4fdc832a88e78eba4aab29ef992 Mon Sep 17 00:00:00 2001 From: Andrew Brooks Date: Mon, 21 Oct 2024 19:57:46 -0500 Subject: [PATCH 009/693] tcl: 8.6.13 -> 8.6.15 --- pkgs/development/interpreters/tcl/8.6.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/tcl/8.6.nix b/pkgs/development/interpreters/tcl/8.6.nix index 0edd47e83d6c..9da653b2f761 100644 --- a/pkgs/development/interpreters/tcl/8.6.nix +++ b/pkgs/development/interpreters/tcl/8.6.nix @@ -2,12 +2,12 @@ callPackage ./generic.nix (args // rec { release = "8.6"; - version = "${release}.13"; + version = "${release}.15"; # Note: when updating, the hash in pkgs/development/libraries/tk/8.6.nix must also be updated! src = fetchurl { url = "mirror://sourceforge/tcl/tcl${version}-src.tar.gz"; - sha256 = "sha256-Q6H650EvYf8R3iz9BdKM/Dpzdi81SkF8YjcKVOLK8GY="; + sha256 = "sha256-hh4Vl1Py4vvW7BSEEDcVsL5WvjNXUiuFjTy7X4k//vE="; }; }) From e9ef95e543da2d911eaccad23ee673bde3caee4e Mon Sep 17 00:00:00 2001 From: Andrew Brooks Date: Mon, 21 Oct 2024 19:59:04 -0500 Subject: [PATCH 010/693] tk: 8.6.13 -> 8.6.15 --- pkgs/development/libraries/tk/8.6.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/tk/8.6.nix b/pkgs/development/libraries/tk/8.6.nix index c8f4efa7f7ac..84028762dbba 100644 --- a/pkgs/development/libraries/tk/8.6.nix +++ b/pkgs/development/libraries/tk/8.6.nix @@ -8,7 +8,7 @@ callPackage ./generic.nix (args // { src = fetchurl { url = "mirror://sourceforge/tcl/tk${tcl.version}-src.tar.gz"; - sha256 = "sha256-LmX6BpojNlRAo8VsVWuGc7XjKig4ANjZslfj9YTOBnU="; + sha256 = "sha256-VQlp81N5+VKzAg86t7ndW/0Rwe98m3xqdfXEmsp5P+w="; }; patches = [ From dd09ec94c14451d50f56b1a23f3271036a97f903 Mon Sep 17 00:00:00 2001 From: Martin Joerg Date: Wed, 23 Oct 2024 12:09:27 +0000 Subject: [PATCH 011/693] nssTools: install man pages --- pkgs/development/libraries/nss/generic.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/nss/generic.nix b/pkgs/development/libraries/nss/generic.nix index 9e54ddda866f..eda3955217fe 100644 --- a/pkgs/development/libraries/nss/generic.nix +++ b/pkgs/development/libraries/nss/generic.nix @@ -4,6 +4,7 @@ , fetchFromGitHub , nspr , perl +, installShellFiles , zlib , sqlite , ninja @@ -35,7 +36,7 @@ stdenv.mkDerivation rec { depsBuildBuild = [ buildPackages.stdenv.cc ]; - nativeBuildInputs = [ perl ninja (buildPackages.python3.withPackages (ps: with ps; [ gyp ])) ] + nativeBuildInputs = [ perl ninja (buildPackages.python3.withPackages (ps: with ps; [ gyp ])) installShellFiles ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools fixDarwinDylibNames ]; buildInputs = [ zlib sqlite ]; @@ -61,7 +62,7 @@ stdenv.mkDerivation rec { substituteInPlace coreconf/config.gypi --replace "'DYLIB_INSTALL_NAME_BASE': '@executable_path'" "'DYLIB_INSTALL_NAME_BASE': '$out/lib'" ''; - outputs = [ "out" "dev" "tools" ]; + outputs = [ "out" "dev" "tools" "man" ]; buildPhase = let @@ -140,6 +141,8 @@ stdenv.mkDerivation rec { -e "s,@MOD_PATCH_VERSION@,$NSS_PATCH_VERSION," \ pkg/pkg-config/nss-config.in > $out/bin/nss-config chmod 0755 $out/bin/nss-config + + installManPage doc/nroff/* ''; postInstall = lib.optionalString useP11kit '' From 17dd29c92615ba405e5ceb3c3ff77ace2650d087 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Thu, 1 Aug 2024 21:58:13 -0700 Subject: [PATCH 012/693] tpm2-tss: adds support for libtpms backend --- pkgs/development/libraries/tpm2-tss/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/tpm2-tss/default.nix b/pkgs/development/libraries/tpm2-tss/default.nix index c1f3aeb7a34a..bea611224444 100644 --- a/pkgs/development/libraries/tpm2-tss/default.nix +++ b/pkgs/development/libraries/tpm2-tss/default.nix @@ -2,7 +2,7 @@ , autoreconfHook, autoconf-archive, pkg-config, doxygen, perl , openssl, json_c, curl, libgcrypt , cmocka, uthash, swtpm, iproute2, procps, which -, libuuid +, libuuid, libtpms }: let # Avoid a circular dependency on Linux systems (systemd depends on tpm2-tss, @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - openssl json_c curl libgcrypt uthash libuuid + openssl json_c curl libgcrypt uthash libuuid libtpms ] # cmocka is checked in the configure script # when unit and/or integration testing is enabled @@ -68,11 +68,16 @@ stdenv.mkDerivation rec { postPatch = '' patchShebangs script substituteInPlace src/tss2-tcti/tctildr-dl.c \ - --replace '@PREFIX@' $out/lib/ + --replace-fail '@PREFIX@' $out/lib/ substituteInPlace ./test/unit/tctildr-dl.c \ - --replace '@PREFIX@' $out/lib/ + --replace-fail '@PREFIX@' $out/lib/ substituteInPlace ./bootstrap \ - --replace 'git describe --tags --always --dirty' 'echo "${version}"' + --replace-fail 'git describe --tags --always --dirty' 'echo "${version}"' + for src in src/tss2-tcti/tcti-libtpms.c test/unit/tcti-libtpms.c; do + substituteInPlace "$src" \ + --replace-fail '"libtpms.so"' '"${libtpms.out}/lib/libtpms.so"' \ + --replace-fail '"libtpms.so.0"' '"${libtpms.out}/lib/libtpms.so.0"' + done ''; configureFlags = lib.optionals doInstallCheck [ From 718eb8ff9548b7ff0de55759d9b6c72e63e59282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luukas=20P=C3=B6rtfors?= Date: Mon, 28 Oct 2024 18:55:00 +0200 Subject: [PATCH 013/693] enchant: compile with Voikko support Add (optional) support for the Voikko Finnish language processing library. --- pkgs/development/libraries/enchant/2.x.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/enchant/2.x.nix b/pkgs/development/libraries/enchant/2.x.nix index dbd7cefacb67..77d29fca7a8e 100644 --- a/pkgs/development/libraries/enchant/2.x.nix +++ b/pkgs/development/libraries/enchant/2.x.nix @@ -8,12 +8,14 @@ , hunspell , hspell , nuspell +, libvoikko , unittest-cpp , withHspell ? true , withAspell ? true , withHunspell ? true , withNuspell ? true +, withVoikko ? true , withAppleSpell ? stdenv.hostPlatform.isDarwin , Cocoa @@ -45,6 +47,8 @@ stdenv.mkDerivation rec { hunspell ] ++ lib.optionals withNuspell [ nuspell + ] ++ lib.optionals withVoikko [ + libvoikko ] ++ lib.optionals withAppleSpell [ Cocoa ]; @@ -70,6 +74,7 @@ stdenv.mkDerivation rec { (lib.withFeature withHspell "hspell") (lib.withFeature withHunspell "hunspell") (lib.withFeature withNuspell "nuspell") + (lib.withFeature withVoikko "voikko") (lib.withFeature withAppleSpell "applespell") ]; From 5ec3e7b30e2c2a60f3571b85392c2fc3dcda74a1 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 28 Oct 2024 16:34:50 +0100 Subject: [PATCH 014/693] nodejs_22: use shared SQLite --- pkgs/development/web/nodejs/nodejs.nix | 14 +++++++++++--- pkgs/development/web/nodejs/v22.nix | 6 ++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 8881d608c95b..86d5897f8e62 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, openssl, python, zlib, libuv, http-parser, icu, bash +{ lib, stdenv, fetchurl, openssl, python, zlib, libuv, sqlite, http-parser, icu, bash , ninja, pkgconf, unixtools, runCommand, buildPackages , testers # for `.pkgs` attribute @@ -97,8 +97,15 @@ let # TODO: also handle MIPS flags (mips_arch, mips_fpu, mips_float_abi). useSharedHttpParser = !stdenv.hostPlatform.isDarwin && lib.versionOlder "${majorVersion}.${minorVersion}" "11.4"; + useSharedSQLite = lib.versionAtLeast version "22.5"; - sharedLibDeps = { inherit openssl zlib libuv; } // (lib.optionalAttrs useSharedHttpParser { inherit http-parser; }); + sharedLibDeps = { + inherit openssl zlib libuv; + } // (lib.optionalAttrs useSharedHttpParser { + inherit http-parser; + }) // (lib.optionalAttrs useSharedSQLite { + inherit sqlite; + }); copyLibHeaders = map @@ -151,7 +158,8 @@ let # wrappers over the corresponding JS scripts. There are some packages though # that use bash wrappers, e.g. polaris-web. buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ApplicationServices ] - ++ [ zlib libuv openssl http-parser icu bash ]; + ++ [ zlib libuv openssl http-parser icu bash ] + ++ lib.optionals useSharedSQLite [ sqlite ]; nativeBuildInputs = [ diff --git a/pkgs/development/web/nodejs/v22.nix b/pkgs/development/web/nodejs/v22.nix index 6a71b0056bf7..7f8367464eb7 100644 --- a/pkgs/development/web/nodejs/v22.nix +++ b/pkgs/development/web/nodejs/v22.nix @@ -18,5 +18,11 @@ buildNodejs { ./node-npm-build-npm-package-logic.patch ./use-correct-env-in-tests.patch ./bin-sh-node-run-v22.patch + + # Patch to use the shared version of SQLite instead of the one vendored upstream: + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/32f7d5ad1cf79e7e731e1bb7ac967f4f2a3194cf.patch?full_index=1"; + hash = "sha256-dyUr3caGfetrXgfAl+CLE1LKKetDZCpPwMg4EM98rqI="; + }) ]; } From ba231a8c1c947382774639a04ed22775a1b0a42e Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 29 Oct 2024 17:42:16 +0100 Subject: [PATCH 015/693] audit: format package --- pkgs/by-name/au/audit/package.nix | 56 +++++++++++++++++-------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/pkgs/by-name/au/audit/package.nix b/pkgs/by-name/au/audit/package.nix index e3a6eaa694b3..9d54944ee8b1 100644 --- a/pkgs/by-name/au/audit/package.nix +++ b/pkgs/by-name/au/audit/package.nix @@ -1,21 +1,21 @@ -{ lib -, stdenv -, fetchurl -, fetchpatch -, autoreconfHook -, bash -, buildPackages -, linuxHeaders -, python3 -, swig -, pkgsCross +{ + lib, + stdenv, + fetchurl, + fetchpatch, + autoreconfHook, + bash, + buildPackages, + linuxHeaders, + python3, + swig, + pkgsCross, -# Enabling python support while cross compiling would be possible, but the -# configure script tries executing python to gather info instead of relying on -# python3-config exclusively -, enablePython ? stdenv.hostPlatform == stdenv.buildPlatform, + # Enabling python support while cross compiling would be possible, but the + # configure script tries executing python to gather info instead of relying on + # python3-config exclusively + enablePython ? stdenv.hostPlatform == stdenv.buildPlatform, }: - stdenv.mkDerivation (finalAttrs: { pname = "audit"; version = "4.0"; @@ -40,11 +40,16 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace bindings/swig/src/auditswig.i \ - --replace "/usr/include/linux/audit.h" \ + --replace-fail "/usr/include/linux/audit.h" \ "${linuxHeaders}/include/linux/audit.h" ''; - outputs = [ "bin" "dev" "out" "man" ]; + outputs = [ + "bin" + "dev" + "out" + "man" + ]; strictDeps = true; @@ -52,13 +57,14 @@ stdenv.mkDerivation (finalAttrs: { buildPackages.stdenv.cc ]; - nativeBuildInputs = [ - autoreconfHook - ] - ++ lib.optionals enablePython [ - python3 - swig - ]; + nativeBuildInputs = + [ + autoreconfHook + ] + ++ lib.optionals enablePython [ + python3 + swig + ]; buildInputs = [ bash From 40338db4921b86c4c5f07514b925369408eb2e64 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 22 Oct 2024 06:24:28 +0100 Subject: [PATCH 016/693] sqlite, sqlite-analyzer: 3.46.1 -> 3.47.0 Changes: https://www.sqlite.org/draft/releaselog/current.html --- pkgs/development/libraries/sqlite/default.nix | 6 +++--- pkgs/development/libraries/sqlite/tools.nix | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index df28ee6cb39b..be7ad9b7f29a 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -16,17 +16,17 @@ in stdenv.mkDerivation rec { pname = "sqlite${lib.optionalString interactive "-interactive"}"; - version = "3.46.1"; + version = "3.47.0"; # nixpkgs-update: no auto update # NB! Make sure to update ./tools.nix src (in the same directory). src = fetchurl { url = "https://sqlite.org/2024/sqlite-autoconf-${archiveVersion version}.tar.gz"; - hash = "sha256-Z9P+bSaObq3crjcn/OWPzI6cU4ab3Qegxh443fKWUHE="; + hash = "sha256-g+shpvamSfUG34vTqrhaCPdVbO7V29jep0PqAD/DqVc="; }; docsrc = fetchurl { url = "https://sqlite.org/2024/sqlite-doc-${archiveVersion version}.zip"; - hash = "sha256-6WkTH5PKefvGTVdyShA1c1iBVVpSYA2+acaeq3LJ/NE="; + hash = "sha256-3yXJb6+4Cck7jhwlxs/XSPRJ99SmV+jBJNOO/v5Ws04="; }; outputs = [ "bin" "dev" "man" "doc" "out" ]; diff --git a/pkgs/development/libraries/sqlite/tools.nix b/pkgs/development/libraries/sqlite/tools.nix index 863a1f668c32..f5805fec63c6 100644 --- a/pkgs/development/libraries/sqlite/tools.nix +++ b/pkgs/development/libraries/sqlite/tools.nix @@ -4,12 +4,12 @@ let archiveVersion = import ./archive-version.nix lib; mkTool = { pname, makeTarget, description, homepage, mainProgram }: stdenv.mkDerivation rec { inherit pname; - version = "3.46.1"; + version = "3.47.0"; # nixpkgs-update: no auto update src = assert version == sqlite.version; fetchurl { url = "https://sqlite.org/2024/sqlite-src-${archiveVersion version}.zip"; - hash = "sha256-3vP8KS657MRE9sGVDlx52EYu1eez1gX9YVLRReHVq7Q="; + hash = "sha256-9Zw0m+20cCA1hqa20QrbNfKv76SfkeVaZyo2oJqP7fc="; }; nativeBuildInputs = [ unzip ]; From 2e19720a20d2f05a11ac300fcb9e98d030043584 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 28 Oct 2024 10:23:01 +0000 Subject: [PATCH 017/693] sqlite-rsync: init at 3.47.0 Co-authored-by: Erlend Hamberg --- pkgs/development/libraries/sqlite/default.nix | 4 ++-- pkgs/development/libraries/sqlite/tools.nix | 7 +++++++ pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/sqlite/default.nix b/pkgs/development/libraries/sqlite/default.nix index be7ad9b7f29a..4502b3d9f813 100644 --- a/pkgs/development/libraries/sqlite/default.nix +++ b/pkgs/development/libraries/sqlite/default.nix @@ -2,7 +2,7 @@ , updateAutotoolsGnuConfigScriptsHook # for tests -, python3Packages, sqldiff, sqlite-analyzer, tinysparql +, python3Packages, sqldiff, sqlite-analyzer, sqlite-rsync, tinysparql # uses readline & ncurses for a better interactive experience if set to true , interactive ? false @@ -97,7 +97,7 @@ stdenv.mkDerivation rec { passthru = { tests = { inherit (python3Packages) sqlalchemy; - inherit sqldiff sqlite-analyzer tinysparql; + inherit sqldiff sqlite-analyzer sqlite-rsync tinysparql; }; updateScript = gitUpdater { diff --git a/pkgs/development/libraries/sqlite/tools.nix b/pkgs/development/libraries/sqlite/tools.nix index f5805fec63c6..8381ec78a210 100644 --- a/pkgs/development/libraries/sqlite/tools.nix +++ b/pkgs/development/libraries/sqlite/tools.nix @@ -43,4 +43,11 @@ in homepage = "https://www.sqlite.org/sqlanalyze.html"; mainProgram = "sqlite3_analyzer"; }; + sqlite-rsync = mkTool { + pname = "sqlite-rsync"; + makeTarget = "sqlite3_rsync"; + description = "Database remote-copy tool for SQLite"; + homepage = "https://www.sqlite.org/rsync.html"; + mainProgram = "sqlite3_rsync"; + }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad1972b19af9..e5d163e832bb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23097,7 +23097,7 @@ with pkgs; inherit (callPackage ../development/libraries/sqlite/tools.nix { inherit (darwin.apple_sdk.frameworks) Foundation; - }) sqlite-analyzer sqldiff; + }) sqlite-analyzer sqldiff sqlite-rsync; sqlar = callPackage ../development/libraries/sqlite/sqlar.nix { }; From 05382c2f8c2725e29d9c7b1dec9ea89dfa04ddc7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 30 Oct 2024 06:28:25 +0000 Subject: [PATCH 018/693] svt-av1: 2.2.1 -> 2.3.0 Changes: https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v2.3.0 --- pkgs/tools/video/svt-av1/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/video/svt-av1/default.nix b/pkgs/tools/video/svt-av1/default.nix index 1b515b792c79..967ed81a83a5 100644 --- a/pkgs/tools/video/svt-av1/default.nix +++ b/pkgs/tools/video/svt-av1/default.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "svt-av1"; - version = "2.2.1"; + version = "2.3.0"; src = fetchFromGitLab { owner = "AOMediaCodec"; repo = "SVT-AV1"; rev = "v${finalAttrs.version}"; - hash = "sha256-/JWFO4eT8bNvhdqJ6S0mGRIP0+aUTbDrlzqzwRqJOog="; + hash = "sha256-JMOFWke/qO3cWHuhWJChzaH+sD5AVqYCTTz0Q0+r2AE="; }; nativeBuildInputs = [ From a1c1180ac8e7f7201ec615e62653ec33aed7f0b6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 27 Oct 2024 20:18:38 +0000 Subject: [PATCH 019/693] libuv: 1.48.0 -> 1.49.2 --- pkgs/development/libraries/libuv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libuv/default.nix b/pkgs/development/libraries/libuv/default.nix index 7f9aac48e725..86e4800d41fc 100644 --- a/pkgs/development/libraries/libuv/default.nix +++ b/pkgs/development/libraries/libuv/default.nix @@ -23,14 +23,14 @@ }: stdenv.mkDerivation (finalAttrs: { - version = "1.48.0"; + version = "1.49.2"; pname = "libuv"; src = fetchFromGitHub { owner = "libuv"; repo = "libuv"; rev = "v${finalAttrs.version}"; - hash = "sha256-U68BmIQNpmIy3prS7LkYl+wvDJQNikoeFiKh50yQFoA="; + hash = "sha256-hNXW3cQVW8VGMQrHFkezRI2OqYF7Qf1riD8sHy66qxg="; }; outputs = [ "out" "dev" ]; From 982e3fc31d8f83e1f6792e5cfe0af21881a2c801 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 3 Nov 2024 04:31:21 +0100 Subject: [PATCH 020/693] nodejs_23: drop reverts --- pkgs/development/web/nodejs/v23.nix | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/pkgs/development/web/nodejs/v23.nix b/pkgs/development/web/nodejs/v23.nix index 2039e9385c4f..9a390e9d1814 100644 --- a/pkgs/development/web/nodejs/v23.nix +++ b/pkgs/development/web/nodejs/v23.nix @@ -24,29 +24,5 @@ buildNodejs { ./node-npm-build-npm-package-logic.patch ./use-correct-env-in-tests.patch ./bin-sh-node-run-v22.patch - - # Those reverts are due to a mismatch with the libuv version used upstream - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/dcbc5fbe65b068a90c3d0970155d3a68774caa38.patch?full_index=1"; - hash = "sha256-Q7YrooolMjsGflTQEj5ra6hRVGhMP6APaydf1MGH54Q="; - revert = true; - excludes = [ "doc/*" ]; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/ec867ac7ce4e4913a8415eda48a7af9fc226097d.patch?full_index=1"; - hash = "sha256-zfnHxC7ZMZAiu0/6PsX7RFasTevHMETv+azhTZnKI64="; - revert = true; - excludes = [ "doc/*" ]; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/f97865fab436fba24b46dad14435ec4b482243a2.patch?full_index=1"; - hash = "sha256-o5aPQqUXubtJKMX28jn8LdjZHw37/BqENkYt6RAR3kY="; - revert = true; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/54d55f2337ebe04451da770935ad453accb147f9.patch?full_index=1"; - hash = "sha256-gmIyiSyNzC3pClL1SM2YicckWM+/2tsbV1xv2S3d5G0="; - revert = true; - }) ]; } From 9cdde0bb6d5d44357a9a99a761e53478f59d2aea Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 3 Nov 2024 12:00:00 +0000 Subject: [PATCH 021/693] valgrind: fix build on armv7l-linux --- .../tools/analysis/valgrind/default.nix | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/pkgs/development/tools/analysis/valgrind/default.nix b/pkgs/development/tools/analysis/valgrind/default.nix index c54fb7bfeeab..95bb2b86c913 100644 --- a/pkgs/development/tools/analysis/valgrind/default.nix +++ b/pkgs/development/tools/analysis/valgrind/default.nix @@ -27,20 +27,11 @@ stdenv.mkDerivation rec { sha256 = "Za+7K93pgnuEUQ+jDItEzWlN0izhbynX2crSOXBBY/I="; }) # Fix build on armv7l. - # https://bugs.kde.org/show_bug.cgi?id=454346 - # Applied on 3.22.0. Does not apply on 3.23.0. - #(fetchpatch { - # url = "https://bugsfiles.kde.org/attachment.cgi?id=149172"; - # sha256 = "sha256-4MASLsEK8wcshboR4YOc6mIt7AvAgDPvqIZyHqlvTEs="; - #}) - #(fetchpatch { - # url = "https://bugsfiles.kde.org/attachment.cgi?id=149173"; - # sha256 = "sha256-jX9hD4utWRebbXMJYZ5mu9jecvdrNP05E5J+PnKRTyQ="; - #}) - #(fetchpatch { - # url = "https://bugsfiles.kde.org/attachment.cgi?id=149174"; - # sha256 = "sha256-f1YIFIhWhXYVw3/UNEWewDak2mvbAd3aGzK4B+wTlys="; - #}) + # see also https://bugs.kde.org/show_bug.cgi?id=454346 + (fetchpatch { + url = "https://git.yoctoproject.org/poky/plain/meta/recipes-devtools/valgrind/valgrind/use-appropriate-march-mcpu-mfpu-for-ARM-test-apps.patch?id=b7a9250590a16f1bdc8c7b563da428df814d4292"; + sha256 = "sha256-sBZzn98Sf/ETFv8ubivgA6Y6fBNcyR8beB3ICDAyAH0="; + }) ]; outputs = [ "out" "dev" "man" "doc" ]; From 87ba2ce02b0182c9571e448badef96301512a170 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 4 Nov 2024 06:47:34 +0000 Subject: [PATCH 022/693] mpg123: 1.32.8 -> 1.32.9 Changes: https://www.mpg123.de/#2024-11-02 --- pkgs/applications/audio/mpg123/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/mpg123/default.nix b/pkgs/applications/audio/mpg123/default.nix index f18469f56588..3a8d251d1f7c 100644 --- a/pkgs/applications/audio/mpg123/default.nix +++ b/pkgs/applications/audio/mpg123/default.nix @@ -22,11 +22,11 @@ assert withConplay -> !libOnly; stdenv.mkDerivation rec { pname = "${lib.optionalString libOnly "lib"}mpg123"; - version = "1.32.8"; + version = "1.32.9"; src = fetchurl { url = "mirror://sourceforge/mpg123/mpg123-${version}.tar.bz2"; - hash = "sha256-/u4TdMeVQODkBd8LxF/eIK1nARQlw2GidZ4hRolKJ6c="; + hash = "sha256-A7YeQATpYLrPKs2toD7ZTTduaqsnpgFEe9SQjYQHspE="; }; outputs = [ "out" "dev" "man" ] ++ lib.optional withConplay "conplay"; From b6a12f84c650c228837831709e82af985b0df1ca Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:24:58 -0800 Subject: [PATCH 023/693] chicken: remove hardening disable --- pkgs/development/compilers/chicken/5/chicken.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/development/compilers/chicken/5/chicken.nix b/pkgs/development/compilers/chicken/5/chicken.nix index 53b4cc9024d5..6d9563b9f662 100644 --- a/pkgs/development/compilers/chicken/5/chicken.nix +++ b/pkgs/development/compilers/chicken/5/chicken.nix @@ -27,9 +27,6 @@ stdenv.mkDerivation (finalAttrs: { setupHook = lib.optional (bootstrap-chicken != null) ./setup-hook.sh; - # -fno-strict-overflow is not a supported argument in clang - hardeningDisable = lib.optionals stdenv.cc.isClang [ "strictoverflow" ]; - makeFlags = [ "PLATFORM=${platform}" "PREFIX=$(out)" From f02bc548d1018721827cc8007fe01db095fdca94 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 7 Nov 2024 07:11:18 +0000 Subject: [PATCH 024/693] xorg.libXcursor: 1.2.2 -> 1.2.3 Changes: https://lists.x.org/archives/xorg-announce/2024-November/003549.html --- pkgs/servers/x11/xorg/default.nix | 6 +++--- pkgs/servers/x11/xorg/tarballs.list | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index e31e1fc75b22..0826a61582f9 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -1238,11 +1238,11 @@ self: with self; { # THIS IS A GENERATED FILE. DO NOT EDIT! libXcursor = callPackage ({ stdenv, pkg-config, fetchurl, xorgproto, libX11, libXfixes, libXrender, testers }: stdenv.mkDerivation (finalAttrs: { pname = "libXcursor"; - version = "1.2.2"; + version = "1.2.3"; builder = ./builder.sh; src = fetchurl { - url = "mirror://xorg/individual/lib/libXcursor-1.2.2.tar.xz"; - sha256 = "1vl87819mnhlbnccchysv9nmax4abil5x3cr61x52vn55jyp3l2k"; + url = "mirror://xorg/individual/lib/libXcursor-1.2.3.tar.xz"; + sha256 = "1h62narayrhrkqalrmx7z3s6yppw1acbp5id3skrvrygshnl1sgx"; }; hardeningDisable = [ "bindnow" "relro" ]; strictDeps = true; diff --git a/pkgs/servers/x11/xorg/tarballs.list b/pkgs/servers/x11/xorg/tarballs.list index 9577547033b7..35ae204f9515 100644 --- a/pkgs/servers/x11/xorg/tarballs.list +++ b/pkgs/servers/x11/xorg/tarballs.list @@ -178,7 +178,7 @@ mirror://xorg/individual/lib/libXau-1.0.11.tar.xz mirror://xorg/individual/lib/libXaw-1.0.16.tar.xz mirror://xorg/individual/lib/libxcb-1.17.0.tar.xz mirror://xorg/individual/lib/libXcomposite-0.4.6.tar.xz -mirror://xorg/individual/lib/libXcursor-1.2.2.tar.xz +mirror://xorg/individual/lib/libXcursor-1.2.3.tar.xz mirror://xorg/individual/lib/libxcvt-0.1.2.tar.xz mirror://xorg/individual/lib/libXdamage-1.1.6.tar.xz mirror://xorg/individual/lib/libXdmcp-1.1.5.tar.xz From 47d5eeb56beb9ec5213c5fcc84b51215a123d998 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 7 Nov 2024 22:25:02 +0000 Subject: [PATCH 025/693] mdbook: 0.4.40 -> 0.4.41 --- pkgs/by-name/md/mdbook/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/md/mdbook/package.nix b/pkgs/by-name/md/mdbook/package.nix index 4734394cd7e7..75394d25c90d 100644 --- a/pkgs/by-name/md/mdbook/package.nix +++ b/pkgs/by-name/md/mdbook/package.nix @@ -9,7 +9,7 @@ installShellFiles, }: let - version = "0.4.40"; + version = "0.4.41"; in rustPlatform.buildRustPackage { inherit version; @@ -19,10 +19,10 @@ rustPlatform.buildRustPackage { owner = "rust-lang"; repo = "mdBook"; rev = "refs/tags/v${version}"; - hash = "sha256-GGQK2Mf3EK1rwBMzQkAzWAaK6Fh0Qqqf8dtDjZPxOMA="; + hash = "sha256-LhFJom1E7dyrma9bVuoLBcGsFW8Dsq9pkh+PzgsrQ/s="; }; - cargoHash = "sha256-jriSQHn+Y+EWtwDJeMTAuCCHR7fEtWsErAxbG9a4pts="; + cargoHash = "sha256-v5B9OVdqQPDrRviXDu8BkJyVK3jmTw100LkGbGUA+Ao="; nativeBuildInputs = [ installShellFiles ]; From 2f9dcca3954d5eceaf3af6a611d96f265386e534 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 8 Nov 2024 06:50:12 +0000 Subject: [PATCH 026/693] iwd: 3.0 -> 3.1 Changes: https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/ChangeLog?h=3.1 --- pkgs/os-specific/linux/iwd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix index cdab250abd96..3f9f0b2a2098 100644 --- a/pkgs/os-specific/linux/iwd/default.nix +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -13,12 +13,12 @@ stdenv.mkDerivation rec { pname = "iwd"; - version = "3.0"; + version = "3.1"; src = fetchgit { url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git"; rev = version; - hash = "sha256-pkren8mF0xg5yrkaIrMJ5auq+7w8VAldbgVflE2BmlM="; + hash = "sha256-WVtZiNcmQRo6reMu9nkB0Z/Y2AAq+FF8F1xB0Tcth0U="; }; outputs = [ "out" "man" "doc" ] From 1af2e4234cc67a66b98b8575be399212c14d4622 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 8 Nov 2024 06:51:30 +0000 Subject: [PATCH 027/693] ell: 0.69 -> 0.70 Changes: https://git.kernel.org/pub/scm/libs/ell/ell.git/tree/ChangeLog?h=0.70 --- pkgs/os-specific/linux/ell/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/ell/default.nix b/pkgs/os-specific/linux/ell/default.nix index 495c858c93a2..41e58b4cf308 100644 --- a/pkgs/os-specific/linux/ell/default.nix +++ b/pkgs/os-specific/linux/ell/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { pname = "ell"; - version = "0.69"; + version = "0.70"; outputs = [ "out" "dev" ]; separateDebugInfo = true; @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { src = fetchgit { url = "https://git.kernel.org/pub/scm/libs/ell/ell.git"; rev = version; - hash = "sha256-FOEVnpndbIufb8i6egBIoG1PC01WxtAlf3I47YqM+hk="; + hash = "sha256-2JPmS+OuK1cQyBRR0kDDWXBDUWUZuK/vsQ483GLu/S0="; }; nativeBuildInputs = [ From 36223da9c1947297cf10b92682e7be60a97a33e3 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:38:59 +0200 Subject: [PATCH 028/693] buildGoModule: remove `buildFlags`/`buildFlagsArray` Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/build-support/go/module.nix | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/pkgs/build-support/go/module.nix b/pkgs/build-support/go/module.nix index 3a3ae71de508..3b735dba266c 100644 --- a/pkgs/build-support/go/module.nix +++ b/pkgs/build-support/go/module.nix @@ -54,10 +54,6 @@ # Go build flags. , GOFLAGS ? [ ] - # Needed for buildFlags{,Array} warning -, buildFlags ? "" # deprecated -, buildFlagsArray ? "" # deprecated - , ... }@args': @@ -213,8 +209,6 @@ in ''); buildPhase = args.buildPhase or ( - lib.warnIf (buildFlags != "" || buildFlagsArray != "") - "`buildFlags`/`buildFlagsArray` are deprecated and will be removed in the 24.11 release. Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`" lib.warnIf (builtins.elem "-buildid=" ldflags) "`-buildid=` is set by default as ldflag by buildGoModule" '' @@ -232,12 +226,13 @@ in buildGoDir() { local cmd="$1" dir="$2" - declare -ga buildFlagsArray declare -a flags - flags+=($buildFlags "''${buildFlagsArray[@]}") flags+=(''${tags:+-tags=''${tags// /,}}) flags+=(''${ldflags:+-ldflags="$ldflags"}) flags+=("-p" "$NIX_BUILD_CORES") + if (( "''${NIX_DEBUG:-0}" >= 1 )); then + flags+=(-x) + fi if [ "$cmd" = "test" ]; then flags+=(-vet=off) @@ -267,10 +262,6 @@ in fi } - if (( "''${NIX_DEBUG:-0}" >= 1 )); then - buildFlagsArray+=(-x) - fi - if [ -z "$enableParallelBuilding" ]; then export NIX_BUILD_CORES=1 fi From 4cd083a3cdf25fce6d1c0bb232e241681fad34ca Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 8 Nov 2024 17:45:25 +0100 Subject: [PATCH 029/693] postgresql: drop build-time dependency on GHC This replaces `writeShellApplication` with `writeShellScriptBin` that doesn't perform a shellcheck. This makes it way easier to build postgresql on staging since GHC is super slow to build, even with pretty powerful machines. Also Haskell updates are currently merged straight into master which means that postgresql and all reverse dependencies require a rebuild on master then[1]. [1] https://github.com/NixOS/nixpkgs/pull/354270#issuecomment-2463196665 --- pkgs/servers/sql/postgresql/generic.nix | 7 ++----- pkgs/servers/sql/postgresql/pg_config.sh | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index b24140c438a2..bbc373ac9d38 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -7,7 +7,7 @@ let , pkg-config, libxml2, tzdata, libkrb5, substituteAll, darwin , linux-pam, bison, flex, perl, docbook_xml_dtd_45, docbook-xsl-nons, libxslt - , removeReferencesTo, writeShellApplication + , removeReferencesTo, writeShellScriptBin , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic @@ -53,10 +53,7 @@ let else stdenv; - pg_config = writeShellApplication { - name = "pg_config"; - text = builtins.readFile ./pg_config.sh; - }; + pg_config = writeShellScriptBin "pg_config" (builtins.readFile ./pg_config.sh); in stdenv'.mkDerivation (finalAttrs: { inherit version; pname = pname + lib.optionalString jitSupport "-jit"; diff --git a/pkgs/servers/sql/postgresql/pg_config.sh b/pkgs/servers/sql/postgresql/pg_config.sh index 9538b213fb97..d6293999a12d 100644 --- a/pkgs/servers/sql/postgresql/pg_config.sh +++ b/pkgs/servers/sql/postgresql/pg_config.sh @@ -1,3 +1,5 @@ +set -euo pipefail + # The real pg_config needs to be in the same path as the "postgres" binary # to return proper paths. However, we want it in the -dev output to prevent # cyclic references and to prevent blowing up the runtime closure. Thus, we From 91664c8fb3b4b0f0fc559d48ad685e26cdc1f0df Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Thu, 7 Nov 2024 00:35:24 -0800 Subject: [PATCH 030/693] rpm: fixup gpg path When invoking `rpmsign` to sign packages, rpmsign will invoke `/usr/bin/gpg2` which may not exist. This is because the path to gpg is looked up during the configure phase, and it's then placed in the `$out/lib/rpm/macros` file. Those macros are read at runtime. ``` $ grep __gpg result/lib/rpm/macros %__gpg /usr/bin/gpg2 ``` By providing gpg at build time, we make sure rpm will use a correct path for gpg. --- pkgs/tools/package-management/rpm/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/rpm/default.nix b/pkgs/tools/package-management/rpm/default.nix index c42bcca20c90..e013e82fc08e 100644 --- a/pkgs/tools/package-management/rpm/default.nix +++ b/pkgs/tools/package-management/rpm/default.nix @@ -26,6 +26,7 @@ , libcap , apple-sdk_13 , darwinMinVersionHook +, gnupg }: stdenv.mkDerivation rec { @@ -60,7 +61,7 @@ stdenv.mkDerivation rec { separateDebugInfo = true; nativeBuildInputs = [ autoreconfHook pkg-config pandoc ]; - buildInputs = [ cpio zlib zstd bzip2 file libarchive libgcrypt nspr nss db xz python lua sqlite ] + buildInputs = [ cpio zlib zstd bzip2 file libarchive libgcrypt nspr nss db xz python lua sqlite gnupg ] ++ lib.optional stdenv.cc.isClang llvmPackages.openmp ++ lib.optional stdenv.hostPlatform.isLinux libcap ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_13 (darwinMinVersionHook "13.0") ]; From fc465864227e4492ca9f889d6931fc6116497886 Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 6 Nov 2024 05:28:09 +0200 Subject: [PATCH 031/693] openjdk: Fix cross for most versions `jdk8` cross still broken Using `__spliced.depsBuildBuild` to reduce rebuilds/space usage because it does not seem to matter if it's that or `buildHost` `depsBuildBuild` `configure: error: Could not find required tool for BUILD_CC` `zlib` in `nativeBuildInputs` ``` /build/source/src/java.base/share/native/libzip/Adler32.c:33:10: fatal error: zlib.h: No such file or directory 33 | #include | ^~~~~~~~ compilation terminated. make[4]: *** [lib/CoreLibraries.gmk:88: /build/source/build/linux-aarch64-server-release/buildjdk/support/native/java.base/libzip/Adler32.o] Error 1 make[4]: *** Waiting for unfinished jobs.... /build/source/src/java.base/share/native/libzip/CRC32.c:32:10: fatal error: zlib.h: No such file or directory 32 | #include | ^~~~~~~~ compilation terminated. /build/source/src/java.base/share/native/libzip/Deflater.c:35:10: fatal error: zlib.h: No such file or directory 35 | #include | ^~~~~~~~ compilation terminated. make[4]: *** [lib/CoreLibraries.gmk:88: /build/source/build/linux-aarch64-server-release/buildjdk/support/native/java.base/libzip/CRC32.o] Error 1 make[4]: *** [lib/CoreLibraries.gmk:88: /build/source/build/linux-aarch64-server-release/buildjdk/support/native/java.base/libzip/Deflater.o] Error 1 make[3]: *** [Main.gmk:191: java.base-libs] Error 2 make[2]: *** [make/Main.gmk:589: create-buildjdk-interim-image] Error 2 make[2]: *** Waiting for unfinished jobs.... ERROR: Build failed for target 'images' in configuration 'linux-aarch64-server-release' (exit code 2) Stopping javac server ``` --- .../development/compilers/openjdk/generic.nix | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/pkgs/development/compilers/openjdk/generic.nix b/pkgs/development/compilers/openjdk/generic.nix index 9ffa9becb93e..744c36441b4c 100644 --- a/pkgs/development/compilers/openjdk/generic.nix +++ b/pkgs/development/compilers/openjdk/generic.nix @@ -7,6 +7,7 @@ fetchurl, fetchpatch, + buildPackages, pkg-config, autoconf, lndir, @@ -77,11 +78,11 @@ temurin-bin-23, jdk-bootstrap ? { - "8" = temurin-bin-8; - "11" = temurin-bin-11; - "17" = temurin-bin-17; - "21" = temurin-bin-21; - "23" = temurin-bin-23; + "8" = temurin-bin-8.__spliced.buildBuild or temurin-bin-8; + "11" = temurin-bin-11.__spliced.buildBuild or temurin-bin-11; + "17" = temurin-bin-17.__spliced.buildBuild or temurin-bin-17; + "21" = temurin-bin-21.__spliced.buildBuild or temurin-bin-21; + "23" = temurin-bin-23.__spliced.buildBuild or temurin-bin-23; } .${featureVersion}, }: @@ -241,6 +242,10 @@ stdenv.mkDerivation (finalAttrs: { ) ]; + strictDeps = true; + + depsBuildBuild = [ buildPackages.stdenv.cc ]; + nativeBuildInputs = [ pkg-config @@ -250,9 +255,15 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals (!atLeast11) [ lndir + # Certificates generated using perl in `installPhase` + perl ] ++ [ unzip + zip + which + # Probably for BUILD_CC but not sure, not in closure. + zlib ] ++ lib.optionals atLeast21 [ ensureNewerSourcesForZipFilesHook @@ -262,11 +273,8 @@ stdenv.mkDerivation (finalAttrs: { [ # TODO: Many of these should likely be in `nativeBuildInputs`. cpio + # `-lmagic` in NIX_LDFLAGS file - which - zip - perl - zlib cups freetype ] @@ -305,7 +313,6 @@ stdenv.mkDerivation (finalAttrs: { libXcursor libXrandr fontconfig - jdk-bootstrap' ] ++ lib.optionals (!headless && enableGtk) [ (if atLeast11 then gtk3 else gtk2) @@ -330,6 +337,14 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--with-boot-jdk=${jdk-bootstrap'.home}" + # https://github.com/openjdk/jdk/blob/471f112bca715d04304cbe35c6ed63df8c7b7fee/make/autoconf/util_paths.m4#L315 + # Ignoring value of READELF from the environment. Use command line variables instead. + "READELF=${stdenv.cc.targetPrefix}readelf" + "AR=${stdenv.cc.targetPrefix}ar" + "STRIP=${stdenv.cc.targetPrefix}strip" + "NM=${stdenv.cc.targetPrefix}nm" + "OBJDUMP=${stdenv.cc.targetPrefix}objdump" + "OBJCOPY=${stdenv.cc.targetPrefix}objcopy" ] ++ ( if atLeast23 then From 49245b838c5417fb6fb5eca8d69cb22e2f3427e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 8 Nov 2024 12:03:17 -0800 Subject: [PATCH 032/693] python312Packages.setuptools: 75.1.0 -> 75.1.1 Diff: https://github.com/pypa/setuptools/compare/refs/tags/v75.1.0...75.1.1 Changelog: https://setuptools.pypa.io/en/stable/history.html#v75-1-1 --- pkgs/development/python-modules/setuptools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/setuptools/default.nix b/pkgs/development/python-modules/setuptools/default.nix index 8b53de0a4890..c39ae6917bcd 100644 --- a/pkgs/development/python-modules/setuptools/default.nix +++ b/pkgs/development/python-modules/setuptools/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "setuptools"; - version = "75.1.0"; + version = "75.1.1"; format = "pyproject"; src = fetchFromGitHub { owner = "pypa"; repo = "setuptools"; rev = "refs/tags/v${version}"; - hash = "sha256-ZvhXfusayUHHFXl7ZBksFhxTi1p+Va6qAwq7Fo7Tg/s="; + hash = "sha256-b8O/DrDWAbD6ht9M762fFN6kPtV8hAbn1gAN9SS7H5g="; }; patches = [ From 22ad67eebbeb281dfdc2db434dc7840b6105d105 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 8 Nov 2024 22:10:36 +0000 Subject: [PATCH 033/693] iptables: 1.8.10 -> 1.8.11 Changes: https://lore.kernel.org/netdev/Zy4nCFxZvkkUrjj6@orbyte.nwl.cc/T/ --- pkgs/os-specific/linux/iptables/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/iptables/default.nix b/pkgs/os-specific/linux/iptables/default.nix index afaa91ca2f37..b0bd2c08082d 100644 --- a/pkgs/os-specific/linux/iptables/default.nix +++ b/pkgs/os-specific/linux/iptables/default.nix @@ -6,12 +6,12 @@ }: stdenv.mkDerivation rec { - version = "1.8.10"; + version = "1.8.11"; pname = "iptables"; src = fetchurl { url = "https://www.netfilter.org/projects/${pname}/files/${pname}-${version}.tar.xz"; - sha256 = "XMJVwYk1bjF9BwdVzpNx62Oht4PDRJj7jDAmTzzFnJw="; + sha256 = "2HMD1V74ySvK1N0/l4sm0nIBNkKwKUJXdfW60QCf57I="; }; outputs = [ "out" "dev" "man" ]; From ce6c31c312584ce8f5a32fd7bbfe5e89734524b4 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 15 Oct 2024 13:44:01 +0200 Subject: [PATCH 034/693] llvmPackages_{12,13}.lldb: don't try to find nonexistent patch We just need to make sure the attribute evaluates so we can cleanly access `meta.broken` for those versions. --- pkgs/development/compilers/llvm/common/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 707bb91b875d..9d74c65eaaf1 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -713,8 +713,12 @@ let # # See here for some context: # https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132 + # + # Patch is applied for >= 14 as the versions below are broken anyways. ++ lib.optional ( - stdenv.targetPlatform.isDarwin && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0" + lib.versionAtLeast metadata.release_version "14" + && stdenv.targetPlatform.isDarwin + && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0" ) (metadata.getVersionFile "lldb/cpu_subtype_arm64e_replacement.patch"); } // lib.optionalAttrs (lib.versions.major metadata.release_version == "16") { From ee9eacf23ec7cf46c6ebbbb215e4ee26a3bc6fed Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 6 Oct 2024 00:32:56 +0200 Subject: [PATCH 035/693] llvmPackages_12: build from monorepo source As mentioned in #305146, keeping LLVM 12 is a source of pain because it is the only version to be built from individual release tarball instead of the LLVM monorepo. This commit makes LLVM 12 start from the monorepo as well, simplifying all common LLVM expressions in the process. With #347887, some quirks in the expressions for LLVM <14 were ironed out, so building LLVM through from the monorepo is quite simple now. - Most expressions only required minor changes, mostly removing the special casing for `sourceRoot`. - The patch lists from llvm/12/default.nix were ported to common/default.nix. This only required a few extra conditionals which could be reduced via a rebuild also involving other LLVM versions. Outstanding tasks of little urgency have been noted in TODO comments. I have verified that the patch lists stay the same for all packages except LLVM where merely the order changes. An extra set of eyes is appreciated, of course. - clang: The expression was reworked to use the same symlink location for clang-tools-extra for all versions including LLVM 12. This required adjusting the ad hoc patching of the clangd cmake files slightly. - libunwind: We no longer need to make the libcxx sources available manually. We can rely on the monorepo source instead. - lld: We no longer need to make the libunwind sources available manually. - llvm: We no longer need to make the polly sources available manually - On Darwin, we need to bypass CMake's C++ compiler for libcxx and libunwind now. It isn't a 100% clear why, probably because we've started to use Darwin's bootstrapStdenv for libcxx in the common expression compared to LLVM 12 on master [1]. The reordering of flags for wasm causes a rebuild for some packages like firefox, but this should be tolerable on staging. [1]: https://github.com/NixOS/nixpkgs/blob/665ebfb253caba7b85c2affefe2a92b305def4e6/pkgs/development/compilers/llvm/12/default.nix#L392-L430 --- .../development/compilers/llvm/12/default.nix | 445 ------------------ .../compilers/llvm/common/clang/default.nix | 40 +- .../llvm/common/compiler-rt/default.nix | 3 +- .../compilers/llvm/common/default.nix | 49 +- .../compilers/llvm/common/libcxx/default.nix | 6 +- .../llvm/common/libunwind/default.nix | 15 +- .../compilers/llvm/common/lld/default.nix | 12 +- .../compilers/llvm/common/llvm/default.nix | 17 +- .../compilers/llvm/common/openmp/default.nix | 4 +- pkgs/development/compilers/llvm/default.nix | 1 + pkgs/top-level/all-packages.nix | 11 +- 11 files changed, 75 insertions(+), 528 deletions(-) delete mode 100644 pkgs/development/compilers/llvm/12/default.nix diff --git a/pkgs/development/compilers/llvm/12/default.nix b/pkgs/development/compilers/llvm/12/default.nix deleted file mode 100644 index 352cf8313d67..000000000000 --- a/pkgs/development/compilers/llvm/12/default.nix +++ /dev/null @@ -1,445 +0,0 @@ -{ lowPrio, newScope, pkgs, lib, stdenv -, preLibcCrossHeaders -, substitute, substituteAll, fetchFromGitHub, fetchpatch, fetchurl -, overrideCC, wrapCCWith, wrapBintoolsWith -, libxcrypt -, buildLlvmTools # tools, but from the previous stage, for cross -, targetLlvmLibraries # libraries, but from the next stage, for cross -, targetLlvm -# This is the default binutils, but with *this* version of LLD rather -# than the default LLVM version's, if LLD is the choice. We use these for -# the `useLLVM` bootstrapping below. -, bootBintoolsNoLibc ? - if stdenv.targetPlatform.linker == "lld" - then null - else pkgs.bintoolsNoLibc -, bootBintools ? - if stdenv.targetPlatform.linker == "lld" - then null - else pkgs.bintools -, darwin -# Allows passthrough to packages via newScope. This makes it possible to -# do `(llvmPackages.override { = bar; }).clang` and get -# an llvmPackages whose packages are overridden in an internally consistent way. -, ... -}@args: - -let - candidate = ""; # empty or "rcN" - dash-candidate = lib.optionalString (candidate != "") "-${candidate}"; - - metadata = rec { - release_version = "12.0.1"; - version = "${release_version}${dash-candidate}"; # differentiating these (variables) is important for RCs - inherit (import ../common/common-let.nix { inherit lib release_version; }) llvm_meta; - fetch = name: sha256: fetchurl { - url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-${metadata.version}/${name}-${metadata.release_version}${candidate}.src.tar.xz"; - inherit sha256; - }; - clang-tools-extra_src = fetch "clang-tools-extra" "1r9a4fdz9ci58b5z2inwvm4z4cdp6scrivnaw05dggkxz7yrwrb5"; - }; - - inherit (metadata) fetch; - - - tools = lib.makeExtensible (tools: let - callPackage = newScope (tools // args // metadata); - mkExtraBuildCommands0 = cc: '' - rsrc="$out/resource-root" - mkdir "$rsrc" - ln -s "${cc.lib}/lib/clang/${metadata.release_version}/include" "$rsrc" - echo "-resource-dir=$rsrc" >> $out/nix-support/cc-cflags - ''; - mkExtraBuildCommandsBasicRt = cc: mkExtraBuildCommands0 cc + '' - ln -s "${targetLlvmLibraries.compiler-rt-no-libc.out}/lib" "$rsrc/lib" - ln -s "${targetLlvmLibraries.compiler-rt-no-libc.out}/share" "$rsrc/share" - ''; - mkExtraBuildCommands = cc: mkExtraBuildCommands0 cc + '' - ln -s "${targetLlvmLibraries.compiler-rt.out}/lib" "$rsrc/lib" - ln -s "${targetLlvmLibraries.compiler-rt.out}/share" "$rsrc/share" - ''; - - bintoolsNoLibc' = - if bootBintoolsNoLibc == null - then tools.bintoolsNoLibc - else bootBintoolsNoLibc; - bintools' = - if bootBintools == null - then tools.bintools - else bootBintools; - - in { - - libllvm = callPackage ../common/llvm { - src = fetch "llvm" "1pzx9zrmd7r3481sbhwvkms68fwhffpp4mmz45dgrkjpyl2q96kx"; - polly_src = fetch "polly" "1yfm9ixda4a2sx7ak5vswijx4ydk5lv1c1xh39xmd2kh299y4m12"; - patches = [ - # When cross-compiling we configure llvm-config-native with an approximation - # of the flags used for the normal LLVM build. To avoid the need for building - # a native libLLVM.so (which would fail) we force llvm-config to be linked - # statically against the necessary LLVM components always. - ../common/llvm/llvm-config-link-static.patch - # Fix llvm being miscompiled by some gccs. See llvm/llvm-project#49955 - # Fix llvm being miscompiled by some gccs. See https://github.com/llvm/llvm-project/issues/49955 - ./llvm/fix-llvm-issue-49955.patch - - ./llvm/gnu-install-dirs.patch - # On older CPUs (e.g. Hydra/wendy) we'd be getting an error in this test. - (fetchpatch { - name = "uops-CMOV16rm-noreg.diff"; - url = "https://github.com/llvm/llvm-project/commit/9e9f991ac033.diff"; - sha256 = "sha256:12s8vr6ibri8b48h2z38f3afhwam10arfiqfy4yg37bmc054p5hi"; - stripLen = 1; - }) - - # Fix musl build. - (fetchpatch { - url = "https://github.com/llvm/llvm-project/commit/5cd554303ead0f8891eee3cd6d25cb07f5a7bf67.patch"; - relative = "llvm"; - hash = "sha256-XPbvNJ45SzjMGlNUgt/IgEvM2dHQpDOe6woUJY+nUYA="; - }) - - # Backport gcc-13 fixes with missing includes. - (fetchpatch { - name = "signals-gcc-13.patch"; - url = "https://github.com/llvm/llvm-project/commit/ff1681ddb303223973653f7f5f3f3435b48a1983.patch"; - hash = "sha256-CXwYxQezTq5vdmc8Yn88BUAEly6YZ5VEIA6X3y5NNOs="; - stripLen = 1; - }) - (fetchpatch { - name = "base64-gcc-13.patch"; - url = "https://github.com/llvm/llvm-project/commit/5e9be93566f39ee6cecd579401e453eccfbe81e5.patch"; - hash = "sha256-PAwrVrvffPd7tphpwCkYiz+67szPRzRB2TXBvKfzQ7U="; - stripLen = 1; - }) - ]; - pollyPatches = [ - ./llvm/gnu-install-dirs-polly.patch - ]; - }; - - # `llvm` historically had the binaries. When choosing an output explicitly, - # we need to reintroduce `outputSpecified` to get the expected behavior e.g. of lib.get* - llvm = tools.libllvm; - - libclang = callPackage ../common/clang { - src = fetch "clang" "0px4gl27az6cdz6adds89qzdwb1cqpjsfvrldbz9qvpmphrj34bf"; - patches = [ - ./clang/purity.patch - # https://reviews.llvm.org/D51899 - ./clang/gnu-install-dirs.patch - (substituteAll { - src = ../common/clang/clang-11-15-LLVMgold-path.patch; - libllvmLibdir = "${tools.libllvm.lib}/lib"; - }) - ]; - }; - - clang-unwrapped = tools.libclang; - - # disabled until recommonmark supports sphinx 3 - #Llvm-manpages = lowPrio (tools.libllvm.override { - # enableManpages = true; - # python3 = pkgs.python3; # don't use python-boot - #}); - - clang-manpages = lowPrio (tools.libclang.override { - enableManpages = true; - python3 = pkgs.python3; # don't use python-boot - }); - - # disabled until recommonmark supports sphinx 3 - # lldb-manpages = lowPrio (tools.lldb.override { - # enableManpages = true; - # python3 = pkgs.python3; # don't use python-boot - # }); - - # Wrapper for standalone command line utilities - clang-tools = callPackage ../common/clang-tools { }; - - # pick clang appropriate for package set we are targeting - clang = - /**/ if stdenv.targetPlatform.libc == null then tools.clangNoLibc - else if stdenv.targetPlatform.useLLVM or false then tools.clangUseLLVM - else if (pkgs.targetPackages.stdenv or stdenv).cc.isGNU then tools.libstdcxxClang - else tools.libcxxClang; - - libstdcxxClang = wrapCCWith rec { - cc = tools.clang-unwrapped; - # libstdcxx is taken from gcc in an ad-hoc way in cc-wrapper. - libcxx = null; - extraPackages = [ - targetLlvmLibraries.compiler-rt - ]; - extraBuildCommands = mkExtraBuildCommands cc; - }; - - libcxxClang = wrapCCWith rec { - cc = tools.clang-unwrapped; - libcxx = targetLlvmLibraries.libcxx; - extraPackages = [ - targetLlvmLibraries.compiler-rt - ]; - extraBuildCommands = mkExtraBuildCommands cc; - }; - - lld = callPackage ../common/lld { - src = fetch "lld" "0qg3fgc7wj34hdkqn21y03zcmsdd01szhhm1hfki63iifrm3y2v9"; - patches = [ - ./lld/gnu-install-dirs.patch - ]; - inherit (libraries) libunwind; - }; - - lldb = callPackage ../common/lldb.nix { - src = fetch "lldb" "0g3pj1m3chafavpr35r9fynm85y2hdyla6klj0h28khxs2613i78"; - patches = - let - resourceDirPatch = callPackage - ({ substituteAll, libclang }: substituteAll - { - src = ./lldb/resource-dir.patch; - clangLibDir = "${lib.getLib libclang}/lib"; - }) - { }; - in - [ - ./lldb/procfs.patch - resourceDirPatch - ./lldb/gnu-install-dirs.patch - ]; - }; - - # Below, is the LLVM bootstrapping logic. It handles building a - # fully LLVM toolchain from scratch. No GCC toolchain should be - # pulled in. As a consequence, it is very quick to build different - # targets provided by LLVM and we can also build for what GCC - # doesn’t support like LLVM. Probably we should move to some other - # file. - - bintools-unwrapped = callPackage ../common/bintools.nix { }; - - bintoolsNoLibc = wrapBintoolsWith { - bintools = tools.bintools-unwrapped; - libc = preLibcCrossHeaders; - }; - - bintools = wrapBintoolsWith { - bintools = tools.bintools-unwrapped; - }; - - clangUseLLVM = wrapCCWith rec { - cc = tools.clang-unwrapped; - libcxx = targetLlvmLibraries.libcxx; - bintools = bintools'; - extraPackages = [ - targetLlvmLibraries.compiler-rt - ] ++ lib.optionals (!stdenv.targetPlatform.isWasm) [ - targetLlvmLibraries.libunwind - ]; - extraBuildCommands = '' - echo "-rtlib=compiler-rt -Wno-unused-command-line-argument" >> $out/nix-support/cc-cflags - echo "-B${targetLlvmLibraries.compiler-rt}/lib" >> $out/nix-support/cc-cflags - '' + lib.optionalString (!stdenv.targetPlatform.isWasm) '' - echo "--unwindlib=libunwind" >> $out/nix-support/cc-cflags - echo "-L${targetLlvmLibraries.libunwind}/lib" >> $out/nix-support/cc-ldflags - '' + lib.optionalString (!stdenv.targetPlatform.isWasm && stdenv.targetPlatform.useLLVM or false) '' - echo "-lunwind" >> $out/nix-support/cc-ldflags - '' + lib.optionalString stdenv.targetPlatform.isWasm '' - echo "-fno-exceptions" >> $out/nix-support/cc-cflags - '' + mkExtraBuildCommands cc; - }; - - clangWithLibcAndBasicRtAndLibcxx = wrapCCWith rec { - cc = tools.clang-unwrapped; - libcxx = targetLlvmLibraries.libcxx; - bintools = bintools'; - extraPackages = [ - targetLlvmLibraries.compiler-rt-no-libc - ] ++ lib.optionals (!stdenv.targetPlatform.isWasm) [ - targetLlvmLibraries.libunwind - ]; - extraBuildCommands = '' - echo "-rtlib=compiler-rt" >> $out/nix-support/cc-cflags - echo "-Wno-unused-command-line-argument" >> $out/nix-support/cc-cflags - echo "-B${targetLlvmLibraries.compiler-rt-no-libc}/lib" >> $out/nix-support/cc-cflags - '' + mkExtraBuildCommandsBasicRt cc; - }; - - clangWithLibcAndBasicRt = wrapCCWith rec { - cc = tools.clang-unwrapped; - libcxx = null; - bintools = bintools'; - extraPackages = [ - targetLlvmLibraries.compiler-rt-no-libc - ]; - extraBuildCommands = '' - echo "-rtlib=compiler-rt" >> $out/nix-support/cc-cflags - echo "-B${targetLlvmLibraries.compiler-rt-no-libc}/lib" >> $out/nix-support/cc-cflags - echo "-nostdlib++" >> $out/nix-support/cc-cflags - '' + mkExtraBuildCommandsBasicRt cc; - }; - - clangNoLibcWithBasicRt = wrapCCWith rec { - cc = tools.clang-unwrapped; - libcxx = null; - bintools = bintoolsNoLibc'; - extraPackages = [ - targetLlvmLibraries.compiler-rt-no-libc - ]; - extraBuildCommands = '' - echo "-rtlib=compiler-rt" >> $out/nix-support/cc-cflags - echo "-B${targetLlvmLibraries.compiler-rt-no-libc}/lib" >> $out/nix-support/cc-cflags - '' + mkExtraBuildCommandsBasicRt cc; - }; - - clangNoLibcNoRt = wrapCCWith rec { - cc = tools.clang-unwrapped; - libcxx = null; - bintools = bintoolsNoLibc'; - extraPackages = [ ]; - extraBuildCommands = '' - echo "-nostartfiles" >> $out/nix-support/cc-cflags - '' + mkExtraBuildCommands0 cc; - }; - - # This is an "oddly ordered" bootstrap just for Darwin. Probably - # don't want it otherwise. - clangNoCompilerRtWithLibc = wrapCCWith rec { - cc = tools.clang-unwrapped; - libcxx = null; - bintools = bintools'; - extraPackages = [ ]; - extraBuildCommands = mkExtraBuildCommands0 cc; - }; - - # Aliases - clangNoCompilerRt = tools.clangNoLibcNoRt; - clangNoLibc = tools.clangNoLibcWithBasicRt; - clangNoLibcxx = tools.clangWithLibcAndBasicRt; - }); - - libraries = lib.makeExtensible (libraries: let - callPackage = newScope (libraries // buildLlvmTools // args // metadata); - in { - - compiler-rt-libc = callPackage ../common/compiler-rt (let - stdenv = - if args.stdenv.hostPlatform.useLLVM or false then - overrideCC args.stdenv buildLlvmTools.clangWithLibcAndBasicRtAndLibcxx - else - args.stdenv; - in { - src = fetch "compiler-rt" "1950rg294izdwkaasi7yjrmadc9mzdd5paf0q63jjcq2m3rdbj5l"; - patches = [ - ../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory - ./compiler-rt/X86-support-extension.patch # Add support for i486 i586 i686 by reusing i386 config - ./compiler-rt/gnu-install-dirs.patch - # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the - # extra `/`. - ./compiler-rt/normalize-var.patch - ../common/compiler-rt/darwin-plistbuddy-workaround.patch - ./compiler-rt/armv7l.patch - # Fix build on armv6l - ../common/compiler-rt/armv6-mcr-dmb.patch - ../common/compiler-rt/armv6-sync-ops-no-thumb.patch - ../common/compiler-rt/armv6-no-ldrexd-strexd.patch - ]; - inherit stdenv; - } // lib.optionalAttrs (stdenv.hostPlatform.useLLVM or false) { - libxcrypt = (libxcrypt.override { inherit stdenv; }).overrideAttrs (old: { - configureFlags = old.configureFlags ++ [ "--disable-symvers" ]; - }); - }); - - compiler-rt-no-libc = callPackage ../common/compiler-rt { - src = fetch "compiler-rt" "1950rg294izdwkaasi7yjrmadc9mzdd5paf0q63jjcq2m3rdbj5l"; - patches = [ - ../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory - ./compiler-rt/X86-support-extension.patch # Add support for i486 i586 i686 by reusing i386 config - ./compiler-rt/gnu-install-dirs.patch - # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the - # extra `/`. - ./compiler-rt/normalize-var.patch - ../common/compiler-rt/darwin-plistbuddy-workaround.patch - ./compiler-rt/armv7l.patch - # Fix build on armv6l - ../common/compiler-rt/armv6-mcr-dmb.patch - ../common/compiler-rt/armv6-sync-ops-no-thumb.patch - ../common/compiler-rt/armv6-no-ldrexd-strexd.patch - ]; - stdenv = - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform then - stdenv - else - # TODO: make this branch unconditional next rebuild - overrideCC stdenv buildLlvmTools.clangNoLibcNoRt; - }; - - compiler-rt = - # Building the with-libc compiler-rt and WASM doesn't yet work, - # because wasilibc doesn't provide some expected things. See - # compiler-rt's file for further details. - if stdenv.hostPlatform.libc == null || stdenv.hostPlatform.isWasm then - libraries.compiler-rt-no-libc - else - libraries.compiler-rt-libc; - - stdenv = overrideCC stdenv buildLlvmTools.clang; - - libcxxStdenv = overrideCC stdenv buildLlvmTools.libcxxClang; - - libcxx = callPackage ../common/libcxx { - src = fetchFromGitHub { - owner = "llvm"; - repo = "llvm-project"; - rev = "refs/tags/llvmorg-${metadata.version}"; - sparseCheckout = [ - "libcxx" - "libcxxabi" - "llvm/cmake" - "llvm/utils" - "runtimes" - ]; - hash = "sha256-etxgXIdWxMTmbZ83Hsc0w6Jt5OSQSUEPVEWqLkHsNBY="; - }; - patches = [ - (substitute { - src = ../common/libcxxabi/wasm.patch; - substitutions = [ - "--replace-fail" "/cmake/" "/llvm/cmake/" - ]; - }) - ] ++ lib.optionals stdenv.hostPlatform.isMusl [ - (substitute { - src = ../common/libcxx/libcxx-0001-musl-hacks.patch; - substitutions = [ - "--replace-fail" "/include/" "/libcxx/include/" - ]; - }) - ]; - stdenv = overrideCC stdenv buildLlvmTools.clangWithLibcAndBasicRt; - }; - - libunwind = callPackage ../common/libunwind { - src = fetch "libunwind" "192ww6n81lj2mb9pj4043z79jp3cf58a9c2qrxjwm5c3a64n1shb"; - patches = [ - ./libunwind/gnu-install-dirs.patch - ]; - stdenv = overrideCC stdenv buildLlvmTools.clangWithLibcAndBasicRt; - }; - - openmp = callPackage ../common/openmp { - src = fetch "openmp" "14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0"; - patches = [ - # Fix cross. - (fetchpatch { - url = "https://github.com/llvm/llvm-project/commit/5e2358c781b85a18d1463fd924d2741d4ae5e42e.patch"; - hash = "sha256-UxIlAifXnexF/MaraPW0Ut6q+sf3e7y1fMdEv1q103A="; - }) - ]; - }; - }); - noExtend = extensible: lib.attrsets.removeAttrs extensible [ "extend" ]; - -in { inherit tools libraries; inherit (metadata) release_version; } // (noExtend libraries) // (noExtend tools) diff --git a/pkgs/development/compilers/llvm/common/clang/default.nix b/pkgs/development/compilers/llvm/common/clang/default.nix index 88f5dfd84d6a..f842e11530e2 100644 --- a/pkgs/development/compilers/llvm/common/clang/default.nix +++ b/pkgs/development/compilers/llvm/common/clang/default.nix @@ -16,7 +16,6 @@ , buildLlvmTools , fixDarwinDylibNames , enableManpages ? false -, clang-tools-extra_src ? null , devExtraCmakeFlags ? [] }: @@ -38,8 +37,7 @@ let src = src'; - sourceRoot = if lib.versionOlder release_version "13" then null - else "${src.name}/${pname}"; + sourceRoot = "${src.name}/${pname}"; nativeBuildInputs = [ cmake ] ++ (lib.optional (lib.versionAtLeast release_version "15") ninja) @@ -79,17 +77,22 @@ let # Make sure clang passes the correct location of libLTO to ld64 substituteInPlace lib/Driver/ToolChains/Darwin.cpp \ --replace-fail 'StringRef P = llvm::sys::path::parent_path(D.Dir);' 'StringRef P = "${lib.getLib libllvm}";' - '' + ( + (cd tools && ln -s ../../clang-tools-extra extra) + '' + lib.optionalString ( + lib.versionOlder release_version "13" # See the comment on the `add-nostdlibinc-flag.patch` patch in # `../default.nix` for why we skip Darwin here. - if lib.versionOlder release_version "13" && (!stdenv.hostPlatform.isDarwin || !stdenv.targetPlatform.isDarwin) then '' - sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' \ - -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' \ - lib/Driver/ToolChains/*.cpp - '' else '' - (cd tools && ln -s ../../clang-tools-extra extra) - '' - ) + lib.optionalString stdenv.hostPlatform.isMusl '' + && (!stdenv.hostPlatform.isDarwin || !stdenv.targetPlatform.isDarwin + ) '' + sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' \ + -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' \ + lib/Driver/ToolChains/*.cpp + '' + + lib.optionalString (lib.versionOlder release_version "13") '' + substituteInPlace tools/extra/clangd/quality/CompletionModel.cmake \ + --replace ' ''${CMAKE_SOURCE_DIR}/../clang-tools-extra' ' ''${CMAKE_SOURCE_DIR}/tools/extra' + '' + + lib.optionalString stdenv.hostPlatform.isMusl '' sed -i -e 's/lgcc_s/lgcc_eh/' lib/Driver/ToolChains/*.cpp ''; @@ -215,18 +218,7 @@ let ''; } else { ninjaFlags = [ "docs-clang-man" ]; - })) // (lib.optionalAttrs (clang-tools-extra_src != null) { inherit clang-tools-extra_src; }) - // (lib.optionalAttrs (lib.versionOlder release_version "13") { - unpackPhase = '' - unpackFile $src - mv clang-* clang - sourceRoot=$PWD/clang - unpackFile ${clang-tools-extra_src} - mv clang-tools-extra-* $sourceRoot/tools/extra - substituteInPlace $sourceRoot/tools/extra/clangd/quality/CompletionModel.cmake \ - --replace ' ''${CMAKE_SOURCE_DIR}/../clang-tools-extra' ' ''${CMAKE_SOURCE_DIR}/tools/extra' - ''; - }) + })) // (lib.optionalAttrs (lib.versionAtLeast release_version "15") { env = lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform && !stdenv.hostPlatform.useLLVM) { # The following warning is triggered with (at least) gcc >= diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index 21f5cfef393f..9ec3a2ddcbd6 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -73,8 +73,7 @@ stdenv.mkDerivation ({ inherit pname version patches; src = src'; - sourceRoot = if lib.versionOlder release_version "13" then null - else "${src'.name}/${baseName}"; + sourceRoot = "${src'.name}/${baseName}"; nativeBuildInputs = [ cmake ] ++ (lib.optional (lib.versionAtLeast release_version "15") ninja) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 9d74c65eaaf1..5264dd05f012 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -380,6 +380,17 @@ let libllvm = callPackage ./llvm { patches = lib.optional (lib.versionOlder metadata.release_version "14") ./llvm/llvm-config-link-static.patch + ++ lib.optionals (lib.versions.major metadata.release_version == "12") [ + (metadata.getVersionFile "llvm/fix-llvm-issue-49955.patch") + + # On older CPUs (e.g. Hydra/wendy) we'd be getting an error in this test. + (fetchpatch { + name = "uops-CMOV16rm-noreg.diff"; + url = "https://github.com/llvm/llvm-project/commit/9e9f991ac033.diff"; + sha256 = "sha256:12s8vr6ibri8b48h2z38f3afhwam10arfiqfy4yg37bmc054p5hi"; + stripLen = 1; + }) + ] ++ [ (metadata.getVersionFile "llvm/gnu-install-dirs.patch") ] ++ lib.optionals (lib.versionAtLeast metadata.release_version "15") [ # Running the tests involves invoking binaries (like `opt`) that depend on @@ -443,7 +454,7 @@ let hash = "sha256-XPbvNJ45SzjMGlNUgt/IgEvM2dHQpDOe6woUJY+nUYA="; } ) - ++ lib.optionals (lib.versions.major metadata.release_version == "13") [ + ++ lib.optionals (lib.versionOlder metadata.release_version "14") [ # Backport gcc-13 fixes with missing includes. (fetchpatch { name = "signals-gcc-13.patch"; @@ -544,7 +555,9 @@ let # compilers breaking libclang when we can do Linux‐to‐Darwin # cross‐compilation again. ++ lib.optional ( - !args.stdenv.hostPlatform.isDarwin || !args.stdenv.targetPlatform.isDarwin + # TODO: This also applies for clang == 12, do we need it? + lib.versionAtLeast metadata.release_version "13" && + (!args.stdenv.hostPlatform.isDarwin || !args.stdenv.targetPlatform.isDarwin) ) ./clang/add-nostdlibinc-flag.patch ++ [ (substituteAll { @@ -989,14 +1002,21 @@ let ); compiler-rtPatches = - lib.optional (lib.versionOlder metadata.release_version "15") ( - metadata.getVersionFile "compiler-rt/codesign.patch" - ) # Revert compiler-rt commit that makes codesign mandatory + lib.optionals (lib.versions.major metadata.release_version == "12") [ + # Revert compiler-rt commit that makes codesign mandatory + ./compiler-rt/7-12-codesign.patch + ] + ++ lib.optional ( + lib.versionAtLeast metadata.release_version "13" && lib.versionOlder metadata.release_version "15" + ) (metadata.getVersionFile "compiler-rt/codesign.patch") # Revert compiler-rt commit that makes codesign mandatory ++ [ (metadata.getVersionFile "compiler-rt/X86-support-extension.patch") # Add support for i486 i586 i686 by reusing i386 config ] ++ lib.optional ( - lib.versionAtLeast metadata.release_version "14" && lib.versionOlder metadata.release_version "18" + lib.versions.major metadata.release_version == "12" + || ( + lib.versionAtLeast metadata.release_version "14" && lib.versionOlder metadata.release_version "18" + ) ) (metadata.getVersionFile "compiler-rt/gnu-install-dirs.patch") ++ [ # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the @@ -1004,9 +1024,11 @@ let (metadata.getVersionFile "compiler-rt/normalize-var.patch") ] ++ - lib.optional (lib.versionOlder metadata.release_version "18") + lib.optional + (lib.versionAtLeast metadata.release_version "13" && lib.versionOlder metadata.release_version "18") # Prevent a compilation error on darwin (metadata.getVersionFile "compiler-rt/darwin-targetconditionals.patch") + # TODO: make unconditional and remove in <15 section below. Causes rebuilds. ++ lib.optionals (lib.versionAtLeast metadata.release_version "15") [ # See: https://github.com/NixOS/nixpkgs/pull/186575 ./compiler-rt/darwin-plistbuddy-workaround.patch @@ -1022,13 +1044,18 @@ let ./compiler-rt/armv6-mcr-dmb.patch ./compiler-rt/armv6-sync-ops-no-thumb.patch ] - ++ lib.optionals (lib.versionOlder metadata.release_version "18") [ - # Fix build on armv6l - ./compiler-rt/armv6-scudo-no-yield.patch - ] + ++ + lib.optionals + (lib.versionAtLeast metadata.release_version "13" && lib.versionOlder metadata.release_version "18") + [ + # Fix build on armv6l + ./compiler-rt/armv6-scudo-no-yield.patch + ] ++ [ # Fix build on armv6l ./compiler-rt/armv6-no-ldrexd-strexd.patch + ] + ++ lib.optionals (lib.versionAtLeast metadata.release_version "13") [ (metadata.getVersionFile "compiler-rt/armv6-scudo-libatomic.patch") ] ++ lib.optional (lib.versionAtLeast metadata.release_version "19") (fetchpatch { diff --git a/pkgs/development/compilers/llvm/common/libcxx/default.nix b/pkgs/development/compilers/llvm/common/libcxx/default.nix index d4b727bd50d2..c0d1ab02da85 100644 --- a/pkgs/development/compilers/llvm/common/libcxx/default.nix +++ b/pkgs/development/compilers/llvm/common/libcxx/default.nix @@ -103,9 +103,13 @@ let cmakeFlags = [ "-DLLVM_ENABLE_RUNTIMES=${lib.concatStringsSep ";" runtimes}" + ] ++ lib.optionals ( + stdenv.hostPlatform.isWasm + || (lib.versions.major release_version == "12" && stdenv.hostPlatform.isDarwin) + ) [ + "-DCMAKE_CXX_COMPILER_WORKS=ON" ] ++ lib.optionals stdenv.hostPlatform.isWasm [ "-DCMAKE_C_COMPILER_WORKS=ON" - "-DCMAKE_CXX_COMPILER_WORKS=ON" "-DUNIX=ON" # Required otherwise libc++ fails to detect the correct linker ] ++ cxxCMakeFlags ++ lib.optionals (cxxabi == null) cxxabiCMakeFlags diff --git a/pkgs/development/compilers/llvm/common/libunwind/default.nix b/pkgs/development/compilers/llvm/common/libunwind/default.nix index 63b9737092b8..4f1fa0107c14 100644 --- a/pkgs/development/compilers/llvm/common/libunwind/default.nix +++ b/pkgs/development/compilers/llvm/common/libunwind/default.nix @@ -35,11 +35,6 @@ let hasPatches = builtins.length patches > 0; - postUnpack = lib.optionalString (lib.versions.major release_version == "12") '' - ln -s ${libcxx.src}/libcxx . - ln -s ${libcxx.src}/llvm . - ''; - prePatch = lib.optionalString (lib.versionAtLeast release_version "15" && (hasPatches || lib.versionOlder release_version "18")) '' cd ../${pname} chmod -R u+w . @@ -60,8 +55,8 @@ stdenv.mkDerivation (rec { src = src'; sourceRoot = - if lib.versionOlder release_version "13" then null - else if lib.versionAtLeast release_version "15" then "${src.name}/runtimes" + if lib.versionAtLeast release_version "15" + then "${src.name}/runtimes" else "${src.name}/${pname}"; outputs = [ "out" "dev" ]; @@ -72,6 +67,9 @@ stdenv.mkDerivation (rec { cmakeFlags = lib.optional (lib.versionAtLeast release_version "15") "-DLLVM_ENABLE_RUNTIMES=libunwind" ++ lib.optional (!enableShared) "-DLIBUNWIND_ENABLE_SHARED=OFF" + ++ lib.optionals (lib.versions.major release_version == "12" && stdenv.hostPlatform.isDarwin) [ + "-DCMAKE_CXX_COMPILER_WORKS=ON" + ] ++ devExtraCmakeFlags; meta = llvm_meta // { @@ -85,7 +83,6 @@ stdenv.mkDerivation (rec { dependency of other runtimes. ''; }; -} // (if postUnpack != "" then { inherit postUnpack; } else {}) - // (if (lib.versionAtLeast release_version "15") then { inherit postInstall; } else {}) +} // (if (lib.versionAtLeast release_version "15") then { inherit postInstall; } else {}) // (if prePatch != "" then { inherit prePatch; } else {}) // (if postPatch != "" then { inherit postPatch; } else {})) diff --git a/pkgs/development/compilers/llvm/common/lld/default.nix b/pkgs/development/compilers/llvm/common/lld/default.nix index 32cf5cb46460..4008f2076d73 100644 --- a/pkgs/development/compilers/llvm/common/lld/default.nix +++ b/pkgs/development/compilers/llvm/common/lld/default.nix @@ -6,7 +6,6 @@ , buildLlvmTools , monorepoSrc ? null , src ? null -, libunwind ? null , runCommand , cmake , ninja @@ -30,12 +29,7 @@ let mkdir -p "$out/llvm" '') else src; - postPatch = lib.optionalString (lib.versions.major release_version == "12") '' - substituteInPlace MachO/CMakeLists.txt --replace \ - '(''${LLVM_MAIN_SRC_DIR}/' '(' - mkdir -p libunwind/include - tar -xf "${libunwind.src}" --wildcards -C libunwind/include --strip-components=2 "libunwind-*/include/" - '' + lib.optionalString (lib.versions.major release_version == "13") '' + postPatch = lib.optionalString (lib.versionOlder release_version "14") '' substituteInPlace MachO/CMakeLists.txt --replace \ '(''${LLVM_MAIN_SRC_DIR}/' '(../' ''; @@ -45,9 +39,7 @@ stdenv.mkDerivation (rec { src = src'; - sourceRoot = - if lib.versionOlder release_version "13" then null - else "${src.name}/${pname}"; + sourceRoot = "${src.name}/${pname}"; nativeBuildInputs = [ cmake ] ++ lib.optional (lib.versionAtLeast release_version "15") ninja; buildInputs = [ libllvm libxml2 ]; diff --git a/pkgs/development/compilers/llvm/common/llvm/default.nix b/pkgs/development/compilers/llvm/common/llvm/default.nix index bd384108408c..be106b3db295 100644 --- a/pkgs/development/compilers/llvm/common/llvm/default.nix +++ b/pkgs/development/compilers/llvm/common/llvm/default.nix @@ -4,7 +4,6 @@ , pkgsBuildBuild , pollyPatches ? [] , patches ? [] -, polly_src ? null , src ? null , monorepoSrc ? null , runCommand @@ -107,8 +106,7 @@ stdenv.mkDerivation (finalAttrs: { src = src'; patches = patches'; - sourceRoot = if lib.versionOlder release_version "13" then null - else "${finalAttrs.src.name}/${pname}"; + sourceRoot = "${finalAttrs.src.name}/${pname}"; outputs = [ "out" "lib" "dev" "python" ]; @@ -493,18 +491,7 @@ stdenv.mkDerivation (finalAttrs: { postPatch = null; postInstall = null; -})) // lib.optionalAttrs (lib.versionOlder release_version "13") { - inherit polly_src; - - unpackPhase = '' - unpackFile $src - mv llvm-${release_version}* llvm - sourceRoot=$PWD/llvm - '' + optionalString enablePolly '' - unpackFile $polly_src - mv polly-* $sourceRoot/tools/polly - ''; -} // lib.optionalAttrs (lib.versionAtLeast release_version "13") { +})) // lib.optionalAttrs (lib.versionAtLeast release_version "13") { nativeCheckInputs = [ which ] ++ lib.optional (stdenv.hostPlatform.isDarwin && lib.versionAtLeast release_version "15") sysctl; } // lib.optionalAttrs (lib.versionOlder release_version "15") { # hacky fix: created binaries need to be run before installation diff --git a/pkgs/development/compilers/llvm/common/openmp/default.nix b/pkgs/development/compilers/llvm/common/openmp/default.nix index 1ad5948edb86..1fe089938f03 100644 --- a/pkgs/development/compilers/llvm/common/openmp/default.nix +++ b/pkgs/development/compilers/llvm/common/openmp/default.nix @@ -34,9 +34,7 @@ stdenv.mkDerivation (rec { src = src'; - sourceRoot = - if lib.versionOlder release_version "13" then null - else "${src.name}/${pname}"; + sourceRoot = "${src.name}/${pname}"; outputs = [ "out" ] ++ lib.optionals (lib.versionAtLeast release_version "14") [ "dev" ]; diff --git a/pkgs/development/compilers/llvm/default.nix b/pkgs/development/compilers/llvm/default.nix index 24a028e77974..726b54a9d66e 100644 --- a/pkgs/development/compilers/llvm/default.nix +++ b/pkgs/development/compilers/llvm/default.nix @@ -22,6 +22,7 @@ }@packageSetArgs: let versions = { + "12.0.1".officialRelease.sha256 = "08s5w2db9imb2yaqsvxs6pg21csi1cf6wa35rf8x6q07mam7j8qv"; "13.0.1".officialRelease.sha256 = "06dv6h5dmvzdxbif2s8njki6h32796v368dyb5945x8gjj72xh7k"; "14.0.6".officialRelease.sha256 = "sha256-vffu4HilvYwtzwgq+NlS26m65DGbp6OSSne2aje1yJE="; "15.0.7".officialRelease.sha256 = "sha256-wjuZQyXQ/jsmvy6y1aksCcEDXGBjuhpgngF3XQJ/T4s="; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9bd1308e1537..739374ab9f19 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15058,16 +15058,10 @@ with pkgs; stdenv.targetPlatform)); in pkgs.${"llvmPackages_${minSupported}"}; - llvmPackages_12 = recurseIntoAttrs (callPackage ../development/compilers/llvm/12 { - inherit (stdenvAdapters) overrideCC; - buildLlvmTools = buildPackages.llvmPackages_12.tools; - targetLlvmLibraries = targetPackages.llvmPackages_12.libraries or llvmPackages_12.libraries; - targetLlvm = targetPackages.llvmPackages_12.llvm or llvmPackages_12.llvm; - }); - inherit (rec { llvmPackagesSet = recurseIntoAttrs (callPackages ../development/compilers/llvm { }); + llvmPackages_12 = llvmPackagesSet."12"; llvmPackages_13 = llvmPackagesSet."13"; llvmPackages_14 = llvmPackagesSet."14"; llvmPackages_15 = llvmPackagesSet."15"; @@ -15086,7 +15080,8 @@ with pkgs; lldb_19 = llvmPackages_19.lldb; llvm_19 = llvmPackages_19.llvm; bolt_19 = llvmPackages_19.bolt; - }) llvmPackages_13 + }) llvmPackages_12 + llvmPackages_13 llvmPackages_14 llvmPackages_15 llvmPackages_16 From 8408b91e8dae5b31807f43da351b3271316fb165 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 12 Oct 2024 18:31:24 +0200 Subject: [PATCH 036/693] llvmPackages_12.compiler-rt: move codesign patch into versioned dir All LLVM versions < 12 have been removed, so this patch can live in the versioned directory, simplifying the patch list in the process. --- .../compiler-rt/codesign.patch} | 0 pkgs/development/compilers/llvm/common/default.nix | 10 +++------- 2 files changed, 3 insertions(+), 7 deletions(-) rename pkgs/development/compilers/llvm/{common/compiler-rt/7-12-codesign.patch => 12/compiler-rt/codesign.patch} (100%) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/7-12-codesign.patch b/pkgs/development/compilers/llvm/12/compiler-rt/codesign.patch similarity index 100% rename from pkgs/development/compilers/llvm/common/compiler-rt/7-12-codesign.patch rename to pkgs/development/compilers/llvm/12/compiler-rt/codesign.patch diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 5264dd05f012..8349e506c666 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -1002,13 +1002,9 @@ let ); compiler-rtPatches = - lib.optionals (lib.versions.major metadata.release_version == "12") [ - # Revert compiler-rt commit that makes codesign mandatory - ./compiler-rt/7-12-codesign.patch - ] - ++ lib.optional ( - lib.versionAtLeast metadata.release_version "13" && lib.versionOlder metadata.release_version "15" - ) (metadata.getVersionFile "compiler-rt/codesign.patch") # Revert compiler-rt commit that makes codesign mandatory + lib.optional (lib.versionOlder metadata.release_version "15") ( + metadata.getVersionFile "compiler-rt/codesign.patch" + ) # Revert compiler-rt commit that makes codesign mandatory ++ [ (metadata.getVersionFile "compiler-rt/X86-support-extension.patch") # Add support for i486 i586 i686 by reusing i386 config ] From 37437849deb116c22c01191f5ecbef2c7b30f1f7 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 12 Oct 2024 18:36:45 +0200 Subject: [PATCH 037/693] llvmPackages_12.clang: use nostdlibinc patch instead of sed command Seems like the patch we've written for LLVM 13 and above also works for LLVM 12 which seems a little more robust. --- .../compilers/llvm/common/clang/default.nix | 12 +----------- pkgs/development/compilers/llvm/common/default.nix | 4 +--- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/clang/default.nix b/pkgs/development/compilers/llvm/common/clang/default.nix index f842e11530e2..44e13c48fd4b 100644 --- a/pkgs/development/compilers/llvm/common/clang/default.nix +++ b/pkgs/development/compilers/llvm/common/clang/default.nix @@ -78,17 +78,7 @@ let substituteInPlace lib/Driver/ToolChains/Darwin.cpp \ --replace-fail 'StringRef P = llvm::sys::path::parent_path(D.Dir);' 'StringRef P = "${lib.getLib libllvm}";' (cd tools && ln -s ../../clang-tools-extra extra) - '' + lib.optionalString ( - lib.versionOlder release_version "13" - # See the comment on the `add-nostdlibinc-flag.patch` patch in - # `../default.nix` for why we skip Darwin here. - && (!stdenv.hostPlatform.isDarwin || !stdenv.targetPlatform.isDarwin - ) '' - sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' \ - -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' \ - lib/Driver/ToolChains/*.cpp - '' - + lib.optionalString (lib.versionOlder release_version "13") '' + '' + lib.optionalString (lib.versionOlder release_version "13") '' substituteInPlace tools/extra/clangd/quality/CompletionModel.cmake \ --replace ' ''${CMAKE_SOURCE_DIR}/../clang-tools-extra' ' ''${CMAKE_SOURCE_DIR}/tools/extra' '' diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 8349e506c666..fa1f61bfd5d1 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -555,9 +555,7 @@ let # compilers breaking libclang when we can do Linux‐to‐Darwin # cross‐compilation again. ++ lib.optional ( - # TODO: This also applies for clang == 12, do we need it? - lib.versionAtLeast metadata.release_version "13" && - (!args.stdenv.hostPlatform.isDarwin || !args.stdenv.targetPlatform.isDarwin) + !args.stdenv.hostPlatform.isDarwin || !args.stdenv.targetPlatform.isDarwin ) ./clang/add-nostdlibinc-flag.patch ++ [ (substituteAll { From 82b28965d4cce19bb41d4cf7a187596d47b3a23e Mon Sep 17 00:00:00 2001 From: misilelab Date: Sat, 9 Nov 2024 12:47:21 +0900 Subject: [PATCH 038/693] uv: 0.4.30 -> 0.5.1 Signed-off-by: misilelab --- pkgs/by-name/uv/uv/Cargo.lock | 37 ++++++++++++++++++++-------------- pkgs/by-name/uv/uv/package.nix | 4 ++-- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/uv/uv/Cargo.lock b/pkgs/by-name/uv/uv/Cargo.lock index 651d4c41cc0b..3d75a6f0f9fe 100644 --- a/pkgs/by-name/uv/uv/Cargo.lock +++ b/pkgs/by-name/uv/uv/Cargo.lock @@ -914,15 +914,6 @@ dependencies = [ "crypto-common", ] -[[package]] -name = "directories" -version = "5.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a49173b84e034382284f27f1af4dcbbd231ffa358c0fe316541a7337f376a35" -dependencies = [ - "dirs-sys", -] - [[package]] name = "dirs" version = "5.0.1" @@ -3523,6 +3514,17 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eddb6b06d20fba9ed21fca3d696ee1b6e870bca0bcf9fa2971f6ae2436de576a" +[[package]] +name = "tar" +version = "0.4.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6" +dependencies = [ + "filetime", + "libc", + "xattr", +] + [[package]] name = "target-lexicon" version = "0.12.16" @@ -4172,7 +4174,7 @@ checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" [[package]] name = "uv" -version = "0.4.30" +version = "0.5.1" dependencies = [ "anstream", "anyhow", @@ -4204,6 +4206,7 @@ dependencies = [ "rayon", "regex", "reqwest", + "rkyv", "rustc-hash", "serde", "serde_json", @@ -4259,6 +4262,7 @@ dependencies = [ "uv-virtualenv", "uv-warnings", "uv-workspace", + "walkdir", "which", "zip", ] @@ -4320,14 +4324,17 @@ name = "uv-build-backend" version = "0.1.0" dependencies = [ "csv", + "flate2", "fs-err", "glob", + "globset", "indoc", "insta", "itertools 0.13.0", "serde", "sha2", "spdx", + "tar", "tempfile", "thiserror", "toml", @@ -4583,8 +4590,6 @@ dependencies = [ name = "uv-dirs" version = "0.0.1" dependencies = [ - "directories", - "dirs-sys", "etcetera", "uv-static", ] @@ -4791,7 +4796,9 @@ dependencies = [ "reflink-copy", "regex", "rustc-hash", + "same-file", "schemars", + "self-replace", "serde", "serde_json", "sha2", @@ -5220,7 +5227,7 @@ version = "0.0.1" dependencies = [ "assert_fs", "clap", - "dirs-sys", + "etcetera", "fs-err", "indoc", "schemars", @@ -5337,7 +5344,7 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.4.30" +version = "0.5.1" [[package]] name = "uv-virtualenv" @@ -5616,7 +5623,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.48.0", ] [[package]] diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index 2652cbbc3e89..e552ae5de560 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -12,14 +12,14 @@ python3Packages.buildPythonApplication rec { pname = "uv"; - version = "0.4.30"; + version = "0.5.1"; pyproject = true; src = fetchFromGitHub { owner = "astral-sh"; repo = "uv"; rev = "refs/tags/${version}"; - hash = "sha256-xy/fgy3+YvSdfq5ngPVbAmRpYyJH27Cft5QxBwFQumU="; + hash = "sha256-K70Vj3Y4+jZSMUkgM9mX8GYn8cZ3BieJ+5x/VbSK0C8="; }; cargoDeps = rustPlatform.importCargoLock { From 457241dab4b6e9423009d2bd9c1db6fbcaef209a Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 31 Oct 2024 17:08:57 +0100 Subject: [PATCH 039/693] python3Packages.pytest-xdist: change pytestFlagsArray in preCheck hook We don't want to depend on bash eval in pytestFlagsArray to be able to remove it, thus move it to bash code in preCheck. --- pkgs/development/python-modules/pytest-xdist/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pytest-xdist/default.nix b/pkgs/development/python-modules/pytest-xdist/default.nix index 555c84031144..972d0bdf23c7 100644 --- a/pkgs/development/python-modules/pytest-xdist/default.nix +++ b/pkgs/development/python-modules/pytest-xdist/default.nix @@ -45,10 +45,10 @@ buildPythonPackage rec { setproctitle = [ setproctitle ]; }; - pytestFlagsArray = [ - # pytest can already use xdist at this point - "--numprocesses=$NIX_BUILD_CORES" - ]; + # pytest can already use xdist at this point + preCheck = '' + appendToVar pytestFlagsArray "--numprocesses=$NIX_BUILD_CORES" + ''; # access file system disabledTests = [ From 49433de9829074148bacd570bb0d45fa85a5f8dc Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 9 Nov 2024 16:16:24 +0000 Subject: [PATCH 040/693] harfbuzz: 10.0.1 -> 10.1.0 Changes: https://github.com/harfbuzz/harfbuzz/releases/tag/10.1.0 --- pkgs/development/libraries/harfbuzz/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/harfbuzz/default.nix b/pkgs/development/libraries/harfbuzz/default.nix index 1ff6d193268e..124c507f5a63 100644 --- a/pkgs/development/libraries/harfbuzz/default.nix +++ b/pkgs/development/libraries/harfbuzz/default.nix @@ -33,11 +33,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "harfbuzz${lib.optionalString withIcu "-icu"}"; - version = "10.0.1"; + version = "10.1.0"; src = fetchurl { url = "https://github.com/harfbuzz/harfbuzz/releases/download/${finalAttrs.version}/harfbuzz-${finalAttrs.version}.tar.xz"; - hash = "sha256-sssTvTUZBMuQOPkH3A3uCuBxJwYSQv41VrJ5XE6XSPw="; + hash = "sha256-bONSDy0ImjPO8PxIMhM0uOC3IUH2p2Nxmqrs0neey4I="; }; postPatch = '' From 729a3efc568d7beb3a3aae3fb4055cd2d8dbc4d1 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 30 Oct 2024 20:37:17 +0100 Subject: [PATCH 041/693] chipsec: pass --build-libs without relying on bash eval of setupPyBuildFlags We'd like to remove bash eval for setupByBuildFlags, thus use appendToVar in the hook instead. Tested that linuxPackages.chipsec still builds, including the driver in the right place. --- pkgs/tools/security/chipsec/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/chipsec/default.nix b/pkgs/tools/security/chipsec/default.nix index 73c1ade5bd63..f38764b79163 100644 --- a/pkgs/tools/security/chipsec/default.nix +++ b/pkgs/tools/security/chipsec/default.nix @@ -44,6 +44,7 @@ python3.pkgs.buildPythonApplication rec { preBuild = lib.optionalString withDriver '' export CHIPSEC_BUILD_LIB=$(mktemp -d) mkdir -p $CHIPSEC_BUILD_LIB/chipsec/helper/linux + appendToVar setupPyBuildFlags "--build-lib=$CHIPSEC_BUILD_LIB" ''; env.NIX_CFLAGS_COMPILE = toString [ @@ -57,9 +58,7 @@ python3.pkgs.buildPythonApplication rec { $out/${python3.pkgs.python.sitePackages}/drivers/linux/chipsec.ko ''; - setupPyBuildFlags = [ - "--build-lib=$CHIPSEC_BUILD_LIB" - ] ++ lib.optionals (!withDriver) [ + setupPyBuildFlags = lib.optionals (!withDriver) [ "--skip-driver" ]; From 3f9135d88bbc9b26d81027d4e6977f796c255100 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 30 Oct 2024 21:50:35 +0100 Subject: [PATCH 042/693] python3Packages: disable pytest cache Instead of putting pytest's cache in a temporary directory, which will never be re-used anyway - let's just disable it outright. This avoids depending on bash eval in pytestFlagsArray, which we'd like to move away from. psycopg's testsuite somehow depends explicitly on this cache, thus we keep it enabled there. --- .../python-modules/certbot-dns-cloudflare/default.nix | 2 +- pkgs/development/python-modules/certbot-dns-google/default.nix | 2 +- pkgs/development/python-modules/certbot-dns-ovh/default.nix | 2 +- .../development/python-modules/certbot-dns-rfc2136/default.nix | 2 +- .../development/python-modules/certbot-dns-route53/default.nix | 2 +- pkgs/development/python-modules/certbot/default.nix | 2 +- pkgs/development/python-modules/psycopg/default.nix | 3 +-- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix b/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix index 1d0a48549c16..d610e7ec573a 100644 --- a/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix +++ b/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-o cache_dir=$(mktemp -d)" + "-p no:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution "-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'" diff --git a/pkgs/development/python-modules/certbot-dns-google/default.nix b/pkgs/development/python-modules/certbot-dns-google/default.nix index 8e3f51299081..1061502b7bac 100644 --- a/pkgs/development/python-modules/certbot-dns-google/default.nix +++ b/pkgs/development/python-modules/certbot-dns-google/default.nix @@ -27,7 +27,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-o cache_dir=$(mktemp -d)" + "-p no:cacheprovider" # https://github.com/certbot/certbot/issues/9988 "-Wignore::DeprecationWarning" ]; diff --git a/pkgs/development/python-modules/certbot-dns-ovh/default.nix b/pkgs/development/python-modules/certbot-dns-ovh/default.nix index 4858b5827969..10ae8527d1d7 100644 --- a/pkgs/development/python-modules/certbot-dns-ovh/default.nix +++ b/pkgs/development/python-modules/certbot-dns-ovh/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-o cache_dir=$(mktemp -d)" + "-p no:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution "-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'" diff --git a/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix b/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix index d4883bd2ad02..08329f625ebe 100644 --- a/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix +++ b/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-o cache_dir=$(mktemp -d)" + "-p no:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution "-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'" diff --git a/pkgs/development/python-modules/certbot-dns-route53/default.nix b/pkgs/development/python-modules/certbot-dns-route53/default.nix index 798631b0c79e..b7ac522bb8fc 100644 --- a/pkgs/development/python-modules/certbot-dns-route53/default.nix +++ b/pkgs/development/python-modules/certbot-dns-route53/default.nix @@ -23,7 +23,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-o cache_dir=$(mktemp -d)" + "-p no:cacheprovider" # Monitor https://github.com/certbot/certbot/issues/9606 for a solution "-W 'ignore:pkg_resources is deprecated as an API:DeprecationWarning'" diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix index f04d2b2a793b..bf8fc8333b40 100644 --- a/pkgs/development/python-modules/certbot/default.nix +++ b/pkgs/development/python-modules/certbot/default.nix @@ -72,7 +72,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-o cache_dir=$(mktemp -d)" + "-p no:cacheprovider" "-W" "ignore::DeprecationWarning" ]; diff --git a/pkgs/development/python-modules/psycopg/default.nix b/pkgs/development/python-modules/psycopg/default.nix index 3338ad86ce2e..ed02d3321da6 100644 --- a/pkgs/development/python-modules/psycopg/default.nix +++ b/pkgs/development/python-modules/psycopg/default.nix @@ -211,8 +211,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-o" - "cache_dir=$TMPDIR" + "-o cache_dir=.cache" "-m" "'not refcount and not timing and not flakey'" # pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect From 6af5508cbc487e236b00384613ac54c81301daa5 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 30 Oct 2024 22:22:42 +0100 Subject: [PATCH 043/693] python3Packages.numcodecs: avoid bash eval in pytestFlagsArray We can just cd to $out to let the tests run from that folder automatically. Additionally we get better test output, because the /nix/store component is missing from file names. --- pkgs/development/python-modules/numcodecs/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/numcodecs/default.nix b/pkgs/development/python-modules/numcodecs/default.nix index 403d5ea16051..e7d2a690f140 100644 --- a/pkgs/development/python-modules/numcodecs/default.nix +++ b/pkgs/development/python-modules/numcodecs/default.nix @@ -58,7 +58,8 @@ buildPythonPackage rec { ]; # https://github.com/NixOS/nixpkgs/issues/255262 - pytestFlagsArray = [ "$out/${python.sitePackages}/numcodecs" ]; + preCheck = "pushd $out"; + postCheck = "popd"; meta = { homepage = "https://github.com/zarr-developers/numcodecs"; From 7b55da73c009b92caa741b28a0d1451792528b33 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 8 Nov 2024 22:24:36 -0800 Subject: [PATCH 044/693] pkgsLLVM.tpm2-tss: fixup tests --- pkgs/development/libraries/tpm2-tss/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/tpm2-tss/default.nix b/pkgs/development/libraries/tpm2-tss/default.nix index bea611224444..e33d8f717955 100644 --- a/pkgs/development/libraries/tpm2-tss/default.nix +++ b/pkgs/development/libraries/tpm2-tss/default.nix @@ -78,7 +78,16 @@ stdenv.mkDerivation rec { --replace-fail '"libtpms.so"' '"${libtpms.out}/lib/libtpms.so"' \ --replace-fail '"libtpms.so.0"' '"${libtpms.out}/lib/libtpms.so.0"' done - ''; + '' + # tcti tests rely on mocking function calls, which appears not to be supported + # on clang + + lib.optionalString stdenv.cc.isClang '' + sed -i '/TESTS_UNIT / { + /test\/unit\/tcti-swtpm/d; + /test\/unit\/tcti-mssim/d; + /test\/unit\/tcti-device/d + }' Makefile-test.am + ''; configureFlags = lib.optionals doInstallCheck [ "--enable-unit" From a2090197fcb3c572cc8ab6e0be0833027a669a70 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 7 Nov 2024 06:54:34 +0000 Subject: [PATCH 045/693] hwdata: 0.388 -> 0.389 Changes: https://github.com/vcrhonek/hwdata/compare/v0.388...v0.389 --- pkgs/by-name/hw/hwdata/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/hw/hwdata/package.nix b/pkgs/by-name/hw/hwdata/package.nix index b03448f76288..bfe499f8e2f2 100644 --- a/pkgs/by-name/hw/hwdata/package.nix +++ b/pkgs/by-name/hw/hwdata/package.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "hwdata"; - version = "0.388"; + version = "0.389"; src = fetchFromGitHub { owner = "vcrhonek"; repo = "hwdata"; rev = "v${version}"; - hash = "sha256-MTXRvqhzNI4afOWLWY6bvv84Q/MXVTsn0w9awRIDAEU="; + hash = "sha256-w8rN9T0GwElkLmNLzROQtd7CdY0DcuCRUWxFtA2ekJc="; }; configureFlags = [ "--datadir=${placeholder "out"}/share" ]; From e65ff18e52b093cda46d922521778d1aea9e97c0 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 24 Oct 2024 07:02:39 +0100 Subject: [PATCH 046/693] s2n-tls: 1.5.5 -> 1.5.7 Changes: - https://github.com/aws/s2n-tls/releases/tag/v1.5.6 - https://github.com/aws/s2n-tls/releases/tag/v1.5.7 --- pkgs/by-name/s2/s2n-tls/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/s2/s2n-tls/package.nix b/pkgs/by-name/s2/s2n-tls/package.nix index d2d8de6b4306..656a02a4147e 100644 --- a/pkgs/by-name/s2/s2n-tls/package.nix +++ b/pkgs/by-name/s2/s2n-tls/package.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { pname = "s2n-tls"; - version = "1.5.5"; + version = "1.5.7"; src = fetchFromGitHub { owner = "aws"; repo = "s2n-tls"; rev = "v${version}"; - hash = "sha256-vIwhV8kFP7sN0tz8ZE3bDGD/v08pq2PCl1ea5w+ejHg="; + hash = "sha256-VexgPuuGlBWnlWildlyJd/bVZMS3PNhBnQllsYXYC8I="; }; nativeBuildInputs = [ cmake ]; From 2c89bfca9c6b7202ba933f6be7720e77aeadd1cc Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 18 Oct 2024 06:40:10 +0100 Subject: [PATCH 047/693] libtirpc: 1.3.5 -> 1.3.6 Changes: https://git.linux-nfs.org/?p=steved/libtirpc.git;a=shortlog;h=refs/tags/libtirpc-1-3-6 --- pkgs/by-name/li/libtirpc/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libtirpc/package.nix b/pkgs/by-name/li/libtirpc/package.nix index 1a1cf14c9ea8..369eddff60d5 100644 --- a/pkgs/by-name/li/libtirpc/package.nix +++ b/pkgs/by-name/li/libtirpc/package.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "libtirpc"; - version = "1.3.5"; + version = "1.3.6"; src = fetchurl { url = "http://git.linux-nfs.org/?p=steved/libtirpc.git;a=snapshot;h=refs/tags/libtirpc-${lib.replaceStrings ["."] ["-"] version};sf=tgz"; - hash = "sha256-bq2zfqfMJsJ6gezLCUTlNiRXJhFxFslY4iW+4kpOPVE="; + hash = "sha256-pTUfqnfHOQKCV0svKF/lo4hq1GlD/+YFjXP2CNygx9I="; name = "${pname}-${version}.tar.gz"; }; From b386ef248fa182ad0a9641036ffe6028e6a6d85c Mon Sep 17 00:00:00 2001 From: ajs124 Date: Wed, 2 Oct 2024 19:38:17 +0200 Subject: [PATCH 048/693] thin-provisioning-tools: 1.0.12 -> 1.1.0 https://github.com/jthornber/thin-provisioning-tools/blob/v1.1.0/CHANGES --- .../th/thin-provisioning-tools/Cargo.lock | 601 ++++++++++++++---- .../th/thin-provisioning-tools/package.nix | 16 +- 2 files changed, 474 insertions(+), 143 deletions(-) diff --git a/pkgs/by-name/th/thin-provisioning-tools/Cargo.lock b/pkgs/by-name/th/thin-provisioning-tools/Cargo.lock index 8f9a97c8733e..a21223c91a81 100644 --- a/pkgs/by-name/th/thin-provisioning-tools/Cargo.lock +++ b/pkgs/by-name/th/thin-provisioning-tools/Cargo.lock @@ -10,24 +10,67 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aho-corasick" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ "memchr", ] [[package]] -name = "anstyle" -version = "1.0.6" +name = "anstream" +version = "0.6.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" +checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" + +[[package]] +name = "anstyle-parse" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" +dependencies = [ + "windows-sys 0.52.0", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" +dependencies = [ + "anstyle", + "windows-sys 0.52.0", +] [[package]] name = "anyhow" -version = "1.0.80" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "atty" @@ -42,15 +85,35 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "base64" -version = "0.21.7" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bindgen" +version = "0.69.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0" +dependencies = [ + "bitflags 2.6.0", + "cexpr", + "clang-sys", + "itertools", + "lazy_static", + "lazycell", + "proc-macro2", + "quote", + "regex", + "rustc-hash", + "shlex", + "syn 2.0.72", +] [[package]] name = "bitflags" @@ -60,15 +123,15 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.4.2" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "bytemuck" -version = "1.14.3" +version = "1.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2ef034f05691a48569bd920a96c81b9d91bbad1ab5ac7c4616c1f6ef36cb79f" +checksum = "102087e286b4677862ea56cf8fc58bb2cdfa8725c40ffb80fe3a008eb7f2fc83" [[package]] name = "byteorder" @@ -82,6 +145,15 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53" +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] + [[package]] name = "cfg-if" version = "1.0.0" @@ -89,19 +161,36 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] -name = "clap" -version = "4.5.1" +name = "cfg_aliases" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c918d541ef2913577a0f9566e9ce27cb35b6df072075769e0b26cb5a554520da" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "clang-sys" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" +dependencies = [ + "glob", + "libc", + "libloading", +] + +[[package]] +name = "clap" +version = "4.5.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbb260a053428790f3de475e304ff84cdbc4face759ea7a3e64c1edd938a7fc" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.5.1" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f3e7391dad68afb0c2ede1bf619f579a3dc9c2ec67f089baa397123a2f3d1eb" +checksum = "64b17d7ea74e9f833c7dbf2cbe4fb12ff26783eda4782a8975b72f895c9b4d99" dependencies = [ "anstyle", "clap_lex", @@ -110,9 +199,15 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.0" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" +checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" + +[[package]] +name = "colorchoice" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" [[package]] name = "console" @@ -124,32 +219,59 @@ dependencies = [ "lazy_static", "libc", "unicode-width", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] name = "crc32c" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89254598aa9b9fa608de44b3ae54c810f0f06d755e24c50177f1f8f31ff50ce2" +checksum = "3a47af21622d091a8f0fb295b88bc886ac74efcc613efc19f5d0b21de5c89e47" dependencies = [ "rustc_version", ] [[package]] name = "crc32fast" -version = "1.4.0" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if", ] [[package]] name = "data-encoding" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" +checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" + +[[package]] +name = "devicemapper" +version = "0.34.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59209790c5d189070a52937581950947207e740fadc87f68af14f34d0eb333df" +dependencies = [ + "bitflags 2.6.0", + "devicemapper-sys", + "env_logger 0.11.5", + "log", + "nix", + "once_cell", + "rand", + "retry", + "semver", + "serde", +] + +[[package]] +name = "devicemapper-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d6681f5413e2094480381a97b8299f548c0579f07095ee20fe58e0a28cb34b5" +dependencies = [ + "bindgen", +] [[package]] name = "downcast" @@ -169,12 +291,28 @@ dependencies = [ "shared_child", ] +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + [[package]] name = "encode_unicode" version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" +[[package]] +name = "env_filter" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" +dependencies = [ + "log", + "regex", +] + [[package]] name = "env_logger" version = "0.8.4" @@ -186,13 +324,26 @@ dependencies = [ ] [[package]] -name = "errno" -version = "0.3.8" +name = "env_logger" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" +checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "humantime", + "log", +] + +[[package]] +name = "errno" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ "libc", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -203,9 +354,9 @@ checksum = "de853764b47027c2e862a995c34978ffa63c1501f2e15f987ba11bd4f9bba193" [[package]] name = "fastrand" -version = "2.0.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" +checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "fixedbitset" @@ -215,9 +366,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.28" +version = "1.0.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" +checksum = "7f211bbe8e69bbd0cfdea405084f128ae8b4aaa6b0b522fc8f2b009084797920" dependencies = [ "crc32fast", "miniz_oxide", @@ -231,15 +382,21 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", "wasi", ] +[[package]] +name = "glob" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" + [[package]] name = "hermit-abi" version = "0.1.19" @@ -251,9 +408,15 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.3.6" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd5256b483761cd23699d0da46cc6fd2ee3be420bbe6d020ae4a091e70b7e9fd" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indicatif" @@ -270,9 +433,9 @@ dependencies = [ [[package]] name = "instant" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ "cfg-if", ] @@ -287,34 +450,75 @@ dependencies = [ ] [[package]] -name = "lazy_static" -version = "1.4.0" +name = "is_terminal_polyfill" +version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" + +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "lazycell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.153" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" + +[[package]] +name = "libloading" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" +dependencies = [ + "cfg-if", + "windows-targets", +] + +[[package]] +name = "libudev-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c8469b4a23b962c1396b9b451dda50ef5b283e8dd309d69033475fa9b334324" +dependencies = [ + "libc", + "pkg-config", +] [[package]] name = "linux-raw-sys" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "log" -version = "0.4.20" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "minimal-lexical" @@ -324,23 +528,22 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" +checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" dependencies = [ "adler", ] [[package]] name = "mockall" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43766c2b5203b10de348ffe19f7e54564b64f3d6018ff7648d1e2d6d3a0f0a48" +checksum = "d4c28b3fb6d753d28c20e826cd46ee611fda1cf3cde03a443a974043247c065a" dependencies = [ "cfg-if", "downcast", "fragile", - "lazy_static", "mockall_derive", "predicates", "predicates-tree", @@ -348,14 +551,26 @@ dependencies = [ [[package]] name = "mockall_derive" -version = "0.12.1" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af7cbce79ec385a1d4f54baa90a76401eb15d9cab93685f62e7e9f942aa00ae2" +checksum = "341014e7f530314e9a1fdbc7400b244efea7122662c96bfa248c31da5bfb2020" dependencies = [ "cfg-if", "proc-macro2", "quote", - "syn 2.0.50", + "syn 2.0.72", +] + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags 2.6.0", + "cfg-if", + "cfg_aliases", + "libc", ] [[package]] @@ -376,14 +591,14 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.50", + "syn 2.0.72", ] [[package]] name = "num-traits" -version = "0.2.18" +version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ "autocfg", ] @@ -394,7 +609,7 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.3.6", + "hermit-abi 0.3.9", "libc", ] @@ -418,31 +633,40 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "os_pipe" -version = "1.1.5" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57119c3b893986491ec9aa85056780d3a0f3cf4da7cc09dd3650dbd6c6738fb9" +checksum = "5ffd2b0a5634335b135d5728d84c5e0fd726954b87111f7506a61c502280d982" dependencies = [ "libc", - "windows-sys", + "windows-sys 0.59.0", ] [[package]] -name = "portable-atomic" -version = "1.6.0" +name = "pkg-config" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" +checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" + +[[package]] +name = "portable-atomic" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da544ee218f0d287a911e9c99a39a8c9bc8fcad3cb8db5959940044ecfc67265" [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] [[package]] name = "predicates" -version = "3.1.0" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b87bfd4605926cdfefc1c3b5f8fe560e3feca9d5552cf68c466d3d8236c7e8" +checksum = "7e9086cc7640c29a356d1a29fd134380bee9d8f79a17410aa76e7ad295f42c97" dependencies = [ "anstyle", "predicates-core", @@ -450,15 +674,15 @@ dependencies = [ [[package]] name = "predicates-core" -version = "1.0.6" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" +checksum = "ae8177bee8e75d6846599c6b9ff679ed51e882816914eec639944d7c9aa11931" [[package]] name = "predicates-tree" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" +checksum = "41b740d195ed3166cd147c8047ec98db0e22ec019eb8eeb76d343b795304fb13" dependencies = [ "predicates-core", "termtree", @@ -466,18 +690,18 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.78" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ "unicode-ident", ] [[package]] name = "quick-xml" -version = "0.31.0" +version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33" +checksum = "96a05e2e8efddfa51a84ca47cec303fac86c8541b686d37cac5efc0e094417bc" dependencies = [ "memchr", ] @@ -488,7 +712,7 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "588f6378e4dd99458b60ec275b4477add41ce4fa9f64dcba6f15adccb19b50d6" dependencies = [ - "env_logger", + "env_logger 0.8.4", "log", "rand", ] @@ -506,9 +730,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -545,9 +769,9 @@ dependencies = [ [[package]] name = "rangemap" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "795915a3930a5d6bafd9053d37602fea3e61be2e5d4d788983a8ba9654c1c6f2" +checksum = "f60fcc7d6849342eff22c4350c8b9a989ee8ceabc4b481253e8946b9fe83d684" [[package]] name = "redox_syscall" @@ -566,9 +790,9 @@ checksum = "20145670ba436b55d91fc92d25e71160fbfbdd57831631c8d7d36377a476f1cb" [[package]] name = "regex" -version = "1.10.3" +version = "1.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" +checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" dependencies = [ "aho-corasick", "memchr", @@ -578,9 +802,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.5" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", @@ -589,9 +813,15 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" + +[[package]] +name = "retry" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9166d72162de3575f950507683fac47e30f6f2c3836b71b7fbc61aa517c9c5f4" [[package]] name = "rio" @@ -603,14 +833,20 @@ dependencies = [ [[package]] name = "roaring" -version = "0.10.3" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1c77081a55300e016cb86f2864415b7518741879db925b8d488a0ee0d2da6bf" +checksum = "8f4b84ba6e838ceb47b41de5194a60244fac43d9fe03b71dbe8c5a201081d6d1" dependencies = [ "bytemuck", "byteorder", ] +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + [[package]] name = "rustc_version" version = "0.4.0" @@ -622,15 +858,15 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.31" +version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ - "bitflags 2.4.2", + "bitflags 2.6.0", "errno", "libc", "linux-raw-sys", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -641,25 +877,51 @@ checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" [[package]] name = "semver" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] -name = "shared_child" -version = "1.0.0" +name = "serde" +version = "1.0.204" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0d94659ad3c2137fef23ae75b03d5241d633f8acded53d672decfa0e6e0caef" +checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" dependencies = [ - "libc", - "winapi", + "serde_derive", ] [[package]] -name = "strsim" -version = "0.11.0" +name = "serde_derive" +version = "1.0.204" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01" +checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] + +[[package]] +name = "shared_child" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09fa9338aed9a1df411814a5b2252f7cd206c55ae9bf2fa763f8de84603aa60c" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "syn" @@ -674,9 +936,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.50" +version = "2.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74f1bdc9872430ce9b75da68329d1c1746faf50ffac5f19e02b71e37ff881ffb" +checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" dependencies = [ "proc-macro2", "quote", @@ -685,14 +947,15 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.10.0" +version = "3.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67" +checksum = "b8fcd239983515c23a32fb82099f97d0b11b8c72f654ed659363a95c3dad7a53" dependencies = [ "cfg-if", "fastrand", + "once_cell", "rustix", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] @@ -715,7 +978,7 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "thinp" -version = "1.0.12" +version = "1.1.0" dependencies = [ "anyhow", "atty", @@ -724,6 +987,7 @@ dependencies = [ "clap", "crc32c", "data-encoding", + "devicemapper", "duct", "exitcode", "fixedbitset", @@ -750,26 +1014,27 @@ dependencies = [ "thiserror", "threadpool", "tui", + "udev", ] [[package]] name = "thiserror" -version = "1.0.57" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" +checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.57" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" +checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", - "syn 2.0.50", + "syn 2.0.72", ] [[package]] @@ -794,6 +1059,17 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "udev" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebdbbd670373442a12fe9ef7aeb53aec4147a5a27a00bbc3ab639f08f48191a" +dependencies = [ + "libc", + "libudev-sys", + "pkg-config", +] + [[package]] name = "unicode-ident" version = "1.0.12" @@ -808,9 +1084,15 @@ checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "wasi" @@ -850,14 +1132,24 @@ dependencies = [ ] [[package]] -name = "windows-targets" -version = "0.52.3" +name = "windows-sys" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d380ba1dc7187569a8a9e91ed34b8ccfc33123bbacb8c0aed2d1ad7f3ef2dc5f" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ "windows_aarch64_gnullvm", "windows_aarch64_msvc", "windows_i686_gnu", + "windows_i686_gnullvm", "windows_i686_msvc", "windows_x86_64_gnu", "windows_x86_64_gnullvm", @@ -866,42 +1158,69 @@ dependencies = [ [[package]] name = "windows_aarch64_gnullvm" -version = "0.52.3" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68e5dcfb9413f53afd9c8f86e56a7b4d86d9a2fa26090ea2dc9e40fba56c6ec6" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" -version = "0.52.3" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dab469ebbc45798319e69eebf92308e541ce46760b49b18c6b3fe5e8965b30f" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" -version = "0.52.3" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a4e9b6a7cac734a8b4138a4e1044eac3404d8326b6c0f939276560687a033fb" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" -version = "0.52.3" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28b0ec9c422ca95ff34a78755cfa6ad4a51371da2a5ace67500cf7ca5f232c58" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" -version = "0.52.3" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "704131571ba93e89d7cd43482277d6632589b18ecf4468f591fbae0a8b101614" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" -version = "0.52.3" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42079295511643151e98d61c38c0acc444e52dd42ab456f7ccfd5152e8ecf21c" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" -version = "0.52.3" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0770833d60a970638e989b3fa9fd2bb1aaadcf88963d1659fd7d9990196ed2d6" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.72", +] diff --git a/pkgs/by-name/th/thin-provisioning-tools/package.nix b/pkgs/by-name/th/thin-provisioning-tools/package.nix index a386a46c40f1..08c04f005ccc 100644 --- a/pkgs/by-name/th/thin-provisioning-tools/package.nix +++ b/pkgs/by-name/th/thin-provisioning-tools/package.nix @@ -1,19 +1,31 @@ { lib , rustPlatform +, pkg-config +, udev +, lvm2 , fetchFromGitHub , nixosTests }: rustPlatform.buildRustPackage rec { pname = "thin-provisioning-tools"; - version = "1.0.12"; + version = "1.1.0"; src = fetchFromGitHub { owner = "jthornber"; repo = "thin-provisioning-tools"; rev = "v${version}"; - hash = "sha256-wliyTWo3iOonqf4UW50V5co0RQlc75VwLofF9FHV2LI="; + hash = "sha256-gpUiLUdg+EpVkJzDg43gI5oXhy611QwndwZZVVgg4Lg="; }; + nativeBuildInputs = [ + pkg-config + rustPlatform.bindgenHook + ]; + buildInputs = [ + udev + lvm2 + ]; + cargoLock = { lockFile = ./Cargo.lock; outputHashes = { From 44b5d849aab9c99d947406f3c48e8eaad6a6eda3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 3 Oct 2024 04:01:46 +0000 Subject: [PATCH 049/693] libnats-c: 3.8.2 -> 3.9.1 --- pkgs/by-name/li/libnats-c/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libnats-c/package.nix b/pkgs/by-name/li/libnats-c/package.nix index 5d641a386344..d5cbc6e5fdd0 100644 --- a/pkgs/by-name/li/libnats-c/package.nix +++ b/pkgs/by-name/li/libnats-c/package.nix @@ -5,13 +5,13 @@ stdenv.mkDerivation rec { pname = "libnats"; - version = "3.8.2"; + version = "3.9.1"; src = fetchFromGitHub { owner = "nats-io"; repo = "nats.c"; rev = "v${version}"; - sha256 = "sha256-Tn88RRigL6C36AcFhUlLbLyqcqbBR8z6PKAQH4w/mYY="; + sha256 = "sha256-n6DKkUDNoxTJedrDc/i93Nw0Nq6PXWnFCcUQFL2BI30="; }; nativeBuildInputs = [ cmake ]; From 90b343e3e4d2971a36365bf0e3231c27094ab994 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 27 Oct 2024 14:18:57 +0000 Subject: [PATCH 050/693] kanata-with-cmd: 1.7.0-prerelease-1 -> 1.7.0 --- pkgs/by-name/ka/kanata/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ka/kanata/package.nix b/pkgs/by-name/ka/kanata/package.nix index f4b0cbbb629a..e18019c45cb0 100644 --- a/pkgs/by-name/ka/kanata/package.nix +++ b/pkgs/by-name/ka/kanata/package.nix @@ -12,16 +12,16 @@ rustPlatform.buildRustPackage rec { pname = "kanata"; - version = "1.7.0-prerelease-1"; + version = "1.7.0"; src = fetchFromGitHub { owner = "jtroo"; repo = pname; rev = "v${version}"; - sha256 = "sha256-eDeGVmh1gI/DhiP6gxJyGH9G9LNH1NHW0+DNuOPUnBY="; + sha256 = "sha256-cG9so0x0y8CbTxLOxSQwn5vG72KxHJzzTIH4lQA4MvE="; }; - cargoHash = "sha256-Om9Thyr10wc39J6adSWgmXtvjckaEW0z68sWxUqa4wc="; + cargoHash = "sha256-QQrFUJ24Qnrx8+7+h9riycXZSQUdH1sXMhpDzU9AXiI="; # the dependency native-windows-gui contains both README.md and readme.md, # which causes a hash mismatch on systems with a case-insensitive filesystem From 106ba63900ed5d08c66c796b90f2d76d630625f3 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Wed, 6 Nov 2024 13:00:05 +1300 Subject: [PATCH 051/693] tree-wide: Indent .bash files like .sh --- .../bootstrap-files/refresh-tarballs.bash | 82 +++++++++---------- .../builders/v1/hooks/php-script-utils.bash | 4 +- .../builders/v2/hooks/php-script-utils.bash | 4 +- .../compilers/dotnet/completions/dotnet.bash | 8 +- .../av/update-test-samples.bash | 42 +++++----- 5 files changed, 70 insertions(+), 70 deletions(-) diff --git a/maintainers/scripts/bootstrap-files/refresh-tarballs.bash b/maintainers/scripts/bootstrap-files/refresh-tarballs.bash index 87731089a9dd..999215622dd2 100755 --- a/maintainers/scripts/bootstrap-files/refresh-tarballs.bash +++ b/maintainers/scripts/bootstrap-files/refresh-tarballs.bash @@ -35,15 +35,15 @@ Synopsis: This is usually done in the following cases: 1. Single target fix: current bootstrap files for a single target - are problematic for some reason (target-specific bug). In this - case we can refresh just that target as: + are problematic for some reason (target-specific bug). In this + case we can refresh just that target as: - \$ $0 --commit --targets=i686-unknown-linux-gnu + \$ $0 --commit --targets=i686-unknown-linux-gnu 2. Routine refresh: all bootstrap files should be refreshed to avoid - debugging problems that only occur on very old binaries. + debugging problems that only occur on very old binaries. - \$ $0 --commit --all-targets + \$ $0 --commit --all-targets To get help on uploading refreshed binaries to 'tarballs.nixos.org' please have a look at . @@ -232,50 +232,50 @@ for target in "${targets[@]}"; do # - build time: ${build_time} { EOF - for p in "${outpath}/on-server"/*; do - fname=$(basename "$p") - fnames+=("$fname") - case "$fname" in - bootstrap-tools.tar.xz) attr=bootstrapTools ;; - busybox) attr=$fname ;; - unpack.nar.xz) attr=unpack ;; - *) die "Don't know how to map '$fname' to attribute name. Please update me." - esac + for p in "${outpath}/on-server"/*; do + fname=$(basename "$p") + fnames+=("$fname") + case "$fname" in + bootstrap-tools.tar.xz) attr=bootstrapTools ;; + busybox) attr=$fname ;; + unpack.nar.xz) attr=unpack ;; + *) die "Don't know how to map '$fname' to attribute name. Please update me." + esac - executable_arg= - executable_nix= - if [[ -x "$p" ]]; then - executable_arg="--executable" - executable_nix="executable = true;" - fi - unpack_nix= - name_nix= - if [[ $fname = *.nar.xz ]]; then - unpack_nix="unpack = true;" - name_nix="name = \"${fname%.nar.xz}\";" - sri=$(nar_sri_get "$p" "${fname%.nar.xz}") - [[ $? -ne 0 ]] && die "Failed to get hash of '$p'" - else - sha256=$(nix-prefetch-url $executable_arg --name "$fname" "file://$p") - [[ $? -ne 0 ]] && die "Failed to get the hash for '$p'" - sri=$(nix-hash --to-sri "sha256:$sha256") - [[ $? -ne 0 ]] && die "Failed to convert '$sha256' hash to an SRI form" - fi + executable_arg= + executable_nix= + if [[ -x "$p" ]]; then + executable_arg="--executable" + executable_nix="executable = true;" + fi + unpack_nix= + name_nix= + if [[ $fname = *.nar.xz ]]; then + unpack_nix="unpack = true;" + name_nix="name = \"${fname%.nar.xz}\";" + sri=$(nar_sri_get "$p" "${fname%.nar.xz}") + [[ $? -ne 0 ]] && die "Failed to get hash of '$p'" + else + sha256=$(nix-prefetch-url $executable_arg --name "$fname" "file://$p") + [[ $? -ne 0 ]] && die "Failed to get the hash for '$p'" + sri=$(nix-hash --to-sri "sha256:$sha256") + [[ $? -ne 0 ]] && die "Failed to convert '$sha256' hash to an SRI form" + fi - # individual file entries - cat < { + # individual file entries + cat < { url = "http://tarballs.nixos.org/${s3_prefix}/${nixpkgs_revision}/$fname"; hash = "${sri}";$( [[ -n ${executable_nix} ]] && printf "\n %s" "${executable_nix}" [[ -n ${name_nix} ]] && printf "\n %s" "${name_nix}" [[ -n ${unpack_nix} ]] && printf "\n %s" "${unpack_nix}" -) - }; + ) +}; EOF - done - # footer - cat < "${target_file}" diff --git a/pkgs/build-support/php/builders/v1/hooks/php-script-utils.bash b/pkgs/build-support/php/builders/v1/hooks/php-script-utils.bash index d1b8a25c949d..82d8aa20bca3 100644 --- a/pkgs/build-support/php/builders/v1/hooks/php-script-utils.bash +++ b/pkgs/build-support/php/builders/v1/hooks/php-script-utils.bash @@ -24,9 +24,9 @@ checkComposerValidate() { setComposerRootVersion if [ "1" == "${composerGlobal-}" ]; then - global="global"; + global="global"; else - global=""; + global=""; fi command="composer ${global} validate --strict --quiet --no-interaction --no-check-all --no-check-lock" diff --git a/pkgs/build-support/php/builders/v2/hooks/php-script-utils.bash b/pkgs/build-support/php/builders/v2/hooks/php-script-utils.bash index 573b82c2baff..d61e683725da 100644 --- a/pkgs/build-support/php/builders/v2/hooks/php-script-utils.bash +++ b/pkgs/build-support/php/builders/v2/hooks/php-script-utils.bash @@ -22,9 +22,9 @@ setComposerEnvVariables() { checkComposerValidate() { if [ "1" == "${composerGlobal-}" ]; then - global="global"; + global="global"; else - global=""; + global=""; fi command="composer ${global} validate --strict --quiet --no-interaction --no-check-all --no-check-lock" diff --git a/pkgs/development/compilers/dotnet/completions/dotnet.bash b/pkgs/development/compilers/dotnet/completions/dotnet.bash index 56c599e4358d..3cc4f77f7d8e 100644 --- a/pkgs/development/compilers/dotnet/completions/dotnet.bash +++ b/pkgs/development/compilers/dotnet/completions/dotnet.bash @@ -2,12 +2,12 @@ function _dotnet_bash_complete() { - local cur="${COMP_WORDS[COMP_CWORD]}" IFS=$'\n' # On Windows you may need to use use IFS=$'\r\n' - local candidates + local cur="${COMP_WORDS[COMP_CWORD]}" IFS=$'\n' # On Windows you may need to use use IFS=$'\r\n' + local candidates - read -d '' -ra candidates < <(dotnet complete --position "${COMP_POINT}" "${COMP_LINE}" 2>/dev/null) + read -d '' -ra candidates < <(dotnet complete --position "${COMP_POINT}" "${COMP_LINE}" 2>/dev/null) - read -d '' -ra COMPREPLY < <(compgen -W "${candidates[*]:-}" -- "$cur") + read -d '' -ra COMPREPLY < <(compgen -W "${candidates[*]:-}" -- "$cur") } complete -f -F _dotnet_bash_complete dotnet diff --git a/pkgs/development/python-modules/av/update-test-samples.bash b/pkgs/development/python-modules/av/update-test-samples.bash index 5b0b1966d43b..0ec4bdc2479f 100755 --- a/pkgs/development/python-modules/av/update-test-samples.bash +++ b/pkgs/development/python-modules/av/update-test-samples.bash @@ -4,8 +4,8 @@ set -o errexit set -o nounset if test "$#" != 1; then - printf >&2 'usage: update-test-samples.bash /path/to/PyAV/source\n' - exit 2 + printf >&2 'usage: update-test-samples.bash /path/to/PyAV/source\n' + exit 2 fi pyav_source=$1 @@ -13,31 +13,31 @@ pyav_source=$1 exec > "$(dirname "$(readlink -f "$0")")/test-samples.toml" fetch() { - path=$1 - url=$2 - prefetch_json=$(nix store prefetch-file --json "${url}") - sri_hash=$(jq -r .hash <<< "${prefetch_json}") - printf '"%s" = { url = "%s", hash = "%s" }\n' "${path}" "${url}" "${sri_hash}" + path=$1 + url=$2 + prefetch_json=$(nix store prefetch-file --json "${url}") + sri_hash=$(jq -r .hash <<< "${prefetch_json}") + printf '"%s" = { url = "%s", hash = "%s" }\n' "${path}" "${url}" "${sri_hash}" } fetch_all() { - function=$1 - base_path=$2 - base_url=$3 + function=$1 + base_path=$2 + base_url=$3 - samples=$( - rg \ - --only-matching \ - --no-filename \ - "\\b${function}\\([\"']([^\"']+)[\"']\\)" \ - --replace '$1' \ - "${pyav_source}" - ) - unique_samples=$(sort -u <<< "${samples}") + samples=$( + rg \ + --only-matching \ + --no-filename \ + "\\b${function}\\([\"']([^\"']+)[\"']\\)" \ + --replace '$1' \ + "${pyav_source}" + ) + unique_samples=$(sort -u <<< "${samples}") - while IFS= read -r sample; do + while IFS= read -r sample; do fetch "${base_path}/${sample}" "${base_url}/${sample}" - done <<< "${unique_samples}" + done <<< "${unique_samples}" } fetch_all fate_suite fate-suite "http://fate.ffmpeg.org/fate-suite" From 9181756339fc269cf350dd12d2f628cbe1ab7a60 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Sun, 10 Nov 2024 14:13:31 +1300 Subject: [PATCH 052/693] .editorconfig: Format .bash files like .sh --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 1d2259154e48..29e0a4aa8566 100644 --- a/.editorconfig +++ b/.editorconfig @@ -24,7 +24,7 @@ insert_final_newline = false # see https://nixos.org/nixpkgs/manual/#chap-conventions # Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces -[*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}] +[*.{bash,json,lock,md,nix,pl,pm,py,rb,sh,xml}] indent_style = space # Match docbook files, set indent width of one @@ -36,7 +36,7 @@ indent_size = 1 indent_size = 2 # Match perl/python/shell scripts, set indent width of four -[*.{pl,pm,py,sh}] +[*.{bash,pl,pm,py,sh}] indent_size = 4 # Match gemfiles, set indent to spaces with width of two From 6ac7c0c4d0e8f4fdae1f08f263f23c689f1ecb76 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 10 Nov 2024 09:49:25 +0800 Subject: [PATCH 053/693] xorg.libX11: Fix spurious Xerror when running synchronized This backports https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/264. This fixes 'XIO: fatal IO error 9 (Bad file descriptor) on X server ":102"' when GNOME's mutter is tearing down. ref: https://src.fedoraproject.org/rpms/libX11/c/ddc5e3368d876332178857fbdd3dce97fe614f9c ref: https://gitlab.gnome.org/GNOME/mutter/-/commit/f88b54502c77000d70e30984e7903b808d947049 --- pkgs/servers/x11/xorg/overrides.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index fcc9937b63b8..94158aa99fcd 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -149,6 +149,14 @@ self: super: libX11 = super.libX11.overrideAttrs (attrs: { outputs = [ "out" "dev" "man" ]; + patches = [ + # Fix spurious Xerror when running synchronized + # https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/264 + (fetchpatch { + url = "https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/f3d6ebac35301d4ad068e307f0fbe6aa12ccbccb.patch"; + hash = "sha256-wQNMsbQ+h9VlNiWr+r34AxvViC8fq02ZhcARRnw7O9k="; + }) + ]; configureFlags = attrs.configureFlags or [] ++ malloc0ReturnsNullCrossFlag ++ lib.optional (stdenv.targetPlatform.useLLVM or false) "ac_cv_path_RAWCPP=cpp"; From 0a52fc9410ce8b687f2f119dc8da727172a99a94 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 10 Nov 2024 03:27:34 +0100 Subject: [PATCH 054/693] Revert "kanata-with-cmd: 1.7.0-prerelease-1 -> 1.7.0" --- pkgs/by-name/ka/kanata/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ka/kanata/package.nix b/pkgs/by-name/ka/kanata/package.nix index e18019c45cb0..f4b0cbbb629a 100644 --- a/pkgs/by-name/ka/kanata/package.nix +++ b/pkgs/by-name/ka/kanata/package.nix @@ -12,16 +12,16 @@ rustPlatform.buildRustPackage rec { pname = "kanata"; - version = "1.7.0"; + version = "1.7.0-prerelease-1"; src = fetchFromGitHub { owner = "jtroo"; repo = pname; rev = "v${version}"; - sha256 = "sha256-cG9so0x0y8CbTxLOxSQwn5vG72KxHJzzTIH4lQA4MvE="; + sha256 = "sha256-eDeGVmh1gI/DhiP6gxJyGH9G9LNH1NHW0+DNuOPUnBY="; }; - cargoHash = "sha256-QQrFUJ24Qnrx8+7+h9riycXZSQUdH1sXMhpDzU9AXiI="; + cargoHash = "sha256-Om9Thyr10wc39J6adSWgmXtvjckaEW0z68sWxUqa4wc="; # the dependency native-windows-gui contains both README.md and readme.md, # which causes a hash mismatch on systems with a case-insensitive filesystem From dd78812a70f0f0950f1058f16db1686de705b024 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 10 Nov 2024 09:11:43 +0100 Subject: [PATCH 055/693] ffmpeg-headless: enable vulkan /nix/store/m5ghr321rsxpfl001c5fdh56y9f42lpd-ffmpeg-headless-7.1-bin 233072648 /nix/store/rjimh83l9pdpmd7qvanvfhkwr13cmbz5-ffmpeg-headless-7.1-bin 234001624 --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index eab578cf931f..759dd2eeef08 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -127,7 +127,7 @@ , withVorbis ? withHeadlessDeps # Vorbis de/encoding, native encoder exists , withVpl ? false # Hardware acceleration via intel libvpl , withVpx ? withHeadlessDeps && stdenv.buildPlatform == stdenv.hostPlatform # VP8 & VP9 de/encoding -, withVulkan ? withSmallDeps && !stdenv.hostPlatform.isDarwin +, withVulkan ? withHeadlessDeps && !stdenv.hostPlatform.isDarwin , withVvenc ? withFullDeps && lib.versionAtLeast version "7.1" # H.266/VVC encoding , withWebp ? withHeadlessDeps # WebP encoder , withX264 ? withHeadlessDeps && withGPL # H.264/AVC encoder From 3f601a9255f8c6c34f8cf68bfbed8c01b6dd20ad Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 10 Nov 2024 09:21:23 +0100 Subject: [PATCH 056/693] ffmpeg-headless: enable fribidi /nix/store/rjimh83l9pdpmd7qvanvfhkwr13cmbz5-ffmpeg-headless-7.1-bin 234001624 /nix/store/pk5bgvay9yb1hl6pcda2fs9d33s7gws0-ffmpeg-headless-7.1-bin 234002056 --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 759dd2eeef08..31e0925056ed 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -63,7 +63,7 @@ , withFontconfig ? withHeadlessDeps # Needed for drawtext filter , withFreetype ? withHeadlessDeps # Needed for drawtext filter , withFrei0r ? withFullDeps && withGPL # frei0r video filtering -, withFribidi ? withFullDeps # Needed for drawtext filter +, withFribidi ? withHeadlessDeps # Needed for drawtext filter , withGme ? withFullDeps # Game Music Emulator , withGnutls ? withHeadlessDeps , withGsm ? withFullDeps # GSM de/encoder From 34a886774394d0bcfebb81bae427d92ecd1fe652 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 10 Nov 2024 09:24:16 +0100 Subject: [PATCH 057/693] ffmpeg-headless: enable bluray /nix/store/pk5bgvay9yb1hl6pcda2fs9d33s7gws0-ffmpeg-headless-7.1-bin 234002056 /nix/store/4gmnzizak5ca1skhf9r9m2m0jcbik8ap-ffmpeg-headless-7.1-bin 236116824 --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 31e0925056ed..a967da3db459 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -40,7 +40,7 @@ , withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1" # ARIB STD-B24 Caption Decoder/Renderer , withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform # (Advanced) SubStation Alpha subtitle rendering , withAvisynth ? withFullDeps # AviSynth script files reading -, withBluray ? withFullDeps # BluRay reading +, withBluray ? withHeadlessDeps # BluRay reading , withBs2b ? withFullDeps # bs2b DSP library , withBzlib ? withHeadlessDeps , withCaca ? withFullDeps # Textual display (ASCII art) From 610b0fd1995945d6309feb36ee40912403766887 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 10 Nov 2024 09:46:55 +0100 Subject: [PATCH 058/693] ffmpeg-headless: enable xml2 /nix/store/4gmnzizak5ca1skhf9r9m2m0jcbik8ap-ffmpeg-headless-7.1-bin 236116824 /nix/store/nqardac1g5h774bprz145fsl4qm2p92l-ffmpeg-headless-7.1-bin 236173272 --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index a967da3db459..da9689cdeb29 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -140,7 +140,7 @@ , withXevd ? withFullDeps && lib.versionAtLeast version "7.1" && !xevd.meta.broken # MPEG-5 EVC decoding , withXeve ? withFullDeps && lib.versionAtLeast version "7.1" && !xeve.meta.broken # MPEG-5 EVC encoding , withXlib ? withFullDeps # Xlib support -, withXml2 ? withFullDeps # libxml2 support, for IMF and DASH demuxers +, withXml2 ? withHeadlessDeps # libxml2 support, for IMF and DASH demuxers , withXvid ? withHeadlessDeps && withGPL # Xvid encoder, native encoder exists , withZimg ? withHeadlessDeps , withZlib ? withHeadlessDeps From 2fa42d7b13c4b9c39aa19a5680b1ca81faed99a2 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 10 Nov 2024 09:24:42 +0100 Subject: [PATCH 059/693] ffmpeg-headless: enable openmpt /nix/store/nqardac1g5h774bprz145fsl4qm2p92l-ffmpeg-headless-7.1-bin 236173272 /nix/store/a9a7n7w0dhcjay5vi41xy685m6md1hkw-ffmpeg-headless-7.1-bin 294694384 This may look like quite an increase but if you combine it with a noteworthy package such as pipewire, the increase is only ~5MiB: /nix/store/cs43xb7x8bqy0igaip0vrsgjij5aafc9-foo 657507664 /nix/store/xcgc1k9mn8f9fqns9832dnnlhnxm6dka-foo 661376384 With actual closures, I believe this would be even less. --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index da9689cdeb29..855b3a5fe1f7 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -93,7 +93,7 @@ , withOpengl ? withFullDeps && !stdenv.hostPlatform.isDarwin # OpenGL rendering , withOpenh264 ? withFullDeps # H.264/AVC encoder , withOpenjpeg ? withHeadlessDeps # JPEG 2000 de/encoder -, withOpenmpt ? withFullDeps # Tracked music files decoder +, withOpenmpt ? withHeadlessDeps # Tracked music files decoder , withOpus ? withHeadlessDeps # Opus de/encoder , withPlacebo ? withFullDeps && !stdenv.hostPlatform.isDarwin # libplacebo video processing library , withPulse ? withSmallDeps && stdenv.hostPlatform.isLinux # Pulseaudio input support From ca1689f486da5fc2d8c9d14c48851db60e80cb1a Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 10 Nov 2024 10:15:56 +0100 Subject: [PATCH 060/693] ffmpeg-headless: enable zvbi /nix/store/a9a7n7w0dhcjay5vi41xy685m6md1hkw-ffmpeg-headless-7.1-bin 294694384 /nix/store/2wxab02vqydrmm19m4wiffz1ic3v7528-ffmpeg-headless-7.1-bin 295755456 --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 855b3a5fe1f7..6d9e060172a3 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -145,7 +145,7 @@ , withZimg ? withHeadlessDeps , withZlib ? withHeadlessDeps , withZmq ? withFullDeps # Message passing -, withZvbi ? withFullDeps # Teletext support +, withZvbi ? withHeadlessDeps # Teletext support /* * Licensing options (yes some are listed twice, filters and such are not listed) From a4065db12315af754aa30a3a9d4fc710ab6f55b2 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 10 Nov 2024 08:38:28 +0100 Subject: [PATCH 061/693] ffmpeg-headless: enable opencl /nix/store/2wxab02vqydrmm19m4wiffz1ic3v7528-ffmpeg-headless-7.1-bin 295755456 /nix/store/0km9wmmxs4aasna3jvx6ksigbi5qlas8-ffmpeg-headless-7.1-bin 296508848 --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 6d9e060172a3..865dd20bb72c 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -87,7 +87,7 @@ , withNvdec ? withHeadlessDeps && withNvcodec , withNvenc ? withHeadlessDeps && withNvcodec , withOpenal ? withFullDeps # OpenAL 1.1 capture support -, withOpencl ? withFullDeps +, withOpencl ? withHeadlessDeps , withOpencoreAmrnb ? withFullDeps && withVersion3 # AMR-NB de/encoder , withOpencoreAmrwb ? withFullDeps && withVersion3 # AMR-WB decoder , withOpengl ? withFullDeps && !stdenv.hostPlatform.isDarwin # OpenGL rendering From e982db441062bc0d6a91eeba6d20c92f7faf4a8b Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Mon, 28 Oct 2024 11:46:47 +0100 Subject: [PATCH 062/693] man-db: Add `--with-col` to `configureFlags` Piping the output of man to a file (not a tty) is supposed to strip the formatting (ANSI escape sequences) from the output text if the MAN_KEEP_FORMATTING environment variable is undefined. Stripping of ansi escape sequences is done using `col` from `util-linux`. the build system uses the value of the `--with-col` flag or tries to find `col` in `path` during the build. if no `col` is found or specified the documented stripping of ansi sequences won't be performed. Add the `--with-col` flag to fix piping of man pages as plain text. Use `util-linuxMinimal` to avoid a cyclic dependency. --- pkgs/by-name/ma/man-db/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ma/man-db/package.nix b/pkgs/by-name/ma/man-db/package.nix index 9bafa723dcf8..6b1a52dba42a 100644 --- a/pkgs/by-name/ma/man-db/package.nix +++ b/pkgs/by-name/ma/man-db/package.nix @@ -11,6 +11,7 @@ , nixosTests , pkg-config , stdenv +, util-linuxMinimal , zstd }: @@ -58,6 +59,7 @@ stdenv.mkDerivation rec { "--with-systemdtmpfilesdir=${placeholder "out"}/lib/tmpfiles.d" "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system" "--with-pager=less" + "--with-col=${util-linuxMinimal}/bin/col" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "ac_cv_func__set_invalid_parameter_handler=no" "ac_cv_func_posix_fadvise=no" From a74f2b4f3bc9ba291dcab1ee9232b96b488b96e7 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 10 Nov 2024 12:00:00 +0000 Subject: [PATCH 063/693] python3Packages.pendulum: fix on 32 bit platforms --- pkgs/development/python-modules/pendulum/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/pendulum/default.nix b/pkgs/development/python-modules/pendulum/default.nix index bd74e66c6915..54a8d20ca04e 100644 --- a/pkgs/development/python-modules/pendulum/default.nix +++ b/pkgs/development/python-modules/pendulum/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, pythonOlder, isPyPy, @@ -54,6 +55,15 @@ buildPythonPackage rec { ''; }; + patches = [ + # fix build on 32bit + # https://github.com/sdispater/pendulum/pull/842 + (fetchpatch { + url = "https://github.com/sdispater/pendulum/commit/6f2fcb8b025146ae768a5889be4a437fbd3156d6.patch"; + hash = "sha256-47591JvpADxGQT2q7EYWHfStaiWyP7dt8DPTq0tiRvk="; + }) + ]; + nativeBuildInputs = [ poetry-core rustPlatform.maturinBuildHook From eaff3f220765d87f7c3b18df4e3ca36cc6d38296 Mon Sep 17 00:00:00 2001 From: aucub <78630225+aucub@users.noreply.github.com> Date: Mon, 11 Nov 2024 05:16:50 +0800 Subject: [PATCH 064/693] python312Packages.mypy: 1.11.2 -> 1.13.0 --- .../python-modules/mypy/default.nix | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/mypy/default.nix b/pkgs/development/python-modules/mypy/default.nix index e43f0e1bd1a2..022f29733f83 100644 --- a/pkgs/development/python-modules/mypy/default.nix +++ b/pkgs/development/python-modules/mypy/default.nix @@ -3,7 +3,6 @@ stdenv, buildPythonPackage, fetchFromGitHub, - fetchpatch2, gitUpdater, pythonAtLeast, pythonOlder, @@ -33,28 +32,18 @@ buildPythonPackage rec { pname = "mypy"; - version = "1.11.2"; + version = "1.13.0"; pyproject = true; - # mypy doesn't support python313 yet - # https://github.com/python/mypy/issues/17264 - disabled = pythonOlder "3.8" || pythonAtLeast "3.13"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "python"; repo = "mypy"; rev = "refs/tags/v${version}"; - hash = "sha256-5gfqIBtI/G5HARYdXHjYNYNRxeNgrk9dnpSgvMSu9bw="; + hash = "sha256-P2Ozmj7/7QBmjlveHLsNdYgUAerg0qOoa8pO0iQc5os="; }; - patches = [ - (fetchpatch2 { - name = "python3.12.7-compat.patch"; - url = "https://github.com/python/mypy/commit/1a2c8e2a4df21532e4952191cad74ae50083f4ad.patch"; - hash = "sha256-GBQPTkdoLeErjbRUjZBFEwvCcN/WzC3OYVvou6M+f80="; - }) - ]; - passthru.updateScript = gitUpdater { rev-prefix = "v"; }; @@ -140,12 +129,12 @@ buildPythonPackage rec { inherit (nixosTests) nixos-test-driver; }; - meta = with lib; { + meta = { description = "Optional static typing for Python"; homepage = "https://www.mypy-lang.org"; changelog = "https://github.com/python/mypy/blob/${src.rev}/CHANGELOG.md"; - license = licenses.mit; + license = lib.licenses.mit; mainProgram = "mypy"; - maintainers = with maintainers; [ lnl7 ]; + maintainers = with lib.maintainers; [ lnl7 ]; }; } From 92fc176ba64f7057e1b349e5824281737b557d40 Mon Sep 17 00:00:00 2001 From: Simon Hollingshead Date: Thu, 24 Oct 2024 05:40:06 +0100 Subject: [PATCH 065/693] libvisual: 0.4.1 -> 0.4.2 --- pkgs/by-name/li/libvisual/package.nix | 40 ++++++++------------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/pkgs/by-name/li/libvisual/package.nix b/pkgs/by-name/li/libvisual/package.nix index 12fae974312b..407d10fb3f7a 100644 --- a/pkgs/by-name/li/libvisual/package.nix +++ b/pkgs/by-name/li/libvisual/package.nix @@ -1,51 +1,35 @@ { lib , stdenv -, fetchurl +, fetchFromGitHub , fetchpatch , SDL , autoreconfHook +, autoconf-archive , glib , pkg-config }: stdenv.mkDerivation rec { pname = "libvisual"; - version = "0.4.1"; + version = "0.4.2"; - src = fetchurl { - url = "mirror://sourceforge/libvisual/${pname}-${version}.tar.gz"; - hash = "sha256-qhKHdBf3bTZC2fTHIzAjgNgzF1Y51jpVZB0Bkopd230="; + src = fetchFromGitHub { + owner = "Libvisual"; + repo = "libvisual"; + rev = "libvisual-${version}"; + hash = "sha256-bDnpQODXB2Z6hezVoh7c6cklp6qpyDzVBAnwZD8Gros="; }; + sourceRoot = "${src.name}/libvisual"; + outputs = [ "out" "dev" ]; - patches = [ - # pull upstream fix for SDL1 cross-compilation. - # https://github.com/Libvisual/libvisual/pull/238 - (fetchpatch { - name = "sdl-cross-prereq.patch"; - url = "https://github.com/Libvisual/libvisual/commit/7902d24aa1a552619a5738339b3823e90dd3b865.patch"; - hash = "sha256-84u8klHDAw/q4d+9L4ROAr7XsbXItHrhaEKkTEMSPcc="; - # remove extra libvisual prefix - stripLen = 1; - # pull in only useful configure.ac changes. - excludes = [ "Makefile.am" ]; - }) - (fetchpatch { - name = "sdl-cross-pc.patch"; - url = "https://github.com/Libvisual/libvisual/commit/f79a2e8d21ad1d7fe26e2aa83cea4c9f48f9e392.patch"; - hash = "sha256-8c7SdLxXC8K9BAwj7DzozsZAcbs5l1xuBqky9LJ1MfM="; - # remove extra libvisual prefix - stripLen = 1; - }) - ]; - strictDeps = true; - nativeBuildInputs = [ autoreconfHook pkg-config ]; + nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config ]; buildInputs = [ SDL glib ]; configureFlags = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ - # Remove once "sdl-cross-prereq.patch" patch above is removed. + # Remove when 0.5.x is published. "--disable-lv-tool" ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ "ac_cv_func_malloc_0_nonnull=yes" From ab5894f22844628925edab137457678a3bb240e4 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 11 Nov 2024 06:49:07 +0000 Subject: [PATCH 066/693] mdbook: 0.4.41 -> 0.4.42 Changes: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0442 --- pkgs/by-name/md/mdbook/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/md/mdbook/package.nix b/pkgs/by-name/md/mdbook/package.nix index 75394d25c90d..9a6729b1462b 100644 --- a/pkgs/by-name/md/mdbook/package.nix +++ b/pkgs/by-name/md/mdbook/package.nix @@ -9,7 +9,7 @@ installShellFiles, }: let - version = "0.4.41"; + version = "0.4.42"; in rustPlatform.buildRustPackage { inherit version; @@ -19,10 +19,10 @@ rustPlatform.buildRustPackage { owner = "rust-lang"; repo = "mdBook"; rev = "refs/tags/v${version}"; - hash = "sha256-LhFJom1E7dyrma9bVuoLBcGsFW8Dsq9pkh+PzgsrQ/s="; + hash = "sha256-gdcHW30+vx+pNTKWJqArxVVYZyG73NnMMkU9JMUPyI8="; }; - cargoHash = "sha256-v5B9OVdqQPDrRviXDu8BkJyVK3jmTw100LkGbGUA+Ao="; + cargoHash = "sha256-19BZe9sCDtSD8f6ZN5Neb2hj75VAW8pXSPCZdIOZF2s="; nativeBuildInputs = [ installShellFiles ]; From 56ec4b7d1671aba5d77052225c758dbabfbe75fa Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:29:15 +0000 Subject: [PATCH 067/693] adns: format with `nixfmt-rfc-style` --- pkgs/by-name/ad/adns/package.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index eeb6c07bf11d..22088853570a 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -1,4 +1,10 @@ -{ stdenv, lib, fetchurl, gnum4, gitUpdater }: +{ + stdenv, + lib, + fetchurl, + gnum4, + gitUpdater, +}: stdenv.mkDerivation rec { pname = "adns"; @@ -16,8 +22,7 @@ stdenv.mkDerivation rec { configureFlags = lib.optional stdenv.hostPlatform.isStatic "--disable-dynamic"; - preConfigure = - lib.optionalString stdenv.hostPlatform.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure"; + preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure"; # Autogenerated headers miss interdependencies in Makefile, fail parallel build: # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51329 @@ -26,10 +31,13 @@ stdenv.mkDerivation rec { # https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details. doCheck = false; - postInstall = let suffix = lib.versions.majorMinor version; - in lib.optionalString stdenv.hostPlatform.isDarwin '' - install_name_tool -id $out/lib/libadns.so.${suffix} $out/lib/libadns.so.${suffix} - ''; + postInstall = + let + suffix = lib.versions.majorMinor version; + in + lib.optionalString stdenv.hostPlatform.isDarwin '' + install_name_tool -id $out/lib/libadns.so.${suffix} $out/lib/libadns.so.${suffix} + ''; # darwin executables fail, but I don't want to fail the 100-500 packages depending on this lib doInstallCheck = !stdenv.hostPlatform.isDarwin; From bf65989fe97f87f6ceb896a5384482566211891a Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:29:37 +0000 Subject: [PATCH 068/693] adns: use `finalAttrs` --- pkgs/by-name/ad/adns/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index 22088853570a..f956cea6be2a 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -6,14 +6,14 @@ gitUpdater, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "adns"; version = "1.6.1"; src = fetchurl { urls = [ - "https://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${version}.tar.gz" - "mirror://gnu/adns/adns-${version}.tar.gz" + "https://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${finalAttrs.version}.tar.gz" + "mirror://gnu/adns/adns-${finalAttrs.version}.tar.gz" ]; hash = "sha256-cTizeJt1Br1oP0UdT32FMHepGAO3s12G7GZ/D5zUAc0="; }; @@ -61,4 +61,4 @@ stdenv.mkDerivation rec { platforms = platforms.unix; }; -} +}) From 9a071c952059168b1d4b4a00f71de76012e0b64e Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:29:55 +0000 Subject: [PATCH 069/693] adns: remove `with lib;` --- pkgs/by-name/ad/adns/package.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index f956cea6be2a..9deede12da33 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -54,11 +54,10 @@ stdenv.mkDerivation (finalAttrs: { rev-prefix = "adns-"; }; - meta = with lib; { + meta = { homepage = "http://www.chiark.greenend.org.uk/~ian/adns/"; description = "Asynchronous DNS Resolver Library"; - license = licenses.lgpl2; - - platforms = platforms.unix; + license = lib.licenses.lgpl2; + platforms = lib.platforms.unix; }; }) From cf3ff2dd370b7371cb2f09ec3364b75cdfcbf635 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:59:59 +0000 Subject: [PATCH 070/693] adns: rearrange furniture --- pkgs/by-name/ad/adns/package.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index 9deede12da33..8570de37f8a4 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -1,6 +1,6 @@ { - stdenv, lib, + stdenv, fetchurl, gnum4, gitUpdater, @@ -22,8 +22,6 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = lib.optional stdenv.hostPlatform.isStatic "--disable-dynamic"; - preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure"; - # Autogenerated headers miss interdependencies in Makefile, fail parallel build: # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51329 enableParallelBuilding = false; @@ -31,6 +29,11 @@ stdenv.mkDerivation (finalAttrs: { # https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details. doCheck = false; + # darwin executables fail, but I don't want to fail the 100-500 packages depending on this lib + doInstallCheck = !stdenv.hostPlatform.isDarwin; + + preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure"; + postInstall = let suffix = lib.versions.majorMinor version; @@ -39,8 +42,6 @@ stdenv.mkDerivation (finalAttrs: { install_name_tool -id $out/lib/libadns.so.${suffix} $out/lib/libadns.so.${suffix} ''; - # darwin executables fail, but I don't want to fail the 100-500 packages depending on this lib - doInstallCheck = !stdenv.hostPlatform.isDarwin; installCheckPhase = '' set -eo pipefail From 3f94e7e68c682c9269f2d5a9857fe77d84657944 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:30:21 +0000 Subject: [PATCH 071/693] adns: update licence --- pkgs/by-name/ad/adns/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index 8570de37f8a4..509f2ed7fd3e 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -58,7 +58,12 @@ stdenv.mkDerivation (finalAttrs: { meta = { homepage = "http://www.chiark.greenend.org.uk/~ian/adns/"; description = "Asynchronous DNS Resolver Library"; - license = lib.licenses.lgpl2; + license = [ + lib.licenses.gpl3Plus + + # `adns.h` only + lib.licenses.lgpl2Plus + ]; platforms = lib.platforms.unix; }; }) From 9bac1ec6850749fe691f0d617bc2a620566228b5 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:06:47 +0000 Subject: [PATCH 072/693] adns: use title case for `meta.description` --- pkgs/by-name/ad/adns/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index 509f2ed7fd3e..eff5c17fc7ef 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: { meta = { homepage = "http://www.chiark.greenend.org.uk/~ian/adns/"; - description = "Asynchronous DNS Resolver Library"; + description = "Asynchronous DNS resolver library"; license = [ lib.licenses.gpl3Plus From 6ae57a56dcfb8603debae92111d0e35f23e8c7c5 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 10:02:39 +0000 Subject: [PATCH 073/693] adns: modernize `installCheckPhase` --- pkgs/by-name/ad/adns/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index eff5c17fc7ef..1e9bac183dab 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -43,11 +43,13 @@ stdenv.mkDerivation (finalAttrs: { ''; installCheckPhase = '' - set -eo pipefail + runHook preInstallCheck for prog in $out/bin/*; do $prog --help > /dev/null && echo $(basename $prog) shows usage done + + runHook postInstallCheck ''; passthru.updateScript = gitUpdater { From e7e4bcc65b3fba6334b4d4b5f16573968d3c633e Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:06:47 +0000 Subject: [PATCH 074/693] adns: enable parallel building The bug was fixed in the latest version. --- pkgs/by-name/ad/adns/package.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index 1e9bac183dab..d57c8768ceed 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -22,9 +22,7 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = lib.optional stdenv.hostPlatform.isStatic "--disable-dynamic"; - # Autogenerated headers miss interdependencies in Makefile, fail parallel build: - # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51329 - enableParallelBuilding = false; + enableParallelBuilding = true; # https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details. doCheck = false; From 4f0ff90a95d69f9ba314f198c79454f95a3643f0 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 11 Nov 2024 09:06:47 +0000 Subject: [PATCH 075/693] adns: fix Darwin properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The post‐facto install name replacement was unpredictably running out of space; just patch the build system to do the right thing instead. And don’t use `.so` on Darwin, either. --- pkgs/by-name/ad/adns/darwin.patch | 21 +++++++++++++++++++++ pkgs/by-name/ad/adns/package.nix | 21 ++++++++------------- 2 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 pkgs/by-name/ad/adns/darwin.patch diff --git a/pkgs/by-name/ad/adns/darwin.patch b/pkgs/by-name/ad/adns/darwin.patch new file mode 100644 index 000000000000..9c44f89d462e --- /dev/null +++ b/pkgs/by-name/ad/adns/darwin.patch @@ -0,0 +1,21 @@ +diff --git a/configure.in b/configure.in +index b753a5bb3e..ee7d546984 100644 +--- a/configure.in ++++ b/configure.in +@@ -134,12 +134,12 @@ + AC_SUBST(SHLIBFILE) + AC_SUBST(SHLIBSONAME) + +-SHLIBFORLINK='libadns.so' +-SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)' +-SHLIBFILE='$(SHLIBSONAME).$(MINOR)' ++SHLIBFORLINK='libadns.dylib' ++SHLIBSONAME='libadns.$(MAJOR).dylib' ++SHLIBFILE='libadns.$(MAJOR).$(MINOR).dylib' + + SHLIBCC='$(CC) $(CFLAGS) -fpic' +-MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o' ++MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-install_name,$(libdir)/$(SHLIBFILE) -o' + MKSHLIB_2='' + MKSHLIB_3='-lc' + diff --git a/pkgs/by-name/ad/adns/package.nix b/pkgs/by-name/ad/adns/package.nix index d57c8768ceed..70c04d94aadd 100644 --- a/pkgs/by-name/ad/adns/package.nix +++ b/pkgs/by-name/ad/adns/package.nix @@ -3,6 +3,7 @@ stdenv, fetchurl, gnum4, + autoreconfHook, gitUpdater, }: @@ -18,7 +19,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-cTizeJt1Br1oP0UdT32FMHepGAO3s12G7GZ/D5zUAc0="; }; - nativeBuildInputs = [ gnum4 ]; + patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./darwin.patch ]; + + nativeBuildInputs = [ + gnum4 + autoreconfHook + ]; configureFlags = lib.optional stdenv.hostPlatform.isStatic "--disable-dynamic"; @@ -27,18 +33,7 @@ stdenv.mkDerivation (finalAttrs: { # https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details. doCheck = false; - # darwin executables fail, but I don't want to fail the 100-500 packages depending on this lib - doInstallCheck = !stdenv.hostPlatform.isDarwin; - - preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure"; - - postInstall = - let - suffix = lib.versions.majorMinor version; - in - lib.optionalString stdenv.hostPlatform.isDarwin '' - install_name_tool -id $out/lib/libadns.so.${suffix} $out/lib/libadns.so.${suffix} - ''; + doInstallCheck = true; installCheckPhase = '' runHook preInstallCheck From 4b712c8f6fab7e98cb2742ed180b4c16fa0f0fc9 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:46:46 +0100 Subject: [PATCH 076/693] buildRustPackage: remove unused `patchRegistryDeps` --- pkgs/build-support/rust/build-rust-package/default.nix | 2 -- .../build-rust-package/patch-registry-deps/pkg-config | 8 -------- 2 files changed, 10 deletions(-) delete mode 100644 pkgs/build-support/rust/build-rust-package/patch-registry-deps/pkg-config diff --git a/pkgs/build-support/rust/build-rust-package/default.nix b/pkgs/build-support/rust/build-rust-package/default.nix index 6ce4cadfd1cf..0000fec4f63f 100644 --- a/pkgs/build-support/rust/build-rust-package/default.nix +++ b/pkgs/build-support/rust/build-rust-package/default.nix @@ -116,8 +116,6 @@ stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "carg cargoCheckFeatures = checkFeatures; - patchRegistryDeps = ./patch-registry-deps; - nativeBuildInputs = nativeBuildInputs ++ lib.optionals auditable [ (buildPackages.cargo-auditable-cargo-wrapper.override { inherit cargo cargo-auditable; diff --git a/pkgs/build-support/rust/build-rust-package/patch-registry-deps/pkg-config b/pkgs/build-support/rust/build-rust-package/patch-registry-deps/pkg-config deleted file mode 100644 index fbb094304587..000000000000 --- a/pkgs/build-support/rust/build-rust-package/patch-registry-deps/pkg-config +++ /dev/null @@ -1,8 +0,0 @@ -for dir in pkg-config-*; do - [ -d "$dir" ] || continue - - echo "Patching pkg-config registry dep" - - substituteInPlace "$dir/src/lib.rs" \ - --replace '"/usr"' '"'"$NIX_STORE"'/"' -done From 63ce4665b2ce60fbe35d7cdf2b434dd10f1b4095 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 11 Nov 2024 23:19:50 +0100 Subject: [PATCH 077/693] systemd: revert boot-breaking systemd-boot change Fixes boot for me. Closes: https://github.com/NixOS/nixpkgs/pull/355284 --- ...-initrd_prepare-semantically-equival.patch | 150 ++++++++++++++++++ pkgs/os-specific/linux/systemd/default.nix | 1 + 2 files changed, 151 insertions(+) create mode 100644 pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch diff --git a/pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch b/pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch new file mode 100644 index 000000000000..f33b730d015a --- /dev/null +++ b/pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch @@ -0,0 +1,150 @@ +From bc1abc37f1cf0368d9c320c9d3845154d85f66b1 Mon Sep 17 00:00:00 2001 +From: Alyssa Ross +Date: Mon, 11 Nov 2024 23:09:21 +0100 +Subject: [PATCH] Revert "boot: Make initrd_prepare() semantically equivalent + to combine_initrds()" + +This reverts commit d64193a2a652b15db9cb9ed10c6b77a17ca46cd2. + +This breaks boot on Apple Silicon, and probably other platforms with no memory +mapped below 4G. + +Link: https://github.com/systemd/systemd/issues/35026 +--- + src/boot/efi/boot.c | 60 ++++++++++++--------------------------------- + 1 file changed, 16 insertions(+), 44 deletions(-) + +diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c +index ecbb4e0509..f94b59db59 100644 +--- a/src/boot/efi/boot.c ++++ b/src/boot/efi/boot.c +@@ -11,7 +11,6 @@ + #include "initrd.h" + #include "linux.h" + #include "measure.h" +-#include "memory-util-fundamental.h" + #include "part-discovery.h" + #include "pe.h" + #include "proto/block-io.h" +@@ -2249,18 +2248,18 @@ static EFI_STATUS initrd_prepare( + EFI_FILE *root, + const BootEntry *entry, + char16_t **ret_options, +- Pages *ret_initrd_pages, ++ void **ret_initrd, + size_t *ret_initrd_size) { + + assert(root); + assert(entry); + assert(ret_options); +- assert(ret_initrd_pages); ++ assert(ret_initrd); + assert(ret_initrd_size); + + if (entry->type != LOADER_LINUX || !entry->initrd) { + *ret_options = NULL; +- *ret_initrd_pages = (Pages) {}; ++ *ret_initrd = NULL; + *ret_initrd_size = 0; + return EFI_SUCCESS; + } +@@ -2274,6 +2273,7 @@ static EFI_STATUS initrd_prepare( + + EFI_STATUS err; + size_t size = 0; ++ _cleanup_free_ uint8_t *initrd = NULL; + + STRV_FOREACH(i, entry->initrd) { + _cleanup_free_ char16_t *o = options; +@@ -2292,58 +2292,30 @@ static EFI_STATUS initrd_prepare( + if (err != EFI_SUCCESS) + return err; + +- if (!INC_SAFE(&size, ALIGN4(info->FileSize))) +- return EFI_OUT_OF_RESOURCES; +- } +- +- _cleanup_pages_ Pages pages = xmalloc_pages( +- AllocateMaxAddress, +- EfiLoaderData, +- EFI_SIZE_TO_PAGES(size), +- UINT32_MAX /* Below 4G boundary. */); +- uint8_t *p = PHYSICAL_ADDRESS_TO_POINTER(pages.addr); +- +- STRV_FOREACH(i, entry->initrd) { +- _cleanup_(file_closep) EFI_FILE *handle = NULL; +- err = root->Open(root, &handle, *i, EFI_FILE_MODE_READ, 0); +- if (err != EFI_SUCCESS) +- return err; +- +- _cleanup_free_ EFI_FILE_INFO *info = NULL; +- err = get_file_info(handle, &info, NULL); +- if (err != EFI_SUCCESS) +- return err; +- + if (info->FileSize == 0) /* Automatically skip over empty files */ + continue; + +- size_t read_size = info->FileSize; +- err = chunked_read(handle, &read_size, p); ++ size_t new_size, read_size = info->FileSize; ++ if (!ADD_SAFE(&new_size, size, read_size)) ++ return EFI_OUT_OF_RESOURCES; ++ initrd = xrealloc(initrd, size, new_size); ++ ++ err = chunked_read(handle, &read_size, initrd + size); + if (err != EFI_SUCCESS) + return err; + + /* Make sure the actual read size is what we expected. */ +- assert(read_size == info->FileSize); +- p += read_size; +- +- size_t pad; +- pad = ALIGN4(read_size) - read_size; +- if (pad == 0) +- continue; +- +- memzero(p, pad); +- p += pad; ++ assert(size + read_size == new_size); ++ size = new_size; + } + +- assert(PHYSICAL_ADDRESS_TO_POINTER(pages.addr + size) == p); +- + if (entry->options) { + _cleanup_free_ char16_t *o = options; + options = xasprintf("%ls %ls", o, entry->options); + } + + *ret_options = TAKE_PTR(options); +- *ret_initrd_pages = TAKE_STRUCT(pages); ++ *ret_initrd = TAKE_PTR(initrd); + *ret_initrd_size = size; + return EFI_SUCCESS; + } +@@ -2373,9 +2345,9 @@ static EFI_STATUS image_start( + return log_error_status(err, "Error making file device path: %m"); + + size_t initrd_size = 0; +- _cleanup_pages_ Pages initrd_pages = {}; ++ _cleanup_free_ void *initrd = NULL; + _cleanup_free_ char16_t *options_initrd = NULL; +- err = initrd_prepare(image_root, entry, &options_initrd, &initrd_pages, &initrd_size); ++ err = initrd_prepare(image_root, entry, &options_initrd, &initrd, &initrd_size); + if (err != EFI_SUCCESS) + return log_error_status(err, "Error preparing initrd: %m"); + +@@ -2393,7 +2365,7 @@ static EFI_STATUS image_start( + } + + _cleanup_(cleanup_initrd) EFI_HANDLE initrd_handle = NULL; +- err = initrd_register(PHYSICAL_ADDRESS_TO_POINTER(initrd_pages.addr), initrd_size, &initrd_handle); ++ err = initrd_register(initrd, initrd_size, &initrd_handle); + if (err != EFI_SUCCESS) + return log_error_status(err, "Error registering initrd: %m"); + +-- +2.47.0 + diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 691dd4f815ba..5d10d3bcd3f0 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -232,6 +232,7 @@ stdenv.mkDerivation (finalAttrs: { ./0015-tpm2_context_init-fix-driver-name-checking.patch ./0016-systemctl-edit-suggest-systemdctl-edit-runtime-on-sy.patch ./0017-meson.build-do-not-create-systemdstatedir.patch + ./0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch # https://github.com/systemd/systemd/issues/33392 (fetchpatch2 { From 01fe6fb38d5d50180e322fab5d7bab6f4e764c1e Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 11 Nov 2024 17:58:14 +0100 Subject: [PATCH 078/693] librist: fix build for musl --- pkgs/by-name/li/librist/musl.patch | 16 ++++++++++++++++ pkgs/by-name/li/librist/package.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/by-name/li/librist/musl.patch diff --git a/pkgs/by-name/li/librist/musl.patch b/pkgs/by-name/li/librist/musl.patch new file mode 100644 index 000000000000..95f432549777 --- /dev/null +++ b/pkgs/by-name/li/librist/musl.patch @@ -0,0 +1,16 @@ +diff --git a/test/rist/unit/srp_examples.c b/test/rist/unit/srp_examples.c +index 1c5193d..6f835b5 100644 +--- a/test/rist/unit/srp_examples.c ++++ b/test/rist/unit/srp_examples.c +@@ -16,6 +16,11 @@ + #define DEBUG_USE_EXAMPLE_CONSTANTS 1 + + #if HAVE_MBEDTLS ++// musl's sched.h includes a prototype for calloc, so we need to make ++// sure it's already been included before we redefine it to something ++// that won't expand to a valid prototype. ++#include ++ + #define malloc(size) _test_malloc(size, __FILE__, __LINE__) + #define calloc(num, size) _test_calloc(num, size, __FILE__, __LINE__) + #define free(obj) _test_free(obj, __FILE__, __LINE__) diff --git a/pkgs/by-name/li/librist/package.nix b/pkgs/by-name/li/librist/package.nix index 788e75eafdda..97fbece7aa27 100644 --- a/pkgs/by-name/li/librist/package.nix +++ b/pkgs/by-name/li/librist/package.nix @@ -24,6 +24,8 @@ stdenv.mkDerivation rec { patches = [ # https://github.com/NixOS/nixpkgs/pull/257020 ./darwin.patch + # https://code.videolan.org/rist/librist/-/merge_requests/257 + ./musl.patch ]; nativeBuildInputs = [ From bf92ca56f46baec4f269552d6b0491fa3fb20576 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Tue, 12 Nov 2024 13:14:07 +0100 Subject: [PATCH 079/693] =?UTF-8?q?tree-sitter:=200.24.3=20=E2=86=92=200.2?= =?UTF-8?q?4.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Diff: https://github.com/tree-sitter/tree-sitter/compare/v0.24.3...v0.24.4 --- pkgs/development/tools/parsing/tree-sitter/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/default.nix b/pkgs/development/tools/parsing/tree-sitter/default.nix index 87915de31ec4..5ac947c072f8 100644 --- a/pkgs/development/tools/parsing/tree-sitter/default.nix +++ b/pkgs/development/tools/parsing/tree-sitter/default.nix @@ -27,8 +27,8 @@ let # 2) nix-build -A tree-sitter.updater.update-all-grammars # 3) Set GITHUB_TOKEN env variable to avoid api rate limit (Use a Personal Access Token from https://github.com/settings/tokens It does not need any permissions) # 4) run the ./result script that is output by that (it updates ./grammars) - version = "0.24.3"; - hash = "sha256-2Pg4D1Pf1Ex6ykXouAJvD1NVfg5CH4rCQcSTAJmYwd4="; + version = "0.24.4"; + hash = "sha256-DIlPEz8oTzLm5BZHPjIQCHDHUXdUhL+LRrkld11HzXw="; src = fetchFromGitHub { owner = "tree-sitter"; @@ -111,7 +111,7 @@ rustPlatform.buildRustPackage { pname = "tree-sitter"; inherit src version; - cargoHash = "sha256-0ZoXf0eV3kmHaRoHcWrVEgoWnYNBsY9GiFfy84H+0mc="; + cargoHash = "sha256-32CcOb5op+7QOgLSw+8rvMW3GjJ0jaQsryX5DiW+bIk="; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security CoreServices ]; From 3427e995dbd9644c18bca337e5b23db4eb70015c Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Tue, 12 Nov 2024 20:59:55 +0100 Subject: [PATCH 080/693] tree-sitter: Update grammars --- .../parsing/tree-sitter/grammars/tree-sitter-bash.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-c-sharp.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-cmake.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-cpp.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-css.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-dart.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-earthfile.json | 10 +++++----- .../grammars/tree-sitter-embedded-template.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-fortran.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-gleam.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-go.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-haskell.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-html.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-java.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-javascript.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-jsdoc.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-json.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-julia.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-just.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-ledger.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-nix.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-nu.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-ocaml.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-php.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-python.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-ql-dbscheme.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-ql.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-regex.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-ruby.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-rust.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-scala.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-templ.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-tlaplus.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-typescript.json | 10 +++++----- .../parsing/tree-sitter/grammars/tree-sitter-uiua.json | 10 +++++----- .../tree-sitter/grammars/tree-sitter-verilog.json | 10 +++++----- pkgs/development/tools/parsing/tree-sitter/update.nix | 3 +++ 37 files changed, 183 insertions(+), 180 deletions(-) diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-bash.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-bash.json index 1c7fb3888868..c412e01f1735 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-bash.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-bash.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-bash", - "rev": "d1a1a3fe7189fdab5bd29a54d1df4a5873db5cb1", - "date": "2024-02-10T05:53:07-05:00", - "path": "/nix/store/wc1dawmsb13fbbag3jxaz30iklakkn7i-tree-sitter-bash", - "sha256": "00cjhv0zwlfp4i823y8r7wl2h2h63ygz2kmbcm16lvzspwiq8a2y", - "hash": "sha256-XiiEI7/6b2pCZatO8Z8fBgooKD8Z+SFQJNdR/sGGkgE=", + "rev": "487734f87fd87118028a65a4599352fa99c9cde8", + "date": "2024-11-11T01:52:16-05:00", + "path": "/nix/store/llqfabr73wh33skh2qzhwjh93zc5cy09-tree-sitter-bash", + "sha256": "1smlcfkxxknhya1b1h72zj3ccg35szbg9mii2xwh7iq9acnlzpgc", + "hash": "sha256-7N1PLVMJxwN5FzHW9NbXZTzGhvziwLCC8tDO3qdjtOo=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-c-sharp.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-c-sharp.json index 0329b6e5e4f3..435292c24e30 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-c-sharp.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-c-sharp.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-c-sharp", - "rev": "7a47daeaf0d410dd1a91c97b274bb7276dd96605", - "date": "2022-09-15T09:14:12+01:00", - "path": "/nix/store/sscjjlp833rqqvfpgh84wsnq59jmy90c-tree-sitter-c-sharp", - "sha256": "0lijbi5q49g50ji00p2lb45rvd76h07sif3xjl9b31yyxwillr6l", - "hash": "sha256-1GRKI+/eh7ESlX24qA+A5rSdC1lUXACiBOUlgktcMlI=", + "rev": "362a8a41b265056592a0c3771664a21d23a71392", + "date": "2024-11-11T00:21:27-05:00", + "path": "/nix/store/5b0dbka0dnwzna233bd2gc0rydahvk0q-tree-sitter-c-sharp", + "sha256": "0w6xdb8m38brhin0bmqsdqggdl95xqs3lbwq7azm5gg94agz9qf1", + "hash": "sha256-weH0nyLpvVK/OpgvOjTuJdH2Hm4a1wVshHmhUdFq3XA=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cmake.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cmake.json index e3a6f4b9e12a..00d30c080ed4 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cmake.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cmake.json @@ -1,10 +1,10 @@ { "url": "https://github.com/uyha/tree-sitter-cmake", - "rev": "f2569dd1fce0f252097a25bcbcb9ed8898840310", - "date": "2024-10-07T08:54:29Z", - "path": "/nix/store/8wbih7ylzajm44r4wxpr376r8r1jhbpy-tree-sitter-cmake", - "sha256": "1vy9qrvnmbyah8zb2lg2vwmwilh8byzlyxkwdd2ww5yg651izs1d", - "hash": "sha256-LegfQzHPF85Fa3x2T79fCNLIK9/iUbE+gsqvanfGye8=", + "rev": "e409ae33f00e04cde30f2bcffb979caf1a33562a", + "date": "2024-10-14T03:37:52+03:00", + "path": "/nix/store/hgwv6jwacl1md38yccvvvhigyk6h21s2-tree-sitter-cmake", + "sha256": "1v2kkxf9w0y9mwwgimgyvn1s9cmmp6jg71ckr001w1w8szyqqf7q", + "hash": "sha256-+DiM/deIBx4AyJOF86S5tbKkg93+1fg4r8kDnlyfU+w=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cpp.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cpp.json index ff2f413a9953..7230d1854286 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cpp.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-cpp.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-cpp", - "rev": "30d2fa385735378388a55917e2910965fce19748", - "date": "2024-09-22T21:23:40-04:00", - "path": "/nix/store/4lkh62dqx3mgs2k7hncp8892y00xakih-tree-sitter-cpp", - "sha256": "0sm8wbnc6allavcc1jrsdd6q59vp53j76kccrv9j4c74dfc1bc9v", - "hash": "sha256-O7EVmGvkMCLTzoxNc+Qod6eCTWs6y8DYVpQqw+ziqGo=", + "rev": "f41e1a044c8a84ea9fa8577fdd2eab92ec96de02", + "date": "2024-11-11T01:56:44-05:00", + "path": "/nix/store/9735qnyqvf3wcgiyr5wmbx8w0ggsksh5-tree-sitter-cpp", + "sha256": "0sbvvfa718qrjmfr53p8x3q2c19i4vhw0n20106c8mrvpsxm7zml", + "hash": "sha256-tP5Tu747V8QMCEBYwOEmMQUm8OjojpJdlRmjcJTbe2k=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-css.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-css.json index a7c098c78b98..3d58abd6884a 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-css.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-css.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-css", - "rev": "a68fcd1e6b03118d1e92ffa45e7ab7a39d52d3f7", - "date": "2024-09-02T04:29:00-04:00", - "path": "/nix/store/46v1b4mfmsgd7sk48n6l613vjcxpl3gg-tree-sitter-css", - "sha256": "1apypprrqn23ghay11w35vz31crpjdby6imjhnxq9cqj9rvhxgx3", - "hash": "sha256-o78Od04Ss4S7hbJG41eTN7Mw/i6Dh+AVfENYnPO9/qo=", + "rev": "66b4aad81acb269e7e98b2ed4b0c7f7252b23c5e", + "date": "2024-11-11T00:20:16-05:00", + "path": "/nix/store/s5672w3y7gfk99xb7q1s5vmqfj3frk7n-tree-sitter-css", + "sha256": "0p9n2sgjyrnvd4yr7z1kb63hq80w8aaxsiwx27f87nc78l950h0d", + "hash": "sha256-DUBQEkWH2YPcEZ1H3ZVCHCAMh1kz/JM9adtmL58WNl0=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-dart.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-dart.json index 57b620e57e05..15521af83a8b 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-dart.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-dart.json @@ -1,10 +1,10 @@ { "url": "https://github.com/usernobody14/tree-sitter-dart", - "rev": "9ac03bb2154316624fb4c41fe0f372a5f1597b43", - "date": "2024-09-01T14:20:26-06:00", - "path": "/nix/store/g3q5dd40gjm0iwf19afz3vz5amvr7dsg-tree-sitter-dart", - "sha256": "0nn7in0qr23vjkyk7ynyaw3rlbisx8vsvwf2yqclshdm72qabd7i", - "hash": "sha256-8bSlsDi1QU0Z9sLxrTfqOi6aB1fe+jP9lHuIjIGNx1o=", + "rev": "a7496b9d562be91e6588eecd5d7045832f575cd0", + "date": "2024-11-03T15:26:25-08:00", + "path": "/nix/store/wh7md297c0617dnjm3rpssbmn39xzksh-tree-sitter-dart", + "sha256": "1l6i04g8cskb2y21p9qsaixzwbqsg0kj18xw6jwhxgigkbaa0iqw", + "hash": "sha256-HEeg1Jovvg65NLyjICd4Gi/+e1QapxuEF2tqhh4B0dA=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-earthfile.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-earthfile.json index 2a025287f953..f762eee5eb34 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-earthfile.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-earthfile.json @@ -1,10 +1,10 @@ { "url": "https://github.com/glehmann/tree-sitter-earthfile", - "rev": "1d637f2002bb8b22d4c08d26ad2bfbc22916f3ce", - "date": "2024-09-07T22:41:52+02:00", - "path": "/nix/store/y2sjzjb5naajjzpshv4y1g38cala5sfw-tree-sitter-earthfile", - "sha256": "1kzl8639pm3pxvkh2flmy5azzi7r48a1mirh2iqkvjc55fv30frb", - "hash": "sha256-KzswtiuFyT1xFDDHGhQi+cT/VfGVOgHn7nfUm4ZB9M8=", + "rev": "059fb087247bef8789e938629388c3e7af32c986", + "date": "2024-11-09T21:50:50+01:00", + "path": "/nix/store/907d7p3lzbc22yvx1lw8qjinyviw87ja-tree-sitter-earthfile", + "sha256": "1yx4vxhyqwskfidbxbz3m7x9l18jnavrnp5f2xxwaaq75cbccyav", + "hash": "sha256-W3nGFisHK8V7F65cm7eyEgWa+qnjr75adFNz7GHfpPs=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-embedded-template.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-embedded-template.json index dcfb7983536d..426ad295313c 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-embedded-template.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-embedded-template.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-embedded-template", - "rev": "62b0a6e45900a7dff7c37da95fec20a09968ba52", - "date": "2024-09-02T02:11:42-04:00", - "path": "/nix/store/skq9pzdng2gblx99v9mxw3y90qxzs3q6-tree-sitter-embedded-template", - "sha256": "0sn821pbg3gay9v51i6r3xdwi985chzgn6php2svydy82ab2hiqp", - "hash": "sha256-F0colhLIN7+1uPAa+z5kBaXIWx/ZxFB28uqNt24QyGo=", + "rev": "332262529bc51abf5746317b2255ccc2fff778f8", + "date": "2024-11-11T01:51:07-05:00", + "path": "/nix/store/qfrdm02qnlllw3ric8pyv5gs0ahwnlbl-tree-sitter-embedded-template", + "sha256": "1vq9dywd9vcy59f6i5mk5n7vwk67g8j5x77czg7avpznskgfhqhb", + "hash": "sha256-C2Lo3tT2363O++ycXiR6x0y+jy2zlmhcKp7t1LhvCe8=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-fortran.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-fortran.json index 6b62fc988b0f..6bb6b7a53160 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-fortran.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-fortran.json @@ -1,10 +1,10 @@ { "url": "https://github.com/stadelmanma/tree-sitter-fortran", - "rev": "4a593dda9cbc050a6686187249f8350ceea292ce", - "date": "2024-09-26T12:07:02-04:00", - "path": "/nix/store/yvw262lh24nbz37mvwlxmxgqij0y74yp-tree-sitter-fortran", - "sha256": "1ss12vmg9ibwgz7wk2fmmghy1xw3rv29bn8fd7lr361j6p587h8y", - "hash": "sha256-HsGDyjUymJHpaQ7ZlcTOg/fg4avVicnPf3zF9OoWQes=", + "rev": "e9fbb3acbfc62b051616e53b17ab97b9823e8617", + "date": "2024-10-28T20:57:25-04:00", + "path": "/nix/store/4rjmcmphqkc8pv3k9vxx794wrzbqsrcz-tree-sitter-fortran", + "sha256": "1a2ahzm1ld1wvhr45ql98rykh6fvxdvjxpxxp9fv74xninf6rfqv", + "hash": "sha256-G7tsnI22k7Ndur3fLnfr2xk4fUaJ4kIy3Dw0GuqHSqg=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-gleam.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-gleam.json index 0d0dbc08924e..3ebbfca362e8 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-gleam.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-gleam.json @@ -1,10 +1,10 @@ { "url": "https://github.com/gleam-lang/tree-sitter-gleam", - "rev": "57c9951b290c8084d7c60b0aee7a2b30986ea031", - "date": "2024-09-26T08:29:11-05:00", - "path": "/nix/store/zgyi05wljzz1c264mx4lf62629lfkq4z-tree-sitter-gleam", - "sha256": "1jcamn09jgna2jyhfali3x74dp9bsp8h4ylkq24hhlyfkfsszqw9", - "hash": "sha256-ieOvtZvOUwiJwJN6AtHVK91GTh+RKge9FMo+mYCtisk=", + "rev": "2702fe84b986e4403a071bcb112d48e3dcde0ca4", + "date": "2024-10-30T19:13:15Z", + "path": "/nix/store/7gfpns8qclascf3d32ablmqw9nx81iq5-tree-sitter-gleam", + "sha256": "0cqsazqvl1hwpsayl39cz7j9jibbcql56rivwiwbvafrx4qgv3hd", + "hash": "sha256-DY79MOnZqb145DtmUyhma0WZ5PksDeqVvhwGuvFXGjM=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json index bbda8ba6b40d..b6fbb0de84bd 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-go.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-go", - "rev": "bbaa67a180cfe0c943e50c55130918be8efb20bd", - "date": "2023-07-26T05:48:29-04:00", - "path": "/nix/store/v9xq4ym9925y1qdgd4frcnbklphvw8mp-tree-sitter-go", - "sha256": "0wlhwcdlaj74japyn8wjza0fbwckqwbqv8iyyqdk0a5jf047rdqv", - "hash": "sha256-G7d8CHCyKDAb9j6ijRfHk/HlgPqSI+uvkuRIRRvjkHI=", + "rev": "5f564e3d6c85c1caa311227448a9839532013840", + "date": "2024-11-11T00:58:30-05:00", + "path": "/nix/store/1bc05y21im7ybmg1bkxbjilqg90miqfy-tree-sitter-go", + "sha256": "1pcryir0g1mkr8sla90l6c4ra2xb89sa7qyibr5j8fqlhyrz2hyg", + "hash": "sha256-z0Pxs4cUOyRLXtHjo3RCqwuVCTMUJEU1yrOGB3L0md0=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-haskell.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-haskell.json index 597e6e0c027d..3bcd64dcbe5a 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-haskell.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-haskell.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-haskell", - "rev": "558b997049fddcb07fc513528189c57d6129a260", - "date": "2024-09-02T05:58:07-04:00", - "path": "/nix/store/gqvq3azd0g60ghzhbqj5ghqb8q8gsvai-tree-sitter-haskell", - "sha256": "1jjknp2l8afggzxrp032998hw66r831069q4vy3i1hn9s4fw5y86", - "hash": "sha256-BvnCHdHJwhCH3wQnA8JA2RgOUUpigJv7f88pRMW1U8o=", + "rev": "c30d812bc90827f1a54106a25bc9a6307f5cdcec", + "date": "2024-11-10T13:07:41-05:00", + "path": "/nix/store/a98r40cngmpvr1hrmxh6v404jhqlk6kf-tree-sitter-haskell", + "sha256": "0gpdv2w82w6qikp19ma2v916jg5ksh9i26q0lnd3bgbqnllif23f", + "hash": "sha256-bggXKbV4vTWapQAbERPUszxpQtpC1RTujNhwgbjY7T4=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-html.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-html.json index dc80021f2a21..08a9a4166c1a 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-html.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-html.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-html", - "rev": "74cab04e10b71811a32dfdde10fd0162d55c54cc", - "date": "2024-02-19T01:18:16-05:00", - "path": "/nix/store/yz3yab424kskfrcvjz4y191rwpy78nd2-tree-sitter-html", - "sha256": "16ldv6p1zhbwqvy7g7m40rbswfjpc58cpmm9kxkd82wz5qv5i3sp", - "hash": "sha256-V49YNi6fC9Rmn6nWy1BhVzquVwaknnf8xnzBH67ZjZo=", + "rev": "5a5ca8551a179998360b4a4ca2c0f366a35acc03", + "date": "2024-11-11T00:55:18-05:00", + "path": "/nix/store/9wnjgv4nvkmq8n645ql8hmisz5h54nnq-tree-sitter-html", + "sha256": "0slhrmwcw2xax4ylyaykx4libkzlaz2lis8x8jmn6b3hbdxlrpix", + "hash": "sha256-Pd5Me1twLGOrRB3pSMVX9M8VKenTK0896aoLznjNkGo=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-java.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-java.json index 723155cf451a..32f2c01ba493 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-java.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-java.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-java", - "rev": "2b57cd9541f9fd3a89207d054ce8fbe72657c444", - "date": "2023-10-05T14:06:23+02:00", - "path": "/nix/store/6nark1nnsz96zl56i39dxrrlx2675k4i-tree-sitter-java", - "sha256": "1jhgmgiig5vxz8x961qdp9d3xwawgi5lwsfs1i7d53ffli1qm3v6", - "hash": "sha256-Zo+KQ6TOjdJODNppTkt8XPE+WroNB5M6+n2XF+OrD8o=", + "rev": "a1bbe92a6370bb4c15386735fbda12f2b812a923", + "date": "2024-11-11T01:04:02-05:00", + "path": "/nix/store/y7sylnz0igvnq70g3dzcv0l1qy93jhjy-tree-sitter-java", + "sha256": "009nhnn4dv1p8yvhamhr8xh6q0mqj844725l9k81rkzzxqlv4q82", + "hash": "sha256-AmGyKe7/zxzQTLSIQwiSuAJsYEcZVgW3RzfsRqyFNgE=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-javascript.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-javascript.json index 7c9b7ffbb69a..fd8859be185c 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-javascript.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-javascript.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-javascript", - "rev": "b6f0624c1447bc209830b195999b78a56b10a579", - "date": "2024-09-02T05:16:11-04:00", - "path": "/nix/store/q6l4f361yzqcnsl29qhm1dcir75fk0hq-tree-sitter-javascript", - "sha256": "03lyqswy7h9iw2mhjlsa7an3g76hqi074c06pvdjb57h637zisf5", - "hash": "sha256-xen4zzDwlCXbvgYwckDE0Jw3rDpKUwmr4DHB47nGng4=", + "rev": "3a837b6f3658ca3618f2022f8707e29739c91364", + "date": "2024-11-10T00:38:27-05:00", + "path": "/nix/store/hpvzw8l06lbvxsh0szkj44gshiqrjb02-tree-sitter-javascript", + "sha256": "03v1gpr5lnifrk4lns690fviid8p02wn7hfdwp3ynp7lh1cid63a", + "hash": "sha256-apgWWYD0XOvH5c3BY7kAF7UYtwPJaEvJzC5aWvJ9YQ8=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsdoc.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsdoc.json index d886cfd7e92c..a00bbfddb9d5 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsdoc.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-jsdoc.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-jsdoc", - "rev": "bc09606fc786ead131a301e4b7524888f2d5c517", - "date": "2024-09-02T04:15:15-04:00", - "path": "/nix/store/l1jmw9y271rl00y9lhjwscdmidl3mn31-tree-sitter-jsdoc", - "sha256": "080dzr7547vsapxdd7vs4id3m9mfnzqfzjzkssgyb1vpcdmrhl5m", - "hash": "sha256-tVCYa2N3h+Wf1vPL7/C3rqY6WiR6n9b6VXofUk7+DSA=", + "rev": "b253abf68a73217b7a52c0ec254f4b6a7bb86665", + "date": "2024-11-11T01:54:33-05:00", + "path": "/nix/store/w2hks666pc8yb031ydclz0qn7k0qsfa1-tree-sitter-jsdoc", + "sha256": "0vpvy5hnnr9l4ggii6fp6svv35l659b3n13028dzq0b363dxng03", + "hash": "sha256-Azzb2zBjAfwbEmAEO1YqhpaxtzbXmRjfIzRla2Hx+24=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-json.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-json.json index 9ace481a7922..dda51e46775b 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-json.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-json.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-json", - "rev": "8bfdb43f47ad805bb1ce093203cfcbaa8ed2c571", - "date": "2024-09-02T05:26:12-04:00", - "path": "/nix/store/qcm8dvbv4d4i989b7c8rc11fnbfh9nr6-tree-sitter-json", - "sha256": "0z9nq267cx0c6dpkq3hm24jcxv37l3lhpwabxpmmpmx2f758yjyc", - "hash": "sha256-zEuPynGi11vr7UvxC+mgZ+zOJBEVDjxvMwx0dozANn0=", + "rev": "ee35a6ebefcef0c5c416c0d1ccec7370cfca5a24", + "date": "2024-11-11T01:00:59-05:00", + "path": "/nix/store/1a2z29149h46rlb9s9wkr1ln52qh7hm1-tree-sitter-json", + "sha256": "0p0fiqi5imxm13s1fs6bhqw6v11n79ri1af3d072zm7jqkcl5mhc", + "hash": "sha256-DNZC2cTy1C8OaMOpEHM6NoRtOIbLaBf0CLXXWCKODlw=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-julia.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-julia.json index 0c49037052cb..7d3ebefad07e 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-julia.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-julia.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-julia", - "rev": "3520b57e418f734f582215181ecd926a6178c90f", - "date": "2024-09-05T13:11:36-05:00", - "path": "/nix/store/4zljgvbaih9ds4kcb52qk5r1si4dpy8m-tree-sitter-julia", - "sha256": "0lp3js2dmmfv9bsgsjrxj4j1yaj47hmzrkhv07s9yc8cwq749yr0", - "hash": "sha256-IPtEDuYMMZ/0ARvO/Cs8RCofJJE9S/30StvV2oSW41I=", + "rev": "a8e1262997d5a45520a06cbe1b86c0737d507054", + "date": "2024-11-11T00:25:28-05:00", + "path": "/nix/store/qrhmhag6j88rv7qg7nk1ya1rk5skyppj-tree-sitter-julia", + "sha256": "0xi04a48ly438gar25bkkvvr8by4dd013cnafbjdysqjfs04q2wg", + "hash": "sha256-jwtMgHYSa9/kcsqyEUBrxC+U955zFZHVQ4N4iogiIHY=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-just.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-just.json index 86172703b343..ee7bb27bb365 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-just.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-just.json @@ -1,10 +1,10 @@ { "url": "https://github.com/IndianBoy42/tree-sitter-just", - "rev": "390cec48bf04b5bb4e87e8ebc35a06ca3f7051cf", - "date": "2024-10-12T11:54:49-05:00", - "path": "/nix/store/wbplh7k0xa63pzld09nk6vdljlpc96fg-tree-sitter-just", - "sha256": "0r5xjx0v0fsghmin689ib39y682kk87374n2r8vq5xqdkv7m8gix", - "hash": "sha256-PT5Uz54N94I3ysKSMw6aUyDj01gxIWNjhU87sEGXvWQ=", + "rev": "1014d2fd6396856c312054d6c30df4d78b62966c", + "date": "2024-10-27T18:37:31-05:00", + "path": "/nix/store/niwnwg8nb4084y8vy50s818cxbl6gzwa-tree-sitter-just", + "sha256": "02df3cbcbf300n3hy98l8rwbz9ivdyd5s6yghmcrqf2973kzkypj", + "hash": "sha256-8vr55zhJOJxZhc8bXZpvO6a/eEYUJQ+HBWC4xRYbrgk=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ledger.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ledger.json index 02d5ca9f0cde..d48735c541cf 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ledger.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ledger.json @@ -1,10 +1,10 @@ { "url": "https://github.com/cbarrete/tree-sitter-ledger", - "rev": "8a841fb20ce683bfbb3469e6ba67f2851cfdf94a", - "date": "2023-05-07T23:13:39-04:00", - "path": "/nix/store/hdf6hzhb4h9p28hx26iqqz0cwf471aq8-tree-sitter-ledger", - "sha256": "12mfn42nhn0i8gf39aqbqfkccqc1mbn5z1vw5gh98pc9392jccq4", - "hash": "sha256-BDMmRRqJXZTgK3yHX+yqgWHGpsMLqzTcQxFYaAWxroo=", + "rev": "a2eff7fee59ee6adfc4a3646e2f41ba3b340a97d", + "date": "2024-10-13T19:47:52-04:00", + "path": "/nix/store/5szmgha7pgir3w8n558482fr60nxnhvv-tree-sitter-ledger", + "sha256": "0r9r05g14i29sb3mrx7gvi9finbim5vyb17pqpk9vds3d5ikwczd", + "hash": "sha256-7TM+Y2lDt53mxfeE5XepcdnoUtzv9FzH0klEEl4BOWU=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nix.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nix.json index df4b224a6314..aac43a34076e 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nix.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nix.json @@ -1,10 +1,10 @@ { "url": "https://github.com/cstrahan/tree-sitter-nix", - "rev": "456b14a2fa6315abc7e02fcffaf4a1f35d4955d3", - "date": "2024-10-12T02:22:35Z", - "path": "/nix/store/as4bh1khg5ymrdvzb9sb3d3d3nh4z2v7-tree-sitter-nix", - "sha256": "05jq1ssazilajk5s0i3zfy1jhx0qvpwjwf7cjp8z87n5qpirx3vr", - "hash": "sha256-eY+e48XFHvTRlew4LvndGHQog3d/RKDLlIrGr7QOWBY=", + "rev": "0240bbfce72d155823c3b7edec622dedd580bf02", + "date": "2024-11-12T12:58:37Z", + "path": "/nix/store/4cnv6lk60fxy7hlx18xzmd0y9gvfc2qq-tree-sitter-nix", + "sha256": "0814a5vbk71b4hnl5zr5pc5qgls2rifl1xh5cakl3sj4nxh7js37", + "hash": "sha256-Z2h5YLdE6kGnYgX2QF3MQtOHC7sl/0ItJCucuXZRJCA=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nu.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nu.json index 5b4701aa3986..13af8c7b5d11 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nu.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-nu.json @@ -1,10 +1,10 @@ { "url": "https://github.com/nushell/tree-sitter-nu", - "rev": "e3b4c967937cad628dca09bd098cd780d8288750", - "date": "2024-09-26T09:06:33-05:00", - "path": "/nix/store/b0dxxkkj4zqclhm2l6s8n8sqndzzsw49-tree-sitter-nu", - "sha256": "1652pyb888lbi4g7g6jh9bkqasm2zjch8d4ir2m90f6pl12c2nqf", - "hash": "sha256-DlvBRKDXOJCqyJE0BJn8omqF50pQmnceiYsihJa/opg=", + "rev": "7e0f16f608a9e804fae61430ade734f9f849fb80", + "date": "2024-11-09T07:02:51-06:00", + "path": "/nix/store/2ddk19m7asfq34bwgy6ivad1dx1m4bnc-tree-sitter-nu", + "sha256": "0zlqf7mxcgy6552bhiiiy11qrgw5xhnbhjx0awj416psrs8vaw85", + "hash": "sha256-BXG1kc76mkAkV6BLuCzshb+MQ/AxRrhEKcY/1utxmH4=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ocaml.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ocaml.json index c983defb998c..aa124ec03c2f 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ocaml.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ocaml.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-ocaml", - "rev": "5f7a97e9757d8afe6c0b0b5dd8734cf59f35456e", - "date": "2024-09-27T01:35:53+02:00", - "path": "/nix/store/aaq21ki5ds4l85ymww8yb04g6jwrmclm-tree-sitter-ocaml", - "sha256": "144b8wdlxyzwmbi7x8flxvs8v8b2p92xy70fvrsp417dj8k8s5cc", - "hash": "sha256-jBWNJpLtBHJ13g4c30W6YqGN9O7UoX7iqvz7ThtHi5A=", + "rev": "26bc61c206e7820f9f804b206f7765ffc55cd039", + "date": "2024-11-10T23:21:59-05:00", + "path": "/nix/store/dlkj7hw4sy5zywabkr67hgajpnsaw48c-tree-sitter-ocaml", + "sha256": "1rcvy51swpz6wpdk45z3m8xkrc03xl0hypwgbrnivsi9zizf14zj", + "hash": "sha256-8pPgfvwp6h1tXo9fDwHtA7A8O6rjFzLb5eZfrkPxm+U=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-php.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-php.json index 149336a19090..975daf866b42 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-php.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-php.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-php", - "rev": "a342f7c0ad1db48afc6d2420cdd87b55b51a0644", - "date": "2024-10-01T08:28:55-05:00", - "path": "/nix/store/nhhbb50wrzyqmqar66gynmc44qgrk2ws-tree-sitter-php", - "sha256": "0gblhb2cvl740pjccjqxkvdd9shq7f1grzz7qqv7knjvmzhdw858", - "hash": "sha256-qCDe4K9b2nk2xuf//II7GOrU2p4dS8bkBeTQzcSCdD0=", + "rev": "89e256dab1a990366e7931911fe144a14ffa539e", + "date": "2024-11-10T19:37:58-05:00", + "path": "/nix/store/v7j420hslh44ljw09m8jq22vw0gg2avz-tree-sitter-php", + "sha256": "1s12lrxv3arpx22vja2ig4za7wnfk5p8l4wsbpm8rkymm9z5v28z", + "hash": "sha256-H4ldfqrVz4zqXZoTim6ZzvKjPnlRKLmF6DersXumIug=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-python.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-python.json index 299aa72dadf5..ee7922207b95 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-python.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-python.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-python", - "rev": "8c65e256f971812276ff2a69a2f515c218ed7f82", - "date": "2024-09-02T20:40:41-04:00", - "path": "/nix/store/8mw7g7r8j8n8d8wssjz43nsmkhnlqd0b-tree-sitter-python", - "sha256": "0d51zk7znaxvwcacp5gzm2rwprk8m10wnxhk5g4q7sygbcvl2rzj", - "hash": "sha256-8mdBN1vP64PJKxN2y0GoaObLs6j/lcsU47sr+8/8oTQ=", + "rev": "6d14e44ea217bc5bb1c1804180e9818d7d1b8d91", + "date": "2024-11-11T01:55:16-05:00", + "path": "/nix/store/3w1qnipkm727n9bm679k6vngl6fnrsy7-tree-sitter-python", + "sha256": "0dzy60m16qb0i9xrwi3vnii3gy1k50prbbgq3362gcm4dj5hcdpy", + "hash": "sha256-/jYGi2yksifMGPitlS8oM/g3YrR7RJ57imBhEyow/jc=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql-dbscheme.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql-dbscheme.json index 81b8070b53d0..8daf67a2c621 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql-dbscheme.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql-dbscheme.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-ql-dbscheme", - "rev": "1980b4b6998a1138d326f863e6168f0f2c0c544d", - "date": "2024-09-02T15:26:46-04:00", - "path": "/nix/store/s3klligl52ag14ai8n1fcwhn7k4m1wdk-tree-sitter-ql-dbscheme", - "sha256": "1k3qz85507xysx2msr1ns44ya3x3xxb9kxfzvpp088w6nrc6cipm", - "hash": "sha256-9UZmWLaGIwTu3d/1mVbvow/lCdE2ZF1F174fUAr6eMw=", + "rev": "15baf01feb5f20bb3d668d27abc0a36e944b183f", + "date": "2024-11-10T23:41:29-05:00", + "path": "/nix/store/9bmzx5bc247dir7skgb8jh3hqh3wvw53-tree-sitter-ql-dbscheme", + "sha256": "0wgaa0zsb9n4vf6na5znkb4vwrnw1ha9xqzi8w72bk7kipwfcwcm", + "hash": "sha256-lXHm+I3zzCUOR/HjnhQM3Ga+yZr2F2WN28SmpT9Q6nE=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql.json index 901d037b9feb..f6d02a241070 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ql.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-ql", - "rev": "c73c31c89cb0019ef56fe8bc1723e7c36e0be607", - "date": "2024-09-02T14:59:29-04:00", - "path": "/nix/store/diaw28vzzry46dc5b0fra2xw263lmbhs-tree-sitter-ql", - "sha256": "1lnasix7vb9q7lixy5qayslzw9yk53gll8130d03h0a9vl44dw8b", - "hash": "sha256-C/FGCN1JAThAAyMgSt8o0yf+qfYKF98jPTitfXrUytI=", + "rev": "1fd627a4e8bff8c24c11987474bd33112bead857", + "date": "2024-11-10T23:34:04-05:00", + "path": "/nix/store/q8zbiszrsnrvpl9q2m88kzr2hm5a621l-tree-sitter-ql", + "sha256": "18kvspj7kqmm0bv1prnzx68xvkhcawj5xa12da9makv69y7xp7wq", + "hash": "sha256-mJ/bj09mT1WTaiKoXiRXDM7dkenf5hv2ArXieeTVe6I=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-regex.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-regex.json index db619e455693..62357a454806 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-regex.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-regex.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-regex", - "rev": "f70251e1f1d72bd6dc1f897f956f9112f8668441", - "date": "2024-09-02T03:31:05-04:00", - "path": "/nix/store/9shrpsgb7rnk24nwc3xr1xv33wxi0ydk-tree-sitter-regex", - "sha256": "08i97gwvf6777h6dkvsd08s2n4pmpz2xghxpn1npn16jcpaknhhv", - "hash": "sha256-G0I71WXSBHttsLfD18W/9RIrNAJN79kMPOcYt/k7KSI=", + "rev": "4470c59041416e8a2a9fa343595ca28ed91f38b8", + "date": "2024-11-11T00:48:15-05:00", + "path": "/nix/store/2iwwqdj0zjxxqqc6aw2hwqi55aczbf5x-tree-sitter-regex", + "sha256": "098pkjicnw3a8bypb7f2xqwhqjlfvicibcmgx5nsb0icdyvagm8q", + "hash": "sha256-GNWntm8sgqVt6a+yFVncjkoMOe7CnXX9Qmpwy6KcFyU=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ruby.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ruby.json index f9ea1c01fafa..9ec40c9df6b4 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ruby.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-ruby.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-ruby", - "rev": "7a010836b74351855148818d5cb8170dc4df8e6a", - "date": "2024-02-10T23:07:01-05:00", - "path": "/nix/store/3k3zb8n4cy49hgzaai20ka8r3fam8djc-tree-sitter-ruby", - "sha256": "03d96cv6iqmyak2jw4wffyynmh9hqk8d4i4sgn5d5w24wfv6r3lb", - "hash": "sha256-i45stuNE8NKKfZpE0tDEMMFqvXeOEy7FVL7iaDYzqQ0=", + "rev": "71bd32fb7607035768799732addba884a37a6210", + "date": "2024-11-10T23:48:17-05:00", + "path": "/nix/store/d3r6c4r9691zy7dxx9v009p7xwnl3wln-tree-sitter-ruby", + "sha256": "0c1vs63ydcb3q2wnif18l5irbj6chkcvd3p6dg0vyhklk5acrvca", + "hash": "sha256-iu3MVJl0Qr/Ba+aOttmEzMiVY6EouGi5wGOx5ofROzA=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-rust.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-rust.json index a682053ee93e..eece08fd3788 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-rust.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-rust.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-rust", - "rev": "6b7d1fc73ded57f73b1619bcf4371618212208b1", - "date": "2024-09-02T05:17:41-04:00", - "path": "/nix/store/7qazknjwzfdl0jyc7jyqskjagw00i5wy-tree-sitter-rust", - "sha256": "08m0i6ar5gkz1pvz8lh2dfwjff4szzl0q0lzbqp0p5il0arxvbbh", - "hash": "sha256-cK3dswI0lgsuXp8CDOj/mjgnuWsCUvT3DX++kpWJoCI=", + "rev": "48eef06e8d806413d9a617f4a3f4d3168c4e5918", + "date": "2024-11-10T00:44:07-05:00", + "path": "/nix/store/8w8d3p1zn5dxlmkn3z03jk7f3bp8g0yh-tree-sitter-rust", + "sha256": "09piqnxiyhms8503m6jxqr0mwimd75mvh3j2g51jv5796kjy3alz", + "hash": "sha256-n6rh5TTplC1DeUIOuGs5rUZeQcZdmjpAQbpCH7vF8SY=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-scala.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-scala.json index c72db6775674..19c28b7eff35 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-scala.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-scala.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-scala", - "rev": "62e7506f5ec87e2daf218e3bbd317401768d9963", - "date": "2024-09-12T09:36:24-04:00", - "path": "/nix/store/kcrap980k751mp2mk59z19jcc196pk08-tree-sitter-scala", - "sha256": "0ybj359b21cqy1nqr1psjy244y7d672iik9a3pqxrg67cppwwn26", - "hash": "sha256-RljO72XHvNzxHSrNGMUx7XhChJf6hoxt8JgFsVIZcnk=", + "rev": "28c3be045afe1e293b5ba1a74e759601e74050c3", + "date": "2024-11-11T00:29:53-05:00", + "path": "/nix/store/zypc1jvywxz21dbik2awcmhxrpl94k60-tree-sitter-scala", + "sha256": "0iyy6273ki4fgbmxn2xaksiw2nq9czhh7azdm9fn29qf7sda55y4", + "hash": "sha256-xJeimj4OJ2Fdqu2rA+FnCVvBo56qC9vreo7EOY4w3kc=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-templ.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-templ.json index 32997568a47c..0a61c5a22ebc 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-templ.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-templ.json @@ -1,10 +1,10 @@ { "url": "https://github.com/vrischmann/tree-sitter-templ", - "rev": "4519e3ec9ca92754ca25659bb1fd410d5e0f8d88", - "date": "2024-10-13T13:44:06+02:00", - "path": "/nix/store/2qw76ygi99kpygl7v49syy6v7n81fii2-tree-sitter-templ", - "sha256": "10zgbql8z1rnn7wm5gm8z9mfpp0rzm0pnidjj8d8crn4l2b55kl9", - "hash": "sha256-ic5SlqDEZoYakrJFe0H9GdzravqovlL5sTaHjyhe74M=", + "rev": "73a558744fff7c4560f4801e14a467811f608556", + "date": "2024-11-11T15:28:15+01:00", + "path": "/nix/store/anf5z6bmmwrqqwjirylamcc94h2vki8l-tree-sitter-templ", + "sha256": "0rb08502gf91z1pw2q3gvzv890i8v7q1bdva2raf8kn8v05bgnsr", + "hash": "sha256-Wdu3CtjITuRUFmq3FfDZKIKE9t9vYMFv+CG5J0BBYGU=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-tlaplus.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-tlaplus.json index 444e95e3bdab..fda7ed856d18 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-tlaplus.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-tlaplus.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tlaplus-community/tree-sitter-tlaplus", - "rev": "b9e3978f363b3f8884c886a01d15e41bd14d30bd", - "date": "2024-09-28T09:39:52-04:00", - "path": "/nix/store/cl7xp08fmz23bzn67lzj9ygwzp5fwgz6-tree-sitter-tlaplus", - "sha256": "02igqk23gfh5ffdbcdngri769dcr1yd5pcla8vvgwlrgnh1j4bf4", - "hash": "sha256-xC0iA7QvU/72RoqyW5oPmbVkTszPNraacwW6N8TELwo=", + "rev": "8a8413f1d08e7ee40b347206d26eac4324db9fd9", + "date": "2024-10-20T11:46:21-04:00", + "path": "/nix/store/j8fx0g50q12kbxa85rkg9pv2m6zmgmxy-tree-sitter-tlaplus", + "sha256": "11073rjg9n9hnr88193mmb8ff5xlcv6isgqc0g2fbfbl0y820zlk", + "hash": "sha256-k34gkAd0ueXEAww/Hc1mtBfn0Kp1pIBQtjDZ9GQeB4Q=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-typescript.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-typescript.json index bd97462e4bd7..524720491330 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-typescript.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-typescript.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-typescript", - "rev": "eb6b845dee9ee22987262699a152312604313662", - "date": "2024-01-31T10:42:05-05:00", - "path": "/nix/store/f8pj12fbzxfipidrj1srz3ld8qw5x4h7-tree-sitter-typescript", - "sha256": "1109v1w6icm018hkc41ysn5iflc9gq2q02v23dy4bnfas7kzizyc", - "hash": "sha256-zP/459HK2UV8G2ILgAV+iVEXi9U+EDYhCqCyaHjYCYQ=", + "rev": "f975a621f4e7f532fe322e13c4f79495e0a7b2e7", + "date": "2024-11-10T21:32:53-05:00", + "path": "/nix/store/1gsbn9dw7bbpq5mrgmw71kif0wjmf71s-tree-sitter-typescript", + "sha256": "0rlhhqp9dv6y0iljb4bf90d89f07zkfnsrxjb6rvw985ibwpjkh9", + "hash": "sha256-CU55+YoFJb6zWbJnbd38B7iEGkhukSVpBN7sli6GkGY=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-uiua.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-uiua.json index 7db26325a7fd..5ce9ec929f5e 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-uiua.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-uiua.json @@ -1,10 +1,10 @@ { "url": "https://github.com/shnarazk/tree-sitter-uiua", - "rev": "942e8365d10b9b62be9f2a8b0503459d3d8f3af3", - "date": "2024-02-29T15:18:16+09:00", - "path": "/nix/store/ahzzkr0wlxkxwnmp7sysjhfcgdfy4lkh-tree-sitter-uiua", - "sha256": "1pwhdsvdi6p70r9iij3mqnpdl0m2vz242l2qxlanplfcasf58sf9", - "hash": "sha256-yWlUnFbM0WsV7VhQQcTfogLarsV1yBhTBuea2LZukN8=", + "rev": "f3fb8b8fe367b00e2ad858a419da3dedc8cbeeeb", + "date": "2024-10-26T11:23:32+09:00", + "path": "/nix/store/ifvi5012plsbl9lxv416yp4jfjrw854f-tree-sitter-uiua", + "sha256": "02fiaqap937d072qq1prvljhp7fdh7mxisxjh99vb20kik9r3yvg", + "hash": "sha256-b/uR04wTiLVTgrLr2OuBzZ0LJd35BozFAe2MdBVW0Qk=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-verilog.json b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-verilog.json index e0c25f231042..8fc8bbf4d539 100644 --- a/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-verilog.json +++ b/pkgs/development/tools/parsing/tree-sitter/grammars/tree-sitter-verilog.json @@ -1,10 +1,10 @@ { "url": "https://github.com/tree-sitter/tree-sitter-verilog", - "rev": "075ebfc84543675f12e79a955f79d717772dcef3", - "date": "2024-04-27T13:13:12-04:00", - "path": "/nix/store/6wsakwazlb9y44n2pmr6xfx0dn6hr99x-tree-sitter-verilog", - "sha256": "0j5iycqm5dmvzy7dssm8km1djhr7hnfgk26zyzcxanhrwwq3wi4k", - "hash": "sha256-k0Q+MOcZWtXZ99+I+ZyFJ0PZQp2oat2O/7u2UjHzsUg=", + "rev": "521b535e41a5acd2c6539a922d4649bbe8275110", + "date": "2024-11-10T18:32:24-05:00", + "path": "/nix/store/b4ybpz7bv7bsx6kkpgvizhp6rfywn96x-tree-sitter-verilog", + "sha256": "1mk8waij5lbj1wbayvqs0cxk003dssdic13h14gd5fi1ckfvflja", + "hash": "sha256-SlK33WQhutIeCXAEFpvWbQAwOwMab68WD3LRIqPiaNY=", "fetchLFS": false, "fetchSubmodules": false, "deepClone": false, diff --git a/pkgs/development/tools/parsing/tree-sitter/update.nix b/pkgs/development/tools/parsing/tree-sitter/update.nix index 3c45e4b74089..386c178776bd 100644 --- a/pkgs/development/tools/parsing/tree-sitter/update.nix +++ b/pkgs/development/tools/parsing/tree-sitter/update.nix @@ -89,6 +89,9 @@ let "go-tree-sitter" # kotlin bindings to the Tree-sitter parsing library "kotlin-tree-sitter" + # not ready to be used + "zig-tree-sitter" + # Non-grammar repositories ".github" From b5ef6f670a95861bb1b0561882349dc06dcbac33 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 12 Nov 2024 23:58:18 +0300 Subject: [PATCH 081/693] qt{5,6}.qtbase: build without libinput by default libinput in Qt itself is only really relevant to embedded-brained use cases (linuxfb/eglfb backends), and this will allow us to update libinput trivially on master. --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 8 ++++---- pkgs/development/libraries/qt-6/modules/qtbase.nix | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index eb3fc8af96d7..8828be86c08a 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -7,7 +7,7 @@ , apple-sdk_13, darwinMinVersionHook, xcbuild , dbus, fontconfig, freetype, glib, harfbuzz, icu, libdrm, libX11, libXcomposite -, libXcursor, libXext, libXi, libXrender, libinput, libjpeg, libpng , libxcb +, libXcursor, libXext, libXi, libXrender, libjpeg, libpng , libxcb , libxkbcommon, libxml2, libxslt, openssl, pcre2, sqlite, udev, xcbutil , xcbutilimage, xcbutilkeysyms, xcbutilrenderutil, xcbutilwm , zlib, at-spi2-core @@ -15,6 +15,7 @@ , cups ? null, postgresql ? null , withGtk3 ? false, dconf, gtk3 , withQttranslation ? true, qttranslations ? null +, withLibinput ? false, libinput # options , libGLSupported ? !stdenv.hostPlatform.isDarwin @@ -80,7 +81,7 @@ stdenv.mkDerivation (finalAttrs: ({ buildInputs = [ python3 at-spi2-core ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) ( - [ libinput ] + lib.optional withLibinput libinput ++ lib.optional withGtk3 gtk3 ) ++ lib.optional stdenv.isDarwin darwinVersionInputs @@ -352,14 +353,13 @@ stdenv.mkDerivation (finalAttrs: ({ "-L" "${libXrender.out}/lib" "-I" "${libXrender.out}/include" - "-libinput" - ''-${lib.optionalString (cups == null) "no-"}cups'' "-dbus-linked" "-glib" ] ++ [ "-system-libpng" ] ++ lib.optional withGtk3 "-gtk" + ++ lib.optional withLibinput "-libinput" ++ [ "-inotify" ] ++ lib.optionals (cups != null) [ diff --git a/pkgs/development/libraries/qt-6/modules/qtbase.nix b/pkgs/development/libraries/qt-6/modules/qtbase.nix index 9df79ccc89be..b57099ba0c00 100644 --- a/pkgs/development/libraries/qt-6/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-6/modules/qtbase.nix @@ -44,7 +44,6 @@ , libXext , libXi , libXrender -, libinput , libjpeg , libpng , libxcb @@ -78,6 +77,8 @@ , withGtk3 ? false , dconf , gtk3 +, withLibinput ? false +, libinput # options , libGLSupported ? stdenv.hostPlatform.isLinux , libGL @@ -163,10 +164,9 @@ stdenv.mkDerivation rec { buildInputs = lib.optionals (lib.meta.availableOn stdenv.hostPlatform at-spi2-core) [ at-spi2-core - ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform libinput) [ - libinput ] ++ lib.optionals stdenv.hostPlatform.isDarwin darwinVersionInputs ++ lib.optional withGtk3 gtk3 + ++ lib.optional withLibinput libinput ++ lib.optional (libmysqlclient != null && !stdenv.hostPlatform.isMinGW) libmysqlclient ++ lib.optional (postgresql != null && lib.meta.availableOn stdenv.hostPlatform postgresql) postgresql; From 1810b522d7c69fbc67f05aed4183aa53afffecfd Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 13 Nov 2024 08:04:55 -0500 Subject: [PATCH 082/693] Revert "stdenv: set NIX_DONT_SET_RPATH_FOR_TARGET on Darwin" This reverts commit 10c87ee2c7661b0e699b270744439b2643aaa43b. --- pkgs/stdenv/generic/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 2cbd2636a463..2cda43d5632f 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -114,9 +114,14 @@ let export NIX_NO_SELF_RPATH=1 '' + lib.optionalString (hostPlatform.isDarwin && hostPlatform.isMacOS) '' export MACOSX_DEPLOYMENT_TARGET=${hostPlatform.darwinMinVersion} - '' + lib.optionalString targetPlatform.isDarwin '' - export NIX_DONT_SET_RPATH_FOR_TARGET=1 - ''; + '' + # TODO this should be uncommented, but it causes stupid mass rebuilds. I + # think the best solution would just be to fixup linux RPATHs so we don't + # need to set `-rpath` anywhere. + # + lib.optionalString targetPlatform.isDarwin '' + # export NIX_DONT_SET_RPATH_FOR_TARGET=1 + # '' + ; inherit initialPath shell defaultNativeBuildInputs defaultBuildInputs; From 5b35070c8bf58afcbd8fdd65b65c06b43f778093 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 28 Oct 2024 19:10:12 +0100 Subject: [PATCH 083/693] python3Packages.asyncpg: 0.29.0 -> 0.30.0 This release supports PostgreSQL 17. https://github.com/MagicStack/asyncpg/releases/tag/v0.30.0 --- pkgs/development/python-modules/asyncpg/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/asyncpg/default.nix b/pkgs/development/python-modules/asyncpg/default.nix index b855d952ed2d..bc993bda0d59 100644 --- a/pkgs/development/python-modules/asyncpg/default.nix +++ b/pkgs/development/python-modules/asyncpg/default.nix @@ -8,18 +8,19 @@ pythonOlder, pytest-xdist, pytestCheckHook, + distro, }: buildPythonPackage rec { pname = "asyncpg"; - version = "0.29.0"; + version = "0.30.0"; format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-0cSeH0T/+v2aVeGpsQFZCFnYgdY56ikiUW9dnFEtNU4="; + hash = "sha256-xVHpkoq2cHYC9EgRgX+CujxEbgGL/h06vsyLpfPqyFE="; }; # sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495 @@ -34,6 +35,7 @@ buildPythonPackage rec { postgresql pytest-xdist pytestCheckHook + distro ]; preCheck = '' From 3d52077f5a6331c12eeb7b6a0723b49bea10d6fe Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Fri, 8 Nov 2024 22:59:17 -0800 Subject: [PATCH 084/693] rpm: 4.18.1 -> 4.20.0 --- pkgs/tools/package-management/rpm/default.nix | 123 +++++++----------- .../rpm/sighandler_t-macos.patch | 19 +++ pkgs/top-level/all-packages.nix | 1 - pkgs/top-level/python-packages.nix | 2 +- 4 files changed, 69 insertions(+), 76 deletions(-) create mode 100644 pkgs/tools/package-management/rpm/sighandler_t-macos.patch diff --git a/pkgs/tools/package-management/rpm/default.nix b/pkgs/tools/package-management/rpm/default.nix index e013e82fc08e..321b1ec1203e 100644 --- a/pkgs/tools/package-management/rpm/default.nix +++ b/pkgs/tools/package-management/rpm/default.nix @@ -1,24 +1,18 @@ { stdenv , lib , pkg-config -, autoreconfHook -, pandoc -, fetchpatch2 +, cmake , fetchurl -, cpio , zlib , bzip2 , file , elfutils -, libbfd -, libgcrypt , libarchive -, nspr -, nss +, readline +, audit , popt -, db , xz -, python +, python3 , lua , llvmPackages , sqlite @@ -26,89 +20,70 @@ , libcap , apple-sdk_13 , darwinMinVersionHook +, openssl +#, libselinux +, rpm-sequoia +, gettext +, systemd +, bubblewrap +, autoconf , gnupg }: stdenv.mkDerivation rec { pname = "rpm"; - version = "4.18.1"; + version = "4.20.0"; src = fetchurl { url = "https://ftp.osuosl.org/pub/rpm/releases/rpm-${lib.versions.majorMinor version}.x/rpm-${version}.tar.bz2"; - hash = "sha256-N/O0LAlmlB4q0/EP3jY5gkplkdBxl7qP0IacoHeeH1Y="; + hash = "sha256-Vv92OM/5i1bUp1A/9ZvHnygabd/82g0jjAgr7ftfvns="; }; - patches = [ - # Resolves `error: expected expression` on clang - # See: https://github.com/rpm-software-management/rpm/issues/2435. - (fetchpatch2 { - url = "https://github.com/rpm-software-management/rpm/commit/b960c0b43a080287a7c13533eeb2d9f288db1414.diff?full_index=1"; - hash = "sha256-0f7YOL2xR07xgAEN32oRbOjPsAsVmKFVtTLXUOeFAa8="; - }) - # Fix missing includes required to build on Darwin. - # See: https://github.com/rpm-software-management/rpm/pull/2571. - (fetchpatch2 { - url = "https://github.com/rpm-software-management/rpm/commit/f07875392a09228b1a25c1763a50bbbd0f6798c2.diff?full_index=1"; - hash = "sha256-DLpzMApRCgI9zqheglFtqL8E1vq9X/aQa0HMnIAQgk8="; - }) - (fetchpatch2 { - url = "https://github.com/rpm-software-management/rpm/commit/b2e67642fd8cb64d8cb1cca9e759396c1c10807d.diff?full_index=1"; - hash = "sha256-q3fIBfiUJVmw6Vi2/Bo/zX6/cqTM7aFnskKfMVK3DlU="; - }) - ]; + postPatch = '' + sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python3.sitePackages}#' python/CMakeLists.txt + sed -i 's#PATHS ENV MYPATH#PATHS ENV PATH#' CMakeLists.txt + ''; - outputs = [ "out" "dev" "man" ]; + outputs = [ + "out" "man" + ] ++ lib.optionals stdenv.hostPlatform.isLinux [ + "dev" + ]; separateDebugInfo = true; - nativeBuildInputs = [ autoreconfHook pkg-config pandoc ]; - buildInputs = [ cpio zlib zstd bzip2 file libarchive libgcrypt nspr nss db xz python lua sqlite gnupg ] + nativeBuildInputs = [ cmake pkg-config autoconf python3 gettext ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ bubblewrap ]; + buildInputs = [ bzip2 zlib zstd file libarchive xz lua sqlite openssl readline rpm-sequoia gnupg ] ++ lib.optional stdenv.cc.isClang llvmPackages.openmp - ++ lib.optional stdenv.hostPlatform.isLinux libcap + ++ lib.optionals stdenv.hostPlatform.isLinux [ libcap audit systemd ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_13 (darwinMinVersionHook "13.0") ]; + patches = lib.optionals stdenv.hostPlatform.isDarwin [ + ./sighandler_t-macos.patch + ]; + + cmakeFlags = [ + "-DWITH_DBUS=OFF" + # libselinux is missing propagatedBuildInputs + "-DWITH_SELINUX=OFF" + ] ++ lib.optionals stdenv.hostPlatform.isLinux [ + "-DMKTREE_BACKEND=rootfs" + ] ++ lib.optionals (!stdenv.hostPlatform.isLinux) [ + # Test suite rely on either podman or bubblewrap + "-DENABLE_TESTSUITE=OFF" + + "-DWITH_CAP=OFF" + "-DWITH_AUDIT=OFF" + "-DWITH_ACL=OFF" + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "-DWITH_LIBELF=OFF" + "-DWITH_LIBDW=OFF" + ]; + # rpm/rpmlib.h includes popt.h, and then the pkg-config file mentions these as linkage requirements - propagatedBuildInputs = [ popt nss db bzip2 libarchive libbfd ] + propagatedBuildInputs = [ popt ] ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform elfutils) elfutils; - env.NIX_CFLAGS_COMPILE = "-I${nspr.dev}/include/nspr -I${nss.dev}/include/nss"; - - configureFlags = [ - "--with-external-db" - "--with-lua" - "--enable-python" - "--enable-ndb" - "--enable-sqlite" - "--enable-zstd" - "--localstatedir=/var" - "--sharedstatedir=/com" - ] ++ lib.optional stdenv.hostPlatform.isLinux "--with-cap"; - - postPatch = '' - substituteInPlace Makefile.am --replace '@$(MKDIR_P) $(DESTDIR)$(localstatedir)/tmp' "" - ''; - - preFixup = '' - # Don't keep a reference to RPM headers or manpages - for f in $out/lib/rpm/platform/*/macros; do - substituteInPlace $f --replace "$dev" "/rpm-dev-path-was-here" - substituteInPlace $f --replace "$man" "/rpm-man-path-was-here" - done - - # Avoid macros like '%__ld' pointing to absolute paths - for tool in ld nm objcopy objdump strip; do - sed -i $out/lib/rpm/macros -e "s/^%__$tool.*/%__$tool $tool/" - done - - # Avoid helper scripts pointing to absolute paths - for tool in find-provides find-requires; do - sed -i $out/lib/rpm/$tool -e "s#/usr/lib/rpm/#$out/lib/rpm/#" - done - - # symlinks produced by build are incorrect - ln -sf $out/bin/{rpm,rpmquery} - ln -sf $out/bin/{rpm,rpmverify} - ''; - enableParallelBuilding = true; meta = with lib; { diff --git a/pkgs/tools/package-management/rpm/sighandler_t-macos.patch b/pkgs/tools/package-management/rpm/sighandler_t-macos.patch new file mode 100644 index 000000000000..e406c8c23f41 --- /dev/null +++ b/pkgs/tools/package-management/rpm/sighandler_t-macos.patch @@ -0,0 +1,19 @@ +Revert "signal() returns sighandler_t, not void *" + +sadly, on darwin, sighandler_t is not defined + +This reverts commit 7bb4dfd0bcadc7c6177d6fe88a4bcccf7fac98b9 + +diff --git a/build/rpmfc.c b/build/rpmfc.c +index 86dd36d14..48643a321 100644 +--- a/build/rpmfc.c ++++ b/build/rpmfc.c +@@ -295,7 +295,7 @@ static int getOutputFrom(ARGV_t argv, + return -1; + } + +- sighandler_t oldhandler = signal(SIGPIPE, SIG_IGN); ++ void *oldhandler = signal(SIGPIPE, SIG_IGN); + + child = fork(); + if (child < 0) { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e346c64100bb..8fef41ee1062 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5214,7 +5214,6 @@ with pkgs; rosenpass-tools = callPackage ../tools/networking/rosenpass/tools.nix { }; rpm = callPackage ../tools/package-management/rpm { - python = python3; lua = lua5_4; }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 624514fd100b..53d076473c18 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14021,7 +14021,7 @@ self: super: with self; { rply = callPackage ../development/python-modules/rply { }; rpm = toPythonModule (pkgs.rpm.override { - inherit python; + python3 = self.python; }); rpmfile = callPackage ../development/python-modules/rpmfile { }; From 841334f22e6f69037f82ac1d9b21f8850a27f0b7 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 29 Sep 2024 10:19:39 +0200 Subject: [PATCH 085/693] postgresql: 16.4 -> 17.0 As discussed in [1] this change is decoupled from the major version update for the NixOS postgresql module. [1]: https://github.com/NixOS/nixpkgs/pull/329611/files#r1701393693 --- pkgs/by-name/ko/kore/package.nix | 5 +++-- pkgs/by-name/pg/pg-dump-anon/package.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ko/kore/package.nix b/pkgs/by-name/ko/kore/package.nix index 9105afa52071..9e2bea5aa541 100644 --- a/pkgs/by-name/ko/kore/package.nix +++ b/pkgs/by-name/ko/kore/package.nix @@ -1,8 +1,9 @@ -{ lib, stdenv, fetchFromGitHub, openssl, curl, postgresql, yajl }: +{ lib, stdenv, fetchFromGitHub, openssl, curl, postgresql_16, yajl }: stdenv.mkDerivation rec { pname = "kore"; + # TODO: Check on next update whether postgresql 17 is supported. version = "4.2.3"; src = fetchFromGitHub { @@ -12,7 +13,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-p0M2P02xwww5EnT28VnEtj5b+/jkPW3YkJMuK79vp4k="; }; - buildInputs = [ openssl curl postgresql yajl ]; + buildInputs = [ openssl curl postgresql_16 yajl ]; makeFlags = [ "PREFIX=${placeholder "out"}" diff --git a/pkgs/by-name/pg/pg-dump-anon/package.nix b/pkgs/by-name/pg/pg-dump-anon/package.nix index a097eb8aa9c7..7eada77bfb17 100644 --- a/pkgs/by-name/pg/pg-dump-anon/package.nix +++ b/pkgs/by-name/pg/pg-dump-anon/package.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitLab, buildGoModule, nixosTests, postgresql_17, makeWrapper }: +{ lib, fetchFromGitLab, buildGoModule, nixosTests, postgresql, makeWrapper }: buildGoModule rec { pname = "pg-dump-anon"; @@ -19,7 +19,7 @@ buildGoModule rec { nativeBuildInputs = [ makeWrapper ]; postInstall = '' wrapProgram $out/bin/pg_dump_anon \ - --prefix PATH : ${lib.makeBinPath [ postgresql_17 ]} + --prefix PATH : ${lib.makeBinPath [ postgresql ]} ''; meta = with lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e346c64100bb..04c4a5ec05ef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12165,8 +12165,8 @@ with pkgs; postgresql_16_jit postgresql_17_jit ; - postgresql = postgresql_16; - postgresql_jit = postgresql_16_jit; + postgresql = postgresql_17; + postgresql_jit = postgresql_17_jit; postgresqlPackages = recurseIntoAttrs postgresql.pkgs; postgresqlJitPackages = recurseIntoAttrs postgresql_jit.pkgs; postgresql12Packages = recurseIntoAttrs postgresql_12.pkgs; From 17a4a36321947c3c35d0eb1a1507cc836899025d Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 30 Oct 2024 22:16:40 +0100 Subject: [PATCH 086/693] python3Packages.psutil: use placeholder "out" instead of $out To avoid depending on bash eval behavior of pytestFlagsArray, which we'd like to remove. --- pkgs/development/python-modules/psutil/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/psutil/default.nix b/pkgs/development/python-modules/psutil/default.nix index ee3f390b79af..ee79e250e1d7 100644 --- a/pkgs/development/python-modules/psutil/default.nix +++ b/pkgs/development/python-modules/psutil/default.nix @@ -49,7 +49,7 @@ buildPythonPackage rec { # - the other disabled tests are likely due to sanboxing (missing specific errors) pytestFlagsArray = [ # Note: $out must be referenced as test import paths are relative - "$out/${python.sitePackages}/psutil/tests/test_system.py" + "${placeholder "out"}/${python.sitePackages}/psutil/tests/test_system.py" ]; disabledTests = [ From 1e99bcac6f2b2bb2caee862c34976474280ea924 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 29 Oct 2024 15:30:11 +0100 Subject: [PATCH 087/693] nodejs: 20.18.0 -> 22.11.0 --- pkgs/development/web/nodejs/v22.nix | 4 ++-- pkgs/top-level/all-packages.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/web/nodejs/v22.nix b/pkgs/development/web/nodejs/v22.nix index 6a71b0056bf7..03d23ba9983a 100644 --- a/pkgs/development/web/nodejs/v22.nix +++ b/pkgs/development/web/nodejs/v22.nix @@ -8,8 +8,8 @@ let in buildNodejs { inherit enableNpm; - version = "22.10.0"; - sha256 = "3180710d3130ad9df01466abf010e408d41b374be54301d1480d10eca73558e0"; + version = "22.11.0"; + sha256 = "bbf0297761d53aefda9d7855c57c7d2c272b83a7b5bad4fea9cb29006d8e1d35"; patches = [ ./configure-emulator.patch ./configure-armv6-vfpv2.patch diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e346c64100bb..f2e1ec01a5d9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4298,9 +4298,9 @@ with pkgs; nixnote2 = libsForQt5.callPackage ../applications/misc/nixnote2 { }; - nodejs = hiPrio nodejs_20; - nodejs-slim = nodejs-slim_20; - corepack = hiPrio corepack_20; + nodejs = hiPrio nodejs_22; + nodejs-slim = nodejs-slim_22; + corepack = hiPrio corepack_22; nodejs_18 = callPackage ../development/web/nodejs/v18.nix { }; nodejs-slim_18 = callPackage ../development/web/nodejs/v18.nix { enableNpm = false; }; From 6c61c502464af20f9a9847fc76b07d0971fb5812 Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 13 Nov 2024 20:08:05 -0500 Subject: [PATCH 088/693] cargo-auditable: 0.6.2 -> 0.6.5 Diff: https://github.com/rust-secure-code/cargo-auditable/compare/v0.6.2...v0.6.5 Changelog: https://github.com/rust-secure-code/cargo-auditable/blob/v0.6.5/cargo-auditable/CHANGELOG.md --- .../compilers/rust/cargo-auditable.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/compilers/rust/cargo-auditable.nix b/pkgs/development/compilers/rust/cargo-auditable.nix index 0fa6098934c1..77185f267b5b 100644 --- a/pkgs/development/compilers/rust/cargo-auditable.nix +++ b/pkgs/development/compilers/rust/cargo-auditable.nix @@ -1,26 +1,23 @@ -{ lib, buildPackages, fetchFromGitHub, fetchpatch, makeRustPlatform, installShellFiles, stdenv }: +{ lib, buildPackages, fetchFromGitHub, makeRustPlatform, installShellFiles, stdenv }: let args = rec { pname = "cargo-auditable"; - version = "0.6.2"; + version = "0.6.5"; src = fetchFromGitHub { owner = "rust-secure-code"; repo = pname; rev = "v${version}"; - sha256 = "sha256-ERIzx9Fveanq7/aWcB2sviTxIahvSu0sTwgpGf/aYE8="; + sha256 = "sha256-zjv2/qZM0vRyz45DeKRtPHaamv2iLtjpSedVTEXeDr8="; }; - patches = [ - (fetchpatch { - name = "rust-1.77-tests.patch"; - url = "https://github.com/rust-secure-code/cargo-auditable/commit/5317a27244fc428335c4e7a1d066ae0f65f0d496.patch"; - hash = "sha256-UblGseiSC/2eE4rcnTgYzxAMrutHFSdxKTHqKj1mX5o="; - }) - ]; + cargoHash = "sha256-uNoqWT3gVslGEPcyrfFeOquvSlLzZbPO4yM1YJeD8N4="; - cargoHash = "sha256-4o3ctun/8VcBRuj+j0Yaawdkyn6Z6LPp+FTyhPxQWU8="; + checkFlags = [ + # requires wasm32-unknown-unknown target + "--skip=test_wasm" + ]; meta = with lib; { description = "Tool to make production Rust binaries auditable"; From 9c44a42559f915c6d7a2b6377046ad7477beb274 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:20:30 -0800 Subject: [PATCH 089/693] python312Packages.scapy: 2.6.0 -> 2.6.1 --- pkgs/development/python-modules/scapy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/scapy/default.nix b/pkgs/development/python-modules/scapy/default.nix index 77eb9ea5195a..5ab37196fcd6 100644 --- a/pkgs/development/python-modules/scapy/default.nix +++ b/pkgs/development/python-modules/scapy/default.nix @@ -32,7 +32,7 @@ buildPythonPackage rec { pname = "scapy"; - version = "2.6.0"; + version = "2.6.1"; format = "setuptools"; disabled = isPyPy; @@ -41,7 +41,7 @@ buildPythonPackage rec { owner = "secdev"; repo = "scapy"; rev = "refs/tags/v${version}"; - hash = "sha256-k/wfY5nq/txdiqj5gyHT9FSjnFzazDBawE3+aNe9zrQ="; + hash = "sha256-m2L30aEpPp9cfW652yd+0wFkNlMij6FF1RzWZbwJ79A="; }; patches = [ ./find-library.patch ]; From 459a925026a28f5a762d648108c4d21068d080e3 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 14 Nov 2024 10:40:37 +0300 Subject: [PATCH 090/693] mesa: 24.2.6 -> 24.2.7 Diff: https://gitlab.freedesktop.org/mesa/mesa/-/compare/mesa-24.2.6...mesa-24.2.7 Changelog: https://docs.mesa3d.org/relnotes/24.2.7.html --- pkgs/development/libraries/mesa/common.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mesa/common.nix b/pkgs/development/libraries/mesa/common.nix index 6c349d679871..4aecdcc2c450 100644 --- a/pkgs/development/libraries/mesa/common.nix +++ b/pkgs/development/libraries/mesa/common.nix @@ -5,14 +5,14 @@ # nix build .#legacyPackages.x86_64-darwin.mesa .#legacyPackages.aarch64-darwin.mesa rec { pname = "mesa"; - version = "24.2.6"; + version = "24.2.7"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "mesa"; repo = "mesa"; rev = "mesa-${version}"; - hash = "sha256-yoX2DvinzqrG+rekiqO/iG6F6Zn63WC+ZaathimxO1g="; + hash = "sha256-AM9npUnf/Cl/kPahqeK4Vt6piHv8gKOqrTkE36RIMlg="; }; meta = { From 7903d0b711ec74509ca6ef36bd0d1d0c46f732a5 Mon Sep 17 00:00:00 2001 From: Peter Waller Date: Tue, 12 Nov 2024 21:36:46 +0000 Subject: [PATCH 091/693] llvmPackages.llvm: Drop dependency on target through libbfd Currently the target triple leaks into the clang build via llvm using libbfd, whose build varies according to the target triple. LLVM only uses libbfd to enable LTO via the linker plugin (called LLVMgold.so, though multiple linkers can use the same plugin). Drop the dependency on the libbfd build, and consume the only needed source instead. (This would be a good use of CA-derivations FWIW). The result of this commit is that these match: * nix eval --raw nixpkgs#clang.cc * nix eval --raw nixpkgs#pkgsStatic.pkgsLLVM.stdenv.cc.cc * nix eval --raw nixpkgs#pkgsCross.aarch64-multiplatform.pkgsLLVM.stdenv.cc.cc This means fewer clang builds will be needed to support cross configurations, and users wanting to target an exotic cross configuration should be able to do so without a rebuild of clang. Also drops libbfd.hasPluginAPI which no longer has any users. Signed-off-by: Peter Waller --- .../compilers/llvm/common/llvm/default.nix | 12 +++++++----- .../tools/misc/binutils/default.nix | 18 +++++++++++++----- .../development/tools/misc/binutils/libbfd.nix | 2 +- .../tools/misc/binutils/libopcodes.nix | 2 +- 4 files changed, 22 insertions(+), 12 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/llvm/default.nix b/pkgs/development/compilers/llvm/common/llvm/default.nix index be106b3db295..ce35c039fc8c 100644 --- a/pkgs/development/compilers/llvm/common/llvm/default.nix +++ b/pkgs/development/compilers/llvm/common/llvm/default.nix @@ -13,9 +13,6 @@ , python3 , python3Packages , libffi - # TODO: Can this memory corruption bug still occur? - # -, enableGoldPlugin ? libbfd.hasPluginAPI , ld64 , libbfd , libpfm @@ -373,8 +370,13 @@ stdenv.mkDerivation (finalAttrs: { "-DSPHINX_OUTPUT_MAN=ON" "-DSPHINX_OUTPUT_HTML=OFF" "-DSPHINX_WARNINGS_AS_ERRORS=OFF" - ] ++ optionals (enableGoldPlugin) [ - "-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include" + ] ++ optionals (libbfd != null) [ + # LLVM depends on binutils only through libbfd/include/plugin-api.h, which + # is meant to be a stable interface. Depend on that file directly rather + # than through a build of BFD to break the dependency of clang on the target + # triple. The result of this is that a single clang build can be used for + # multiple targets. + "-DLLVM_BINUTILS_INCDIR=${libbfd.plugin-api-header}/include" ] ++ optionals stdenv.hostPlatform.isDarwin [ "-DLLVM_ENABLE_LIBCXX=ON" "-DCAN_TARGET_i386=false" diff --git a/pkgs/development/tools/misc/binutils/default.nix b/pkgs/development/tools/misc/binutils/default.nix index 4d90fa66ea7d..d9c814dd41b5 100644 --- a/pkgs/development/tools/misc/binutils/default.nix +++ b/pkgs/development/tools/misc/binutils/default.nix @@ -12,6 +12,7 @@ in , lib , noSysDirs , perl +, runCommand , zlib , CoreServices @@ -238,11 +239,18 @@ stdenv.mkDerivation (finalAttrs: { inherit targetPrefix; hasGold = enableGold; isGNU = true; - # Having --enable-plugins is not enough, system has to support - # dlopen() or equivalent. See config/plugins.m4 and configure.ac - # (around PLUGINS) for cases that support or not support plugins. - # No platform specific filters yet here. - hasPluginAPI = enableGold; + + # The plugin API is not a function of any targets. Expose it separately, + # currently only used by LLVM for enabling BFD to do LTO with LLVM bitcode. + # (Tar will exit with an error if there are no matches). + plugin-api-header = runCommand "libbfd-plugin-api-header" {} '' + mkdir -p $out + tar --directory=$out \ + --extract \ + --file=${finalAttrs.src} \ + --strip-components=1 \ + --wildcards '*'/include/plugin-api.h + ''; }; meta = with lib; { diff --git a/pkgs/development/tools/misc/binutils/libbfd.nix b/pkgs/development/tools/misc/binutils/libbfd.nix index c6ab2a6431d0..f8dc8b5473a7 100644 --- a/pkgs/development/tools/misc/binutils/libbfd.nix +++ b/pkgs/development/tools/misc/binutils/libbfd.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation { ]; passthru = { - inherit (binutils-unwrapped-all-targets) dev hasPluginAPI; + inherit (binutils-unwrapped-all-targets) src dev plugin-api-header; }; meta = with lib; { diff --git a/pkgs/development/tools/misc/binutils/libopcodes.nix b/pkgs/development/tools/misc/binutils/libopcodes.nix index c8d3b78b29eb..423ab850737d 100644 --- a/pkgs/development/tools/misc/binutils/libopcodes.nix +++ b/pkgs/development/tools/misc/binutils/libopcodes.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation { ]; passthru = { - inherit (binutils-unwrapped-all-targets) dev hasPluginAPI; + inherit (binutils-unwrapped-all-targets) dev; }; meta = with lib; { From da9f1b68935e210b27f6e1cfe194461359cf8743 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 15 Nov 2024 02:42:44 +0000 Subject: [PATCH 092/693] libtpms: 0.9.6 -> 0.10.0 --- pkgs/by-name/li/libtpms/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libtpms/package.nix b/pkgs/by-name/li/libtpms/package.nix index 5ac368eea9f0..2ce39ffed0a7 100644 --- a/pkgs/by-name/li/libtpms/package.nix +++ b/pkgs/by-name/li/libtpms/package.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "libtpms"; - version = "0.9.6"; + version = "0.10.0"; src = fetchFromGitHub { owner = "stefanberger"; repo = "libtpms"; rev = "v${version}"; - sha256 = "sha256-I2TYuOLwgEm6ofF2onWI7j2yu9wpXxNt7lJePSpF9VM="; + sha256 = "sha256-YKs/XYJ8UItOtSinl28/G9XFVzobFd4ZDKtClQDLXFk="; }; nativeBuildInputs = [ From 0ddab62d3d834015f0a89e249cc47e41e5b7cde2 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 14 Nov 2024 19:23:39 +0300 Subject: [PATCH 093/693] qt6.qtdeclarative: backport more patches recommended by upstream Should fix SDDM misbehaving with multiple displays. --- .../libraries/qt-6/modules/qtdeclarative.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix b/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix index 42f5bfd76b88..5ca2fb74b498 100644 --- a/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix +++ b/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix @@ -37,6 +37,16 @@ qtModule { url = "https://github.com/qt/qtdeclarative/commit/0ae3697cf40bcd3ae1de20621abad17cf6c5f52d.patch"; hash = "sha256-YuTHqHCWOsqUOATfaAZRxPSwMsFNylxoqnqCeW5kPjs="; }) + # Backport patches to fix SDDM multi-screen issues + (fetchpatch2 { + url = "https://github.com/qt/qtdeclarative/commit/104b0d6e88ce6781c9d31cf0dd14dfe99988b789.patch"; + hash = "sha256-fWjFvaSnDcqquqfNkwEIHlp2Cxmf4DmWmQyYhEj9Jbw="; + }) + (fetchpatch2 { + url = "https://github.com/qt/qtdeclarative/commit/fbdbed919f59cc7b4520f5aab2149f4c99b63e24.patch"; + excludes = [ "tests/auto/qml/qv4mm/tst_qv4mm.cpp" ]; + hash = "sha256-YsB81v0apTK+GdzVa3oMe4akcz5sxuI3aUjCLu1bTJ8="; + }) ]; cmakeFlags = [ From 797b544bda2f9b921c9757c422aa68a1de1b431b Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 14 Nov 2024 19:42:43 +0100 Subject: [PATCH 094/693] postgresql_16: 16.4 -> 16.5 Release Notes: https://www.postgresql.org/about/news/postgresql-171-165-159-1414-1317-and-1221-released-2955/ --- pkgs/servers/sql/postgresql/16.nix | 4 ++-- pkgs/servers/sql/postgresql/generic.nix | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/servers/sql/postgresql/16.nix b/pkgs/servers/sql/postgresql/16.nix index 16215d890be4..d8322f42d387 100644 --- a/pkgs/servers/sql/postgresql/16.nix +++ b/pkgs/servers/sql/postgresql/16.nix @@ -1,6 +1,6 @@ import ./generic.nix { - version = "16.4"; - hash = "sha256-lxdm1kWqc+k7nvTjvkQgG09FtUdwlbBJElQD+fM4bW8="; + version = "16.5"; + hash = "sha256-psu7cDf5jLivp9OXC3xIBAzwKxFeOSU6DAN6i7jnePA="; muslPatches = { dont-use-locale-a = { url = "https://git.alpinelinux.org/aports/plain/main/postgresql16/dont-use-locale-a-on-musl.patch?id=08a24be262339fd093e641860680944c3590238e"; diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index bc24ab08ffdf..b4233ffae697 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -162,13 +162,6 @@ let src = ./patches/locale-binary-path.patch; locale = "${if stdenv.hostPlatform.isDarwin then darwin.adv_cmds else lib.getBin stdenv.cc.libc}/bin/locale"; }) - ] ++ lib.optionals (olderThan "17" && atLeast "16") [ - # TODO: Remove this with the next set of minor releases - (fetchpatch ({ - url = "https://github.com/postgres/postgres/commit/b27622c90869aab63cfe22159a459c57768b0fa4.patch"; - hash = "sha256-7G+BkJULhyx6nlMEjClcr2PJg6awgymZHr2JgGhXanA="; - excludes = [ "doc/*" ]; - })) ] ++ lib.optionals stdenv'.hostPlatform.isMusl ( # Using fetchurl instead of fetchpatch on purpose: https://github.com/NixOS/nixpkgs/issues/240141 map fetchurl (lib.attrValues muslPatches) From 3aeb9755e933c27809782891cfbed1660894123e Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Fri, 15 Nov 2024 09:31:26 +0100 Subject: [PATCH 095/693] boost: 1.81 -> 1.86 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ffb4731bc4ab..3cde2fd436e6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18967,7 +18967,7 @@ with pkgs; boost186 ; - boost = boost181; + boost = boost186; bosh-cli = callPackage ../applications/networking/cluster/bosh-cli { }; From 9be3e110508ee6ad12d6b4935a9df4a82c29c4f2 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Fri, 15 Nov 2024 11:19:53 +0100 Subject: [PATCH 096/693] curl: backport netrc regression fix Signed-off-by: Sefa Eyeoglu --- .../cu/curlMinimal/fix-netrc-regression.patch | 217 ++++++++++++++++++ pkgs/by-name/cu/curlMinimal/package.nix | 8 + 2 files changed, 225 insertions(+) create mode 100644 pkgs/by-name/cu/curlMinimal/fix-netrc-regression.patch diff --git a/pkgs/by-name/cu/curlMinimal/fix-netrc-regression.patch b/pkgs/by-name/cu/curlMinimal/fix-netrc-regression.patch new file mode 100644 index 000000000000..d614be60b9e4 --- /dev/null +++ b/pkgs/by-name/cu/curlMinimal/fix-netrc-regression.patch @@ -0,0 +1,217 @@ +From f5c616930b5cf148b1b2632da4f5963ff48bdf88 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg +Date: Thu, 7 Nov 2024 08:52:38 +0100 +Subject: [PATCH] duphandle: also init netrc + +The netrc init was only done in the Curl_open, meaning that a duplicated +handle would not get inited properly. + +Added test 2309 to verify. It does netrc auth with a duplicated handle. + +Regression from 3b43a05e000aa8f65bda513f733a + +Reported-by: tranzystorekk on github +Fixes #15496 +Closes #15503 +--- + lib/easy.c | 1 + + tests/data/Makefile.am | 2 +- + tests/data/test2309 | 66 ++++++++++++++++++++++++++++++++++++++ + tests/libtest/Makefile.inc | 5 ++- + tests/libtest/lib2309.c | 66 ++++++++++++++++++++++++++++++++++++++ + 5 files changed, 138 insertions(+), 2 deletions(-) + create mode 100644 tests/data/test2309 + create mode 100644 tests/libtest/lib2309.c + +diff --git a/lib/easy.c b/lib/easy.c +index d16fa8c07afec00ab6186880eff05c925da00380..ac8fab34220d9b4f1f8f9cb7bc504a5024a46cca 100644 +--- a/lib/easy.c ++++ b/lib/easy.c +@@ -940,6 +940,7 @@ CURL *curl_easy_duphandle(CURL *d) + goto fail; + + Curl_dyn_init(&outcurl->state.headerb, CURL_MAX_HTTP_HEADER); ++ Curl_netrc_init(&outcurl->state.netrc); + + /* the connection pool is setup on demand */ + outcurl->state.lastconnect_id = -1; +diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am +index 02bf2ae25bfd49dce27d4cd2320a2794ba5b4212..ea5221c00fd4193e1713b1313da338f1ea6aee4f 100644 +--- a/tests/data/Makefile.am ++++ b/tests/data/Makefile.am +@@ -255,7 +255,7 @@ test2100 \ + test2200 test2201 test2202 test2203 test2204 test2205 \ + \ + test2300 test2301 test2302 test2303 test2304 test2305 test2306 test2307 \ +-test2308 \ ++test2308 test2309 \ + \ + test2400 test2401 test2402 test2403 test2404 test2405 test2406 \ + \ +diff --git a/tests/data/test2309 b/tests/data/test2309 +new file mode 100644 +index 0000000000000000000000000000000000000000..4ba78ee91e179c932f8bfa776d32f311512ef8e6 +--- /dev/null ++++ b/tests/data/test2309 +@@ -0,0 +1,66 @@ ++ ++ ++ ++netrc ++HTTP ++ ++ ++# ++# Server-side ++ ++ ++HTTP/1.1 200 OK ++Date: Tue, 09 Nov 2010 14:49:00 GMT ++Server: test-server/fake ++Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ++ETag: "21025-dc7-39462498" ++Accept-Ranges: bytes ++Content-Length: 6 ++Connection: close ++Content-Type: text/html ++Funny-head: yesyes ++ ++-foo- ++ ++ ++ ++# ++# Client-side ++ ++ ++http ++ ++ ++proxy ++ ++ ++# Reproducing issue 15496 ++ ++HTTP with .netrc using duped easy handle ++ ++ ++lib%TESTNUMBER ++ ++ ++http://github.com %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/ ++ ++ ++ ++machine github.com ++ ++login daniel ++password $y$j9T$WUVjiVvDbRAWafDLs6cab1$01NX.oaZKf5lw8MR2Nk9Yaxv4CqbE0IaDF.GpGxPul1 ++ ++ ++ ++ ++ ++GET http://github.com/ HTTP/1.1 ++Host: github.com ++Authorization: Basic %b64[daniel:$y$j9T$WUVjiVvDbRAWafDLs6cab1$01NX.oaZKf5lw8MR2Nk9Yaxv4CqbE0IaDF.GpGxPul1]b64% ++Accept: */* ++Proxy-Connection: Keep-Alive ++ ++ ++ ++ +diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc +index 339a00fc4ed41e1491ea945ff9ebeb7caf058c69..8f58fd64229d5cbcebdb4949111b3c3184d82eb3 100644 +--- a/tests/libtest/Makefile.inc ++++ b/tests/libtest/Makefile.inc +@@ -77,7 +77,7 @@ LIBTESTPROGS = libauthretry libntlmconnect libprereq \ + lib1945 lib1946 lib1947 lib1948 lib1955 lib1956 lib1957 lib1958 lib1959 \ + lib1960 lib1964 \ + lib1970 lib1971 lib1972 lib1973 lib1974 lib1975 \ +- lib2301 lib2302 lib2304 lib2305 lib2306 lib2308 \ ++ lib2301 lib2302 lib2304 lib2305 lib2306 lib2308 lib2309 \ + lib2402 lib2404 lib2405 \ + lib2502 \ + lib3010 lib3025 lib3026 lib3027 \ +@@ -683,6 +683,9 @@ lib2306_LDADD = $(TESTUTIL_LIBS) + lib2308_SOURCES = lib2308.c $(SUPPORTFILES) + lib2308_LDADD = $(TESTUTIL_LIBS) + ++lib2309_SOURCES = lib2309.c $(SUPPORTFILES) ++lib2309_LDADD = $(TESTUTIL_LIBS) ++ + lib2402_SOURCES = lib2402.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS) + lib2402_LDADD = $(TESTUTIL_LIBS) + +diff --git a/tests/libtest/lib2309.c b/tests/libtest/lib2309.c +new file mode 100644 +index 0000000000000000000000000000000000000000..11f1c1fbd886846d5901b03ba9cd0314672fec99 +--- /dev/null ++++ b/tests/libtest/lib2309.c +@@ -0,0 +1,66 @@ ++/*************************************************************************** ++ * _ _ ____ _ ++ * Project ___| | | | _ \| | ++ * / __| | | | |_) | | ++ * | (__| |_| | _ <| |___ ++ * \___|\___/|_| \_\_____| ++ * ++ * Copyright (C) Daniel Stenberg, , et al. ++ * ++ * This software is licensed as described in the file COPYING, which ++ * you should have received as part of this distribution. The terms ++ * are also available at https://curl.se/docs/copyright.html. ++ * ++ * You may opt to use, copy, modify, merge, publish, distribute and/or sell ++ * copies of the Software, and permit persons to whom the Software is ++ * furnished to do so, under the terms of the COPYING file. ++ * ++ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY ++ * KIND, either express or implied. ++ * ++ * SPDX-License-Identifier: curl ++ * ++ ***************************************************************************/ ++ ++#include "test.h" ++#include "testtrace.h" ++ ++#include ++ ++static size_t cb_ignore(char *buffer, size_t size, size_t nmemb, void *userp) ++{ ++ (void)buffer; ++ (void)size; ++ (void)nmemb; ++ (void)userp; ++ return CURL_WRITEFUNC_ERROR; ++} ++ ++CURLcode test(char *URL) ++{ ++ CURL *curl; ++ CURL *curldupe; ++ CURLcode res = CURLE_OK; ++ ++ global_init(CURL_GLOBAL_ALL); ++ curl = curl_easy_init(); ++ if(curl) { ++ curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, cb_ignore); ++ curl_easy_setopt(curl, CURLOPT_URL, URL); ++ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); ++ curl_easy_setopt(curl, CURLOPT_PROXY, libtest_arg3); ++ curl_easy_setopt(curl, CURLOPT_NETRC, (long)CURL_NETRC_REQUIRED); ++ curl_easy_setopt(curl, CURLOPT_NETRC_FILE, libtest_arg2); ++ ++ curldupe = curl_easy_duphandle(curl); ++ if(curldupe) { ++ res = curl_easy_perform(curldupe); ++ printf("Returned %d, should be %d.\n", res, CURLE_WRITE_ERROR); ++ fflush(stdout); ++ curl_easy_cleanup(curldupe); ++ } ++ curl_easy_cleanup(curl); ++ } ++ curl_global_cleanup(); ++ return CURLE_OK; ++} diff --git a/pkgs/by-name/cu/curlMinimal/package.nix b/pkgs/by-name/cu/curlMinimal/package.nix index 399101a21435..3e2c4fc8ed83 100644 --- a/pkgs/by-name/cu/curlMinimal/package.nix +++ b/pkgs/by-name/cu/curlMinimal/package.nix @@ -59,6 +59,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-21nPDWccpuf1wsXsF3CEozp54EyX5xzxg6XN6iNQVOs="; }; + patches = [ + # https://github.com/NixOS/nixpkgs/issues/356114 + # https://github.com/curl/curl/issues/15496 + # https://github.com/curl/curl/commit/f5c616930b5cf148b1b2632da4f5963ff48bdf88 + # TODO: Remove this patch when 8.11.1/8.12.0 releases + ./fix-netrc-regression.patch + ]; + # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion # necessary for FreeBSD code path in configure postPatch = '' From 3e0bc63451ec9edae5d831f8cc10333be631f56b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:17:04 +0000 Subject: [PATCH 097/693] folly: format with `nixfmt-rfc-style` --- pkgs/development/libraries/folly/default.nix | 97 ++++++++++++-------- 1 file changed, 57 insertions(+), 40 deletions(-) diff --git a/pkgs/development/libraries/folly/default.nix b/pkgs/development/libraries/folly/default.nix index 8a601382f8ea..10cdff67cd55 100644 --- a/pkgs/development/libraries/folly/default.nix +++ b/pkgs/development/libraries/folly/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, fetchFromGitHub -, boost -, cmake -, double-conversion -, fmt_8 -, gflags -, glog -, libevent -, libiberty -, libunwind -, lz4 -, openssl -, pkg-config -, xz -, zlib -, zstd -, jemalloc -, follyMobile ? false +{ + lib, + stdenv, + fetchFromGitHub, + boost, + cmake, + double-conversion, + fmt_8, + gflags, + glog, + libevent, + libiberty, + libunwind, + lz4, + openssl, + pkg-config, + xz, + zlib, + zstd, + jemalloc, + follyMobile ? false, -# for passthru.tests -, python3 -, watchman + # for passthru.tests + python3, + watchman, }: stdenv.mkDerivation rec { @@ -60,24 +61,32 @@ stdenv.mkDerivation rec { # jemalloc headers are required in include/folly/portability/Malloc.h propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc; - env.NIX_CFLAGS_COMPILE = toString [ "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ]; - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - - # temporary hack until folly builds work on aarch64, - # see https://github.com/facebook/folly/issues/1880 - "-DCMAKE_LIBRARY_ARCHITECTURE=${if stdenv.hostPlatform.isx86_64 then "x86_64" else "dummy"}" - - # ensure correct dirs in $dev/lib/pkgconfig/libfolly.pc - # see https://github.com/NixOS/nixpkgs/issues/144170 - "-DCMAKE_INSTALL_INCLUDEDIR=include" - "-DCMAKE_INSTALL_LIBDIR=lib" - ] ++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13" + env.NIX_CFLAGS_COMPILE = toString [ + "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" + "-fpermissive" ]; + cmakeFlags = + [ + "-DBUILD_SHARED_LIBS=ON" + + # temporary hack until folly builds work on aarch64, + # see https://github.com/facebook/folly/issues/1880 + "-DCMAKE_LIBRARY_ARCHITECTURE=${if stdenv.hostPlatform.isx86_64 then "x86_64" else "dummy"}" + + # ensure correct dirs in $dev/lib/pkgconfig/libfolly.pc + # see https://github.com/NixOS/nixpkgs/issues/144170 + "-DCMAKE_INSTALL_INCLUDEDIR=include" + "-DCMAKE_INSTALL_LIBDIR=lib" + ] + ++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13" + ]; # split outputs to reduce downstream closure sizes - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; # patch prefix issues again # see https://github.com/NixOS/nixpkgs/issues/144170 @@ -103,7 +112,15 @@ stdenv.mkDerivation rec { homepage = "https://github.com/facebook/folly"; license = licenses.asl20; # 32bit is not supported: https://github.com/facebook/folly/issues/103 - platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ]; - maintainers = with maintainers; [ abbradar pierreis ]; + platforms = [ + "x86_64-linux" + "x86_64-darwin" + "aarch64-darwin" + "aarch64-linux" + ]; + maintainers = with maintainers; [ + abbradar + pierreis + ]; }; } From 89e641930d8e38c22ace2459de9ed5d59e303b9c Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:17:25 +0000 Subject: [PATCH 098/693] folly: convert to new Darwin SDK pattern This is using unguarded 11.0 APIs, so bump the deployment target too. --- pkgs/development/libraries/folly/default.nix | 63 +++++++++++--------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/pkgs/development/libraries/folly/default.nix b/pkgs/development/libraries/folly/default.nix index 10cdff67cd55..8ceedfd73ba4 100644 --- a/pkgs/development/libraries/folly/default.nix +++ b/pkgs/development/libraries/folly/default.nix @@ -18,6 +18,8 @@ zlib, zstd, jemalloc, + apple-sdk_11, + darwinMinVersionHook, follyMobile ? false, # for passthru.tests @@ -42,21 +44,27 @@ stdenv.mkDerivation rec { ]; # See CMake/folly-deps.cmake in the Folly source tree. - buildInputs = [ - boost - double-conversion - glog - gflags - libevent - libiberty - openssl - lz4 - xz - zlib - libunwind - fmt_8 - zstd - ] ++ lib.optional stdenv.hostPlatform.isLinux jemalloc; + buildInputs = + [ + boost + double-conversion + glog + gflags + libevent + libiberty + openssl + lz4 + xz + zlib + libunwind + fmt_8 + zstd + ] + ++ lib.optional stdenv.hostPlatform.isLinux jemalloc + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + (darwinMinVersionHook "11.0") + ]; # jemalloc headers are required in include/folly/portability/Malloc.h propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc; @@ -65,22 +73,19 @@ stdenv.mkDerivation rec { "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" "-fpermissive" ]; - cmakeFlags = - [ - "-DBUILD_SHARED_LIBS=ON" - # temporary hack until folly builds work on aarch64, - # see https://github.com/facebook/folly/issues/1880 - "-DCMAKE_LIBRARY_ARCHITECTURE=${if stdenv.hostPlatform.isx86_64 then "x86_64" else "dummy"}" + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" - # ensure correct dirs in $dev/lib/pkgconfig/libfolly.pc - # see https://github.com/NixOS/nixpkgs/issues/144170 - "-DCMAKE_INSTALL_INCLUDEDIR=include" - "-DCMAKE_INSTALL_LIBDIR=lib" - ] - ++ lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13" - ]; + # temporary hack until folly builds work on aarch64, + # see https://github.com/facebook/folly/issues/1880 + "-DCMAKE_LIBRARY_ARCHITECTURE=${if stdenv.hostPlatform.isx86_64 then "x86_64" else "dummy"}" + + # ensure correct dirs in $dev/lib/pkgconfig/libfolly.pc + # see https://github.com/NixOS/nixpkgs/issues/144170 + "-DCMAKE_INSTALL_INCLUDEDIR=include" + "-DCMAKE_INSTALL_LIBDIR=lib" + ]; # split outputs to reduce downstream closure sizes outputs = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index af23c5e21dd7..e23646a3a80c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9326,7 +9326,7 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreFoundation; }; - folly = darwin.apple_sdk_11_0.callPackage ../development/libraries/folly { }; + folly = callPackage ../development/libraries/folly { }; makeFontsConf = callPackage ../development/libraries/fontconfig/make-fonts-conf.nix { }; From b22849fd64aeb41230f248fa7105279e31eb232c Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:19:30 +0000 Subject: [PATCH 099/693] folly: move to `pkgs/by-name` --- .../folly/default.nix => by-name/fo/folly/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/folly/default.nix => by-name/fo/folly/package.nix} (100%) diff --git a/pkgs/development/libraries/folly/default.nix b/pkgs/by-name/fo/folly/package.nix similarity index 100% rename from pkgs/development/libraries/folly/default.nix rename to pkgs/by-name/fo/folly/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e23646a3a80c..94e6d30d91cd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9326,8 +9326,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreFoundation; }; - folly = callPackage ../development/libraries/folly { }; - makeFontsConf = callPackage ../development/libraries/fontconfig/make-fonts-conf.nix { }; makeFontsCache = let fontconfig_ = fontconfig; in {fontconfig ? fontconfig_, fontDirectories}: From 77300534286faf02ec5a6513399e8db928e8028a Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:49:23 +0000 Subject: [PATCH 100/693] folly: use `finalAttrs` --- pkgs/by-name/fo/folly/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 8ceedfd73ba4..fe8ed68dc2c0 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -27,14 +27,14 @@ watchman, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "folly"; version = "2024.03.11.00"; src = fetchFromGitHub { owner = "facebook"; repo = "folly"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-INvWTw27fmVbKQIT9ebdRGMCOIzpc/NepRN2EnKLJx0="; }; @@ -96,7 +96,7 @@ stdenv.mkDerivation rec { # patch prefix issues again # see https://github.com/NixOS/nixpkgs/issues/144170 postFixup = '' - substituteInPlace $dev/lib/cmake/${pname}/${pname}-targets-release.cmake \ + substituteInPlace $dev/lib/cmake/${finalAttrs.pname}/${finalAttrs.pname}-targets-release.cmake \ --replace '$'{_IMPORT_PREFIX}/lib/ $out/lib/ ''; @@ -128,4 +128,4 @@ stdenv.mkDerivation rec { pierreis ]; }; -} +}) From fbb9ab5079a9269684c3d07edb355f992b462d77 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:49:42 +0000 Subject: [PATCH 101/693] folly: remove `with lib;` --- pkgs/by-name/fo/folly/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index fe8ed68dc2c0..0508275b6d3f 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -112,10 +112,10 @@ stdenv.mkDerivation (finalAttrs: { }; }; - meta = with lib; { + meta = { description = "Open-source C++ library developed and used at Facebook"; homepage = "https://github.com/facebook/folly"; - license = licenses.asl20; + license = lib.licenses.asl20; # 32bit is not supported: https://github.com/facebook/folly/issues/103 platforms = [ "x86_64-linux" @@ -123,7 +123,7 @@ stdenv.mkDerivation (finalAttrs: { "aarch64-darwin" "aarch64-linux" ]; - maintainers = with maintainers; [ + maintainers = with lib.maintainers; [ abbradar pierreis ]; From 0d5cd2a39d8ab7368a3fa03a7d08d32ea0dad4bc Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:48:53 +0000 Subject: [PATCH 102/693] folly: use `refs/tags/` --- pkgs/by-name/fo/folly/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 0508275b6d3f..0aa50ab1bbc2 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -34,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "facebook"; repo = "folly"; - rev = "v${finalAttrs.version}"; + rev = "refs/tags/v${finalAttrs.version}"; sha256 = "sha256-INvWTw27fmVbKQIT9ebdRGMCOIzpc/NepRN2EnKLJx0="; }; From b67cce1449a32fa94bf31e06218b0bbb23f2ba95 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:50:17 +0000 Subject: [PATCH 103/693] folly: use `hash` --- pkgs/by-name/fo/folly/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 0aa50ab1bbc2..edcea827a46d 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -35,7 +35,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "facebook"; repo = "folly"; rev = "refs/tags/v${finalAttrs.version}"; - sha256 = "sha256-INvWTw27fmVbKQIT9ebdRGMCOIzpc/NepRN2EnKLJx0="; + hash = "sha256-INvWTw27fmVbKQIT9ebdRGMCOIzpc/NepRN2EnKLJx0="; }; nativeBuildInputs = [ From 593f78887a31e513b07aa0bd0a3edb2b74d4e3aa Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:40:54 +0000 Subject: [PATCH 104/693] folly: reorder attributes --- pkgs/by-name/fo/folly/package.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index edcea827a46d..b12cab0d390d 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -31,6 +31,12 @@ stdenv.mkDerivation (finalAttrs: { pname = "folly"; version = "2024.03.11.00"; + # split outputs to reduce downstream closure sizes + outputs = [ + "out" + "dev" + ]; + src = fetchFromGitHub { owner = "facebook"; repo = "folly"; @@ -69,11 +75,6 @@ stdenv.mkDerivation (finalAttrs: { # jemalloc headers are required in include/folly/portability/Malloc.h propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc; - env.NIX_CFLAGS_COMPILE = toString [ - "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" - "-fpermissive" - ]; - cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" @@ -87,10 +88,9 @@ stdenv.mkDerivation (finalAttrs: { "-DCMAKE_INSTALL_LIBDIR=lib" ]; - # split outputs to reduce downstream closure sizes - outputs = [ - "out" - "dev" + env.NIX_CFLAGS_COMPILE = toString [ + "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" + "-fpermissive" ]; # patch prefix issues again From 7ae3a8ada67d2dff01b1d5e60c0333fd08c938a4 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:40:43 +0000 Subject: [PATCH 105/693] folly: reorder inputs to match upstream file --- pkgs/by-name/fo/folly/package.nix | 32 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index b12cab0d390d..0ca78d23bb17 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -1,25 +1,29 @@ { lib, stdenv, + fetchFromGitHub, - boost, + cmake, + pkg-config, + + boost, double-conversion, - fmt_8, gflags, glog, libevent, + zlib, + openssl, + xz, + lz4, + zstd, libiberty, libunwind, - lz4, - openssl, - pkg-config, - xz, - zlib, - zstd, + fmt_8, jemalloc, apple-sdk_11, darwinMinVersionHook, + follyMobile ? false, # for passthru.tests @@ -54,17 +58,17 @@ stdenv.mkDerivation (finalAttrs: { [ boost double-conversion - glog gflags + glog libevent - libiberty - openssl - lz4 - xz zlib + openssl + xz + lz4 + zstd + libiberty libunwind fmt_8 - zstd ] ++ lib.optional stdenv.hostPlatform.isLinux jemalloc ++ lib.optionals stdenv.hostPlatform.isDarwin [ From 5ee21f2961c40dcd33d032c6b0fd0164098f1ea1 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 01:43:20 +0000 Subject: [PATCH 106/693] folly: refine `meta.platforms` --- pkgs/by-name/fo/folly/package.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 0ca78d23bb17..a95eebe71317 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -121,12 +121,8 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/facebook/folly"; license = lib.licenses.asl20; # 32bit is not supported: https://github.com/facebook/folly/issues/103 - platforms = [ - "x86_64-linux" - "x86_64-darwin" - "aarch64-darwin" - "aarch64-linux" - ]; + platforms = lib.platforms.unix; + badPlatforms = [ lib.systems.inspect.patterns.is32bit ]; maintainers = with lib.maintainers; [ abbradar pierreis From eca60c841c4bd7e33ae89055f81ded06c059d2f1 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:34:20 +0000 Subject: [PATCH 107/693] folly: use Ninja --- pkgs/by-name/fo/folly/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index a95eebe71317..94fdacf323a4 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, cmake, + ninja, pkg-config, boost, @@ -50,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + ninja pkg-config ]; From 7047ba9ccbdf730d726c44de5e9182b4689b3f32 Mon Sep 17 00:00:00 2001 From: Peter Waller Date: Fri, 15 Nov 2024 09:44:03 +0000 Subject: [PATCH 108/693] llvmPackages.clang: move add-nostdlibinc-flag.patch to cc-wrapper Remove a patch to decrease the divergence from upstream. Motivation is a continuation of trying to reduce the number of clang builds floating around. Wrapper builds are cheap, compiler builds are not. It's expected that this patch can be removed at some point and replaced with some other cc-wrapper logic. This will be a little bit easier with the logic already in the cc-wrapper. Ongoing discussion in #191152. It would be nice to drop this but we think it's probably needed at least on systems where /usr/include may be available to prevent the possibility of picking up unwanted includes. One potential method for eliminating nostdlibinc in the future is by providing a non-existent -sysroot but that was reverted in #213185, and remains a can of worms. Signed-off-by: Peter Waller --- pkgs/build-support/cc-wrapper/default.nix | 14 ++++++++++++++ .../common/clang/add-nostdlibinc-flag.patch | 18 ------------------ .../compilers/llvm/common/default.nix | 17 ----------------- 3 files changed, 14 insertions(+), 35 deletions(-) delete mode 100644 pkgs/development/compilers/llvm/common/clang/add-nostdlibinc-flag.patch diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 001123fe3d85..6caf5103325a 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -629,6 +629,20 @@ stdenvNoCC.mkDerivation { echo " -L${libcxx_solib}" >> $out/nix-support/cc-ldflags '' + ## Prevent clang from seeing /usr/include. There is a desire to achieve this + ## through alternate means because it breaks -sysroot and related functionality. + # + # This flag prevents global system header directories from + # leaking through on non‐NixOS Linux. However, on macOS, the + # SDK path is used as the sysroot, and forcing `-nostdlibinc` + # breaks `-isysroot` with an unwrapped compiler. As macOS has + # no `/usr/include`, there’s essentially no risk to dropping + # the flag there. See discussion in NixOS/nixpkgs#191152. + # + + optionalString ((cc.isClang or false) && !targetPlatform.isDarwin) '' + echo " -nostdlibinc" >> $out/nix-support/cc-cflags + '' + ## ## Man page and info support ## diff --git a/pkgs/development/compilers/llvm/common/clang/add-nostdlibinc-flag.patch b/pkgs/development/compilers/llvm/common/clang/add-nostdlibinc-flag.patch deleted file mode 100644 index 80c2eb362383..000000000000 --- a/pkgs/development/compilers/llvm/common/clang/add-nostdlibinc-flag.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp -index 3f29afd35971..223d2769cdfc 100644 ---- a/lib/Driver/Driver.cpp -+++ b/lib/Driver/Driver.cpp -@@ -491,6 +491,13 @@ DerivedArgList *Driver::TranslateInputArgs(const InputArgList &Args) const { - } - #endif - -+ { -+ Arg *A = DAL->MakeFlagArg(/*BaseArg=*/nullptr, -+ Opts.getOption(options::OPT_nostdlibinc)); -+ A->claim(); -+ DAL->append(A); -+ } -+ - return DAL; - } - diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 707bb91b875d..f0a3b054d700 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -529,23 +529,6 @@ let # mis-compilation in firefox. # See: https://bugzilla.mozilla.org/show_bug.cgi?id=1741454 (metadata.getVersionFile "clang/revert-malloc-alignment-assumption.patch") - # This patch prevents global system header directories from - # leaking through on non‐NixOS Linux. However, on macOS, the - # SDK path is used as the sysroot, and forcing `-nostdlibinc` - # breaks `-isysroot` with an unwrapped compiler. As macOS has - # no `/usr/include`, there’s essentially no risk to skipping - # the patch there. It’s possible that Homebrew headers in - # `/usr/local/include` might leak through to unwrapped - # compilers being used without an SDK set or something, but - # it hopefully shouldn’t matter. - # - # TODO: Figure out a better solution to this whole problem so - # that we won’t have to choose between breaking unwrapped - # compilers breaking libclang when we can do Linux‐to‐Darwin - # cross‐compilation again. - ++ lib.optional ( - !args.stdenv.hostPlatform.isDarwin || !args.stdenv.targetPlatform.isDarwin - ) ./clang/add-nostdlibinc-flag.patch ++ [ (substituteAll { src = From 7d8f0801a43b49d00ae0070032a7965191a806b9 Mon Sep 17 00:00:00 2001 From: misilelaboratory Date: Sat, 16 Nov 2024 01:44:32 +0900 Subject: [PATCH 109/693] uv: 0.5.1 -> 0.5.2 Signed-off-by: misilelaboratory --- pkgs/by-name/uv/uv/Cargo.lock | 388 +++++++++++++++++++++++++++++---- pkgs/by-name/uv/uv/package.nix | 7 +- 2 files changed, 344 insertions(+), 51 deletions(-) diff --git a/pkgs/by-name/uv/uv/Cargo.lock b/pkgs/by-name/uv/uv/Cargo.lock index 3d75a6f0f9fe..417c40c83610 100644 --- a/pkgs/by-name/uv/uv/Cargo.lock +++ b/pkgs/by-name/uv/uv/Cargo.lock @@ -26,6 +26,12 @@ dependencies = [ "memchr", ] +[[package]] +name = "allocator-api2" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" + [[package]] name = "anes" version = "0.1.6" @@ -34,9 +40,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" [[package]] name = "anstream" -version = "0.6.17" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23a1e53f0f5d86382dafe1cf314783b2044280f406e7e1506368220ad11b1338" +checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" dependencies = [ "anstyle", "anstyle-parse", @@ -83,9 +89,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.92" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74f37166d7d48a0284b99dd824694c26119c700b53bf0d1540cdb147dbdaaf13" +checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" [[package]] name = "arrayref" @@ -183,9 +189,9 @@ dependencies = [ [[package]] name = "async_http_range_reader" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4015e7130cf870da1c64a9c7ba474f4b3772a530edbeb05f8358bc9a02f8e505" +checksum = "2b537c00269e3f943e06f5d7cabf8ccd281b800fd0c7f111dd82f77154334197" dependencies = [ "bisection", "futures", @@ -204,7 +210,7 @@ dependencies = [ [[package]] name = "async_zip" version = "0.0.17" -source = "git+https://github.com/charliermarsh/rs-async-zip?rev=011b24604fa7bc223daaad7712c0694bac8f0a87#011b24604fa7bc223daaad7712c0694bac8f0a87" +source = "git+https://github.com/charliermarsh/rs-async-zip?rev=c909fda63fcafe4af496a07bfda28a5aae97e58d#c909fda63fcafe4af496a07bfda28a5aae97e58d" dependencies = [ "async-compression", "crc32fast", @@ -358,9 +364,9 @@ dependencies = [ [[package]] name = "boxcar" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fba19c552ee63cb6646b75e1166d1bdb8a6d34a6d19e319dec88c8adadff2db3" +checksum = "7f839cdf7e2d3198ac6ca003fd8ebc61715755f41c1cad15ff13df67531e00ed" [[package]] name = "bstr" @@ -819,9 +825,9 @@ dependencies = [ [[package]] name = "csv" -version = "1.3.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac574ff4d437a7b5ad237ef331c17ccca63c46479e5b5453eb8e10bb99a759fe" +checksum = "acdc4883a9c96732e4733212c01447ebd805833b7275a73ca3ee080fd77afdaf" dependencies = [ "csv-core", "itoa", @@ -935,6 +941,17 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "doc-comment" version = "0.3.3" @@ -1106,6 +1123,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2" + [[package]] name = "fontconfig-parser" version = "0.5.7" @@ -1375,9 +1398,14 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" [[package]] name = "hashbrown" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash", +] [[package]] name = "heck" @@ -1545,13 +1573,142 @@ dependencies = [ ] [[package]] -name = "idna" -version = "0.5.0" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", ] [[package]] @@ -1594,7 +1751,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", - "hashbrown 0.15.0", + "hashbrown 0.15.1", "serde", ] @@ -1847,6 +2004,12 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +[[package]] +name = "litemap" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" + [[package]] name = "lock_api" version = "0.4.12" @@ -2690,9 +2853,9 @@ dependencies = [ [[package]] name = "reflink-copy" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc31414597d1cd7fdd2422798b7652a6329dda0fe0219e6335a13d5bcaa9aeb6" +checksum = "17400ed684c3a0615932f00c271ae3eea13e47056a1455821995122348ab6438" dependencies = [ "cfg-if", "rustix", @@ -2804,8 +2967,9 @@ dependencies = [ [[package]] name = "reqwest-middleware" -version = "0.3.3" -source = "git+https://github.com/TrueLayer/reqwest-middleware?rev=d95ec5a99fcc9a4339e1850d40378bbfe55ab121#d95ec5a99fcc9a4339e1850d40378bbfe55ab121" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1ccd3b55e711f91a9885a2fa6fbbb2e39db1776420b062efc058c6410f7e5e3" dependencies = [ "anyhow", "async-trait", @@ -2818,8 +2982,9 @@ dependencies = [ [[package]] name = "reqwest-retry" -version = "0.7.1" -source = "git+https://github.com/TrueLayer/reqwest-middleware?rev=d95ec5a99fcc9a4339e1850d40378bbfe55ab121#d95ec5a99fcc9a4339e1850d40378bbfe55ab121" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29c73e4195a6bfbcb174b790d9b3407ab90646976c55de58a6515da25d851178" dependencies = [ "anyhow", "async-trait", @@ -2993,9 +3158,9 @@ checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" [[package]] name = "rustix" -version = "0.38.38" +version = "0.38.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa260229e6538e52293eeb577aabd09945a09d6d9cc0fc550ed7529056c2e32a" +checksum = "99e4ea3e1cdc4b559b8e5650f9c8e5998e3e5c1343b4eaf034565f32318d63c0" dependencies = [ "bitflags 2.6.0", "errno", @@ -3400,6 +3565,12 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + [[package]] name = "strict-num" version = "0.1.1" @@ -3498,6 +3669,17 @@ dependencies = [ "futures-core", ] +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sys-info" version = "0.9.1" @@ -3542,9 +3724,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.13.0" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f2c9fc62d0beef6951ccffd757e241266a2c833136efbe35af6cd2567dca5b" +checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" dependencies = [ "cfg-if", "fastrand", @@ -3719,6 +3901,16 @@ dependencies = [ "strict-num", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinytemplate" version = "1.2.1" @@ -3751,9 +3943,9 @@ source = "git+https://github.com/charliermarsh/tl.git?rev=6e25b2ee2513d75385101a [[package]] name = "tokio" -version = "1.41.0" +version = "1.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "145f3413504347a2be84393cc8a7d2fb4d863b375909ea59f2158261aa258bbb" +checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" dependencies = [ "backtrace", "bytes", @@ -4064,15 +4256,6 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" -[[package]] -name = "unicode-normalization" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" -dependencies = [ - "tinyvec", -] - [[package]] name = "unicode-script" version = "0.5.7" @@ -4105,9 +4288,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.2" +version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" dependencies = [ "form_urlencoded", "idna", @@ -4154,12 +4337,24 @@ dependencies = [ "usvg", ] +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + [[package]] name = "utf8-width" version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86bd8d4e895da8537e5315b8254664e6b769c4ff3db18321b297a1e7004392e3" +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" version = "0.2.2" @@ -4174,7 +4369,7 @@ checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" [[package]] name = "uv" -version = "0.5.1" +version = "0.5.2" dependencies = [ "anstream", "anyhow", @@ -4200,6 +4395,7 @@ dependencies = [ "itertools 0.13.0", "jiff", "miette", + "nix", "owo-colors", "petgraph", "predicates", @@ -4211,6 +4407,7 @@ dependencies = [ "serde", "serde_json", "similar", + "tar", "tempfile", "textwrap", "thiserror", @@ -4326,7 +4523,6 @@ dependencies = [ "csv", "flate2", "fs-err", - "glob", "globset", "indoc", "insta", @@ -4341,6 +4537,7 @@ dependencies = [ "tracing", "uv-distribution-filename", "uv-fs", + "uv-globfilter", "uv-normalize", "uv-pep440", "uv-pep508", @@ -4687,6 +4884,7 @@ dependencies = [ "fs-err", "itertools 0.13.0", "jiff", + "petgraph", "rkyv", "rustc-hash", "schemars", @@ -4778,6 +4976,21 @@ dependencies = [ "which", ] +[[package]] +name = "uv-globfilter" +version = "0.1.0" +dependencies = [ + "fs-err", + "globset", + "insta", + "regex", + "regex-automata 0.4.8", + "tempfile", + "thiserror", + "tracing", + "walkdir", +] + [[package]] name = "uv-install-wheel" version = "0.0.1" @@ -4840,7 +5053,6 @@ dependencies = [ "uv-configuration", "uv-distribution", "uv-distribution-types", - "uv-extract", "uv-fs", "uv-install-wheel", "uv-normalize", @@ -5011,12 +5223,14 @@ name = "uv-pypi-types" version = "0.0.1" dependencies = [ "anyhow", + "hashbrown 0.15.1", "indexmap", "itertools 0.13.0", "jiff", "mailparse", "regex", "rkyv", + "schemars", "serde", "serde-untagged", "thiserror", @@ -5160,6 +5374,7 @@ dependencies = [ "dashmap", "either", "futures", + "hashbrown 0.15.1", "indexmap", "insta", "itertools 0.13.0", @@ -5344,7 +5559,7 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.5.1" +version = "0.5.2" [[package]] name = "uv-virtualenv" @@ -5623,7 +5838,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.59.0", ] [[package]] @@ -5983,6 +6198,18 @@ dependencies = [ "url", ] +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "xattr" version = "1.3.1" @@ -6015,6 +6242,30 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" +[[package]] +name = "yoke" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + [[package]] name = "zerocopy" version = "0.7.35" @@ -6036,12 +6287,55 @@ dependencies = [ "syn", ] +[[package]] +name = "zerofrom" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + [[package]] name = "zeroize" version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "zip" version = "0.6.6" diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index e552ae5de560..cb2083a4a050 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -12,22 +12,21 @@ python3Packages.buildPythonApplication rec { pname = "uv"; - version = "0.5.1"; + version = "0.5.2"; pyproject = true; src = fetchFromGitHub { owner = "astral-sh"; repo = "uv"; rev = "refs/tags/${version}"; - hash = "sha256-K70Vj3Y4+jZSMUkgM9mX8GYn8cZ3BieJ+5x/VbSK0C8="; + hash = "sha256-riR4VFv407/pLMdQlxTUvTeaErZoxjFFsEX9St+3cr8="; }; cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; outputHashes = { - "async_zip-0.0.17" = "sha256-3k9rc4yHWhqsCUJ17K55F8aQoCKdVamrWAn6IDWo3Ss="; + "async_zip-0.0.17" = "sha256-VfQg2ZY5F2cFoYQZrtf2DHj0lWgivZtFaFJKZ4oyYdo="; "pubgrub-0.2.1" = "sha256-8TrOQ6fYJrYgFNuqiqnGztnHOqFIEDi2MFZEBA+oks4="; - "reqwest-middleware-0.3.3" = "sha256-KjyXB65a7SAfwmxokH2PQFFcJc6io0xuIBQ/yZELJzM="; "tl-0.7.8" = "sha256-F06zVeSZA4adT6AzLzz1i9uxpI1b8P1h+05fFfjm3GQ="; }; }; From 1896995025743fdf79e607c613fc7e9fa6ad4c72 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:51:22 +0200 Subject: [PATCH 110/693] aws-c-auth: 0.7.26 -> 0.8.0 Diff: https://www.github.com/awslabs/aws-c-auth/compare/v0.7.26...v0.8.0 --- pkgs/by-name/aw/aws-c-auth/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-auth/package.nix b/pkgs/by-name/aw/aws-c-auth/package.nix index 70aa863a7ce2..af5d3b284a7e 100644 --- a/pkgs/by-name/aw/aws-c-auth/package.nix +++ b/pkgs/by-name/aw/aws-c-auth/package.nix @@ -14,13 +14,13 @@ stdenv.mkDerivation rec { pname = "aws-c-auth"; - version = "0.7.26"; + version = "0.8.0"; src = fetchFromGitHub { owner = "awslabs"; repo = "aws-c-auth"; rev = "v${version}"; - hash = "sha256-02dy2xgMGWkLf+HyBztbkCcazfZNAMwpJPU2gGBPokY="; + hash = "sha256-wVHTfiAejAra8LnytxSJijUXHDmEwAj5D+wXOKq32B4="; }; nativeBuildInputs = [ From b497dfa184430d92f79ca1e41e80a1134f10020d Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 15 Nov 2024 23:57:00 +0100 Subject: [PATCH 111/693] bundler-{app,env}: expose pname and version in derivation --- pkgs/build-support/buildenv/default.nix | 4 +++- .../ruby-modules/bundled-common/default.nix | 16 ++++++++++------ .../ruby-modules/bundler-app/default.nix | 3 ++- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index 5183a358ce70..c6b6acd5f8e2 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -51,6 +51,8 @@ lib.makeOverridable , passthru ? {} , meta ? {} +, pname ? null +, version ? null }: let chosenOutputs = map (drv: { @@ -78,7 +80,7 @@ in runCommand name rec { inherit manifest ignoreCollisions checkCollisionContents passthru meta pathsToLink extraPrefix postBuild - nativeBuildInputs buildInputs; + nativeBuildInputs buildInputs pname version; pkgs = builtins.toJSON chosenOutputs; extraPathsFrom = lib.optional includeClosures (writeClosure pathsForClosure); preferLocalBuild = true; diff --git a/pkgs/development/ruby-modules/bundled-common/default.nix b/pkgs/development/ruby-modules/bundled-common/default.nix index 1cb657483936..14da25f5d263 100644 --- a/pkgs/development/ruby-modules/bundled-common/default.nix +++ b/pkgs/development/ruby-modules/bundled-common/default.nix @@ -11,6 +11,7 @@ { name ? null , pname ? null +, version ? null , mainGemName ? null , gemdir ? null , gemfile ? null @@ -65,14 +66,16 @@ let gems = lib.flip lib.mapAttrs configuredGemset (name: attrs: buildGem name attrs); + version' = if version != null then + version + else if pname != null then + gems.${pname}.suffix + else null; + name' = if name != null then name else - let - gem = gems.${pname}; - suffix = gem.suffix; - in - "${pname}-${suffix}"; + "${pname}-${version'}"; pname' = if pname != null then pname @@ -117,9 +120,10 @@ let basicEnvArgs = { - inherit nativeBuildInputs buildInputs ignoreCollisions; + inherit nativeBuildInputs buildInputs ignoreCollisions pname; name = name'; + version = version'; paths = envPaths; pathsToLink = [ "/lib" ]; diff --git a/pkgs/development/ruby-modules/bundler-app/default.nix b/pkgs/development/ruby-modules/bundler-app/default.nix index 01e90ba53f1f..7fdfa6f15019 100644 --- a/pkgs/development/ruby-modules/bundler-app/default.nix +++ b/pkgs/development/ruby-modules/bundler-app/default.nix @@ -39,8 +39,9 @@ let inherit ruby; }) args; - cmdArgs = removeAttrs args [ "pname" "postBuild" "gemConfig" "passthru" "gemset" "gemdir" ] // { + cmdArgs = removeAttrs args [ "postBuild" "gemConfig" "passthru" "gemset" "gemdir" ] // { inherit preferLocalBuild allowSubstitutes; # pass the defaults + inherit (basicEnv) version; nativeBuildInputs = nativeBuildInputs ++ lib.optionals (scripts != []) [ makeWrapper ]; From c114f3df83c20c0d51fb87c15ba658bea8c3107b Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:51:49 +0200 Subject: [PATCH 112/693] aws-c-common: 0.9.27 -> 0.10.3 Diff: https://www.github.com/awslabs/aws-c-common/compare/v0.9.27...v0.10.3 --- pkgs/by-name/aw/aws-c-common/package.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-common/package.nix b/pkgs/by-name/aw/aws-c-common/package.nix index 8166497efa50..e7acedac2c5a 100644 --- a/pkgs/by-name/aw/aws-c-common/package.nix +++ b/pkgs/by-name/aw/aws-c-common/package.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "aws-c-common"; - version = "0.9.27"; + version = "0.10.3"; src = fetchFromGitHub { owner = "awslabs"; repo = pname; rev = "v${version}"; - hash = "sha256-VbF+R2LB5M2luOoQ/HsAOqk/ujHSW4QJC0OTzNnu9PM="; + hash = "sha256-sA6CsLLHh4Ce/+ffl4OhisMSgdrD+EmXvTNGSq7/vvk="; }; nativeBuildInputs = [ cmake ]; @@ -32,8 +32,6 @@ stdenv.mkDerivation rec { preCheck = let ignoreTests = [ "promise_test_multiple_waiters" - ] ++ lib.optionals stdenv.hostPlatform.isMusl [ - "sba_metrics" # https://github.com/awslabs/aws-c-common/issues/839 ]; in '' cat <CTestCustom.cmake From 40e546a42ac4f0306d7b1fc77c38d94f9acd8fef Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:52:01 +0200 Subject: [PATCH 113/693] aws-c-event-stream: 0.4.3 -> 0.5.0 Diff: https://www.github.com/awslabs/aws-c-event-stream/compare/v0.4.3...v0.5.0 --- pkgs/by-name/aw/aws-c-event-stream/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-event-stream/package.nix b/pkgs/by-name/aw/aws-c-event-stream/package.nix index 9b568b372141..d346ab99bd6b 100644 --- a/pkgs/by-name/aw/aws-c-event-stream/package.nix +++ b/pkgs/by-name/aw/aws-c-event-stream/package.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "aws-c-event-stream"; - version = "0.4.3"; + version = "0.5.0"; src = fetchFromGitHub { owner = "awslabs"; repo = pname; rev = "v${version}"; - hash = "sha256-xLgPFy+wFtUe3GawICrAHyji+mkfxC2jw7lsL+p7pl4="; + hash = "sha256-lg1qS/u5Fi8nt/tv2ekd8dgQ7rlrF3DrRxqidAoEywY="; }; nativeBuildInputs = [ cmake ]; From ed412319a27bc59cc9c69bca3500f7c72290acdf Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:52:13 +0200 Subject: [PATCH 114/693] aws-c-http: 0.8.2 -> 0.9.2 Diff: https://www.github.com/awslabs/aws-c-http/compare/v0.8.2...v0.9.2 --- pkgs/by-name/aw/aws-c-http/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-http/package.nix b/pkgs/by-name/aw/aws-c-http/package.nix index ac35fd5d57b0..84d9821070c4 100644 --- a/pkgs/by-name/aw/aws-c-http/package.nix +++ b/pkgs/by-name/aw/aws-c-http/package.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation rec { pname = "aws-c-http"; - version = "0.8.2"; + version = "0.9.2"; src = fetchFromGitHub { owner = "awslabs"; repo = "aws-c-http"; rev = "v${version}"; - hash = "sha256-86auAZGoaYIpoTVlB9uC+nKMNt1QRNor+/68B5D36r8="; + hash = "sha256-3nT64dFUcuwPfhQDwY5MTe/xPdr7XZMBpVL7V0y9tng="; }; nativeBuildInputs = [ From 00f5f8bc5d2660e027a33182760a4de001bc678b Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:52:24 +0200 Subject: [PATCH 115/693] aws-c-mqtt: 0.10.5 -> 0.11.0 Diff: https://www.github.com/awslabs/aws-c-mqtt/compare/v0.10.5...v0.11.0 --- pkgs/by-name/aw/aws-c-mqtt/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-mqtt/package.nix b/pkgs/by-name/aw/aws-c-mqtt/package.nix index 3eadad12ad03..a3a53bedd5ea 100644 --- a/pkgs/by-name/aw/aws-c-mqtt/package.nix +++ b/pkgs/by-name/aw/aws-c-mqtt/package.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation rec { pname = "aws-c-mqtt"; - version = "0.10.5"; + version = "0.11.0"; src = fetchFromGitHub { owner = "awslabs"; repo = "aws-c-mqtt"; rev = "v${version}"; - hash = "sha256-PByF0P+4gwSQKk7qHc79p025TbWZ0QeFXqO2GOtuaII="; + hash = "sha256-gIoC3OG6VFzNH9/DjuC42eCIuN+w1AikaGAbx6ao8qQ="; }; nativeBuildInputs = [ From 38d503d58d0ec7f986dfbec3edb77765371ae4a9 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:52:40 +0200 Subject: [PATCH 116/693] aws-c-s3: 0.6.0 -> 0.7.1 Diff: https://www.github.com/awslabs/aws-c-s3/compare/v0.6.0...v0.7.1 --- pkgs/by-name/aw/aws-c-s3/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-s3/package.nix b/pkgs/by-name/aw/aws-c-s3/package.nix index 5c834da72cc4..ecd126953f0b 100644 --- a/pkgs/by-name/aw/aws-c-s3/package.nix +++ b/pkgs/by-name/aw/aws-c-s3/package.nix @@ -14,13 +14,13 @@ stdenv.mkDerivation rec { pname = "aws-c-s3"; - version = "0.6.0"; + version = "0.7.1"; src = fetchFromGitHub { owner = "awslabs"; repo = "aws-c-s3"; rev = "v${version}"; - hash = "sha256-qPVITirqhExIeayh6AWEyAXPlkUtk7gkIcmT/IpNisw="; + hash = "sha256-UE42U3UszobaUdo0ry9IlwTbSbGqmYkux19ILrVgUZY="; }; nativeBuildInputs = [ From 4d26d412c3cf48d0ce9dd9f16eea31770fc01141 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:52:59 +0200 Subject: [PATCH 117/693] aws-c-compression: 0.2.19 -> 0.3.0 Diff: https://www.github.com/awslabs/aws-c-compression/compare/v0.2.19...v0.3.0 --- pkgs/by-name/aw/aws-c-compression/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-compression/package.nix b/pkgs/by-name/aw/aws-c-compression/package.nix index cb115f531f50..a759d24f2c6f 100644 --- a/pkgs/by-name/aw/aws-c-compression/package.nix +++ b/pkgs/by-name/aw/aws-c-compression/package.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "aws-c-compression"; - version = "0.2.19"; + version = "0.3.0"; src = fetchFromGitHub { owner = "awslabs"; repo = "aws-c-compression"; rev = "v${version}"; - sha256 = "sha256-Zr1C47YaTkMlG7r2WtAkxRfjZRuBKeTXzNIGspdLap4="; + sha256 = "sha256-EjvOf2UMju6pycPdYckVxqQ34VOhrIIyvK+O3AVRED4="; }; nativeBuildInputs = [ From be4d282cf9c355c605a41140a1399c2c581cd6d1 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:53:10 +0200 Subject: [PATCH 118/693] aws-c-io: 0.14.18 -> 0.15.3 Diff: https://www.github.com/awslabs/aws-c-io/compare/v0.14.18...v0.15.3 --- pkgs/development/libraries/aws-c-io/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/aws-c-io/default.nix b/pkgs/development/libraries/aws-c-io/default.nix index 2b3019d48cfa..a88d47329f20 100644 --- a/pkgs/development/libraries/aws-c-io/default.nix +++ b/pkgs/development/libraries/aws-c-io/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "aws-c-io"; - version = "0.14.18"; + version = "0.15.3"; src = fetchFromGitHub { owner = "awslabs"; repo = pname; rev = "v${version}"; - hash = "sha256-dKZOgbufmPfksSOvOmzSTR/WjoSzmX8edMiuKAOyoyY="; + hash = "sha256-/pG/+MHAu/TYTtY/RQrr1U1ev2FZ1p/O8kIRUDDOcvQ="; }; nativeBuildInputs = [ cmake ]; From 61f93320e8d0950d563ae1bc0bd98a3808178d0e Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:53:20 +0200 Subject: [PATCH 119/693] aws-checksums: 0.1.18 -> 0.2.2 Diff: https://www.github.com/awslabs/aws-checksums/compare/v0.1.18...v0.2.2 --- pkgs/by-name/aw/aws-checksums/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-checksums/package.nix b/pkgs/by-name/aw/aws-checksums/package.nix index f0a9a0cf665f..079b4a7c6951 100644 --- a/pkgs/by-name/aw/aws-checksums/package.nix +++ b/pkgs/by-name/aw/aws-checksums/package.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "aws-checksums"; - version = "0.1.18"; + version = "0.2.2"; src = fetchFromGitHub { owner = "awslabs"; repo = pname; rev = "v${version}"; - sha256 = "sha256-EhIVa8/IK4evGt4vYECunLpxrCMSOsr1RZ/8hFbRi9M="; + sha256 = "sha256-hiqV6FrOZ19YIxL3UKBuexLJwoC2mY7lqysnV7ze0gg="; }; nativeBuildInputs = [ cmake ]; From c74b7e24537bc95acb834286118cebba61c18208 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:53:46 +0200 Subject: [PATCH 120/693] aws-c-sdkutils: 0.1.16 -> 0.2.1 Diff: https://www.github.com/awslabs/aws-c-sdkutils/compare/v0.1.16...v0.2.1 --- pkgs/by-name/aw/aws-c-sdkutils/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/aw/aws-c-sdkutils/package.nix b/pkgs/by-name/aw/aws-c-sdkutils/package.nix index dc5dc02f6242..a69ac843dac4 100644 --- a/pkgs/by-name/aw/aws-c-sdkutils/package.nix +++ b/pkgs/by-name/aw/aws-c-sdkutils/package.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "aws-c-sdkutils"; - version = "0.1.16"; + version = "0.2.1"; src = fetchFromGitHub { owner = "awslabs"; repo = "aws-c-sdkutils"; rev = "v${version}"; - hash = "sha256-ih7U2uP5FrBx6or1Rp/k+HWDE6evEZyNM//wsPxH9Qo="; + hash = "sha256-Z9c+uBiGMXW5v+khdNaElhno16ikBO4voTzwd2mP6rA="; }; nativeBuildInputs = [ From efe4939ed8dde1ae4cd2d022e9907b8a014a4fa3 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 18:53:56 +0200 Subject: [PATCH 121/693] aws-c-cal: 0.6.15 -> 0.8.0 Diff: https://www.github.com/awslabs/aws-c-cal/compare/v0.6.15...v0.8.0 --- pkgs/development/libraries/aws-c-cal/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/aws-c-cal/default.nix b/pkgs/development/libraries/aws-c-cal/default.nix index caf0ce60cdb2..fb7fc1c981e8 100644 --- a/pkgs/development/libraries/aws-c-cal/default.nix +++ b/pkgs/development/libraries/aws-c-cal/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "aws-c-cal"; - version = "0.6.15"; + version = "0.8.0"; src = fetchFromGitHub { owner = "awslabs"; repo = "aws-c-cal"; rev = "v${finalAttrs.version}"; - hash = "sha256-RrUJz3IqwbBJ8NuJTIWqK33FlJHolcaid55PT2EhO24="; + hash = "sha256-dYFUYdMQMT8CZFMrCrhQ8JPEhA4CVf+f7VLFt3JNmn8="; }; patches = [ From 03d3d6034b18e93052668fe7d712bcb57bd2621c Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 19:22:09 +0200 Subject: [PATCH 122/693] aws-crt-cpp: 0.29.4 -> 0.29.4 Diff: https://www.github.com/awslabs/aws-crt-cpp/compare/v0.29.4...v0.29.4 --- ...ake-includedir-properly-overrideable.patch | 20 ++++++++++++------- pkgs/by-name/aw/aws-crt-cpp/package.nix | 4 ++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/aw/aws-crt-cpp/0001-build-Make-includedir-properly-overrideable.patch b/pkgs/by-name/aw/aws-crt-cpp/0001-build-Make-includedir-properly-overrideable.patch index 2b06ce0aec63..34f2434dbf9d 100644 --- a/pkgs/by-name/aw/aws-crt-cpp/0001-build-Make-includedir-properly-overrideable.patch +++ b/pkgs/by-name/aw/aws-crt-cpp/0001-build-Make-includedir-properly-overrideable.patch @@ -1,15 +1,17 @@ -From fd3f3a28e7fce7fe4e10ed2d7edc4bfda8ab27df Mon Sep 17 00:00:00 2001 +From b3a46b9a2a9f86ff416a0ff5f84882c0dedebd14 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 9 Jan 2022 01:57:18 +0100 Subject: [PATCH] build: Make includedir properly overrideable This is required by some package managers like Nix. + +Co-authored-by: Artturin --- - CMakeLists.txt | 22 +++++++++++++--------- - 1 file changed, 13 insertions(+), 9 deletions(-) + CMakeLists.txt | 26 +++++++++++++++----------- + 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt -index ec6d172..6514c23 100644 +index 9f062ca..b28f13c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,10 @@ if(${CMAKE_INSTALL_LIBDIR} STREQUAL "lib64") @@ -23,7 +25,7 @@ index ec6d172..6514c23 100644 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 11) endif() -@@ -307,7 +311,7 @@ endif() +@@ -329,7 +333,7 @@ endif() target_include_directories(${PROJECT_NAME} PUBLIC $ $ @@ -32,28 +34,32 @@ index ec6d172..6514c23 100644 aws_use_package(aws-c-http) aws_use_package(aws-c-mqtt) -@@ -324,14 +328,14 @@ aws_add_sanitizers(${PROJECT_NAME}) +@@ -346,16 +350,16 @@ aws_add_sanitizers(${PROJECT_NAME}) target_link_libraries(${PROJECT_NAME} PUBLIC ${DEP_AWS_LIBS}) -install(FILES ${AWS_CRT_HEADERS} DESTINATION "include/aws/crt" COMPONENT Development) -install(FILES ${AWS_CRT_AUTH_HEADERS} DESTINATION "include/aws/crt/auth" COMPONENT Development) +-install(FILES ${AWS_CRT_CHECKSUM_HEADERS} DESTINATION "include/aws/crt/checksum" COMPONENT Development) -install(FILES ${AWS_CRT_CRYPTO_HEADERS} DESTINATION "include/aws/crt/crypto" COMPONENT Development) -install(FILES ${AWS_CRT_IO_HEADERS} DESTINATION "include/aws/crt/io" COMPONENT Development) -install(FILES ${AWS_CRT_IOT_HEADERS} DESTINATION "include/aws/iot" COMPONENT Development) -install(FILES ${AWS_CRT_MQTT_HEADERS} DESTINATION "include/aws/crt/mqtt" COMPONENT Development) -install(FILES ${AWS_CRT_HTTP_HEADERS} DESTINATION "include/aws/crt/http" COMPONENT Development) -install(FILES ${AWS_CRT_ENDPOINT_HEADERS} DESTINATION "include/aws/crt/endpoints" COMPONENT Development) +-install(FILES ${AWS_CRT_CBOR_HEADERS} DESTINATION "include/aws/crt/cbor" COMPONENT Development) +install(FILES ${AWS_CRT_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt" COMPONENT Development) +install(FILES ${AWS_CRT_AUTH_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/auth" COMPONENT Development) ++install(FILES ${AWS_CRT_CHECKSUM_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/checksum" COMPONENT Development) +install(FILES ${AWS_CRT_CRYPTO_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/crypto" COMPONENT Development) +install(FILES ${AWS_CRT_IO_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/io" COMPONENT Development) +install(FILES ${AWS_CRT_IOT_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/iot" COMPONENT Development) +install(FILES ${AWS_CRT_MQTT_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/mqtt" COMPONENT Development) +install(FILES ${AWS_CRT_HTTP_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/http" COMPONENT Development) +install(FILES ${AWS_CRT_ENDPOINT_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/endpoints" COMPONENT Development) ++install(FILES ${AWS_CRT_CBOR_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aws/crt/cbor" COMPONENT Development) install( TARGETS ${PROJECT_NAME} -- -2.42.0 +2.46.0 diff --git a/pkgs/by-name/aw/aws-crt-cpp/package.nix b/pkgs/by-name/aw/aws-crt-cpp/package.nix index 534314443e4f..30b3c6cf7068 100644 --- a/pkgs/by-name/aw/aws-crt-cpp/package.nix +++ b/pkgs/by-name/aw/aws-crt-cpp/package.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { pname = "aws-crt-cpp"; - version = "0.26.12"; + version = "0.29.4"; outputs = [ "out" "dev" ]; @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { owner = "awslabs"; repo = "aws-crt-cpp"; rev = "v${version}"; - sha256 = "sha256-mVihmcl24gFLnF3A/qLSvr2npOotMlBH7TqU5vOwI9g="; + sha256 = "sha256-Uv1BHM39f9soq7kziedqRhHqQ/xwnqcz++1UM5nuo8g="; }; patches = [ From 437dca6672ed19a04837a9f4589f5ac551b8183e Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 15 Nov 2024 19:48:13 +0200 Subject: [PATCH 123/693] aws-sdk-cpp: 1.11.448 -> 1.11.448 Diff: https://www.github.com/aws/aws-sdk-cpp/compare/1.11.448...1.11.448 --- pkgs/development/libraries/aws-sdk-cpp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix index 6e549526a14c..9cf58415ab27 100644 --- a/pkgs/development/libraries/aws-sdk-cpp/default.nix +++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix @@ -27,13 +27,13 @@ in stdenv.mkDerivation rec { pname = "aws-sdk-cpp"; - version = "1.11.336"; + version = "1.11.448"; src = fetchFromGitHub { owner = "aws"; repo = "aws-sdk-cpp"; rev = version; - hash = "sha256-hetXtXM8HG6V3rAuyf+w+DtlxEcpsyaroZsw0nIJoAw="; + hash = "sha256-K0UFs7vOeZeQIs3G5L4FfEWXDGTXT9ssr/vQwa1l2lw="; }; postPatch = '' From 6fc6e7bce851f59f61c3f96c62a014bedc40fbf0 Mon Sep 17 00:00:00 2001 From: Josh Hoffer Date: Fri, 15 Nov 2024 21:05:26 -0800 Subject: [PATCH 124/693] systemd: 256.7 -> 256.8 --- pkgs/os-specific/linux/systemd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 691dd4f815ba..425775e9dd16 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -185,7 +185,7 @@ assert withBootloader -> withEfi; let wantCurl = withRemote || withImportd; wantGcrypt = withResolved || withImportd; - version = "256.7"; + version = "256.8"; # Use the command below to update `releaseTimestamp` on every (major) version # change. More details in the commentary at mesonFlags. @@ -203,7 +203,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "systemd"; repo = "systemd"; rev = "v${version}"; - hash = "sha256-x214fOhEWLoiexRrN4lGx4Pqx2+jYN94w9GzntVRcZ4="; + hash = "sha256-L/MCsCCMVvK7LgxlaLFpnmsJuTu33cPaiMxIpHU7Tzg="; }; # On major changes, or when otherwise required, you *must* : From 83e1ebb0c67cb310adeeabf6c4ab6218dbad403d Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sat, 16 Nov 2024 20:36:15 +0900 Subject: [PATCH 125/693] ruby_3_3: 3.3.5 -> 3.3.6 --- pkgs/development/interpreters/ruby/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index 4dece3870ae6..319b2a7b78f9 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -313,8 +313,8 @@ in { }; ruby_3_3 = generic { - version = rubyVersion "3" "3" "5" ""; - hash = "sha256-N4GjUEIiwvJstLnrnBoS2/SUTTZs4kqf+M+Z7LznUZY="; + version = rubyVersion "3" "3" "6" ""; + hash = "sha256-jcSP/68nD4bxAZBT8o5R5NpMzjKjZ2CgYDqa7mfX/Y0="; cargoHash = "sha256-GeelTMRFIyvz1QS2L+Q3KAnyQy7jc0ejhx3TdEFVEbk="; }; From 83c4a9c338d8a972291737306848ab5628fd8515 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 16 Nov 2024 19:37:10 +0200 Subject: [PATCH 126/693] aws-*: don't auto update These should all be updated at the same time --- pkgs/by-name/aw/aws-c-auth/package.nix | 1 + pkgs/by-name/aw/aws-c-common/package.nix | 1 + pkgs/by-name/aw/aws-c-compression/package.nix | 1 + pkgs/by-name/aw/aws-c-event-stream/package.nix | 1 + pkgs/by-name/aw/aws-c-http/package.nix | 1 + pkgs/by-name/aw/aws-c-mqtt/package.nix | 1 + pkgs/by-name/aw/aws-c-s3/package.nix | 1 + pkgs/by-name/aw/aws-c-sdkutils/package.nix | 1 + pkgs/by-name/aw/aws-checksums/package.nix | 1 + pkgs/by-name/aw/aws-crt-cpp/package.nix | 1 + pkgs/development/libraries/aws-c-cal/default.nix | 1 + pkgs/development/libraries/aws-c-io/default.nix | 1 + pkgs/development/libraries/aws-sdk-cpp/default.nix | 1 + 13 files changed, 13 insertions(+) diff --git a/pkgs/by-name/aw/aws-c-auth/package.nix b/pkgs/by-name/aw/aws-c-auth/package.nix index af5d3b284a7e..3fd269cb45c0 100644 --- a/pkgs/by-name/aw/aws-c-auth/package.nix +++ b/pkgs/by-name/aw/aws-c-auth/package.nix @@ -14,6 +14,7 @@ stdenv.mkDerivation rec { pname = "aws-c-auth"; + # nixpkgs-update: no auto update version = "0.8.0"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-c-common/package.nix b/pkgs/by-name/aw/aws-c-common/package.nix index e7acedac2c5a..c6210a1ea5a9 100644 --- a/pkgs/by-name/aw/aws-c-common/package.nix +++ b/pkgs/by-name/aw/aws-c-common/package.nix @@ -7,6 +7,7 @@ stdenv.mkDerivation rec { pname = "aws-c-common"; + # nixpkgs-update: no auto update version = "0.10.3"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-c-compression/package.nix b/pkgs/by-name/aw/aws-c-compression/package.nix index a759d24f2c6f..a63c41e26bda 100644 --- a/pkgs/by-name/aw/aws-c-compression/package.nix +++ b/pkgs/by-name/aw/aws-c-compression/package.nix @@ -7,6 +7,7 @@ stdenv.mkDerivation rec { pname = "aws-c-compression"; + # nixpkgs-update: no auto update version = "0.3.0"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-c-event-stream/package.nix b/pkgs/by-name/aw/aws-c-event-stream/package.nix index d346ab99bd6b..2296f36efbeb 100644 --- a/pkgs/by-name/aw/aws-c-event-stream/package.nix +++ b/pkgs/by-name/aw/aws-c-event-stream/package.nix @@ -2,6 +2,7 @@ stdenv.mkDerivation rec { pname = "aws-c-event-stream"; + # nixpkgs-update: no auto update version = "0.5.0"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-c-http/package.nix b/pkgs/by-name/aw/aws-c-http/package.nix index 84d9821070c4..f02e2660cf40 100644 --- a/pkgs/by-name/aw/aws-c-http/package.nix +++ b/pkgs/by-name/aw/aws-c-http/package.nix @@ -11,6 +11,7 @@ stdenv.mkDerivation rec { pname = "aws-c-http"; + # nixpkgs-update: no auto update version = "0.9.2"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-c-mqtt/package.nix b/pkgs/by-name/aw/aws-c-mqtt/package.nix index a3a53bedd5ea..cf1c5757b5e5 100644 --- a/pkgs/by-name/aw/aws-c-mqtt/package.nix +++ b/pkgs/by-name/aw/aws-c-mqtt/package.nix @@ -13,6 +13,7 @@ stdenv.mkDerivation rec { pname = "aws-c-mqtt"; + # nixpkgs-update: no auto update version = "0.11.0"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-c-s3/package.nix b/pkgs/by-name/aw/aws-c-s3/package.nix index ecd126953f0b..07ca2d4a5051 100644 --- a/pkgs/by-name/aw/aws-c-s3/package.nix +++ b/pkgs/by-name/aw/aws-c-s3/package.nix @@ -14,6 +14,7 @@ stdenv.mkDerivation rec { pname = "aws-c-s3"; + # nixpkgs-update: no auto update version = "0.7.1"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-c-sdkutils/package.nix b/pkgs/by-name/aw/aws-c-sdkutils/package.nix index a69ac843dac4..e7efa2e6a46b 100644 --- a/pkgs/by-name/aw/aws-c-sdkutils/package.nix +++ b/pkgs/by-name/aw/aws-c-sdkutils/package.nix @@ -7,6 +7,7 @@ stdenv.mkDerivation rec { pname = "aws-c-sdkutils"; + # nixpkgs-update: no auto update version = "0.2.1"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-checksums/package.nix b/pkgs/by-name/aw/aws-checksums/package.nix index 079b4a7c6951..5a3df8c832fc 100644 --- a/pkgs/by-name/aw/aws-checksums/package.nix +++ b/pkgs/by-name/aw/aws-checksums/package.nix @@ -2,6 +2,7 @@ stdenv.mkDerivation rec { pname = "aws-checksums"; + # nixpkgs-update: no auto update version = "0.2.2"; src = fetchFromGitHub { diff --git a/pkgs/by-name/aw/aws-crt-cpp/package.nix b/pkgs/by-name/aw/aws-crt-cpp/package.nix index 30b3c6cf7068..19c682e28216 100644 --- a/pkgs/by-name/aw/aws-crt-cpp/package.nix +++ b/pkgs/by-name/aw/aws-crt-cpp/package.nix @@ -17,6 +17,7 @@ stdenv.mkDerivation rec { pname = "aws-crt-cpp"; + # nixpkgs-update: no auto update version = "0.29.4"; outputs = [ "out" "dev" ]; diff --git a/pkgs/development/libraries/aws-c-cal/default.nix b/pkgs/development/libraries/aws-c-cal/default.nix index fb7fc1c981e8..f8df96571764 100644 --- a/pkgs/development/libraries/aws-c-cal/default.nix +++ b/pkgs/development/libraries/aws-c-cal/default.nix @@ -2,6 +2,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "aws-c-cal"; + # nixpkgs-update: no auto update version = "0.8.0"; src = fetchFromGitHub { diff --git a/pkgs/development/libraries/aws-c-io/default.nix b/pkgs/development/libraries/aws-c-io/default.nix index a88d47329f20..b8825e88dbb9 100644 --- a/pkgs/development/libraries/aws-c-io/default.nix +++ b/pkgs/development/libraries/aws-c-io/default.nix @@ -2,6 +2,7 @@ stdenv.mkDerivation rec { pname = "aws-c-io"; + # nixpkgs-update: no auto update version = "0.15.3"; src = fetchFromGitHub { diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix index 9cf58415ab27..15e0e1127c9c 100644 --- a/pkgs/development/libraries/aws-sdk-cpp/default.nix +++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix @@ -27,6 +27,7 @@ in stdenv.mkDerivation rec { pname = "aws-sdk-cpp"; + # nixpkgs-update: no auto update version = "1.11.448"; src = fetchFromGitHub { From 719c731df3f1b48570fc1e89d83e27d78ee26b23 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 16 Nov 2024 15:12:39 -0500 Subject: [PATCH 127/693] stdenv: elaborate on nature of mass rebuilds --- pkgs/stdenv/generic/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index 2cda43d5632f..9952a6ae0623 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -115,8 +115,11 @@ let '' + lib.optionalString (hostPlatform.isDarwin && hostPlatform.isMacOS) '' export MACOSX_DEPLOYMENT_TARGET=${hostPlatform.darwinMinVersion} '' - # TODO this should be uncommented, but it causes stupid mass rebuilds. I - # think the best solution would just be to fixup linux RPATHs so we don't + # TODO this should be uncommented, but it causes stupid mass rebuilds due to + # `pkgsCross.*.buildPackages` not being the same, resulting in cross-compiling + # for a target rebuilding all of `nativeBuildInputs` for that target. + # + # I think the best solution would just be to fixup linux RPATHs so we don't # need to set `-rpath` anywhere. # + lib.optionalString targetPlatform.isDarwin '' # export NIX_DONT_SET_RPATH_FOR_TARGET=1 From da006946a927ecc5883b306ec4370fea0c7b6868 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 16 Nov 2024 17:45:44 -0300 Subject: [PATCH 128/693] emacs: use `--replace-warn` `--replace-fail` can fail sometimes, given that not all files contain the string being replaced. --- pkgs/applications/editors/emacs/make-emacs.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index 7bae78f35e70..0eb43d47dc0e 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -185,15 +185,15 @@ mkDerivation (finalAttrs: { # Reduce closure size by cleaning the environment of the emacs dumper '' substituteInPlace src/Makefile.in \ - --replace 'RUN_TEMACS = ./temacs' 'RUN_TEMACS = env -i ./temacs' + --replace-warn 'RUN_TEMACS = ./temacs' 'RUN_TEMACS = env -i ./temacs' '' '' substituteInPlace lisp/international/mule-cmds.el \ - --replace /usr/share/locale ${gettext}/share/locale + --replace-warn /usr/share/locale ${gettext}/share/locale for makefile_in in $(find . -name Makefile.in -print); do - substituteInPlace $makefile_in --replace /bin/pwd pwd + substituteInPlace $makefile_in --replace-warn /bin/pwd pwd done '' From bdd6ddd20d7f5ff12ef5a8156603550516d9d5c2 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Thu, 14 Nov 2024 13:21:10 -0400 Subject: [PATCH 129/693] autoconf-archive: fix quoting of m4_fatal This cherry-picks a patch set fixing calls to m4_fatal which caused some packages to fail in autoconf (e.g. cava). --- ..._check_gl.m4-properly-quote-m4_fatal.patch | 38 +++++++++++++++++++ ...check_glx.m4-properly-quote-m4_fatal.patch | 37 ++++++++++++++++++ ...tch_flags.m4-properly-quote-m4_fatal.patch | 32 ++++++++++++++++ pkgs/by-name/au/autoconf-archive/package.nix | 9 +++++ 4 files changed, 116 insertions(+) create mode 100644 pkgs/by-name/au/autoconf-archive/0001-ax_check_gl.m4-properly-quote-m4_fatal.patch create mode 100644 pkgs/by-name/au/autoconf-archive/0002-ax_check_glx.m4-properly-quote-m4_fatal.patch create mode 100644 pkgs/by-name/au/autoconf-archive/0003-ax_switch_flags.m4-properly-quote-m4_fatal.patch diff --git a/pkgs/by-name/au/autoconf-archive/0001-ax_check_gl.m4-properly-quote-m4_fatal.patch b/pkgs/by-name/au/autoconf-archive/0001-ax_check_gl.m4-properly-quote-m4_fatal.patch new file mode 100644 index 000000000000..d8dd804eac38 --- /dev/null +++ b/pkgs/by-name/au/autoconf-archive/0001-ax_check_gl.m4-properly-quote-m4_fatal.patch @@ -0,0 +1,38 @@ +From 427e226a2fe3980388abffd6de25ed6b9591cce3 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Sat, 19 Oct 2024 21:51:30 -0400 +Subject: [PATCH 1/3] ax_check_gl.m4: properly quote m4_fatal + +It needs to only run as an argument of m4_if, not all the time. + +Fixes: 753493bf7e251997f02559b98fc599d4a337d8cd +Bug: https://bugs.gentoo.org/941845 +--- + m4/ax_check_gl.m4 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/m4/ax_check_gl.m4 b/m4/ax_check_gl.m4 +index 850d407..4c2e4ef 100644 +--- a/m4/ax_check_gl.m4 ++++ b/m4/ax_check_gl.m4 +@@ -85,7 +85,7 @@ + # modified version of the Autoconf Macro, you may extend this special + # exception to the GPL to apply to your modified version as well. + +-#serial 23 ++#serial 24 + + # example gl program + m4_define([_AX_CHECK_GL_PROGRAM], +@@ -187,7 +187,7 @@ AC_DEFUN([_AX_CHECK_GL_LINK_CV], + AC_DEFUN([_AX_CHECK_GL_MANUAL_LIBS_GENERIC], [ + AS_IF([test -n "$GL_LIBS"],[], [ + ax_check_gl_manual_libs_generic_extra_libs="$1" +- m4_if($1, [], m4_fatal([$0: argument must not be empty])) ++ m4_if($1, [], [m4_fatal([$0: argument must not be empty])]) + + _AX_CHECK_GL_SAVE_FLAGS([CFLAGS]) + AC_SEARCH_LIBS([glBegin],[$ax_check_gl_manual_libs_generic_extra_libs], [ +-- +2.46.1 + diff --git a/pkgs/by-name/au/autoconf-archive/0002-ax_check_glx.m4-properly-quote-m4_fatal.patch b/pkgs/by-name/au/autoconf-archive/0002-ax_check_glx.m4-properly-quote-m4_fatal.patch new file mode 100644 index 000000000000..98ec29531cd4 --- /dev/null +++ b/pkgs/by-name/au/autoconf-archive/0002-ax_check_glx.m4-properly-quote-m4_fatal.patch @@ -0,0 +1,37 @@ +From e25f8d9e3ead52f998535b86c763065c5b45cc59 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Sat, 19 Oct 2024 21:57:16 -0400 +Subject: [PATCH 2/3] ax_check_glx.m4: properly quote m4_fatal + +It needs to only run as an argument of m4_if, not all the time. + +Fixes: 40ca66e7e52bb63e3eee2514855fcf3ad2df7673 +--- + m4/ax_check_glx.m4 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/m4/ax_check_glx.m4 b/m4/ax_check_glx.m4 +index c7890d9..b5027f9 100644 +--- a/m4/ax_check_glx.m4 ++++ b/m4/ax_check_glx.m4 +@@ -61,7 +61,7 @@ + # modified version of the Autoconf Macro, you may extend this special + # exception to the GPL to apply to your modified version as well. + +-#serial 9 ++#serial 10 + + # example program + m4_define([_AX_CHECK_GLX_PROGRAM], +@@ -183,7 +183,7 @@ AC_DEFUN([_AX_CHECK_GLX_HEADERS], + AC_DEFUN([_AX_CHECK_GLX_MANUAL_LIBS_GENERIC], + [dnl + ax_check_glx_manual_libs_generic_extra_libs="$1" +- m4_if($1, [], m4_fatal([$0: argument must not be empty])) ++ m4_if($1, [], [m4_fatal([$0: argument must not be empty])]) + + AC_LANG_PUSH([C]) + _AX_CHECK_GLX_SAVE_FLAGS() +-- +2.46.1 + diff --git a/pkgs/by-name/au/autoconf-archive/0003-ax_switch_flags.m4-properly-quote-m4_fatal.patch b/pkgs/by-name/au/autoconf-archive/0003-ax_switch_flags.m4-properly-quote-m4_fatal.patch new file mode 100644 index 000000000000..d3b8f18dc0e8 --- /dev/null +++ b/pkgs/by-name/au/autoconf-archive/0003-ax_switch_flags.m4-properly-quote-m4_fatal.patch @@ -0,0 +1,32 @@ +From 3a23daa3da0eb1a256fda631867e19345d5f6e3a Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Sat, 19 Oct 2024 21:58:52 -0400 +Subject: [PATCH 3/3] ax_switch_flags.m4: properly quote m4_fatal + +It needs to only run as an argument of m4_if, not all the time. + +Fixes: 2adff78e224c908fd58df91852c8301c25777a8f +--- + m4/ax_switch_flags.m4 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/m4/ax_switch_flags.m4 b/m4/ax_switch_flags.m4 +index dc79d1e..777aeb0 100644 +--- a/m4/ax_switch_flags.m4 ++++ b/m4/ax_switch_flags.m4 +@@ -36,10 +36,10 @@ + # and this notice are preserved. This file is offered as-is, without any + # warranty. + +-#serial 5 ++#serial 6 + + AC_DEFUN([AX_SWITCH_FLAGS], [ +- m4_if($1, [], m4_fatal([$0: namespace is empty])) ++ m4_if($1, [], [m4_fatal([$0: namespace is empty])]) + AC_REQUIRE(AX_SAVE_FLAGS) + AC_REQUIRE(AX_RESTORE_FLAGS) + AX_SAVE_FLAGS($1[]) +-- +2.46.1 + diff --git a/pkgs/by-name/au/autoconf-archive/package.nix b/pkgs/by-name/au/autoconf-archive/package.nix index a507fd8094ef..8ac14c61bda4 100644 --- a/pkgs/by-name/au/autoconf-archive/package.nix +++ b/pkgs/by-name/au/autoconf-archive/package.nix @@ -9,6 +9,15 @@ stdenv.mkDerivation rec { hash = "sha256-e81dABkW86UO10NvT3AOPSsbrePtgDIZxZLWJQKlc2M="; }; + patches = [ + # cherry-picked changes from + # https://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=commit;h=fadde164479a926d6b56dd693ded2a4c36ed89f0 + # can be removed on next release + ./0001-ax_check_gl.m4-properly-quote-m4_fatal.patch + ./0002-ax_check_glx.m4-properly-quote-m4_fatal.patch + ./0003-ax_switch_flags.m4-properly-quote-m4_fatal.patch + ]; + strictDeps = true; enableParallelBuilding = true; From 583c2c58e9833e648fb17c1a98fdd379b243c9d9 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 17 Nov 2024 07:22:26 +0000 Subject: [PATCH 130/693] openh264: 2.4.1 -> 2.5.0 Changes: https://github.com/cisco/openh264/releases/tag/v2.5.0 --- pkgs/by-name/op/openh264/package.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/op/openh264/package.nix b/pkgs/by-name/op/openh264/package.nix index 12048b593dd0..18766f628c12 100644 --- a/pkgs/by-name/op/openh264/package.nix +++ b/pkgs/by-name/op/openh264/package.nix @@ -1,6 +1,5 @@ { lib , fetchFromGitHub -, fetchpatch2 , gtest , meson , nasm @@ -12,25 +11,15 @@ stdenv.mkDerivation (finalAttrs: { pname = "openh264"; - version = "2.4.1"; + version = "2.5.0"; src = fetchFromGitHub { owner = "cisco"; repo = "openh264"; rev = "v${finalAttrs.version}"; - hash = "sha256-ai7lcGcQQqpsLGSwHkSs7YAoEfGCIbxdClO6JpGA+MI="; + hash = "sha256-K8p94P4XO6bUWCJuT6jR5Kmz3lamNDyclGWgsV6Lf9I="; }; - patches = [ - # build: fix build with meson on riscv64 - # https://github.com/cisco/openh264/pull/3773 - (fetchpatch2 { - name = "openh264-riscv64.patch"; - url = "https://github.com/cisco/openh264/commit/cea886eda8fae7ba42c4819e6388ce8fc633ebf6.patch"; - hash = "sha256-ncXuGgogXA7JcCOjGk+kBprmOErFohrYjYzZYzAbbDQ="; - }) - ]; - outputs = [ "out" "dev" ]; nativeBuildInputs = [ From 19853b79530b5c99e5e1412aaf9721e0ec3b70bb Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 17 Nov 2024 10:33:40 +0000 Subject: [PATCH 131/693] Revert "systemd: revert boot-breaking systemd-boot change" This was incorporated upstream in v256.8 as . This reverts commit 63ce4665b2ce60fbe35d7cdf2b434dd10f1b4095. Fixes: 6fc6e7bce851f59f61c3f96c62a014bedc40fbf0 --- ...-initrd_prepare-semantically-equival.patch | 150 ------------------ pkgs/os-specific/linux/systemd/default.nix | 1 - 2 files changed, 151 deletions(-) delete mode 100644 pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch diff --git a/pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch b/pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch deleted file mode 100644 index f33b730d015a..000000000000 --- a/pkgs/os-specific/linux/systemd/0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch +++ /dev/null @@ -1,150 +0,0 @@ -From bc1abc37f1cf0368d9c320c9d3845154d85f66b1 Mon Sep 17 00:00:00 2001 -From: Alyssa Ross -Date: Mon, 11 Nov 2024 23:09:21 +0100 -Subject: [PATCH] Revert "boot: Make initrd_prepare() semantically equivalent - to combine_initrds()" - -This reverts commit d64193a2a652b15db9cb9ed10c6b77a17ca46cd2. - -This breaks boot on Apple Silicon, and probably other platforms with no memory -mapped below 4G. - -Link: https://github.com/systemd/systemd/issues/35026 ---- - src/boot/efi/boot.c | 60 ++++++++++++--------------------------------- - 1 file changed, 16 insertions(+), 44 deletions(-) - -diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c -index ecbb4e0509..f94b59db59 100644 ---- a/src/boot/efi/boot.c -+++ b/src/boot/efi/boot.c -@@ -11,7 +11,6 @@ - #include "initrd.h" - #include "linux.h" - #include "measure.h" --#include "memory-util-fundamental.h" - #include "part-discovery.h" - #include "pe.h" - #include "proto/block-io.h" -@@ -2249,18 +2248,18 @@ static EFI_STATUS initrd_prepare( - EFI_FILE *root, - const BootEntry *entry, - char16_t **ret_options, -- Pages *ret_initrd_pages, -+ void **ret_initrd, - size_t *ret_initrd_size) { - - assert(root); - assert(entry); - assert(ret_options); -- assert(ret_initrd_pages); -+ assert(ret_initrd); - assert(ret_initrd_size); - - if (entry->type != LOADER_LINUX || !entry->initrd) { - *ret_options = NULL; -- *ret_initrd_pages = (Pages) {}; -+ *ret_initrd = NULL; - *ret_initrd_size = 0; - return EFI_SUCCESS; - } -@@ -2274,6 +2273,7 @@ static EFI_STATUS initrd_prepare( - - EFI_STATUS err; - size_t size = 0; -+ _cleanup_free_ uint8_t *initrd = NULL; - - STRV_FOREACH(i, entry->initrd) { - _cleanup_free_ char16_t *o = options; -@@ -2292,58 +2292,30 @@ static EFI_STATUS initrd_prepare( - if (err != EFI_SUCCESS) - return err; - -- if (!INC_SAFE(&size, ALIGN4(info->FileSize))) -- return EFI_OUT_OF_RESOURCES; -- } -- -- _cleanup_pages_ Pages pages = xmalloc_pages( -- AllocateMaxAddress, -- EfiLoaderData, -- EFI_SIZE_TO_PAGES(size), -- UINT32_MAX /* Below 4G boundary. */); -- uint8_t *p = PHYSICAL_ADDRESS_TO_POINTER(pages.addr); -- -- STRV_FOREACH(i, entry->initrd) { -- _cleanup_(file_closep) EFI_FILE *handle = NULL; -- err = root->Open(root, &handle, *i, EFI_FILE_MODE_READ, 0); -- if (err != EFI_SUCCESS) -- return err; -- -- _cleanup_free_ EFI_FILE_INFO *info = NULL; -- err = get_file_info(handle, &info, NULL); -- if (err != EFI_SUCCESS) -- return err; -- - if (info->FileSize == 0) /* Automatically skip over empty files */ - continue; - -- size_t read_size = info->FileSize; -- err = chunked_read(handle, &read_size, p); -+ size_t new_size, read_size = info->FileSize; -+ if (!ADD_SAFE(&new_size, size, read_size)) -+ return EFI_OUT_OF_RESOURCES; -+ initrd = xrealloc(initrd, size, new_size); -+ -+ err = chunked_read(handle, &read_size, initrd + size); - if (err != EFI_SUCCESS) - return err; - - /* Make sure the actual read size is what we expected. */ -- assert(read_size == info->FileSize); -- p += read_size; -- -- size_t pad; -- pad = ALIGN4(read_size) - read_size; -- if (pad == 0) -- continue; -- -- memzero(p, pad); -- p += pad; -+ assert(size + read_size == new_size); -+ size = new_size; - } - -- assert(PHYSICAL_ADDRESS_TO_POINTER(pages.addr + size) == p); -- - if (entry->options) { - _cleanup_free_ char16_t *o = options; - options = xasprintf("%ls %ls", o, entry->options); - } - - *ret_options = TAKE_PTR(options); -- *ret_initrd_pages = TAKE_STRUCT(pages); -+ *ret_initrd = TAKE_PTR(initrd); - *ret_initrd_size = size; - return EFI_SUCCESS; - } -@@ -2373,9 +2345,9 @@ static EFI_STATUS image_start( - return log_error_status(err, "Error making file device path: %m"); - - size_t initrd_size = 0; -- _cleanup_pages_ Pages initrd_pages = {}; -+ _cleanup_free_ void *initrd = NULL; - _cleanup_free_ char16_t *options_initrd = NULL; -- err = initrd_prepare(image_root, entry, &options_initrd, &initrd_pages, &initrd_size); -+ err = initrd_prepare(image_root, entry, &options_initrd, &initrd, &initrd_size); - if (err != EFI_SUCCESS) - return log_error_status(err, "Error preparing initrd: %m"); - -@@ -2393,7 +2365,7 @@ static EFI_STATUS image_start( - } - - _cleanup_(cleanup_initrd) EFI_HANDLE initrd_handle = NULL; -- err = initrd_register(PHYSICAL_ADDRESS_TO_POINTER(initrd_pages.addr), initrd_size, &initrd_handle); -+ err = initrd_register(initrd, initrd_size, &initrd_handle); - if (err != EFI_SUCCESS) - return log_error_status(err, "Error registering initrd: %m"); - --- -2.47.0 - diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 5f86cfb32f6a..425775e9dd16 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -232,7 +232,6 @@ stdenv.mkDerivation (finalAttrs: { ./0015-tpm2_context_init-fix-driver-name-checking.patch ./0016-systemctl-edit-suggest-systemdctl-edit-runtime-on-sy.patch ./0017-meson.build-do-not-create-systemdstatedir.patch - ./0019-Revert-boot-Make-initrd_prepare-semantically-equival.patch # https://github.com/systemd/systemd/issues/33392 (fetchpatch2 { From 894fb0748dc16bac3d6fee704715e726759481eb Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 17 Nov 2024 15:02:34 +0100 Subject: [PATCH 132/693] e2fsprogs: remove compat patch 23.05 is not supported anymore. --- pkgs/by-name/e2/e2fsprogs/package.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkgs/by-name/e2/e2fsprogs/package.nix b/pkgs/by-name/e2/e2fsprogs/package.nix index 4d0849b896d0..43549c233b82 100644 --- a/pkgs/by-name/e2/e2fsprogs/package.nix +++ b/pkgs/by-name/e2/e2fsprogs/package.nix @@ -23,13 +23,6 @@ stdenv.mkDerivation rec { ++ lib.optionals withFuse [ fuse3 ]; patches = [ - # Avoid trouble with older systems like NixOS 23.05. - # TODO: most likely drop this at some point, e.g. when 23.05 loses support. - (fetchurl { - name = "mke2fs-avoid-incompatible-features.patch"; - url = "https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/plain/debian/patches/disable-metadata_csum_seed-and-orphan_file-by-default?h=debian/master&id=3fb3d18baba90e5d48d94f4c0b79b2d271b0c913"; - hash = "sha256-YD11K4s2bqv0rvzrxtaiodzLp3ztULlOlPUf1XcpxRY="; - }) (fetchurl { name = "SIZEOF_SIZE_T.patch"; url = "https://lore.kernel.org/linux-ext4/20240527074121.2767083-1-hi@alyssa.is/raw"; From 71306e6b36657f3987214611ec863a891334bf5a Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 17 Nov 2024 13:45:05 +0100 Subject: [PATCH 133/693] nixos/lib/test-driver: remove legacy args handling Scheduled for removal in 24.11, so let's follow through. Added in #291544. --- nixos/lib/test-driver/test_driver/driver.py | 37 --------------------- 1 file changed, 37 deletions(-) diff --git a/nixos/lib/test-driver/test_driver/driver.py b/nixos/lib/test-driver/test_driver/driver.py index 0f01bd6d0ab4..50d299788eda 100644 --- a/nixos/lib/test-driver/test_driver/driver.py +++ b/nixos/lib/test-driver/test_driver/driver.py @@ -210,43 +210,6 @@ class Driver: name: Optional[str] = None, keep_vm_state: bool = False, ) -> Machine: - # Legacy args handling - # FIXME: remove after 24.05 - if isinstance(start_command, dict): - if name is not None or keep_vm_state: - raise TypeError( - "Dictionary passed to create_machine must be the only argument" - ) - - args = start_command - start_command = args.pop("startCommand", SENTINEL) - - if start_command is SENTINEL: - raise TypeError( - "Dictionary passed to create_machine must contain startCommand" - ) - - if not isinstance(start_command, str): - raise TypeError( - f"startCommand must be a string, got: {repr(start_command)}" - ) - - name = args.pop("name", None) - keep_vm_state = args.pop("keep_vm_state", False) - - if args: - raise TypeError( - f"Unsupported arguments passed to create_machine: {args}" - ) - - self.logger.warning( - Fore.YELLOW - + Style.BRIGHT - + "WARNING: Using create_machine with a single dictionary argument is deprecated and will be removed in NixOS 24.11" - + Style.RESET_ALL - ) - # End legacy args handling - tmp_dir = get_tmp_dir() cmd = NixStartScript(start_command) From a2f60bb52e86be09e79e7f2078f3c8972d7d8cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Sat, 8 Jun 2024 19:58:32 +0200 Subject: [PATCH 134/693] haskell: Don't use package-qualified and non-package-qualified grep --- pkgs/development/haskell-modules/generic-builder.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 14afa3dfe6b4..eb7ea4cf76a2 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -24,7 +24,7 @@ let inherit (buildPackages) fetchurl removeReferencesTo - pkg-config coreutils gnugrep glibcLocales + pkg-config coreutils glibcLocales emscripten; in @@ -569,7 +569,7 @@ stdenv.mkDerivation ({ echo configureFlags: $configureFlags ${setupCommand} configure $configureFlags 2>&1 | ${coreutils}/bin/tee "$NIX_BUILD_TOP/cabal-configure.log" ${lib.optionalString (!allowInconsistentDependencies) '' - if ${gnugrep}/bin/egrep -q -z 'Warning:.*depends on multiple versions' "$NIX_BUILD_TOP/cabal-configure.log"; then + if grep -E -q -z 'Warning:.*depends on multiple versions' "$NIX_BUILD_TOP/cabal-configure.log"; then echo >&2 "*** abort because of serious configure-time warning from Cabal" exit 1 fi From 31706d4a55d292678ab634b301347109e2dc9ea0 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 17 Nov 2024 18:24:54 +0100 Subject: [PATCH 135/693] treewide: fix sed -ie and friends GNU sed's man page has this to say about "-i": Because -i takes an optional argument, it should not be followed by other short options: [..] sed -iE '...' FILE This is equivalent to --in-place=E, creating FILEE as backup of FILE This means all "-iX" did not have the intended effect X, so we can instead remove them. --- nixos/tests/prometheus-exporters.nix | 2 +- .../networking/p2p/gnunet/default.nix | 4 ++-- .../terminal-emulators/mlterm/default.nix | 4 ++-- pkgs/by-name/ar/arangodb/package.nix | 2 +- pkgs/by-name/bc/bcftools/package.nix | 2 +- pkgs/by-name/be/bear/package.nix | 2 +- pkgs/by-name/ca/canon-cups-ufr2/package.nix | 24 +++++++++---------- pkgs/by-name/ct/ctpp2/package.nix | 2 +- pkgs/by-name/da/daemontools/package.nix | 4 ++-- pkgs/by-name/gs/gsimplecal/package.nix | 2 +- pkgs/by-name/ho/hol/package.nix | 2 +- pkgs/by-name/io/io/package.nix | 2 +- pkgs/by-name/ju/jumpnbump/package.nix | 2 +- pkgs/by-name/ju/justbuild/package.nix | 6 ++--- pkgs/by-name/ko/koules/package.nix | 6 ++--- pkgs/by-name/mo/molden/package.nix | 2 +- pkgs/by-name/nu/nuweb/package.nix | 2 +- pkgs/by-name/pu/pugixml/package.nix | 2 +- pkgs/by-name/ro/rosie/package.nix | 4 ++-- pkgs/by-name/sh/sherpa/package.nix | 2 +- pkgs/by-name/sl/slang/package.nix | 8 +++---- pkgs/by-name/sp/sparkleshare/package.nix | 2 +- pkgs/by-name/sw/swaylock-effects/package.nix | 2 +- pkgs/by-name/tc/tcpkali/package.nix | 2 +- pkgs/by-name/ts/tsduck/package.nix | 10 ++++---- pkgs/by-name/vk/vk-bootstrap/package.nix | 4 ++-- pkgs/by-name/w3/w3m/package.nix | 2 +- pkgs/by-name/wi/wifish/package.nix | 2 +- pkgs/by-name/x2/x2goserver/package.nix | 2 +- pkgs/by-name/xo/xonsh/unwrapped.nix | 6 ++--- .../compilers/factor-lang/factor99.nix | 6 ++--- .../compilers/scala-runners/default.nix | 2 +- .../libraries/irrlicht/default.nix | 2 +- .../libraries/libmicrohttpd/generic.nix | 2 +- .../libraries/wxsqliteplus/default.nix | 6 ++--- .../python-modules/baselines/default.nix | 2 +- .../python-modules/gradio/default.nix | 2 +- .../python-modules/scalene/default.nix | 4 ++-- .../tools/misc/coreboot-toolchain/update.sh | 2 +- .../doom-ports/zandronum/alpha/default.nix | 2 +- pkgs/games/doom-ports/zandronum/default.nix | 2 +- pkgs/top-level/perl-packages.nix | 12 +++++----- 42 files changed, 81 insertions(+), 81 deletions(-) diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 4aacd8e5a849..a9e7683c474b 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -219,7 +219,7 @@ let succeed( 'echo \'${postData}\'> /tmp/data.json' ) - succeed('sed -ie "s DATE $(date +%s) " /tmp/data.json') + succeed('sed -i -e "s DATE $(date +%s) " /tmp/data.json') succeed( "curl -sSfH 'Content-Type: application/json' -X POST --data @/tmp/data.json localhost:9103/collectd" ) diff --git a/pkgs/applications/networking/p2p/gnunet/default.nix b/pkgs/applications/networking/p2p/gnunet/default.nix index 891a4214fe78..048ba5a35496 100644 --- a/pkgs/applications/networking/p2p/gnunet/default.nix +++ b/pkgs/applications/networking/p2p/gnunet/default.nix @@ -28,12 +28,12 @@ stdenv.mkDerivation rec { # /etc/{resolv.conf,hosts}, replace all references to `localhost' # by their IPv4 equivalent. find . \( -name \*.c -or -name \*.conf \) | \ - xargs sed -ie 's|\|127.0.0.1|g' + xargs sed -i -e 's|\|127.0.0.1|g' # Make sure the tests don't rely on `/tmp', for the sake of chroot # builds. find . \( -iname \*test\*.c -or -name \*.conf \) | \ - xargs sed -ie "s|/tmp|$TMPDIR|g" + xargs sed -i -e "s|/tmp|$TMPDIR|g" ''; # unfortunately, there's still a few failures with impure tests diff --git a/pkgs/applications/terminal-emulators/mlterm/default.nix b/pkgs/applications/terminal-emulators/mlterm/default.nix index dcf581f27a80..d0cb926af866 100644 --- a/pkgs/applications/terminal-emulators/mlterm/default.nix +++ b/pkgs/applications/terminal-emulators/mlterm/default.nix @@ -147,14 +147,14 @@ in stdenv.mkDerivation (finalAttrs: { #bad configure.ac and Makefile.in everywhere preConfigure = '' - sed -ie 's;-L/usr/local/lib -R/usr/local/lib;;g' \ + sed -i -e 's;-L/usr/local/lib -R/usr/local/lib;;g' \ main/Makefile.in \ tool/mlfc/Makefile.in \ tool/mlimgloader/Makefile.in \ tool/mlconfig/Makefile.in \ uitoolkit/libtype/Makefile.in \ uitoolkit/libotl/Makefile.in - sed -ie 's;cd ..srcdir. && rm -f ...lang..gmo.*;;g' \ + sed -i -e 's;cd ..srcdir. && rm -f ...lang..gmo.*;;g' \ tool/mlconfig/po/Makefile.in.in #utmp and mlterm-fb substituteInPlace configure.in \ diff --git a/pkgs/by-name/ar/arangodb/package.nix b/pkgs/by-name/ar/arangodb/package.nix index 5b965796de64..7af161c0a288 100644 --- a/pkgs/by-name/ar/arangodb/package.nix +++ b/pkgs/by-name/ar/arangodb/package.nix @@ -51,7 +51,7 @@ gcc10Stdenv.mkDerivation rec { env.NIX_CFLAGS_COMPILE = "-Wno-error"; postPatch = '' - sed -ie 's!/bin/echo!echo!' 3rdParty/V8/gypfiles/*.gypi + sed -i -e 's!/bin/echo!echo!' 3rdParty/V8/gypfiles/*.gypi # with nixpkgs, it has no sense to check for a version update substituteInPlace js/client/client.js --replace "require('@arangodb').checkAvailableVersions();" "" diff --git a/pkgs/by-name/bc/bcftools/package.nix b/pkgs/by-name/bc/bcftools/package.nix index 1e4483530238..c0ffa2c3fec2 100644 --- a/pkgs/by-name/bc/bcftools/package.nix +++ b/pkgs/by-name/bc/bcftools/package.nix @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { preCheck = '' patchShebangs misc/ patchShebangs test/ - sed -ie 's|/bin/bash|${bash}/bin/bash|' test/test.pl + sed -i -e 's|/bin/bash|${bash}/bin/bash|' test/test.pl ''; enableParallelBuilding = true; diff --git a/pkgs/by-name/be/bear/package.nix b/pkgs/by-name/be/bear/package.nix index 01d7560b9302..61150d767882 100644 --- a/pkgs/by-name/be/bear/package.nix +++ b/pkgs/by-name/be/bear/package.nix @@ -100,7 +100,7 @@ stdenv.mkDerivation (finalAttrs: { # /usr/bin/env is used in test commands and embedded scripts. find test -name '*.sh' \ - -exec sed -ie 's|/usr/bin/env|${coreutils}/bin/env|g' {} + + -exec sed -i -e 's|/usr/bin/env|${coreutils}/bin/env|g' {} + ''; # Functional tests use loopback networking. diff --git a/pkgs/by-name/ca/canon-cups-ufr2/package.nix b/pkgs/by-name/ca/canon-cups-ufr2/package.nix index e39bcf05e427..6265f0c339ba 100644 --- a/pkgs/by-name/ca/canon-cups-ufr2/package.nix +++ b/pkgs/by-name/ca/canon-cups-ufr2/package.nix @@ -52,20 +52,20 @@ stdenv.mkDerivation rec { ( cd $sourceRoot tar -xf Sources/cnrdrvcups-lb-${version}-1.${suffix2}.tar.xz - sed -ie "s@_prefix=/usr@_prefix=$out@" cnrdrvcups-common-${version}/allgen.sh - sed -ie "s@_libdir=/usr/lib@_libdir=$out/lib@" cnrdrvcups-common-${version}/allgen.sh - sed -ie "s@_bindir=/usr/bin@_bindir=$out/bin@" cnrdrvcups-common-${version}/allgen.sh - sed -ie "s@/usr@$out@" cnrdrvcups-common-${version}/{{backend,rasterfilter}/Makefile.am,rasterfilter/cnrasterproc.h} - sed -ie "s@etc/cngplp@$out/etc/cngplp@" cnrdrvcups-common-${version}/cngplp/Makefile.am - sed -ie "s@usr/share/cngplp@$out/usr/share/cngplp@" cnrdrvcups-common-${version}/cngplp/src/Makefile.am + sed -i -e "s@_prefix=/usr@_prefix=$out@" cnrdrvcups-common-${version}/allgen.sh + sed -i -e "s@_libdir=/usr/lib@_libdir=$out/lib@" cnrdrvcups-common-${version}/allgen.sh + sed -i -e "s@_bindir=/usr/bin@_bindir=$out/bin@" cnrdrvcups-common-${version}/allgen.sh + sed -i -e "s@/usr@$out@" cnrdrvcups-common-${version}/{{backend,rasterfilter}/Makefile.am,rasterfilter/cnrasterproc.h} + sed -i -e "s@etc/cngplp@$out/etc/cngplp@" cnrdrvcups-common-${version}/cngplp/Makefile.am + sed -i -e "s@usr/share/cngplp@$out/usr/share/cngplp@" cnrdrvcups-common-${version}/cngplp/src/Makefile.am patchShebangs cnrdrvcups-common-${version} - sed -ie "s@_prefix=/usr@_prefix=$out@" cnrdrvcups-lb-${version}/allgen.sh - sed -ie "s@_libdir=/usr/lib@_libdir=$out/lib@" cnrdrvcups-lb-${version}/allgen.sh - sed -ie "s@_bindir=/usr/bin@_bindir=$out/bin@" cnrdrvcups-lb-${version}/allgen.sh - sed -ie '/^cd \.\.\/cngplp/,/^cd files/{/^cd files/!{d}}' cnrdrvcups-lb-${version}/allgen.sh - sed -ie "s@cd \.\./pdftocpca@cd pdftocpca@" cnrdrvcups-lb-${version}/allgen.sh - sed -ie "s@/usr@$out@" cnrdrvcups-lb-${version}/pdftocpca/Makefile.am + sed -i -e "s@_prefix=/usr@_prefix=$out@" cnrdrvcups-lb-${version}/allgen.sh + sed -i -e "s@_libdir=/usr/lib@_libdir=$out/lib@" cnrdrvcups-lb-${version}/allgen.sh + sed -i -e "s@_bindir=/usr/bin@_bindir=$out/bin@" cnrdrvcups-lb-${version}/allgen.sh + sed -i -e '/^cd \.\.\/cngplp/,/^cd files/{/^cd files/!{d}}' cnrdrvcups-lb-${version}/allgen.sh + sed -i -e "s@cd \.\./pdftocpca@cd pdftocpca@" cnrdrvcups-lb-${version}/allgen.sh + sed -i -e "s@/usr@$out@" cnrdrvcups-lb-${version}/pdftocpca/Makefile.am sed -i "/CNGPLPDIR/d" cnrdrvcups-lb-${version}/Makefile patchShebangs cnrdrvcups-lb-${version} ) diff --git a/pkgs/by-name/ct/ctpp2/package.nix b/pkgs/by-name/ct/ctpp2/package.nix index 2d3b07e5e01f..eb5689ea107c 100644 --- a/pkgs/by-name/ct/ctpp2/package.nix +++ b/pkgs/by-name/ct/ctpp2/package.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { patchPhase = '' # include to fix undefined getcwd - sed -ie 's//\n#include /' src/CTPP2FileSourceLoader.cpp + sed -i -e 's//\n#include /' src/CTPP2FileSourceLoader.cpp ''; cmakeFlags = [ diff --git a/pkgs/by-name/da/daemontools/package.nix b/pkgs/by-name/da/daemontools/package.nix index 491a03bb81e2..928d266bc3f1 100644 --- a/pkgs/by-name/da/daemontools/package.nix +++ b/pkgs/by-name/da/daemontools/package.nix @@ -24,12 +24,12 @@ stdenv.mkDerivation rec { configurePhase = '' cd daemontools-${version} - sed -ie '1 s_$_ -include ${glibc.dev}/include/errno.h_' src/conf-cc + sed -i -e '1 s_$_ -include ${glibc.dev}/include/errno.h_' src/conf-cc substituteInPlace src/Makefile \ --replace '/bin/sh' '${bash}/bin/bash -oxtrace' - sed -ie "s_^PATH=.*_PATH=$src/daemontools-${version}/compile:''${PATH}_" src/rts.tests + sed -i -e "s_^PATH=.*_PATH=$src/daemontools-${version}/compile:''${PATH}_" src/rts.tests cat ${glibc.dev}/include/errno.h ''; diff --git a/pkgs/by-name/gs/gsimplecal/package.nix b/pkgs/by-name/gs/gsimplecal/package.nix index 224f2f359d77..df964954af11 100644 --- a/pkgs/by-name/gs/gsimplecal/package.nix +++ b/pkgs/by-name/gs/gsimplecal/package.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { }; postPatch = '' - sed -ie '/sys\/sysctl.h/d' src/Unique.cpp + sed -i -e '/sys\/sysctl.h/d' src/Unique.cpp ''; enableParallelBuilding = true; diff --git a/pkgs/by-name/ho/hol/package.nix b/pkgs/by-name/ho/hol/package.nix index 883eb4331c9f..3f48a77478eb 100644 --- a/pkgs/by-name/ho/hol/package.nix +++ b/pkgs/by-name/ho/hol/package.nix @@ -50,7 +50,7 @@ stdenv.mkDerivation { substituteInPlace $f --replace "\"/usr/bin/dot\"" "\"${graphviz}/bin/dot\"" done - #sed -ie "/compute/,999 d" tools/build-sequence # for testing + #sed -i -e "/compute/,999 d" tools/build-sequence # for testing poly < tools/smart-configure.sml diff --git a/pkgs/by-name/io/io/package.nix b/pkgs/by-name/io/io/package.nix index 0d522055d9ad..bba15590cf70 100644 --- a/pkgs/by-name/io/io/package.nix +++ b/pkgs/by-name/io/io/package.nix @@ -39,7 +39,7 @@ stdenv.mkDerivation { # The Addon generation (AsyncRequest and a others checked) seems to have # trouble with building on Virtual machines. Disabling them until it # can be fully investigated. - sed -ie \ + sed -i -e \ "s/add_subdirectory(addons)/#add_subdirectory(addons)/g" \ CMakeLists.txt # Bind Libs STATIC to avoid a segfault when relinking diff --git a/pkgs/by-name/ju/jumpnbump/package.nix b/pkgs/by-name/ju/jumpnbump/package.nix index b2f6a646c65f..b287f4835f26 100644 --- a/pkgs/by-name/ju/jumpnbump/package.nix +++ b/pkgs/by-name/ju/jumpnbump/package.nix @@ -34,7 +34,7 @@ stdenv.mkDerivation rec { make -C menu PREFIX=$out all install cp -r ${data}/* $out/share/jumpnbump/ rm $out/share/applications/jumpnbump-menu.desktop - sed -ie 's+Exec=jumpnbump+Exec=jumpnbump-menu+' $out/share/applications/jumpnbump.desktop + sed -i -e 's+Exec=jumpnbump+Exec=jumpnbump-menu+' $out/share/applications/jumpnbump.desktop ''; pythonPath = with python3Packages; [ pygobject3 pillow ]; diff --git a/pkgs/by-name/ju/justbuild/package.nix b/pkgs/by-name/ju/justbuild/package.nix index 188275786501..d1541a961514 100644 --- a/pkgs/by-name/ju/justbuild/package.nix +++ b/pkgs/by-name/ju/justbuild/package.nix @@ -87,8 +87,8 @@ stdenv.mkDerivation rec { postPatch = '' - sed -ie 's|\./bin/just-mr.py|${python3}/bin/python3 ./bin/just-mr.py|' bin/bootstrap.py - sed -ie 's|#!/usr/bin/env python3|#!${python3}/bin/python3|' bin/parallel-bootstrap-traverser.py + sed -i -e 's|\./bin/just-mr.py|${python3}/bin/python3 ./bin/just-mr.py|' bin/bootstrap.py + sed -i -e 's|#!/usr/bin/env python3|#!${python3}/bin/python3|' bin/parallel-bootstrap-traverser.py jq '.repositories.protobuf.pkg_bootstrap.local_path = "${protobuf}"' etc/repos.json > etc/repos.json.patched mv etc/repos.json.patched etc/repos.json jq '.repositories.com_github_grpc_grpc.pkg_bootstrap.local_path = "${grpc}"' etc/repos.json > etc/repos.json.patched @@ -97,7 +97,7 @@ stdenv.mkDerivation rec { mv etc/toolchain/CC/TARGETS.patched etc/toolchain/CC/TARGETS '' + lib.optionalString stdenv.hostPlatform.isDarwin '' - sed -ie 's|-Wl,-z,stack-size=8388608|-Wl,-stack_size,0x800000|' bin/bootstrap.py + sed -i -e 's|-Wl,-z,stack-size=8388608|-Wl,-stack_size,0x800000|' bin/bootstrap.py ''; /* diff --git a/pkgs/by-name/ko/koules/package.nix b/pkgs/by-name/ko/koules/package.nix index a59199e949c8..df2962e1d277 100644 --- a/pkgs/by-name/ko/koules/package.nix +++ b/pkgs/by-name/ko/koules/package.nix @@ -37,13 +37,13 @@ stdenv.mkDerivation rec { postPatch = '' # We do not want to depend on that particular font to be available in the # xserver, hence substitute it by a font which is always available - sed -ie 's:-schumacher-clean-bold-r-normal--8-80-75-75-c-80-\*iso\*:fixed:' xlib/init.c + sed -i -e 's:-schumacher-clean-bold-r-normal--8-80-75-75-c-80-\*iso\*:fixed:' xlib/init.c ''; preBuild = '' cp xkoules.6 xkoules.man # else "make" will not succeed - sed -ie "s:^SOUNDDIR\s*=.*:SOUNDDIR=$out/lib:" Makefile - sed -ie "s:^KOULESDIR\s*=.*:KOULESDIR=$out:" Makefile + sed -i -e "s:^SOUNDDIR\s*=.*:SOUNDDIR=$out/lib:" Makefile + sed -i -e "s:^KOULESDIR\s*=.*:KOULESDIR=$out:" Makefile ''; installPhase = '' diff --git a/pkgs/by-name/mo/molden/package.nix b/pkgs/by-name/mo/molden/package.nix index 7a15ef9363b5..e96165052ba5 100644 --- a/pkgs/by-name/mo/molden/package.nix +++ b/pkgs/by-name/mo/molden/package.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { substituteInPlace ambfor/makefile --replace 'FFLAGS =' 'FFLAGS = -fallow-argument-mismatch' - sed -in '/^# DO NOT DELETE THIS LINE/q;' surf/Makefile + sed -i '/^# DO NOT DELETE THIS LINE/q;' surf/Makefile ''; preInstall = '' diff --git a/pkgs/by-name/nu/nuweb/package.nix b/pkgs/by-name/nu/nuweb/package.nix index bc7841843a8d..99fca7df950d 100644 --- a/pkgs/by-name/nu/nuweb/package.nix +++ b/pkgs/by-name/nu/nuweb/package.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { buildInputs = [ texliveMedium ]; patchPhase = '' - sed -ie 's|nuweb -r|./nuweb -r|' Makefile + sed -i -e 's|nuweb -r|./nuweb -r|' Makefile ''; # Workaround build failure on -fno-common toolchains like upstream diff --git a/pkgs/by-name/pu/pugixml/package.nix b/pkgs/by-name/pu/pugixml/package.nix index fc0eb1dfa291..dbfb68801592 100644 --- a/pkgs/by-name/pu/pugixml/package.nix +++ b/pkgs/by-name/pu/pugixml/package.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { preConfigure = '' # Enable long long support (required for filezilla) - sed -ire '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp + sed -i -e '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp ''; meta = with lib; { diff --git a/pkgs/by-name/ro/rosie/package.nix b/pkgs/by-name/ro/rosie/package.nix index 5cad6650d2ce..3d2f1006cfee 100644 --- a/pkgs/by-name/ro/rosie/package.nix +++ b/pkgs/by-name/ro/rosie/package.nix @@ -29,8 +29,8 @@ stdenv.mkDerivation rec { # Part of the same Makefile target which calls git to update submodules ln -s src submodules/lua/include # ldconfig is irrelevant, disable it inside `make installforce`. - sed -iE 's/ldconfig/echo skippin ldconfig/' Makefile - sed -iE '/ld.so.conf.d/d' Makefile + sed -i 's/ldconfig/echo skippin ldconfig/' Makefile + sed -i '/ld.so.conf.d/d' Makefile ''; preInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' diff --git a/pkgs/by-name/sh/sherpa/package.nix b/pkgs/by-name/sh/sherpa/package.nix index b1fbbab8781f..e9375cd219bd 100644 --- a/pkgs/by-name/sh/sherpa/package.nix +++ b/pkgs/by-name/sh/sherpa/package.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { }; postPatch = lib.optionalString (stdenv.hostPlatform.libc == "glibc") '' - sed -ie '/sys\/sysctl.h/d' ATOOLS/Org/Run_Parameter.C + sed -i -e '/sys\/sysctl.h/d' ATOOLS/Org/Run_Parameter.C ''; nativeBuildInputs = [ autoconf gfortran ]; diff --git a/pkgs/by-name/sl/slang/package.nix b/pkgs/by-name/sl/slang/package.nix index 7d67d22eb3e0..26e93492bef9 100644 --- a/pkgs/by-name/sl/slang/package.nix +++ b/pkgs/by-name/sl/slang/package.nix @@ -21,10 +21,10 @@ stdenv.mkDerivation rec { # Fix some wrong hardcoded paths preConfigure = '' - sed -ie "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" configure - sed -ie "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" src/sltermin.c - sed -ie "s|/bin/ln|ln|" src/Makefile.in - sed -ie "s|-ltermcap|-lncurses|" ./configure + sed -i -e "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" configure + sed -i -e "s|/usr/lib/terminfo|${ncurses.out}/lib/terminfo|" src/sltermin.c + sed -i -e "s|/bin/ln|ln|" src/Makefile.in + sed -i -e "s|-ltermcap|-lncurses|" ./configure ''; configureFlags = [ diff --git a/pkgs/by-name/sp/sparkleshare/package.nix b/pkgs/by-name/sp/sparkleshare/package.nix index ef7da9d880bf..c5e9f08d4731 100644 --- a/pkgs/by-name/sp/sparkleshare/package.nix +++ b/pkgs/by-name/sp/sparkleshare/package.nix @@ -50,7 +50,7 @@ stdenv.mkDerivation rec { patchPhase = '' # SparkleShare's default desktop file falls back to flatpak. - sed -ie "s_^Exec=.*_Exec=$out/bin/sparkleshare_" SparkleShare/Linux/SparkleShare.Autostart.desktop + sed -i -e "s_^Exec=.*_Exec=$out/bin/sparkleshare_" SparkleShare/Linux/SparkleShare.Autostart.desktop # Nix will manage the icon cache. echo '#!/bin/sh' >scripts/post-install.sh diff --git a/pkgs/by-name/sw/swaylock-effects/package.nix b/pkgs/by-name/sw/swaylock-effects/package.nix index 0f5ba4971181..4a5038650640 100644 --- a/pkgs/by-name/sw/swaylock-effects/package.nix +++ b/pkgs/by-name/sw/swaylock-effects/package.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { }; postPatch = '' - sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build + sed -i "s/version: '1\.3',/version: '${version}',/" meson.build ''; strictDeps = true; diff --git a/pkgs/by-name/tc/tcpkali/package.nix b/pkgs/by-name/tc/tcpkali/package.nix index 805a70f88e74..d6a2952b0622 100644 --- a/pkgs/by-name/tc/tcpkali/package.nix +++ b/pkgs/by-name/tc/tcpkali/package.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation rec { sha256 = "09ky3cccaphcqc6nhfs00pps99lasmzc2pf5vk0gi8hlqbbhilxf"; }; postPatch = '' - sed -ie '/sys\/sysctl\.h/d' src/tcpkali_syslimits.c + sed -i -e '/sys\/sysctl\.h/d' src/tcpkali_syslimits.c ''; nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ bison]; diff --git a/pkgs/by-name/ts/tsduck/package.nix b/pkgs/by-name/ts/tsduck/package.nix index 0da53e2e96ea..ec9c8323d15d 100644 --- a/pkgs/by-name/ts/tsduck/package.nix +++ b/pkgs/by-name/ts/tsduck/package.nix @@ -27,17 +27,17 @@ stdenv.mkDerivation rec { # remove tests which call out to https://tsduck.io/download/test/... postPatch = '' - sed -i"" \ + sed -i \ -e '/TSUNIT_TEST(testMasterPlaylist);/ d' \ -e '/TSUNIT_TEST(testMasterPlaylistWithAlternate);/ d' \ -e '/TSUNIT_TEST(testMediaPlaylist);/ d' \ src/utest/utestHLS.cpp - sed -i"" \ + sed -i \ -e '/TSUNIT_TEST(testBetterSystemRandomGenerator);/ d' \ src/utest/utestSystemRandomGenerator.cpp - sed -i"" \ + sed -i \ -e '/TSUNIT_ASSERT(request.downloadBinaryContent/ d' \ -e '/TSUNIT_ASSERT(!request.downloadBinaryContent/ d' \ -e '/TSUNIT_TEST(testGitHub);/ d' \ @@ -46,11 +46,11 @@ stdenv.mkDerivation rec { -e '/TSUNIT_TEST(testReadMeFile);/ d' \ src/utest/utestWebRequest.cpp - sed -i"" \ + sed -i \ -e '/TSUNIT_TEST(testHomeDirectory);/ d' \ src/utest/utestSysUtils.cpp - sed -i"" \ + sed -i \ -e '/TSUNIT_TEST(testIPv4Address);/ d' \ -e '/TSUNIT_TEST(testIPv4AddressConstructors);/ d' \ -e '/TSUNIT_TEST(testIPv4SocketAddressConstructors);/ d' \ diff --git a/pkgs/by-name/vk/vk-bootstrap/package.nix b/pkgs/by-name/vk/vk-bootstrap/package.nix index bc43da3567d8..f865c783b079 100644 --- a/pkgs/by-name/vk/vk-bootstrap/package.nix +++ b/pkgs/by-name/vk/vk-bootstrap/package.nix @@ -22,8 +22,8 @@ stdenv.mkDerivation rec { postPatch = '' # Upstream uses cmake FetchContent to resolve glfw and catch2 # needed for examples and tests - sed -iE 's=add_subdirectory(ext)==g' CMakeLists.txt - sed -iE 's=Catch2==g' tests/CMakeLists.txt + sed -i 's=add_subdirectory(ext)==g' CMakeLists.txt + sed -i 's=Catch2==g' tests/CMakeLists.txt ''; nativeBuildInputs = [ cmake ]; diff --git a/pkgs/by-name/w3/w3m/package.nix b/pkgs/by-name/w3/w3m/package.nix index 8ea48ffbad99..e0a627cbef16 100644 --- a/pkgs/by-name/w3/w3m/package.nix +++ b/pkgs/by-name/w3/w3m/package.nix @@ -50,7 +50,7 @@ in stdenv.mkDerivation rec { postPatch = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' ln -s ${mktable}/bin/mktable mktable # stop make from recompiling mktable - sed -ie 's!mktable.*:.*!mktable:!' Makefile.in + sed -i -e 's!mktable.*:.*!mktable:!' Makefile.in ''; # updateAutotoolsGnuConfigScriptsHook necessary to build on FreeBSD native pending inclusion of diff --git a/pkgs/by-name/wi/wifish/package.nix b/pkgs/by-name/wi/wifish/package.nix index 7f474bc98442..2d89880ce6a8 100644 --- a/pkgs/by-name/wi/wifish/package.nix +++ b/pkgs/by-name/wi/wifish/package.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ makeWrapper ]; postPatch = '' - sed -ie 's|/var/lib/wifish|${placeholder "out"}/var/lib/wifish|' wifish + sed -i -e 's|/var/lib/wifish|${placeholder "out"}/var/lib/wifish|' wifish ''; dontConfigure = true; diff --git a/pkgs/by-name/x2/x2goserver/package.nix b/pkgs/by-name/x2/x2goserver/package.nix index 44e16e378f55..6960d3c1c663 100644 --- a/pkgs/by-name/x2/x2goserver/package.nix +++ b/pkgs/by-name/x2/x2goserver/package.nix @@ -77,7 +77,7 @@ stdenv.mkDerivation rec { done # We're patching @INC of the setgid wrapper, because we can't mix # the perl wrapper (for PERL5LIB) with security.wrappers (for setgid) - sed -ie "s,.\+bin/perl,#!${perl}/bin/perl -I ${perlEnv}/lib/perl5/site_perl," \ + sed -i -e "s,.\+bin/perl,#!${perl}/bin/perl -I ${perlEnv}/lib/perl5/site_perl," \ $out/lib/x2go/libx2go-server-db-sqlite3-wrapper.pl ''; diff --git a/pkgs/by-name/xo/xonsh/unwrapped.nix b/pkgs/by-name/xo/xonsh/unwrapped.nix index ce0533d0200d..da56a040e169 100644 --- a/pkgs/by-name/xo/xonsh/unwrapped.nix +++ b/pkgs/by-name/xo/xonsh/unwrapped.nix @@ -94,11 +94,11 @@ let env.LC_ALL = "en_US.UTF-8"; postPatch = '' - sed -ie 's|/bin/ls|${lib.getExe' coreutils "ls"}|' tests/test_execer.py - sed -ie 's|SHELL=xonsh|SHELL=$out/bin/xonsh|' tests/test_integrations.py + sed -i -e 's|/bin/ls|${lib.getExe' coreutils "ls"}|' tests/test_execer.py + sed -i -e 's|SHELL=xonsh|SHELL=$out/bin/xonsh|' tests/test_integrations.py for script in tests/test_integrations.py scripts/xon.sh $(find -name "*.xsh"); do - sed -ie 's|/usr/bin/env|${lib.getExe' coreutils "env"}|' $script + sed -i -e 's|/usr/bin/env|${lib.getExe' coreutils "env"}|' $script done patchShebangs . ''; diff --git a/pkgs/development/compilers/factor-lang/factor99.nix b/pkgs/development/compilers/factor-lang/factor99.nix index a020d6a2ce31..bd8d9069941f 100644 --- a/pkgs/development/compilers/factor-lang/factor99.nix +++ b/pkgs/development/compilers/factor-lang/factor99.nix @@ -106,13 +106,13 @@ stdenv.mkDerivation { buildInputs = runtimeLibs; postPatch = '' - sed -ie '4i GIT_LABEL = heads/master-${rev}' GNUmakefile + sed -i -e '4i GIT_LABEL = heads/master-${rev}' GNUmakefile # There is no ld.so.cache in NixOS so we patch out calls to that completely. # This should work as long as no application code relies on `find-library*` # to return a match, which currently is the case and also a justified assumption. - sed -ie "s#/sbin/ldconfig -p#cat $out/lib/factor/ld.so.cache#g" \ + sed -i -e "s#/sbin/ldconfig -p#cat $out/lib/factor/ld.so.cache#g" \ basis/alien/libraries/finder/linux/linux.factor # Some other hard-coded paths to fix: @@ -123,7 +123,7 @@ stdenv.mkDerivation { extra/terminfo/terminfo.factor # De-memoize xdg-* functions, otherwise they break the image. - sed -ie 's/^MEMO:/:/' basis/xdg/xdg.factor + sed -i -e 's/^MEMO:/:/' basis/xdg/xdg.factor # update default paths in factor-listener.el for fuel mode substituteInPlace misc/fuel/fuel-listener.el \ diff --git a/pkgs/development/compilers/scala-runners/default.nix b/pkgs/development/compilers/scala-runners/default.nix index bc0756e0c11c..278d1a046ba8 100644 --- a/pkgs/development/compilers/scala-runners/default.nix +++ b/pkgs/development/compilers/scala-runners/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { dontBuild = true; installPhase = '' mkdir -p $out/bin $out/lib - sed -ie "s| cs | ${coursier}/bin/cs |" scala-runner + sed -i -e "s| cs | ${coursier}/bin/cs |" scala-runner cp scala-runner $out/lib ln -s $out/lib/scala-runner $out/bin/scala ln -s $out/lib/scala-runner $out/bin/scalac diff --git a/pkgs/development/libraries/irrlicht/default.nix b/pkgs/development/libraries/irrlicht/default.nix index 6711622a2eb8..3eb7678cc0a5 100644 --- a/pkgs/development/libraries/irrlicht/default.nix +++ b/pkgs/development/libraries/irrlicht/default.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { src = common.src; postPatch = '' - sed -ie '/sys\/sysctl.h/d' source/Irrlicht/COSOperator.cpp + sed -i -e '/sys\/sysctl.h/d' source/Irrlicht/COSOperator.cpp '' + lib.optionalString stdenv.hostPlatform.isAarch64 '' substituteInPlace source/Irrlicht/Makefile \ --replace "-DIRRLICHT_EXPORTS=1" "-DIRRLICHT_EXPORTS=1 -DPNG_ARM_NEON_OPT=0" diff --git a/pkgs/development/libraries/libmicrohttpd/generic.nix b/pkgs/development/libraries/libmicrohttpd/generic.nix index 45736cea1e95..adb9cc005a26 100644 --- a/pkgs/development/libraries/libmicrohttpd/generic.nix +++ b/pkgs/development/libraries/libmicrohttpd/generic.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation (finalAttrs: { preCheck = '' # Since `localhost' can't be resolved in a chroot, work around it. - sed -ie 's/localhost/127.0.0.1/g' src/test*/*.[ch] + sed -i -e 's/localhost/127.0.0.1/g' src/test*/*.[ch] ''; # Disabled because the tests can time-out. diff --git a/pkgs/development/libraries/wxsqliteplus/default.nix b/pkgs/development/libraries/wxsqliteplus/default.nix index 2d980c69cbe6..efb22df03738 100644 --- a/pkgs/development/libraries/wxsqliteplus/default.nix +++ b/pkgs/development/libraries/wxsqliteplus/default.nix @@ -24,9 +24,9 @@ stdenv.mkDerivation rec { ]; preBuild = '' - sed -ie 's|all: $(LIBPREFIX)wxsqlite$(LIBEXT)|all: |g' Makefile - sed -ie 's|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) $(LIBPREFIX)wxsqlite$(LIBEXT)|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) |g' Makefile - sed -ie 's|-lwxsqlite |-lwxcode_${if stdenv.hostPlatform.isDarwin then "osx_cocoau_wxsqlite3-3.2.0" else "gtk3u_wxsqlite3-3.2"} |g' Makefile + sed -i -e 's|all: $(LIBPREFIX)wxsqlite$(LIBEXT)|all: |g' Makefile + sed -i -e 's|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) $(LIBPREFIX)wxsqlite$(LIBEXT)|wxsqliteplus$(EXEEXT): $(WXSQLITEPLUS_OBJECTS) |g' Makefile + sed -i -e 's|-lwxsqlite |-lwxcode_${if stdenv.hostPlatform.isDarwin then "osx_cocoau_wxsqlite3-3.2.0" else "gtk3u_wxsqlite3-3.2"} |g' Makefile ''; installPhase = '' diff --git a/pkgs/development/python-modules/baselines/default.nix b/pkgs/development/python-modules/baselines/default.nix index fab9db7660d9..0221c57f1971 100644 --- a/pkgs/development/python-modules/baselines/default.nix +++ b/pkgs/development/python-modules/baselines/default.nix @@ -47,7 +47,7 @@ buildPythonPackage { # Needed for the atari wrapper, but the gym-atari package is not supported # in nixos anyways. Since opencv-python is not currently packaged, we # disable it. - sed -ie '/opencv-python/d' setup.py + sed -i -e '/opencv-python/d' setup.py ''; # fails to create a daemon, probably because of sandboxing diff --git a/pkgs/development/python-modules/gradio/default.nix b/pkgs/development/python-modules/gradio/default.nix index 1b9e20496f6d..8e2c77c4b2ee 100644 --- a/pkgs/development/python-modules/gradio/default.nix +++ b/pkgs/development/python-modules/gradio/default.nix @@ -77,7 +77,7 @@ buildPythonPackage rec { # fix packaging.ParserSyntaxError, which can't handle comments postPatch = '' - sed -ie "s/ #.*$//g" requirements*.txt + sed -i -e "s/ #.*$//g" requirements*.txt # they bundle deps? rm -rf venv/ diff --git a/pkgs/development/python-modules/scalene/default.nix b/pkgs/development/python-modules/scalene/default.nix index dd855cadacbe..881194a62c07 100644 --- a/pkgs/development/python-modules/scalene/default.nix +++ b/pkgs/development/python-modules/scalene/default.nix @@ -59,8 +59,8 @@ buildPythonPackage rec { mkdir vendor/printf cp ${printf-src}/printf.c vendor/printf/printf.cpp cp -r ${printf-src}/* vendor/printf - sed -i"" 's/^#define printf printf_/\/\/&/' vendor/printf/printf.h - sed -i"" 's/^#define vsnprintf vsnprintf_/\/\/&/' vendor/printf/printf.h + sed -i 's/^#define printf printf_/\/\/&/' vendor/printf/printf.h + sed -i 's/^#define vsnprintf vsnprintf_/\/\/&/' vendor/printf/printf.h ''; nativeBuildInputs = [ diff --git a/pkgs/development/tools/misc/coreboot-toolchain/update.sh b/pkgs/development/tools/misc/coreboot-toolchain/update.sh index fc758e4ab021..ca59f795c0b7 100755 --- a/pkgs/development/tools/misc/coreboot-toolchain/update.sh +++ b/pkgs/development/tools/misc/coreboot-toolchain/update.sh @@ -33,6 +33,6 @@ done echo ']' >>"$tmp" -sed -ie 's/https\:\/\/ftpmirror\.gnu\.org/mirror\:\/\/gnu/g' "$tmp" +sed -i -e 's/https\:\/\/ftpmirror\.gnu\.org/mirror\:\/\/gnu/g' "$tmp" mv "$tmp" "${pkg_dir}/sources.nix" diff --git a/pkgs/games/doom-ports/zandronum/alpha/default.nix b/pkgs/games/doom-ports/zandronum/alpha/default.nix index 665bef3bd4a1..7e45e62af62f 100644 --- a/pkgs/games/doom-ports/zandronum/alpha/default.nix +++ b/pkgs/games/doom-ports/zandronum/alpha/default.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation rec { preConfigure = '' ln -s ${sqlite}/* sqlite/ - sed -ie 's| restrict| _restrict|g' dumb/include/dumb.h \ + sed -i -e 's| restrict| _restrict|g' dumb/include/dumb.h \ dumb/src/it/*.c '' + lib.optionalString (!serverOnly) '' sed -i \ diff --git a/pkgs/games/doom-ports/zandronum/default.nix b/pkgs/games/doom-ports/zandronum/default.nix index 17c9b473870a..abd4a2a0f06d 100644 --- a/pkgs/games/doom-ports/zandronum/default.nix +++ b/pkgs/games/doom-ports/zandronum/default.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation rec { preConfigure = '' ln -s ${sqlite}/* sqlite/ - sed -ie 's| restrict| _restrict|g' dumb/include/dumb.h \ + sed -i -e 's| restrict| _restrict|g' dumb/include/dumb.h \ dumb/src/it/*.c '' + lib.optionalString (!serverOnly) '' sed -i \ diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index fa15b777e3a5..61de99441f39 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -8829,9 +8829,9 @@ with self; { hash = "sha256-F2+gJ3H1QqTvsdvCpMko6PQ5G/QHhHO9YEDY8RrbDsE="; }; preCheck = if stdenv.hostPlatform.isCygwin then '' - sed -i"" -e "s@plan tests => 13@plan tests => 10@" t/env.t - sed -i"" -e "s@ok(env(\"\\\x@#ok(env(\"\\\x@" t/env.t - sed -i"" -e "s@ok(\$ENV{\"\\\x@#ok(\$ENV{\"\\\x@" t/env.t + sed -i -e "s@plan tests => 13@plan tests => 10@" t/env.t + sed -i -e "s@ok(env(\"\\\x@#ok(env(\"\\\x@" t/env.t + sed -i -e "s@ok(\$ENV{\"\\\x@#ok(\$ENV{\"\\\x@" t/env.t '' else null; meta = { description = "Determine the locale encoding"; @@ -24443,7 +24443,7 @@ with self; { perl_lib = "${host_perl}/lib/perl5/${host_perl.version}"; self_lib = "${host_self}/lib/perl5/site_perl/${host_perl.version}"; in '' - sed -ie 's|"-I$(INST_ARCHLIB)"|"-I${perl_lib}" "-I${self_lib}"|g' Makefile + sed -i -e 's|"-I$(INST_ARCHLIB)"|"-I${perl_lib}" "-I${self_lib}"|g' Makefile ''); # TermReadKey uses itself in the build process @@ -28499,7 +28499,7 @@ with self; { }; buildInputs = [ pkgs.xorg.libXext pkgs.xorg.libXScrnSaver pkgs.xorg.libX11 ]; propagatedBuildInputs = [ InlineC ]; - patchPhase = "sed -ie 's,-L/usr/X11R6/lib/,-L${pkgs.xorg.libX11.out}/lib/ -L${pkgs.xorg.libXext.out}/lib/ -L${pkgs.xorg.libXScrnSaver}/lib/,' IdleTime.pm"; + patchPhase = "sed -i -e 's,-L/usr/X11R6/lib/,-L${pkgs.xorg.libX11.out}/lib/ -L${pkgs.xorg.libXext.out}/lib/ -L${pkgs.xorg.libXScrnSaver}/lib/,' IdleTime.pm"; meta = { description = "Get the idle time of X11"; license = with lib.licenses; [ artistic1 gpl1Plus ]; @@ -28833,7 +28833,7 @@ with self; { postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' substituteInPlace Expat/Makefile.PL --replace 'use English;' '#' '' + lib.optionalString stdenv.hostPlatform.isCygwin '' - sed -i"" -e "s@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. \$Config{_exe};@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. (\$^O eq 'cygwin' ? \"\" : \$Config{_exe});@" inc/Devel/CheckLib.pm + sed -i -e "s@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. \$Config{_exe};@my \$compiler = File::Spec->catfile(\$path, \$cc\[0\]) \. (\$^O eq 'cygwin' ? \"\" : \$Config{_exe});@" inc/Devel/CheckLib.pm ''; makeMakerFlags = [ "EXPATLIBPATH=${pkgs.expat.out}/lib" "EXPATINCPATH=${pkgs.expat.dev}/include" ]; propagatedBuildInputs = [ LWP ]; From 47a4caf4839500e93fed4ada995ee40586038e9e Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 17 Nov 2024 13:38:00 -0800 Subject: [PATCH 136/693] llvmPackages_12.compiler-rt: fix build race aarch64-darwin https://github.com/llvm/llvm-project/commit/b31080c596246bc26d2493cfd5e07f053cf9541c --- pkgs/development/compilers/llvm/common/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index fa1f61bfd5d1..b53f76e96c11 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -1006,6 +1006,13 @@ let ++ [ (metadata.getVersionFile "compiler-rt/X86-support-extension.patch") # Add support for i486 i586 i686 by reusing i386 config ] + ++ lib.optional (lib.versions.major metadata.release_version == "12") (fetchpatch { + # fixes the parallel build on aarch64 darwin + name = "fix-symlink-race-aarch64-darwin.patch"; + url = "https://github.com/llvm/llvm-project/commit/b31080c596246bc26d2493cfd5e07f053cf9541c.patch"; + relative = "compiler-rt"; + hash = "sha256-Cv2NC8402yU7QaTR6TzdH+qyWRy+tTote7KKWtKRWFQ="; + }) ++ lib.optional ( lib.versions.major metadata.release_version == "12" || ( From 54522e10d558fa88e032d24b426ec788d34a70ec Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 17 Nov 2024 00:31:51 +0200 Subject: [PATCH 137/693] meson.setupHook: Add timeout-multiplier 0 ss infinite, nix will take care of the timeout In loaded environments the tests can take longer to build --- pkgs/by-name/me/meson/setup-hook.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/me/meson/setup-hook.sh b/pkgs/by-name/me/meson/setup-hook.sh index a88a276f09a8..b2061a12058c 100644 --- a/pkgs/by-name/me/meson/setup-hook.sh +++ b/pkgs/by-name/me/meson/setup-hook.sh @@ -54,6 +54,10 @@ mesonCheckPhase() { local flagsArray=() concatTo flagsArray mesonCheckFlags mesonCheckFlagsArray + if [ -z "${dontAddTimeoutMultiplier:-}" ]; then + flagsArray+=("--timeout-multiplier=0") + fi + echoCmd 'mesonCheckPhase flags' "${flagsArray[@]}" meson test --no-rebuild --print-errorlogs "${flagsArray[@]}" From 80f7c3ddbf0997e984a4990a36a48d3999dc9e45 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 18:44:35 +0100 Subject: [PATCH 138/693] nixos/doc/rl-2505: announce macOS version support policy --- nixos/doc/manual/release-notes/rl-2505.section.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 29af283010c9..23e21b2724f7 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -4,7 +4,11 @@ -- Create the first release note entry in this section! +- **This release of Nixpkgs requires macOS Big Sur 11.3 or newer, as announced in the 24.11 release notes.** + We cannot guarantee that packages will continue to work on older versions of macOS. + Future Nixpkgs releases will only support [macOS versions supported by Apple](https://endoflife.date/macos); this means that **Nixpkgs 25.11 will require macOS Sonoma 14 or newer**. + Users on old macOS versions should consider upgrading to a supported version (potentially using [OpenCore Legacy Patcher](https://dortania.github.io/OpenCore-Legacy-Patcher/) for old hardware) or installing NixOS. + If neither of those options are viable and you require new versions of software, [MacPorts](https://www.macports.org/) supports versions back to Mac OS X Snow Leopard 10.6. From 0f9067f865a22aa6c1fe94eed7f218287b3e9425 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 18:44:35 +0100 Subject: [PATCH 139/693] darwin: set the minimum version to macOS 11.3 --- doc/stdenv/platform-notes.chapter.md | 35 +++++------ lib/systems/default.nix | 2 +- .../darwin/apple-sdk-11.0/default.nix | 59 ++++--------------- pkgs/stdenv/darwin/override-sdk.nix | 36 ++++------- pkgs/top-level/darwin-packages.nix | 7 +-- 5 files changed, 41 insertions(+), 98 deletions(-) diff --git a/doc/stdenv/platform-notes.chapter.md b/doc/stdenv/platform-notes.chapter.md index 7e06a9bab30f..3f7296d32653 100644 --- a/doc/stdenv/platform-notes.chapter.md +++ b/doc/stdenv/platform-notes.chapter.md @@ -87,31 +87,24 @@ When that happens, the one with the highest version is always used. The following is a list of Xcode versions, the SDK version in Nixpkgs, and the attribute to use to add it. Check your package’s documentation (platform support or installation instructions) to find which Xcode or SDK version to use. -Generally, only the last SDK release for a major version is packaged (each _x_ in 10._x_ until 10.15 is considered a major version). +Generally, only the last SDK release for a major version is packaged. -| Xcode version | SDK version | Nixpkgs attribute | -|--------------------|---------------------------------------------------|-------------------| -| Varies by platform | 10.12.2 (x86_64-darwin)
11.3 (aarch64-darwin) | `apple-sdk` | -| 8.0–8.3.3 | 10.12.2 | `apple-sdk_10_12` | -| 9.0–9.4.1 | 10.13.2 | `apple-sdk_10_13` | -| 10.0–10.3 | 10.14.6 | `apple-sdk_10_14` | -| 11.0–11.7 | 10.15.6 | `apple-sdk_10_15` | -| 12.0–12.5.1 | 11.3 | `apple-sdk_11` | -| 13.0–13.4.1 | 12.3 | `apple-sdk_12` | -| 14.0–14.3.1 | 13.3 | `apple-sdk_13` | -| 15.0–15.4 | 14.4 | `apple-sdk_14` | -| 16.0 | 15.0 | `apple-sdk_15` | +| Xcode version | SDK version | Nixpkgs attribute | +|--------------------|--------------------|------------------------------| +| 12.0–12.5.1 | 11.3 | `apple-sdk_11` / `apple-sdk` | +| 13.0–13.4.1 | 12.3 | `apple-sdk_12` | +| 14.0–14.3.1 | 13.3 | `apple-sdk_13` | +| 15.0–15.4 | 14.4 | `apple-sdk_14` | +| 16.0 | 15.0 | `apple-sdk_15` | #### Darwin Default SDK versions {#sec-darwin-troubleshooting-darwin-defaults} -The current default versions of the deployment target (minimum version) and SDK are indicated by Darwin-specific attributes on the platform. Because of the ways that minimum version and SDK can be changed that are not visible to Nix, they should be treated as lower bounds. +The current default version of the SDK and deployment target (minimum supported version) are indicated by the Darwin-specific platform attributes `darwinSdkVersion` and `darwinMinVersion`. +Because of the ways that minimum version and SDK can be changed that are not visible to Nix, they should be treated as lower bounds. If you need to parameterize over a specific version, create a function that takes the version as a parameter instead of relying on these attributes. -- `darwinMinVersion` defaults to 10.12 on x86_64-darwin and 11.0 on aarch64-darwin. - It sets the default deployment target. -- `darwinSdkVersion` defaults to 10.12 on x86-64-darwin and 11.0 on aarch64-darwin. - Only the major version determines the SDK version, resulting in the 10.12.2 and 11.3 SDKs being used on these platforms respectively. +On macOS, the `darwinMinVersion` and `darwinSdkVersion` are always the same, and are currently set to 11.3. #### `xcrun` cannot find a binary {#sec-darwin-troubleshooting-xcrun} @@ -264,10 +257,10 @@ The legacy SDK provided two ways of overriding the default SDK. These are both being phased out along with the legacy SDKs. They have been updated to set up the new SDK for you, but you should replace them with doing that directly. -- `pkgs.darwin.apple_sdk_11_0.callPackage` - this pattern was used to provide frameworks from the 11.0 SDK. - It now adds the `apple-sdk_11` package to your derivation’s build inputs. +- `pkgs.darwin.apple_sdk_11_0.callPackage` - this pattern was used to provide frameworks from the macOS 11 SDK. + It is now the same as `callPackage`. - `overrideSDK` - this stdenv adapter would try to replace the frameworks used by your derivation and its transitive dependencies. - It now adds the `apple-sdk_11` package for `11.0` or the `apple-sdk_12` package for `12.3`. + It now adds the `apple-sdk_12` package for `12.3` and does nothing for `11.0`. If `darwinMinVersion` is specified, it will add `darwinMinVersionHook` with the specified minimum version. No other SDK versions are supported. diff --git a/lib/systems/default.nix b/lib/systems/default.nix index a6ceef2cc3a1..52383db0a36d 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -251,7 +251,7 @@ let else null; # The canonical name for this attribute is darwinSdkVersion, but some # platforms define the old name "sdkVer". - darwinSdkVersion = final.sdkVer or (if final.isAarch64 then "11.0" else "10.12"); + darwinSdkVersion = final.sdkVer or "11.3"; darwinMinVersion = final.darwinSdkVersion; darwinMinVersionVariable = if final.isMacOS then "MACOSX_DEPLOYMENT_TARGET" diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix index c3547aae44ed..8f283c6bec54 100644 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix @@ -12,30 +12,8 @@ let mkStub = callPackage ../apple-sdk/mk-stub.nix { } "11.0"; - - stdenvs = - { - stdenv = overrideSDK stdenv "11.0"; - } - // builtins.listToAttrs ( - map - (v: { - name = "llvmPackages_${v}"; - value = pkgs."llvmPackages_${v}" // { - stdenv = overrideSDK pkgs."llvmPackages_${v}".stdenv "11.0"; - }; - }) - [ - "12" - "13" - "14" - "15" - "16" - ] - ); in -stdenvs -// lib.genAttrs [ +lib.genAttrs [ "CLTools_Executables" "IOKit" "Libsystem" @@ -276,30 +254,17 @@ stdenvs "simd" ] mkStub; - callPackage = newScope ( - lib.optionalAttrs stdenv.hostPlatform.isDarwin ( - stdenvs // { inherit (pkgs.darwin.apple_sdk_11_0) rustPlatform; } - ) - ); - - rustPlatform = - pkgs.makeRustPlatform { - inherit (pkgs.darwin.apple_sdk_11_0) stdenv; - inherit (pkgs) rustc cargo; - } - // { - inherit - (pkgs.callPackage ../../../build-support/rust/hooks { - inherit (pkgs.darwin.apple_sdk_11_0) stdenv; - inherit (pkgs) cargo rustc; - }) - bindgenHook - ; - }; - - stdenv = overrideSDK stdenv "11.0"; - - xcodebuild = pkgs.xcodebuild; + inherit (pkgs) + callPackage + stdenv + llvmPackages_12 + llvmPackages_13 + llvmPackages_14 + llvmPackages_15 + llvmPackages_16 + rustPlatform + xcodebuild + ; version = "11.0"; } diff --git a/pkgs/stdenv/darwin/override-sdk.nix b/pkgs/stdenv/darwin/override-sdk.nix index 243b8e2633d7..482c11ce0cb2 100644 --- a/pkgs/stdenv/darwin/override-sdk.nix +++ b/pkgs/stdenv/darwin/override-sdk.nix @@ -9,33 +9,23 @@ stdenv: sdkVersion: let - newVersion = { - inherit (stdenv.hostPlatform) darwinMinVersion darwinSdkVersion; - } // (if lib.isAttrs sdkVersion then sdkVersion else { darwinSdkVersion = sdkVersion; }); - - inherit (newVersion) darwinMinVersion darwinSdkVersion; - - sdkMapping = { - "11.0" = pkgsHostTarget.apple-sdk_11; - "12.3" = pkgsHostTarget.apple-sdk_12; - }; - - minVersionHook = pkgsHostTarget.darwinMinVersionHook darwinMinVersion; - - resolvedSdk = - sdkMapping.${darwinSdkVersion} or (lib.throw '' - `overrideSDK` and `darwin.apple_sdk_11_0.callPackage` are deprecated. - Only the 11.0 and 12.3 SDKs are supported using them. Please use - the versioned `apple-sdk` variants to use other SDK versions. - - See the stdenv documentation for how to use `apple-sdk`. - ''); + darwinSdkVersion = + if lib.isAttrs sdkVersion then sdkVersion.darwinSdkVersion or "11.0" else sdkVersion; in +assert lib.assertMsg (darwinSdkVersion == "11.0" || darwinSdkVersion == "12.3") '' + `overrideSDK` and `darwin.apple_sdk_11_0.callPackage` are deprecated. + Only the 11.0 and 12.3 SDKs are supported using them. Please use + the versioned `apple-sdk` variants to use other SDK versions. + + See the stdenv documentation for how to use `apple-sdk`. +''; stdenv.override (old: { mkDerivationFromStdenv = extendMkDerivationArgs old (args: { buildInputs = args.buildInputs or [ ] - ++ lib.optional (stdenv.hostPlatform.darwinMinVersion != darwinMinVersion) minVersionHook - ++ lib.optional (stdenv.hostPlatform.darwinSdkVersion != darwinSdkVersion) resolvedSdk; + ++ lib.optional (darwinSdkVersion == "12.3") pkgsHostTarget.apple-sdk_12 + ++ lib.optional (sdkVersion ? darwinMinVersion) ( + pkgsHostTarget.darwinMinVersionHook sdkVersion.darwinMinVersion + ); }); }) diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index ab8d9c387b40..669e268b9001 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -66,12 +66,7 @@ makeScopeWithSplicing' { # macOS 12.3 SDK apple_sdk_12_3 = pkgs.callPackage ../os-specific/darwin/apple-sdk-12.3 { }; - # Pick an SDK - apple_sdk = { - "10.12" = apple_sdk_10_12; - "11.0" = apple_sdk_11_0; - }.${stdenv.hostPlatform.darwinSdkVersion} - or (throw "Unsupported sdk: ${stdenv.hostPlatform.darwinSdkVersion}"); + apple_sdk = apple_sdk_11_0; stubs = { inherit apple_sdk apple_sdk_10_12 apple_sdk_11_0 apple_sdk_12_3; From 0757844d03ccbff1142c4227d43a30513069583f Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 12 Oct 2024 03:15:55 +0100 Subject: [PATCH 140/693] libsForQt5.qtbase: remove code for macOS < 11 --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 4ab855713ebc..c61ce503f4f5 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -4,7 +4,7 @@ , coreutils, bison, flex, gdb, gperf, lndir, perl, pkg-config, python3 , which # darwin support -, apple-sdk_13, darwinMinVersionHook, xcbuild +, apple-sdk_13, xcbuild , dbus, fontconfig, freetype, glib, harfbuzz, icu, libdrm, libX11, libXcomposite , libXcursor, libXext, libXi, libXrender, libjpeg, libpng , libxcb @@ -39,13 +39,12 @@ let then "linux-generic-g++" else throw "Please add a qtPlatformCross entry for ${plat.config}"; - # Per https://doc.qt.io/qt-5/macos.html#supported-versions: deployment target = 10.13, build SDK = 13.x or 14.x. + # Per https://doc.qt.io/qt-5/macos.html#supported-versions: build SDK = 13.x or 14.x. # Despite advertising support for the macOS 14 SDK, the build system sets the maximum to 13 and complains # about 14, so we just use that. deploymentTarget = "10.13"; darwinVersionInputs = [ apple-sdk_13 - (darwinMinVersionHook deploymentTarget) ]; in @@ -166,7 +165,7 @@ stdenv.mkDerivation (finalAttrs: ({ --replace-fail 'CONFIG += ' 'CONFIG += no_default_rpath ' \ --replace-fail \ 'QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13' \ - 'QMAKE_MACOSX_DEPLOYMENT_TARGET = ${deploymentTarget}' + "QMAKE_MACOSX_DEPLOYMENT_TARGET = $MACOSX_DEPLOYMENT_TARGET" '' else lib.optionalString libGLSupported '' sed -i mkspecs/common/linux.conf \ -e "/^QMAKE_INCDIR_OPENGL/ s|$|${lib.getDev libGL}/include|" \ @@ -235,10 +234,6 @@ stdenv.mkDerivation (finalAttrs: ({ ''-DNIXPKGS_LIBXCURSOR="${libXcursor.out}/lib/libXcursor"'' ] ++ lib.optional libGLSupported ''-DNIXPKGS_MESA_GL="${libGL.out}/lib/libGL"'' ++ lib.optional stdenv.hostPlatform.isLinux "-DUSE_X11" - ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [ - # ignore "is only available on macOS 10.12.2 or newer" in obj-c code - "-Wno-error=unguarded-availability" - ] ++ lib.optionals withGtk3 [ ''-DNIXPKGS_QGTK3_XDG_DATA_DIRS="${gtk3}/share/gsettings-schemas/${gtk3.name}"'' ''-DNIXPKGS_QGTK3_GIO_EXTRA_MODULES="${dconf.lib}/lib/gio/modules"'' From 90c0ebfc8b49c8ab4215d0ffc5eca8bf7695106a Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 26 Oct 2024 12:22:53 +0100 Subject: [PATCH 141/693] gtk4: remove code for macOS < 11 --- pkgs/development/libraries/gtk/4.x.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkgs/development/libraries/gtk/4.x.nix b/pkgs/development/libraries/gtk/4.x.nix index 8a79a06560fc..5ceaa2864086 100644 --- a/pkgs/development/libraries/gtk/4.x.nix +++ b/pkgs/development/libraries/gtk/4.x.nix @@ -53,8 +53,6 @@ , libexecinfo , broadwaySupport ? true , testers -, apple-sdk -, apple-sdk_10_15 , darwinMinVersionHook }: @@ -162,11 +160,6 @@ stdenv.mkDerivation (finalAttrs: { # Required for GSettings schemas at runtime. # Will be picked up by wrapGAppsHook4. gsettings-desktop-schemas - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - (darwinMinVersionHook "10.15") - ] ++ lib.optionals (stdenv.hostPlatform.isDarwin - && lib.versionOlder apple-sdk.version "10.15") [ - apple-sdk_10_15 ]; mesonFlags = [ From 995962f25af49863609f92249668da1f1b840ac5 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 12 Oct 2024 03:19:37 +0100 Subject: [PATCH 142/693] haskellPackages.network: remove code for macOS < 11 This reverts commit 2573d499bd7cfb3d1d1f52e20c5b8bf49eb5f7d8. --- pkgs/development/haskell-modules/configuration-darwin.nix | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 844e38f9e4fa..846051126dd6 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -306,13 +306,6 @@ self: super: ({ __darwinAllowLocalNetworking = true; }); - # network requires `IP_RECVTOS`, which was added in 10.15. - network = - if lib.versionOlder (lib.getVersion pkgs.apple-sdk) "10.15" then - addBuildDepend pkgs.apple-sdk_10_15 super.network - else - super.network; - foldl = overrideCabal (drv: { postPatch = '' # This comment has been inserted, so the derivation hash changes, forcing From f3c863877b175288ec45ea78c1e041610a9b135e Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 18:50:44 +0100 Subject: [PATCH 143/693] apple-sdk_{10_12,10_13,10_14,10_15}: drop These can no longer be used now that the minimum is 11.3. --- .../metadata/apple-oss-lockfile.json | 712 ------------------ .../ap/apple-sdk/metadata/versions.json | 20 - pkgs/top-level/aliases.nix | 4 + pkgs/top-level/all-packages.nix | 4 - 4 files changed, 4 insertions(+), 736 deletions(-) diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json index 66700bbc07ad..e68c2643ab7c 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -1,716 +1,4 @@ { - "10.12.2": { - "CarbonHeaders": { - "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", - "version": "18.1" - }, - "CommonCrypto": { - "hash": "sha256-1mCJjZLBMIftcsKC7Ihhzi6LRS3u7kJzh9/dy6MY1Hg=", - "version": "60092.30.2" - }, - "IOAudioFamily": { - "hash": "sha256-5t3D44H/h0cUZqAjMi56BTbJD4o+R0xVdHJ1sZLYgNM=", - "version": "205.11" - }, - "IOBDStorageFamily": { - "hash": "sha256-4NpWcqfkp3UxhKKAwomDK3zxQ9DagyYFUVoUcrHo1Rg=", - "version": "18" - }, - "IOCDStorageFamily": { - "hash": "sha256-XOwdBFunLbwyasnTKQC6MRlXxGns07JvcAQc6AQ1Zt4=", - "version": "56" - }, - "IODVDStorageFamily": { - "hash": "sha256-bbGzqJnenEL9hRyKMBif/381/ETO+yNYHhlnXXWLne0=", - "version": "41.1" - }, - "IOFWDVComponents": { - "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", - "version": "208" - }, - "IOFireWireAVC": { - "hash": "sha256-rhZdjNoZ3OuHVLClhe9tMQU6qJs3IOHEqJ5TaNRJRnM=", - "version": "424" - }, - "IOFireWireFamily": { - "hash": "sha256-adOI5uhd6QL4zpo4MK4ttmS1lcKseqmr68C1D/juGo0=", - "version": "465" - }, - "IOFireWireSBP2": { - "hash": "sha256-5UWldDuSyAnRYjgIKllY4VNbxtAUawrlRS46+8FnbPs=", - "version": "427" - }, - "IOFireWireSerialBusProtocolTransport": { - "hash": "sha256-a/xnnR2dUSWVMyTlkxJPa7cWk20RHl0Zh2Ot2pSEkF0=", - "version": "252" - }, - "IOGraphics": { - "hash": "sha256-63XDVmEHu+KUdr06S7+RPi1BgLcAl4GZZRy+K96CvA0=", - "version": "513.1" - }, - "IOHIDFamily": { - "hash": "sha256-BUDj89w4DrnsIxJZNIx3ZJ85c22HMchIVhJI7xREWTM=", - "version": "870.31.1" - }, - "IOKitUser": { - "hash": "sha256-XJnOp5AtStXUim19GLev8MSM8iS5U8rRSnm7cNp/B80=", - "version": "1324.30.13" - }, - "IONetworkingFamily": { - "hash": "sha256-dL1wSu72uzAAoMdgSjitXgHviioVIGdkDXqwY6HT5/g=", - "version": "116.1.1" - }, - "IOSerialFamily": { - "hash": "sha256-ZcZ5F+a4u2AHThO5WyLn3/o42DR+YDBZKTy4P2EhHhk=", - "version": "91" - }, - "IOStorageFamily": { - "hash": "sha256-IjsG/lgdtW04WH/5rb1QAT563Oy4O5fUrTGuA1kBrkY=", - "version": "210.30.1" - }, - "IOUSBFamily": { - "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", - "version": "630.4.5" - }, - "Libc": { - "hash": "sha256-wyt5CJnNzk0MPC6pg2JAdiwIPxWFJsO9Yqa83vY+hLc=", - "version": "1158.30.7" - }, - "Libinfo": { - "hash": "sha256-3Mu9lOkaQx5gmNPXzr67FnZvKWmQhryIPsN6k95TU18=", - "version": "503.30.1" - }, - "Libm": { - "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", - "version": "2026" - }, - "Libnotify": { - "hash": "sha256-msGtbR53SHXjYN8i74gmkYWGkmqg+TcRO7TY/23XSFQ=", - "version": "165.20.1" - }, - "Librpcsvc": { - "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", - "version": "26" - }, - "Libsystem": { - "hash": "sha256-FwI2aD3wSwES/sKkr014BdFLfsKeEefgS0Pne1FGOp0=", - "version": "1238" - }, - "OpenDirectory": { - "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", - "version": "146" - }, - "Security": { - "hash": "sha256-Ya+ZO3bHNhQ+vZZx/lE7x+uMROHYWYKvm2ZZ1vClu3Q=", - "version": "57740.31.2" - }, - "architecture": { - "hash": "sha256-gHUfKWc1uahI/IATafY1ppPAWnYUghOEXWK2lknAfrQ=", - "version": "268" - }, - "configd": { - "hash": "sha256-i1UjnU7xBh7jCrGZxWMGrldzDrk2dDvjpthp/kq9OKo=", - "version": "888.30.2" - }, - "copyfile": { - "hash": "sha256-pth+37uTfuFY94HuA4b/5GleDjidAuXVsBEQBUa3xCE=", - "version": "138" - }, - "dtrace": { - "hash": "sha256-dK0N3l02241A5S1uvxZhqArHrTxd5Sd4JoAl6RBa8/8=", - "version": "209.20.4" - }, - "dyld": { - "hash": "sha256-wyVsmqYgKLdMKZsLOHzOLag+mBnH0kNS6XAv4zuNTT4=", - "version": "421.2" - }, - "eap8021x": { - "hash": "sha256-XSbzuNXyDJAADcnZed4Akmg1SK8P1IGrZitmhV3wzlo=", - "version": "246.30.1" - }, - "hfs": { - "hash": "sha256-7ByUP59FXmmrxC5yJYUQxrkgt/vY7vZMl5JPQ0HfoS8=", - "version": "366.30.3" - }, - "launchd": { - "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", - "version": "842.1.4" - }, - "libclosure": { - "hash": "sha256-hfXKQDRdgEDVyT+3v/EuQZyXNd0abD2tICYdQNfhtwY=", - "version": "67" - }, - "libdispatch": { - "hash": "sha256-tj4+6V4FL/XVON13UH71schElTm4/IKtPJH/yoUgRY0=", - "version": "703.30.5" - }, - "libmalloc": { - "hash": "sha256-q9zcUy8YTsRds6RYJMIUIY/MULQ19uKiNduMXP3D7hA=", - "version": "116.30.3" - }, - "libplatform": { - "hash": "sha256-k9Pd+TJCrNS7K100og+6bLAZjV/0VUTy8SIOsc+SE6Q=", - "version": "126.1.2" - }, - "libpthread": { - "hash": "sha256-FJaJO4lXIMAIwEmVF6mHE4ZZZoPI8ZIVuMKLojEsESE=", - "version": "218.30.1" - }, - "mDNSResponder": { - "hash": "sha256-LYDkkmgyfWKK6AMINXyrXo5kw7+lxUcz+4Ckq9175vA=", - "version": "765.30.11" - }, - "objc4": { - "hash": "sha256-WfhJo+/KPGr3/OuV5Kg2no48UR7VVVarh9TB3VFSCQ4=", - "version": "706" - }, - "ppp": { - "hash": "sha256-eW62wL8C1GZ2+5aN0dTPsdoEu6FWf+6XEYv8OiEeMfY=", - "version": "838" - }, - "removefile": { - "hash": "sha256-EJYU6eHggyRsezClEWkGJmgePIdtyF4rpFD4kSK5Czw=", - "version": "45" - }, - "xnu": { - "hash": "sha256-pkELzbsWPtm9H31LaRkaVjkQpPDxG9E93TNS+K9nqhE=", - "version": "3789.31.2" - } - }, - "10.13.2": { - "CarbonHeaders": { - "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", - "version": "18.1" - }, - "CommonCrypto": { - "hash": "sha256-3vx4HPlHP8PNi1GodeRh2iOEhyRBct3vX0Guc8060+I=", - "version": "60118.30.2" - }, - "IOAudioFamily": { - "hash": "sha256-UG09Dc+up5cJKDHPpCmo11IsBchqZ72hVBPx8y+1klw=", - "version": "206.5" - }, - "IOBDStorageFamily": { - "hash": "sha256-aaS5jWPRX4be8d3Rigq+kXzi9Zwbr8dHcNgcIz0n66o=", - "version": "19" - }, - "IOCDStorageFamily": { - "hash": "sha256-U6v+Gj+IumU8Aha5+uf3yOU0Z4KMuBh7aXnJqiZ/abY=", - "version": "58" - }, - "IODVDStorageFamily": { - "hash": "sha256-JLp4xN0Rdb2VpuXtVTODYNqQthDEZk+g/lvHRwJHQB4=", - "version": "42" - }, - "IOFWDVComponents": { - "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", - "version": "208" - }, - "IOFireWireAVC": { - "hash": "sha256-4JS+oezknezxud2E2ojYdSx7A8Z9Q4rddetAoUMU1es=", - "version": "425" - }, - "IOFireWireFamily": { - "hash": "sha256-+FPlhMN2h1iCg1GAqH8+MwHG3GIs4DvvE3QGABX+3Rg=", - "version": "468" - }, - "IOFireWireSBP2": { - "hash": "sha256-5UWldDuSyAnRYjgIKllY4VNbxtAUawrlRS46+8FnbPs=", - "version": "427" - }, - "IOFireWireSerialBusProtocolTransport": { - "hash": "sha256-a/xnnR2dUSWVMyTlkxJPa7cWk20RHl0Zh2Ot2pSEkF0=", - "version": "252" - }, - "IOGraphics": { - "hash": "sha256-E0wDkVmSeEcyO6L6OeWEQuZ0Ggh7MUkfqeQ9uLUEK/g=", - "version": "517.22" - }, - "IOHIDFamily": { - "hash": "sha256-9FhH53LyP1Yv2/afmr/lpNhl/GNFb/Yg+VpG5Ycg300=", - "version": "1035.30.15" - }, - "IOKitUser": { - "hash": "sha256-LebulFJ4KJ5Vbcjj6SC70cmed/0vhCVYo5qDxCw85SE=", - "version": "1445.31.1" - }, - "IONetworkingFamily": { - "hash": "sha256-gXGFCSn6JnHOVaRKhGXFYdvJBo/AGBMDrUdIcw/CwqI=", - "version": "124.30.1" - }, - "IOSerialFamily": { - "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", - "version": "93" - }, - "IOStorageFamily": { - "hash": "sha256-Jo+0XlNi82KGksyrvUGyVPfmPMlTrDmZ75DT2lH66TY=", - "version": "218.30.1" - }, - "IOUSBFamily": { - "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", - "version": "630.4.5" - }, - "Libc": { - "hash": "sha256-js2xU5dMF5j209F9Cufuq5WzqcyNusbJDyuPpMgYEZU=", - "version": "1244.30.3" - }, - "Libinfo": { - "hash": "sha256-pVVLb8eOuLVc4HHGcgpl7dqT+Tg2xqKQIQroyLj5OEg=", - "version": "517.30.1" - }, - "Libm": { - "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", - "version": "2026" - }, - "Libnotify": { - "hash": "sha256-nsWWqelTEP4nPJI3vG897zpSOxYOgpm8TUVJ04MrWU4=", - "version": "172" - }, - "Librpcsvc": { - "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", - "version": "26" - }, - "Libsystem": { - "hash": "sha256-+VFJoiqEtXUcP8ERUxtrKwTWZmgdppr+0oPUxSgIF+c=", - "version": "1252" - }, - "OpenDirectory": { - "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", - "version": "146" - }, - "Security": { - "hash": "sha256-W3bSTDCjj2ftq0wbDp+Z8QfD6TpF4p0fLrVjx2AmvfY=", - "version": "58286.31.2" - }, - "architecture": { - "hash": "sha256-gHUfKWc1uahI/IATafY1ppPAWnYUghOEXWK2lknAfrQ=", - "version": "268" - }, - "configd": { - "hash": "sha256-1YGIbAES4OONFtC2xxXWbM7Htlz2kKtFUULWqBB6fz0=", - "version": "963.30.1" - }, - "copyfile": { - "hash": "sha256-CYTZwieSu1Fm9TLaaevfxDngAPRkEfewY+TgJrREed8=", - "version": "146.30.2" - }, - "dtrace": { - "hash": "sha256-sgLSbCp9tYZ7ws2jgxB3NaAk+ijsIbmybsi0gkbZjFQ=", - "version": "262" - }, - "dyld": { - "hash": "sha256-b1hM+iQl7ihRjHRL4Rcg5AHv5HSyKErVkTb+5KFF2P4=", - "version": "519.2.2" - }, - "eap8021x": { - "hash": "sha256-KZsnzH5JiLfzY3zjMAlJRPCGY5EioW6aDJnMAemZJUY=", - "version": "264.30.3" - }, - "hfs": { - "hash": "sha256-Ine8EFpW1kuNDn/r66abGyvYm+NSGI5TV3v/OlgyIME=", - "version": "407.30.1" - }, - "launchd": { - "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", - "version": "842.1.4" - }, - "libclosure": { - "hash": "sha256-hfXKQDRdgEDVyT+3v/EuQZyXNd0abD2tICYdQNfhtwY=", - "version": "67" - }, - "libdispatch": { - "hash": "sha256-rvsvtv9VncLxQHoURBBczrTaSgbw5827Qf2TxAPopqA=", - "version": "913.30.4" - }, - "libmalloc": { - "hash": "sha256-VM5jHQYqDkoGmrQ2UugTu+XOLjd1YPqdfddzQkKfhiY=", - "version": "140.1.1" - }, - "libplatform": { - "hash": "sha256-zQ3MYqQoMCsfgG6frwnG3LfKWwauTzgwhoADXVUiGR0=", - "version": "161.20.1" - }, - "libpthread": { - "hash": "sha256-6NLKbnBXikSfqz0ZWF6MOIq/bQK/CmfQNvkNXCU6lcw=", - "version": "301.30.1" - }, - "mDNSResponder": { - "hash": "sha256-anzilyXeGh8LL3cYvuLRdqGzhHUvSp9eILJWAltL18M=", - "version": "878.30.4" - }, - "objc4": { - "hash": "sha256-+4o+EzD0YQhgfTg/W9SbVDol7wWUIFxVAVTGg4OVfHQ=", - "version": "723" - }, - "ppp": { - "hash": "sha256-eUIFlYHsAPRrBS0TpTP1/TacaK8h/5QM2Xl1T46MdWc=", - "version": "847" - }, - "removefile": { - "hash": "sha256-EJYU6eHggyRsezClEWkGJmgePIdtyF4rpFD4kSK5Czw=", - "version": "45" - }, - "xnu": { - "hash": "sha256-x2k0KyNk4mIodXfYDHjaCKR1CsiE3HYBNN6p5SfGIMU=", - "version": "4570.31.3" - } - }, - "10.14.6": { - "CarbonHeaders": { - "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", - "version": "18.1" - }, - "CommonCrypto": { - "hash": "sha256-hqsLaS7LEPu8t/bNuV4VUUbMteCetf3/o8e2X0iQvOo=", - "version": "60118.250.2" - }, - "IOAudioFamily": { - "hash": "sha256-UG09Dc+up5cJKDHPpCmo11IsBchqZ72hVBPx8y+1klw=", - "version": "206.5" - }, - "IOBDStorageFamily": { - "hash": "sha256-aaS5jWPRX4be8d3Rigq+kXzi9Zwbr8dHcNgcIz0n66o=", - "version": "19" - }, - "IOCDStorageFamily": { - "hash": "sha256-U6v+Gj+IumU8Aha5+uf3yOU0Z4KMuBh7aXnJqiZ/abY=", - "version": "58" - }, - "IODVDStorageFamily": { - "hash": "sha256-JLp4xN0Rdb2VpuXtVTODYNqQthDEZk+g/lvHRwJHQB4=", - "version": "42" - }, - "IOFWDVComponents": { - "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", - "version": "208" - }, - "IOFireWireAVC": { - "hash": "sha256-EXGpObJVC0b9X3xxEXJScDlM6xygmK3MoCbng21XCmg=", - "version": "426" - }, - "IOFireWireFamily": { - "hash": "sha256-a8zEWhwQTzgGKg75RBmDXb1pgJr602IxnPBTFkKEqSM=", - "version": "473" - }, - "IOFireWireSBP2": { - "hash": "sha256-lpYBTL9TzreyxJn4J3vfuXoWMH/4y8FnNKk5YiuDgHI=", - "version": "433" - }, - "IOFireWireSerialBusProtocolTransport": { - "hash": "sha256-4Y+5+5cJtolSrM3AUnnhSBS3RrKXbg9Kh1ynmllOA2E=", - "version": "252.250.2" - }, - "IOGraphics": { - "hash": "sha256-QFT+h0gtc7SUf0HNciknG0aMOQXnsWCR25C04dgK1/A=", - "version": "530.66" - }, - "IOHIDFamily": { - "hash": "sha256-DpYcxGLvk10iz5TG2SO8R+5obEJv+zLK56RzA/pH0KA=", - "version": "1090.270.6" - }, - "IOKitUser": { - "hash": "sha256-QH2m6BCYtO2JDksH0TebrEldjjZdC4U9otVu/uUoyWY=", - "version": "1483.260.4" - }, - "IONetworkingFamily": { - "hash": "sha256-M01+Bhf7CTJMA7StjSRFW6ffq7Qf/IOh7aM+JI3ONe8=", - "version": "129.200.1" - }, - "IOSerialFamily": { - "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", - "version": "93" - }, - "IOStorageFamily": { - "hash": "sha256-X6s/IyApMQ7zo1wO7IpIk1e94tSsmvvT+fZHThMWv5Y=", - "version": "218.260.1" - }, - "IOUSBFamily": { - "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", - "version": "630.4.5" - }, - "Libc": { - "hash": "sha256-mhhs8U/oZku9o2kqzLW4K8Xv9QbnKNBbBr+Q6NqC1vQ=", - "version": "1272.250.1" - }, - "Libinfo": { - "hash": "sha256-DUbyWZI+n3WvftlI7aj60CoEHb9y18H1+FYiYQroVEE=", - "version": "517.200.9" - }, - "Libm": { - "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", - "version": "2026" - }, - "Libnotify": { - "hash": "sha256-q0ns85I9Zwo5bZPN5JqjrJofY8/XLl+mbsRhyF1kx+o=", - "version": "172.200.21" - }, - "Librpcsvc": { - "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", - "version": "26" - }, - "Libsystem": { - "hash": "sha256-Lo4S7fsepuYlRtXGcVvNTAlx/soabjvKEUuiO09htNs=", - "version": "1252.250.1" - }, - "OpenDirectory": { - "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", - "version": "146" - }, - "Security": { - "hash": "sha256-uqSRU4Ft7+zMQ59FBS+Mu2JcWdbbuWP9/dFfo+Vkr5s=", - "version": "58286.270.3.0.1" - }, - "architecture": { - "hash": "sha256-WGUNtFSBu9AuefHVEO3uB/JpKEGAgGFX/zRaaW4eYbI=", - "version": "272.230.1" - }, - "configd": { - "hash": "sha256-Pg58INpZfdKXn1EPut2Kzghfjwxaz1Ex+u5KACA2O7g=", - "version": "963.270.3" - }, - "copyfile": { - "hash": "sha256-gbxGQ8Wjt20++Bf+BkZT/R5dpsCnRo8+qUcerv5m7V8=", - "version": "146.250.1" - }, - "dtrace": { - "hash": "sha256-ZbAaH2wmYlgLKtq0bpDoEInZiHMe5Bx84iUQC67ia0E=", - "version": "284.250.4" - }, - "dyld": { - "hash": "sha256-5wtx+4pSAcNEwcE024XwIRorS3ZW/qmvfkY7UGe75ho=", - "version": "655.1.1" - }, - "eap8021x": { - "hash": "sha256-9j+6Hw7w9wdLZxjdRwTACws2obg2/VCgl9ed4+Y4pPg=", - "version": "264.250.6" - }, - "hfs": { - "hash": "sha256-/yf6z0VJkw2pPnVst2qgnSZfO6x9ot/cWT7Aewo3IZ4=", - "version": "407.200.4" - }, - "launchd": { - "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", - "version": "842.1.4" - }, - "libclosure": { - "hash": "sha256-NHK+yc7M/wc6Sbk24LDejNjBrbcWIg9zrYHlnPXC/Yc=", - "version": "73" - }, - "libdispatch": { - "hash": "sha256-b0WqX3qX/qhUi2l63BrNvaVq167SuIgYGPid92MJ32U=", - "version": "1008.270.1" - }, - "libmalloc": { - "hash": "sha256-1ZvO0LGV4AkDSdtwqfPFgCUbpAVzfKS0msa58tL2WLA=", - "version": "166.251.2" - }, - "libplatform": { - "hash": "sha256-xQqCf+/DpHu/JMbmOpy6jl3np0H7/m1NKWZ21YWaerE=", - "version": "177.270.1" - }, - "libpthread": { - "hash": "sha256-+AuYgLTM5RO3+MbxeE86rPh9WbiTiAl2gHZOAaQRkec=", - "version": "330.250.2" - }, - "mDNSResponder": { - "hash": "sha256-SlrC3LIOndY1DVJ26bnuYQwpLhkV1PHAMJeaE3bMDI4=", - "version": "878.270.2" - }, - "objc4": { - "hash": "sha256-rzDiOE//rUnRyCHM/XUQs9IImKGIFN/0D0IZ7SeGp2s=", - "version": "756.2" - }, - "ppp": { - "hash": "sha256-a0zTwevtC+AAyLV/0+rX9VN5BXc2vaZGArz83VZtiWs=", - "version": "847.200.5" - }, - "removefile": { - "hash": "sha256-23+ivRTPKId9Is5NAwYmVgN7TX2+7v9NONs9u7DrGH4=", - "version": "45.200.2" - }, - "xnu": { - "hash": "sha256-ZRgj214Mmvvcji4OdzRjK/7Xtpz7r69SFmzSvtZNhNU=", - "version": "4903.270.47" - } - }, - "10.15.6": { - "CarbonHeaders": { - "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", - "version": "18.1" - }, - "CommonCrypto": { - "hash": "sha256-HKSRtTnJ6dH5j6Y+PRDQUcPyjwR70PEbRQu3hTM4G0A=", - "version": "60165.120.1" - }, - "IOAudioFamily": { - "hash": "sha256-5lcK8nyjayLBw9j4PPVs8TWwOWcpggKkSXefVGl2rfA=", - "version": "300.2" - }, - "IOBDStorageFamily": { - "hash": "sha256-aaS5jWPRX4be8d3Rigq+kXzi9Zwbr8dHcNgcIz0n66o=", - "version": "19" - }, - "IOCDStorageFamily": { - "hash": "sha256-U6v+Gj+IumU8Aha5+uf3yOU0Z4KMuBh7aXnJqiZ/abY=", - "version": "58" - }, - "IODVDStorageFamily": { - "hash": "sha256-JLp4xN0Rdb2VpuXtVTODYNqQthDEZk+g/lvHRwJHQB4=", - "version": "42" - }, - "IOFWDVComponents": { - "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", - "version": "208" - }, - "IOFireWireAVC": { - "hash": "sha256-7H3WcZC/HuS9xsTNDWRqt+1JzUNK4ndvd4u2ru0GGRE=", - "version": "428" - }, - "IOFireWireFamily": { - "hash": "sha256-hLtd3d5qOsYdnGpMaTSipu9bOIYEHz2rKzNAoJai4dI=", - "version": "475" - }, - "IOFireWireSBP2": { - "hash": "sha256-pHY6okHHotfFjdNsLwRjQX7dWGolBelpD7MEDz4lafY=", - "version": "434" - }, - "IOFireWireSerialBusProtocolTransport": { - "hash": "sha256-Jb70fanuJTNV4IVoKMtMA66oVDR0I/h3JSIymhlKTQU=", - "version": "257" - }, - "IOGraphics": { - "hash": "sha256-sKnJ0MOhT+dFfmMD2gqYmySufh0I9vBI/swjqoCbSHc=", - "version": "576.1" - }, - "IOHIDFamily": { - "hash": "sha256-esiEGEiggFMR7rha6+dYaqiwGM+TlZtLBe8LF/PF0D8=", - "version": "1446.140.2" - }, - "IOKitUser": { - "hash": "sha256-rB5zfJwoBPMpqW5PDM6ppWW07Y2AGS3f0UzXdfPGYYE=", - "version": "1726.140.1" - }, - "IONetworkingFamily": { - "hash": "sha256-T+aDA++nubTHdPpfdAEm6077eJuzsQXHUDEbdlthVBQ=", - "version": "139.140.2" - }, - "IOSerialFamily": { - "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", - "version": "93" - }, - "IOStorageFamily": { - "hash": "sha256-vyIN7oru2PN7C4a6RBJomlYs4NaYzmCTBEuWiSXG41M=", - "version": "238.120.1" - }, - "IOUSBFamily": { - "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", - "version": "630.4.5" - }, - "Libc": { - "hash": "sha256-FAifkHs2Kls2ym9/M56o4u2UZfdTKCnqxRbTXOIHyz8=", - "version": "1353.100.2" - }, - "Libinfo": { - "hash": "sha256-syTH8dhWkSPgqRG7p528L7Xx1+ymmqHrCyhUykGhK9s=", - "version": "538" - }, - "Libm": { - "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", - "version": "2026" - }, - "Libnotify": { - "hash": "sha256-7o4GNZde3MkCks2NJdNIXvvtMAOqGEA05M7S8o7j0XQ=", - "version": "241.100.2" - }, - "Librpcsvc": { - "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", - "version": "26" - }, - "Libsystem": { - "hash": "sha256-RNkaoaRl6akbrgjagLd+ncZ2EAdjegIdy7Z/MINoTpc=", - "version": "1281.100.1" - }, - "OpenDirectory": { - "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", - "version": "146" - }, - "Security": { - "hash": "sha256-dlNTEVkgTl3po7ty2wjatGTANBwegpZxBX1ByneqKRU=", - "version": "59306.140.5" - }, - "architecture": { - "hash": "sha256-pIX9pEXE1Xjll9qwiWrMRwqw6G4g0isto/ALHsmkUSc=", - "version": "279" - }, - "configd": { - "hash": "sha256-nKFDfyH1gQtFyda6HBq3E7Tp5EI4O5n/9GYQEFhMIdE=", - "version": "1061.141.1" - }, - "copyfile": { - "hash": "sha256-nEfD/KUk7e32tw9buQYrsy/BAdAfgE9IObdV4nCm37M=", - "version": "166.40.1" - }, - "dtrace": { - "hash": "sha256-dgJ7om5efUQyc9tP6cBeSpahORqV5bzEDcxcVu4TaDg=", - "version": "338.100.1" - }, - "dyld": { - "hash": "sha256-YkFazM/cviJMwPVXHXP2irfgHtOueI2RNrMedWvkH0A=", - "version": "750.6" - }, - "eap8021x": { - "hash": "sha256-/FsmD4mk/kwsocK8x8Gsk3yOBW3pZLcGHxnNcogqjhY=", - "version": "292.40.2" - }, - "hfs": { - "hash": "sha256-vNo2Wd0n6tjG+xtA3OrwB/TOXvLxaLehEY/l9ZBS5Sw=", - "version": "522.100.5" - }, - "launchd": { - "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", - "version": "842.1.4" - }, - "libclosure": { - "hash": "sha256-A3QTD6bqUy8ahH/XlMuidYNvT92ufeVpwPsZh4ZzQdk=", - "version": "74" - }, - "libdispatch": { - "hash": "sha256-gd56s0C2dKbZoaGNXt3LBfXaEl5A744djFq3G9uoWws=", - "version": "1173.100.2" - }, - "libmalloc": { - "hash": "sha256-1VhkXY8m6vVQ4aaxICtHVQtXDHNV2CsY9UUst0AioMY=", - "version": "283.100.6" - }, - "libplatform": { - "hash": "sha256-Z4Lj9efT1bt6HMAMQvgMc33QdYzrBvieBjmw4W6H9YI=", - "version": "220.100.1" - }, - "libpthread": { - "hash": "sha256-ZHxqq1qVRXPL0psAX+5bcuA5D/FjJnIcm+ctTkTGBJA=", - "version": "416.100.3" - }, - "mDNSResponder": { - "hash": "sha256-CV3GBeO4Ly8/PbZ7Fq55diRzB00VsB2uTvjGo/tqf10=", - "version": "1096.100.3" - }, - "objc4": { - "hash": "sha256-AJwPTnjJMBbSFDppvKyx92RdfmbmwQOvPnU0E0mU+jU=", - "version": "787.1" - }, - "ppp": { - "hash": "sha256-DNmDigQqDKR1ghcn6GaKeDldp6thH2C6+uZKjC3EfkU=", - "version": "862.140.2" - }, - "removefile": { - "hash": "sha256-bkxiq7OEFtEFPwSBi4OxmpRyKWYgeMhnokFfS7RPUnU=", - "version": "48" - }, - "xnu": { - "hash": "sha256-Y/DTtpnT8JQZO5Ijr+tW0IrIOuECcJ+ZvFLCgwrFt2M=", - "version": "6153.141.1" - } - }, "11.3": { "CarbonHeaders": { "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json index 608990bddd46..5a444c2c4eaa 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/versions.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -1,24 +1,4 @@ { - "10.12": { - "url": "http://swcdn.apple.com/content/downloads/22/62/041-88607/wg8avdk0jo75k9a13gentz9stwqgrqmcv6/CLTools_SDK_OSX1012.pkg", - "version": "10.12.2", - "hash": "sha256-Jf2WIB9bY/rPwe0AOW3YWJY/6EqVe41yhezdTGOO3M8=" - }, - "10.13": { - "url": "http://swcdn.apple.com/content/downloads/33/36/041-90419-A_7JJ4H9ZHO2/xs88ob5wjz6riz7g6764twblnvksusg4ps/CLTools_SDK_macOS1013.pkg", - "version": "10.13.2", - "hash": "sha256-8nd55fiJLfRWABAbMaHXjp6i20RqupmKedwmhb3S0/A=" - }, - "10.14": { - "url": "http://swcdn.apple.com/content/downloads/41/57/061-26573-A_JMOA8GZGDR/lj8yrtu8dgs40fw9k8f5fkoviwkp0og6vs/CLTools_SDK_macOS1014.pkg", - "version": "10.14.6", - "hash": "sha256-NMNkycIl3AVZCw0ZpHNkaeYVS9LAZVSddHw5loL9dhk=" - }, - "10.15": { - "url": "https://swcdn.apple.com/content/downloads/50/51/071-29699-A_YC8SX0OHH3/7479xojqghsvgtnt3dxjpnxuz9sjpmbmds/CLTools_macOSLMOS_SDK.pkg", - "version": "10.15.6", - "hash": "sha256-mPJQC+v4yNiOCKLQfhidB2WH2MMclSCP1odvOoGdVPw=" - }, "11": { "url": "https://swcdn.apple.com/content/downloads/02/62/071-54303-A_EU2CL1YVT7/943i95dpeyi2ghlnj2mgyq3t202t5gf18b/CLTools_macOSNMOS_SDK.pkg", "version": "11.3", diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index d84b67f44d01..d28db7363fe1 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -110,6 +110,10 @@ mapAliases { ao = libfive; # Added 2024-10-11 apacheKafka_3_5 = throw "apacheKafka_2_8 through _3_5 have been removed from nixpkgs as outdated"; # Added 2024-06-13 antimicroX = throw "'antimicroX' has been renamed to/replaced by 'antimicrox'"; # Converted to throw 2024-10-17 + apple-sdk_10_12 = throw "apple-sdk_10_12 was removed as Nixpkgs no longer supports macOS 10.12; see the 25.05 release notes"; # Added 2024-10-27 + apple-sdk_10_13 = throw "apple-sdk_10_13 was removed as Nixpkgs no longer supports macOS 10.13; see the 25.05 release notes"; # Added 2024-10-27 + apple-sdk_10_14 = throw "apple-sdk_10_14 was removed as Nixpkgs no longer supprots macOS 10.14; see the 25.05 release notes"; # Added 2024-10-27 + apple-sdk_10_15 = throw "apple-sdk_10_15 was removed as Nixpkgs no longer supports macOS 10.15; see the 25.05 release notes"; # Added 2024-10-27 appthreat-depscan = dep-scan; # Added 2024-04-10 arcanist = throw "arcanist was removed as phabricator is not supported and does not accept fixes"; # Added 2024-06-07 aria = aria2; # Added 2024-03-26 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1f5740431c22..6018ed75c44d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11342,10 +11342,6 @@ with pkgs; ### DEVELOPMENT / LIBRARIES / DARWIN SDKS - apple-sdk_10_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.12"; }; - apple-sdk_10_13 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.13"; }; - apple-sdk_10_14 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.14"; }; - apple-sdk_10_15 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.15"; }; apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; apple-sdk_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "12"; }; apple-sdk_13 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "13"; }; From 685ed87eccd31e58eceac312a9053c7a5314cfa8 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 26 Oct 2024 03:03:19 +0100 Subject: [PATCH 144/693] darwin.apple_sdk_10_12: drop --- pkgs/os-specific/darwin/apple-sdk/default.nix | 272 ------------------ pkgs/top-level/darwin-aliases.nix | 4 + pkgs/top-level/darwin-packages.nix | 5 +- 3 files changed, 5 insertions(+), 276 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-sdk/default.nix diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix deleted file mode 100644 index 388de3730380..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ /dev/null @@ -1,272 +0,0 @@ -# Compatibility stubs for packages that used the old SDK frameworks. -# TODO(@reckenrode) Make these stubs warn after framework usage has been cleaned up in nixpkgs. -{ lib, callPackage }: - -let - mkStub = callPackage ./mk-stub.nix { } "10.12"; - - frameworks = lib.genAttrs [ - "AGL" - "AVFoundation" - "AVKit" - "Accelerate" - "Accounts" - "AddressBook" - "AppKit" - "AppKitScripting" - "AppleScriptKit" - "AppleScriptObjC" - "ApplicationServices" - "AudioToolbox" - "AudioUnit" - "AudioVideoBridging" - "Automator" - "CFNetwork" - "CalendarStore" - "Carbon" - "Cocoa" - "Collaboration" - "ContactsPersistence" - "CoreAudio" - "CoreAudioKit" - "CoreBluetooth" - "CoreData" - "CoreFoundation" - "CoreGraphics" - "CoreImage" - "CoreLocation" - "CoreMIDI" - "CoreMIDIServer" - "CoreMedia" - "CoreMediaIO" - "CoreServices" - "CoreSymbolication" - "CoreText" - "CoreVideo" - "CoreWLAN" - "DVDPlayback" - "DebugSymbols" - "DirectoryService" - "DiscRecording" - "DiscRecordingUI" - "DiskArbitration" - "DisplayServices" - "EventKit" - "ExceptionHandling" - "FWAUserLib" - "ForceFeedback" - "Foundation" - "GLKit" - "GLUT" - "GSS" - "GameCenter" - "GameController" - "GameKit" - "GameplayKit" - "Hypervisor" - "ICADevices" - "IMServicePlugIn" - "IOBluetooth" - "IOBluetoothUI" - "IOKit" - "IOSurface" - "ImageCaptureCore" - "ImageIO" - "InputMethodKit" - "InstallerPlugins" - "InstantMessage" - "JavaFrameEmbedding" - "JavaNativeFoundation" - "JavaRuntimeSupport" - "JavaScriptCore" - "JavaVM" - "Kerberos" - "Kernel" - "LDAP" - "LatentSemanticMapping" - "LocalAuthentication" - "MapKit" - "MediaAccessibility" - "MediaPlayer" - "MediaToolbox" - "Metal" - "MetalKit" - "ModelIO" - "MultitouchSupport" - "NetFS" - "OSAKit" - "OpenAL" - "OpenCL" - "OpenDirectory" - "OpenGL" - "PCSC" - "PreferencePanes" - "PubSub" - "QTKit" - "Quartz" - "QuartzCore" - "QuickLook" - "QuickTime" - "SceneKit" - "ScreenSaver" - "Scripting" - "ScriptingBridge" - "Security" - "SecurityFoundation" - "SecurityInterface" - "ServiceManagement" - "SkyLight" - "Social" - "SpriteKit" - "StoreKit" - "SyncServices" - "System" - "SystemConfiguration" - "TWAIN" - "Tcl" - "UIFoundation" - "VideoDecodeAcceleration" - "VideoToolbox" - "WebKit" - "vmnet" - ] mkStub; - - bareFrameworks = lib.genAttrs [ - "AGL" - "AVFoundation" - "AVKit" - "Accelerate" - "Accounts" - "AddressBook" - "AppKit" - "AppKitScripting" - "AppleScriptKit" - "AppleScriptObjC" - "ApplicationServices" - "AudioToolbox" - "AudioUnit" - "AudioVideoBridging" - "Automator" - "CFNetwork" - "CalendarStore" - "Carbon" - "Cocoa" - "Collaboration" - "CoreAudio" - "CoreAudioKit" - "CoreBluetooth" - "CoreData" - "CoreFoundation" - "CoreGraphics" - "CoreImage" - "CoreLocation" - "CoreMIDI" - "CoreMIDIServer" - "CoreMedia" - "CoreMediaIO" - "CoreServices" - "CoreText" - "CoreVideo" - "CoreWLAN" - "DVDPlayback" - "DirectoryService" - "DiscRecording" - "DiscRecordingUI" - "DiskArbitration" - "EventKit" - "ExceptionHandling" - "FWAUserLib" - "ForceFeedback" - "Foundation" - "GLKit" - "GLUT" - "GSS" - "GameCenter" - "GameController" - "GameKit" - "GameplayKit" - "Hypervisor" - "ICADevices" - "IMServicePlugIn" - "IOBluetooth" - "IOBluetoothUI" - "IOKit" - "IOSurface" - "ImageCaptureCore" - "ImageIO" - "InputMethodKit" - "InstallerPlugins" - "InstantMessage" - "JavaFrameEmbedding" - "JavaNativeFoundation" - "JavaRuntimeSupport" - "JavaScriptCore" - "JavaVM" - "Kerberos" - "Kernel" - "LDAP" - "LatentSemanticMapping" - "LocalAuthentication" - "MapKit" - "MediaAccessibility" - "MediaPlayer" - "MediaToolbox" - "Metal" - "MetalKit" - "ModelIO" - "NetFS" - "OSAKit" - "OpenAL" - "OpenCL" - "OpenDirectory" - "OpenGL" - "PCSC" - "PreferencePanes" - "PubSub" - "QTKit" - "Quartz" - "QuartzCore" - "QuickLook" - "QuickTime" - "SceneKit" - "ScreenSaver" - "Scripting" - "ScriptingBridge" - "Security" - "SecurityFoundation" - "SecurityInterface" - "ServiceManagement" - "Social" - "SpriteKit" - "StoreKit" - "SyncServices" - "System" - "SystemConfiguration" - "TWAIN" - "Tcl" - "VideoDecodeAcceleration" - "VideoToolbox" - "WebKit" - "vmnet" - ] mkStub; -in -{ - inherit bareFrameworks frameworks; - - libs = lib.genAttrs [ - "Xplugin" - "sandbox" - "simd" - "utmp" - "xpc" - ] mkStub; - - version = "10.12"; -} -// lib.genAttrs [ - "darwin-stubs" - "Libsystem" - "objc4" - "sdk" - "sdkRoot" -] mkStub diff --git a/pkgs/top-level/darwin-aliases.nix b/pkgs/top-level/darwin-aliases.nix index 6fafa5f487c4..7f3ea2edd35e 100644 --- a/pkgs/top-level/darwin-aliases.nix +++ b/pkgs/top-level/darwin-aliases.nix @@ -47,6 +47,10 @@ let in mapAliases ({ + ### A ### + + apple_sdk_10_12 = throw "darwin.apple_sdk_10_12 was removed as Nixpkgs no longer supports macOS 10.12; see the 25.05 release notes"; # Added 2024-10-27 + ### B ### builder = throw "'darwin.builder' has been changed and renamed to 'darwin.linux-builder'. The default ssh port is now 31022. Please update your configuration or override the port back to 22. See https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder"; # added 2023-07-06 diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 669e268b9001..5680bfee301a 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -57,9 +57,6 @@ makeScopeWithSplicing' { # Must use pkgs.callPackage to avoid infinite recursion. impure-cmds = pkgs.callPackage ../os-specific/darwin/impure-cmds { }; - # macOS 10.12 SDK - apple_sdk_10_12 = pkgs.callPackage ../os-specific/darwin/apple-sdk { }; - # macOS 11.0 SDK apple_sdk_11_0 = pkgs.callPackage ../os-specific/darwin/apple-sdk-11.0 { }; @@ -69,7 +66,7 @@ makeScopeWithSplicing' { apple_sdk = apple_sdk_11_0; stubs = { - inherit apple_sdk apple_sdk_10_12 apple_sdk_11_0 apple_sdk_12_3; + inherit apple_sdk apple_sdk_11_0 apple_sdk_12_3; libobjc = self.objc4; } // lib.genAttrs [ "CF" From fee73d8d33805d4af6d676288e1387b60003b6b5 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 18:50:44 +0100 Subject: [PATCH 145/693] apple-sdk: remove code for old SDKs --- .../by-name/ap/apple-sdk/common/fetch-sdk.nix | 4 ---- .../ap/apple-sdk/common/process-stubs.nix | 1 - .../ap/apple-sdk/common/rewrite-sdk-paths.nix | 18 ---------------- pkgs/by-name/ap/apple-sdk/package.nix | 21 ++++--------------- 4 files changed, 4 insertions(+), 40 deletions(-) delete mode 100644 pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix diff --git a/pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix b/pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix index d96c27509dda..e1a2607c0b86 100644 --- a/pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix +++ b/pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix @@ -27,11 +27,7 @@ fetchurl { mv "$downloadedFile" "$renamed" pbzx "$renamed" | cpio -idm - # SDKs are inconsistent about whether MacOSX.sdk or MacOSX.sdk is a symlink. src=Library/Developer/CommandLineTools/SDKs/MacOSX${lib.versions.majorMinor version}.sdk - if [ ! -d $src ]; then - src=Library/Developer/CommandLineTools/SDKs/MacOSX.sdk - fi # Remove unwanted binaries, man pages, and folders from the SDK. rm -rf $src/usr/bin $src/usr/share $src/System/Library/Perl diff --git a/pkgs/by-name/ap/apple-sdk/common/process-stubs.nix b/pkgs/by-name/ap/apple-sdk/common/process-stubs.nix index 840415d2e3b1..5a5cd345ec06 100644 --- a/pkgs/by-name/ap/apple-sdk/common/process-stubs.nix +++ b/pkgs/by-name/ap/apple-sdk/common/process-stubs.nix @@ -24,7 +24,6 @@ self: super: { + '' echo "Removing the following dylibs from the libSystem reexported libraries list: ${lib.escapeShellArg (lib.concatStringsSep ", " removedDylibs)}" for libSystem in libSystem.B.tbd libSystem.B_asan.tbd; do - test ! -e usr/lib/$libSystem && continue # TODO: remove once the minimum SDK is 10.14 or newer. tapi stubify --filetype=tbd-v5 usr/lib/$libSystem -o usr/lib/$libSystem # tbd-v5 is a JSON-based format. jq --argjson libs ${lib.escapeShellArg (builtins.toJSON removedDylibs)} ' if .libraries then diff --git a/pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix b/pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix deleted file mode 100644 index 0eca6b8836b3..000000000000 --- a/pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ lib, sdkVersion }: - -let - name = "MacOSX${lib.versions.majorMinor sdkVersion}.sdk"; -in -self: super: { - # Rewrite the stubs to point to dylibs in the SDK instead of at system locations. This is needed for umbrella - # frameworks in older SDKs, which don’t also embed their stubs. - buildPhase = - super.buildPhase or "" - + '' - echo "Rewriting stubs to reference the SDK location in the store" - find . -name '*.tbd' -type f -exec sed -E \ - -e "/^install-name/n; s|( \\|'\\|\"\\|\\[)/usr/|\1$sdkpath/${name}/usr/|g" \ - -e "/^install-name/n; s|( \\|'\\|\"\\|\\[)/System/|\1$sdkpath/${name}/System/|g" \ - -i {} \; - ''; -} diff --git a/pkgs/by-name/ap/apple-sdk/package.nix b/pkgs/by-name/ap/apple-sdk/package.nix index 31017a6a9ae5..779ed45260ec 100644 --- a/pkgs/by-name/ap/apple-sdk/package.nix +++ b/pkgs/by-name/ap/apple-sdk/package.nix @@ -9,12 +9,8 @@ in substitute, # Specifies the major version used for the SDK. Uses `hostPlatform.darwinSdkVersion` by default. - darwinSdkMajorVersion ? ( - if lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11" then - lib.versions.majorMinor stdenv.hostPlatform.darwinSdkVersion - else - lib.versions.major stdenv.hostPlatform.darwinSdkVersion - ), + darwinSdkMajorVersion ? lib.versions.major stdenv.hostPlatform.darwinSdkVersion, + # Enabling bootstrap disables propagation. Defaults to `false` (meaning to propagate certain packages and `xcrun`) # except in stage0 of the Darwin stdenv bootstrap. enableBootstrap ? stdenv.name == "bootstrap-stage0-stdenv-darwin", @@ -48,11 +44,6 @@ let (callPackage ./common/propagate-inputs.nix { }) (callPackage ./common/propagate-xcrun.nix { }) ] - # Older SDKs do not include the libraries re-exported from umbrella frameworks in the umbrellas’ stubs, which causes - # link failures for those libraries unless their paths have been rewritten to point to the store. - ++ lib.optionals (lib.versionOlder sdkVersion "11.0") [ - (callPackage ./common/rewrite-sdk-paths.nix { inherit sdkVersion; }) - ] # This has to happen last. ++ [ (callPackage ./common/run-build-phase-hooks.nix { }) @@ -97,9 +88,7 @@ stdenvNoCC.mkDerivation ( mkdir -p "$sdkpath" cp -rd . "$sdkpath/${sdkName}" - ${lib.optionalString (lib.versionAtLeast finalAttrs.version "11.0") '' - ln -s "${sdkName}" "$sdkpath/MacOSX${sdkMajor}.sdk" - ''} + ln -s "${sdkName}" "$sdkpath/MacOSX${sdkMajor}.sdk" ln -s "${sdkName}" "$sdkpath/MacOSX.sdk" runHook postInstall @@ -116,9 +105,7 @@ stdenvNoCC.mkDerivation ( homepage = "https://developer.apple.com"; maintainers = lib.teams.darwin.members; platforms = lib.platforms.darwin; - badPlatforms = - lib.optionals (lib.versionAtLeast sdkVersion "10.15") [ lib.systems.inspect.patterns.is32bit ] - ++ lib.optionals (lib.versionOlder sdkVersion "11.0") [ lib.systems.inspect.patterns.isAarch ]; + badPlatforms = [ lib.systems.inspect.patterns.is32bit ]; }; }) ) From c00c40ba8b994305961b1263255252b5194b588b Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:40:34 +0100 Subject: [PATCH 146/693] stdenv/darwin: remove code for old SDKs --- pkgs/stdenv/darwin/default.nix | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 2dfb34e40372..ab8eae632978 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -28,14 +28,7 @@ assert crossSystem == localSystem; let inherit (localSystem) system; - sdkMajorVersion = - let - inherit (localSystem) darwinSdkVersion; - in - if lib.versionOlder darwinSdkVersion "11" then - lib.versions.majorMinor darwinSdkVersion - else - lib.versions.major darwinSdkVersion; + sdkMajorVersion = lib.versions.major localSystem.darwinSdkVersion; commonImpureHostDeps = [ "/bin/sh" From 98d5c93e0afc2f03a768b7ff638e594b48a8f191 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:07:05 +0100 Subject: [PATCH 147/693] llvmPackages.compiler-rt: remove code for macOS < 11 --- .../llvm/common/compiler-rt/default.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index 9ec3a2ddcbd6..b6b2d6d39755 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -8,7 +8,6 @@ , monorepoSrc ? null , runCommand , apple-sdk -, apple-sdk_10_13 , cmake , ninja , python3 @@ -47,14 +46,6 @@ let baseName = "compiler-rt"; pname = baseName + lib.optionalString (haveLibc) "-libc"; - # Sanitizers require 10.13 or newer. Instead of disabling them for most x86_64-darwin users, - # build them with a newer SDK and the default (10.12) deployment target. - apple-sdk' = - if lib.versionOlder (lib.getVersion apple-sdk) "10.13" then - apple-sdk_10_13.override { enableBootstrap = true; } - else - apple-sdk.override { enableBootstrap = true; }; - src' = if monorepoSrc != null then runCommand "${baseName}-src-${version}" {} ('' mkdir -p "$out" @@ -80,10 +71,7 @@ stdenv.mkDerivation ({ ++ [ python3 libllvm.dev ]; buildInputs = lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isRiscV) linuxHeaders - ++ lib.optional (stdenv.hostPlatform.isFreeBSD) freebsd.include - # Adding the bootstrap SDK to `buildInputs` on static builds propagates it, breaking `xcrun`. - # This can be removed once the minimum SDK >10.12 on x86_64-darwin. - ++ lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isStatic) [ apple-sdk' ]; + ++ lib.optional (stdenv.hostPlatform.isFreeBSD) freebsd.include; env = { NIX_CFLAGS_COMPILE = toString ([ @@ -148,7 +136,7 @@ stdenv.mkDerivation ({ # Darwin support, so force it to be enabled during the first stage of the compiler-rt bootstrap. "-DCOMPILER_RT_HAS_G_FLAG=ON" ] ++ [ - "-DDARWIN_macosx_CACHED_SYSROOT=${apple-sdk'.sdkroot}" + "-DDARWIN_macosx_CACHED_SYSROOT=${apple-sdk.sdkroot}" "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=${lib.versions.majorMinor (lib.getVersion apple-sdk)}" "-DDARWIN_osx_ARCHS=${stdenv.hostPlatform.darwinArch}" "-DDARWIN_osx_BUILTIN_ARCHS=${stdenv.hostPlatform.darwinArch}" From 4963ea1eaa2c25a56c05095eeaad245e1ca6e341 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:45:28 +0100 Subject: [PATCH 148/693] llvmPackages.lldb: remove code for macOS < 11 --- .../lldb/cpu_subtype_arm64e_replacement.patch | 12 ---------- .../compilers/llvm/common/default.nix | 24 +------------------ .../compilers/llvm/common/lldb.nix | 10 -------- 3 files changed, 1 insertion(+), 45 deletions(-) delete mode 100644 pkgs/development/compilers/llvm/13/lldb/cpu_subtype_arm64e_replacement.patch diff --git a/pkgs/development/compilers/llvm/13/lldb/cpu_subtype_arm64e_replacement.patch b/pkgs/development/compilers/llvm/13/lldb/cpu_subtype_arm64e_replacement.patch deleted file mode 100644 index 20d35c9f3ea9..000000000000 --- a/pkgs/development/compilers/llvm/13/lldb/cpu_subtype_arm64e_replacement.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/source/Host/macosx/objcxx/HostInfoMacOSX.mm b/source/Host/macosx/objcxx/HostInfoMacOSX.mm ---- a/source/Host/macosx/objcxx/HostInfoMacOSX.mm -+++ b/source/Host/macosx/objcxx/HostInfoMacOSX.mm -@@ -233,7 +233,7 @@ void HostInfoMacOSX::ComputeHostArchitectureSupport(ArchSpec &arch_32, - len = sizeof(is_64_bit_capable); - ::sysctlbyname("hw.cpu64bit_capable", &is_64_bit_capable, &len, NULL, 0); - -- if (cputype == CPU_TYPE_ARM64 && cpusubtype == CPU_SUBTYPE_ARM64E) { -+ if (cputype == CPU_TYPE_ARM64 && cpusubtype == ((cpu_subtype_t) 2)) { // CPU_SUBTYPE_ARM64E is not available in the macOS 10.12 headers - // The arm64e architecture is a preview. Pretend the host architecture - // is arm64. - cpusubtype = CPU_SUBTYPE_ARM64_ALL; diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 7f7aa868d14c..e7d3a20e1f3f 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -264,12 +264,6 @@ let path = ../12; } ]; - "lldb/cpu_subtype_arm64e_replacement.patch" = [ - { - after = "13"; - path = ../13; - } - ]; "lldb/resource-dir.patch" = [ { before = "16"; @@ -697,23 +691,7 @@ let ++ lib.optional (lib.versionOlder metadata.release_version "14") ( metadata.getVersionFile "lldb/gnu-install-dirs.patch" ) - ++ lib.optional (lib.versionAtLeast metadata.release_version "14") ./lldb/gnu-install-dirs.patch - # This is a stopgap solution if/until the macOS SDK used for x86_64 is - # updated. - # - # The older 10.12 SDK used on x86_64 as of this writing has a `mach/machine.h` - # header that does not define `CPU_SUBTYPE_ARM64E` so we replace the one use - # of this preprocessor symbol in `lldb` with its expansion. - # - # See here for some context: - # https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272129132 - # - # Patch is applied for >= 14 as the versions below are broken anyways. - ++ lib.optional ( - lib.versionAtLeast metadata.release_version "14" - && stdenv.targetPlatform.isDarwin - && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0" - ) (metadata.getVersionFile "lldb/cpu_subtype_arm64e_replacement.patch"); + ++ lib.optional (lib.versionAtLeast metadata.release_version "14") ./lldb/gnu-install-dirs.patch; } // lib.optionalAttrs (lib.versions.major metadata.release_version == "16") { src = callPackage ( diff --git a/pkgs/development/compilers/llvm/common/lldb.nix b/pkgs/development/compilers/llvm/common/lldb.nix index 1e2233790738..3fc17e9143ad 100644 --- a/pkgs/development/compilers/llvm/common/lldb.nix +++ b/pkgs/development/compilers/llvm/common/lldb.nix @@ -24,8 +24,6 @@ , patches ? [ ] , enableManpages ? false , devExtraCmakeFlags ? [ ] -, apple-sdk_11 -, darwinMinVersionHook , ... }: @@ -93,14 +91,6 @@ stdenv.mkDerivation (rec { (lib.getLib libclang) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.bootstrap_cmds - ] - ++ lib.optionals - ( - stdenv.targetPlatform.isDarwin - && lib.versionOlder stdenv.targetPlatform.darwinSdkVersion "11.0" - ) [ - apple-sdk_11 - (darwinMinVersionHook "10.15") ]; hardeningDisable = [ "format" ]; From b600d09aa151b20c481ce58d38e5109172009733 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:45:28 +0100 Subject: [PATCH 149/693] llvmPackages.libcxx: remove code for macOS < 11 --- .../0001-darwin-10.12-mbstate_t-fix.patch | 31 ------- .../compilers/llvm/common/default.nix | 85 ++++++------------- 2 files changed, 27 insertions(+), 89 deletions(-) delete mode 100644 pkgs/development/compilers/llvm/18/libcxx/0001-darwin-10.12-mbstate_t-fix.patch diff --git a/pkgs/development/compilers/llvm/18/libcxx/0001-darwin-10.12-mbstate_t-fix.patch b/pkgs/development/compilers/llvm/18/libcxx/0001-darwin-10.12-mbstate_t-fix.patch deleted file mode 100644 index 29942f8ed03d..000000000000 --- a/pkgs/development/compilers/llvm/18/libcxx/0001-darwin-10.12-mbstate_t-fix.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 9c1cb26c1dd3f92d1c1177e548107d2cd3c5e616 Mon Sep 17 00:00:00 2001 -From: annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com> -Date: Fri, 23 Feb 2024 22:58:58 +0000 -Subject: [PATCH] darwin 10.12 mbstate_t fix - -https://github.com/llvm/llvm-project/issues/64226 - -removes space from -https://github.com/macports/macports-ports/raw/acd8acb171f1658596ed1cf25da48d5b932e2d19/lang/llvm-17/files/0042-mbstate_t-not-defined.patch -so it applies cleanly ---- - libcxx/include/__mbstate_t.h | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/libcxx/include/__mbstate_t.h b/libcxx/include/__mbstate_t.h -index bfa6d61..5f51112 100644 ---- a/libcxx/include/__mbstate_t.h -+++ b/libcxx/include/__mbstate_t.h -@@ -42,6 +42,9 @@ - #elif __has_include() - # include // works on most Unixes - #elif __has_include() -+# if __has_include() -+# include -+# endif - # include // works on Darwin - #elif !defined(_LIBCPP_HAS_NO_WIDE_CHARACTERS) && __has_include_next() - # include_next // fall back to the C standard provider of mbstate_t --- -2.43.0 - diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index e7d3a20e1f3f..33e4d3c998dd 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -167,12 +167,6 @@ let path = ../15; } ]; - "libcxx/0001-darwin-10.12-mbstate_t-fix.patch" = [ - { - after = "18"; - path = ../18; - } - ]; "libunwind/gnu-install-dirs.patch" = [ { before = "17"; @@ -1083,62 +1077,37 @@ let libcxx = callPackage ./libcxx ( { - patches = - lib.optionals (lib.versionOlder metadata.release_version "16") ( - lib.optional (lib.versions.major metadata.release_version == "15") - # See: - # - https://reviews.llvm.org/D133566 - # - https://github.com/NixOS/nixpkgs/issues/214524#issuecomment-1429146432 - # !!! Drop in LLVM 16+ - ( - fetchpatch { - url = "https://github.com/llvm/llvm-project/commit/57c7bb3ec89565c68f858d316504668f9d214d59.patch"; - hash = "sha256-B07vHmSjy5BhhkGSj3e1E0XmMv5/9+mvC/k70Z29VwY="; - } - ) - ++ [ - (substitute { - src = ./libcxxabi/wasm.patch; - substitutions = [ - "--replace-fail" - "/cmake/" - "/llvm/cmake/" - ]; - }) - ] - ++ lib.optional stdenv.hostPlatform.isMusl (substitute { - src = ./libcxx/libcxx-0001-musl-hacks.patch; + patches = lib.optionals (lib.versionOlder metadata.release_version "16") ( + lib.optional (lib.versions.major metadata.release_version == "15") + # See: + # - https://reviews.llvm.org/D133566 + # - https://github.com/NixOS/nixpkgs/issues/214524#issuecomment-1429146432 + # !!! Drop in LLVM 16+ + ( + fetchpatch { + url = "https://github.com/llvm/llvm-project/commit/57c7bb3ec89565c68f858d316504668f9d214d59.patch"; + hash = "sha256-B07vHmSjy5BhhkGSj3e1E0XmMv5/9+mvC/k70Z29VwY="; + } + ) + ++ [ + (substitute { + src = ./libcxxabi/wasm.patch; substitutions = [ "--replace-fail" - "/include/" - "/libcxx/include/" + "/cmake/" + "/llvm/cmake/" ]; }) - ) - ++ - lib.optional - ( - lib.versions.major metadata.release_version == "17" - && stdenv.hostPlatform.isDarwin - && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13" - ) - # https://github.com/llvm/llvm-project/issues/64226 - ( - fetchpatch { - name = "0042-mbstate_t-not-defined.patch"; - url = "https://github.com/macports/macports-ports/raw/acd8acb171f1658596ed1cf25da48d5b932e2d19/lang/llvm-17/files/0042-mbstate_t-not-defined.patch"; - hash = "sha256-jo+DYA6zuSv9OH3A0bYwY5TlkWprup4OKQ7rfK1WHBI="; - } - ) - ++ - lib.optional - ( - lib.versionAtLeast metadata.release_version "18" - && stdenv.hostPlatform.isDarwin - && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13" - ) - # https://github.com/llvm/llvm-project/issues/64226 - (metadata.getVersionFile "libcxx/0001-darwin-10.12-mbstate_t-fix.patch"); + ] + ++ lib.optional stdenv.hostPlatform.isMusl (substitute { + src = ./libcxx/libcxx-0001-musl-hacks.patch; + substitutions = [ + "--replace-fail" + "/include/" + "/libcxx/include/" + ]; + }) + ); stdenv = if stdenv.hostPlatform.isDarwin then overrideCC darwin.bootstrapStdenv buildLlvmTools.clangWithLibcAndBasicRt From e38106815e4e8177b196ddffe2f6dc639c446ea4 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 21:58:41 +0100 Subject: [PATCH 150/693] ld64: remove code for macOS < 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to make `-DPRIVATE` unconditional, as it’s required for a XNU header definition that is only used on `x86_64-darwin`, but was coincidentally getting set by a now‐obsolete compatibility shim. --- pkgs/by-name/ld/ld64/meson.build | 47 ++++---------------------------- 1 file changed, 5 insertions(+), 42 deletions(-) diff --git a/pkgs/by-name/ld/ld64/meson.build b/pkgs/by-name/ld/ld64/meson.build index 84468e6f9938..c9068b75d026 100644 --- a/pkgs/by-name/ld/ld64/meson.build +++ b/pkgs/by-name/ld/ld64/meson.build @@ -25,48 +25,6 @@ openssl = dependency('openssl', version : '>=3.0') xar = cc.find_library('xar') -# Feature tests - -# macOS 10.12 does not support `DISPATCH_APPLY_AUTO`. Fortunately, `DISPATCH_APPLY_CURRENT_ROOT_QUEUE` has the -# same value and was repurposed in subsequent releases as `DISPATCH_APPLY_AUTO`. -dispatch_apply_auto_test = ''' -#include -int main(int argc, char* argv[]) { - dispatch_queue_t queue = DISPATCH_APPLY_AUTO; - return 0; -} -''' -if not cc.compiles( - dispatch_apply_auto_test, - args : '-Wno-unused-command-line-argument', - name : 'supports DISPATCH_APPLY_AUTO', -) - add_project_arguments( - '-include', 'dispatch/private.h', - '-DDISPATCH_APPLY_AUTO=DISPATCH_APPLY_CURRENT_ROOT_QUEUE', - '-DPRIVATE', # The required API is private on the 10.12 SDK. - language: ['c', 'cpp'], - ) -endif - -# The return type of `dispatch_get_global_queue` was changed in 10.14. -# Use the older type if the SDK does not support it. -dispatch_queue_global_test = ''' -#include -int main(int argc, char* argv[]) { - dispatch_queue_global_t queue = dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0); - return 0; -} -''' -if not cc.compiles( - dispatch_queue_global_test, - args : '-Wno-unused-command-line-argument', - name : 'supports dispatch_queue_global_t', -) - add_project_arguments('-Ddispatch_queue_global_t=dispatch_queue_t', language : ['c', 'cpp']) -endif - - # Generated files compile_stubs_h = custom_target( @@ -143,6 +101,11 @@ ld64 = executable( dependencies : [libtapi, openssl, xar], include_directories : incdirs, install : true, + cpp_args : [ + # Required for `_COMM_PAGE_CPU_CAPABILITIES64` in + # on `x86_64-darwin` + '-DPRIVATE', + ], # These linker flags mirror those used in a release build of the Xcode project. # See: https://github.com/apple-oss-distributions/ld64/blob/47f477cb721755419018f7530038b272e9d0cdea/ld64.xcodeproj/project.pbxproj#L1292-L1299. link_args : [ From fa10b9c7f8ab7fba2f285fac32de362fb6924533 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 26 Oct 2024 22:40:52 +0100 Subject: [PATCH 151/693] ld64: use the SDK source release packages --- pkgs/by-name/ld/ld64/package.nix | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/pkgs/by-name/ld/ld64/package.nix b/pkgs/by-name/ld/ld64/package.nix index ce63bfad5e0d..074e92daa725 100644 --- a/pkgs/by-name/ld/ld64/package.nix +++ b/pkgs/by-name/ld/ld64/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, fetchurl, apple-sdk, + apple-sdk_14, cctools, darwin, libtapi, @@ -32,23 +33,11 @@ let hash = "sha256-0ybVcwHuGEdThv0PPjYQc3SW0YVOyrM3/L9zG/l1Vtk="; }; - dyld = fetchFromGitHub { - owner = "apple-oss-distributions"; - repo = "dyld"; - rev = "dyld-1162"; - hash = "sha256-uyFg8QnnP6NWv5lAOTCiFZ0SnFOA/aO/kpjkyvILVsk="; - }; + dyld = apple-sdk_14.sourceRelease "dyld"; libdispatchPrivate = apple-sdk.sourceRelease "libdispatch"; - # First version with all the required definitions. This is used in preference to darwin.xnu to make it easier - # to support Linux and because the version of darwin.xnu available on x86_64-darwin in the 10.12 SDK is too old. - xnu = fetchFromGitHub { - owner = "apple-oss-distributions"; - repo = "xnu"; - rev = "xnu-6153.11.26"; - hash = "sha256-dcnGcp7bIjQxeAn5pXt+mHSYEXb2Ad9Smhd/WUG4kb4="; - }; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "ld64-deps-private-headers"; @@ -167,15 +156,12 @@ stdenv.mkDerivation (finalAttrs: { python3 ]; - buildInputs = - [ - libtapi - llvm - openssl - xar - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.dyld ] - ++ lib.optionals stdenv.hostPlatform.isLinux [ libdispatch ]; + buildInputs = [ + libtapi + llvm + openssl + xar + ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libdispatch ]; # Note for overrides: ld64 cannot be built as a debug build because of UB in its iteration implementations, # which trigger libc++ debug assertions due to trying to take the address of the first element of an emtpy vector. From af82e115592a7290bdbf8c9fbfed3fa783f384d0 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 20:07:39 +0100 Subject: [PATCH 152/693] cctools: remove code for macOS < 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As with ld64, flags added as part of macOS 10.12 compatibility shims (in this case `-undefined dynamic_lookup`) were inadvertently fixing the build. The Xcode project links `otool-classic` and `strip` against `libc++`; why it was previously working on AArch64 without linking against it or passing `-undefined dynamic_lookup`, I can’t fathom. --- ...sat-compatability-with-the-10.12-SDK.patch | 50 ------------------- pkgs/by-name/cc/cctools/meson.build | 20 ++------ pkgs/by-name/cc/cctools/package.nix | 9 +--- 3 files changed, 4 insertions(+), 75 deletions(-) delete mode 100644 pkgs/by-name/cc/cctools/0003-Fix-utimensat-compatability-with-the-10.12-SDK.patch diff --git a/pkgs/by-name/cc/cctools/0003-Fix-utimensat-compatability-with-the-10.12-SDK.patch b/pkgs/by-name/cc/cctools/0003-Fix-utimensat-compatability-with-the-10.12-SDK.patch deleted file mode 100644 index 4abe9ee863aa..000000000000 --- a/pkgs/by-name/cc/cctools/0003-Fix-utimensat-compatability-with-the-10.12-SDK.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 989ba5e30cefa0dd8990da158661713c4a21c0fe Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Thu, 11 Apr 2024 18:05:34 -0400 -Subject: [PATCH 3/6] Fix utimensat compatability with the 10.12 SDK - ---- - include/compat.h | 3 +++ - libstuff/writeout.c | 2 +- - misc/lipo.c | 2 +- - 3 files changed, 5 insertions(+), 2 deletions(-) - create mode 100644 include/compat.h - -diff --git a/include/compat.h b/include/compat.h -new file mode 100644 -index 0000000..8b1b866 ---- /dev/null -+++ b/include/compat.h -@@ -0,0 +1,3 @@ -+#pragma once -+#include -+extern int utimensat(int dirfd, const char* pathname, const struct timespec times[_Nullable 2], int flags); -diff --git a/libstuff/writeout.c b/libstuff/writeout.c -index f904caa..03fa535 100644 ---- a/libstuff/writeout.c -+++ b/libstuff/writeout.c -@@ -297,7 +297,7 @@ no_throttle: - * have been zeroed out when the library was created. writeout - * will not zero out the modification time in the filesystem. - */ -- if (__builtin_available(macOS 10.12, *)) { -+ if (__builtin_available(macOS 10.13, *)) { - struct timespec times[2] = {0}; - memcpy(×[0], &toc_timespec, sizeof(struct timespec)); - memcpy(×[1], &toc_timespec, sizeof(struct timespec)); -diff --git a/misc/lipo.c b/misc/lipo.c -index 04a3eca..887c049 100644 ---- a/misc/lipo.c -+++ b/misc/lipo.c -@@ -607,7 +607,7 @@ unknown_flag: - if(close(fd) == -1) - system_fatal("can't close output file: %s",output_file); - #ifndef __OPENSTEP__ -- if (__builtin_available(macOS 10.12, *)) { -+ if (__builtin_available(macOS 10.13, *)) { - time_result = utimensat(AT_FDCWD, output_file, - output_times, 0); - } --- -2.45.2 - diff --git a/pkgs/by-name/cc/cctools/meson.build b/pkgs/by-name/cc/cctools/meson.build index c2261d98c958..bfb4f06285d7 100644 --- a/pkgs/by-name/cc/cctools/meson.build +++ b/pkgs/by-name/cc/cctools/meson.build @@ -28,26 +28,11 @@ target_prefix = get_option('target_prefix') # Dependencies cc = meson.get_compiler('c') +libcxx = cc.find_library('c++') libcodedirectory = cc.find_library('codedirectory') libprunetrie = cc.find_library('prunetrie') -# Feature tests -# Add compatibility header for Darwin SDKs that don’t define `utimensat`. -utimensat_test = ''' -#include -#include -int main(int argc, char* argv[]) { - utimensat(AT_FDCWD, NULL, NULL, 0); - return 0; -} -''' -if host_machine.system() == 'darwin' and not cc.compiles(utimensat_test, name : 'supports utimensat') - add_project_arguments('-include', 'compat.h', language : 'c') - add_project_link_arguments('-undefined', 'dynamic_lookup', language : 'c') -endif - - incdirs = include_directories('include') # Static libraries @@ -454,6 +439,7 @@ install_man('man/nmedit.1') otool = executable( f'@target_prefix@otool', c_args : ['-DEFI_SUPPORT'], + dependencies : [libcxx], include_directories : incdirs, install : true, link_with : [libstuff], @@ -553,7 +539,7 @@ install_man('man/strings.1') strip = executable( f'@target_prefix@strip', c_args : ['-DTRIE_SUPPORT'], - dependencies : [libcodedirectory, libprunetrie], + dependencies : [libcxx, libcodedirectory, libprunetrie], include_directories : incdirs, install : true, link_with : [libstuff], diff --git a/pkgs/by-name/cc/cctools/package.nix b/pkgs/by-name/cc/cctools/package.nix index 0368a3c4a985..be2e3898cf75 100644 --- a/pkgs/by-name/cc/cctools/package.nix +++ b/pkgs/by-name/cc/cctools/package.nix @@ -5,7 +5,6 @@ buildPackages, ld64, llvm, - memstreamHook, meson, ninja, openssl, @@ -73,9 +72,6 @@ stdenv.mkDerivation (finalAttrs: { ./0001-Fix-build-issues-with-misc-redo_prebinding.c.patch # Use libcd_is_blob_a_linker_signature as defined in the libcodedirectory.h header ./0002-Rely-on-libcd_is_blob_a_linker_signature.patch - # cctools uses availability checks for `utimensat`, but it checks the wrong version. - # Also, provide a definition to avoid implicit function definition errors. - ./0003-Fix-utimensat-compatability-with-the-10.12-SDK.patch # Use the nixpkgs clang’s path as the prefix. ./0004-Use-nixpkgs-clang-with-the-assembler-driver.patch # Make sure cctools can find ld64 in the store @@ -102,9 +98,6 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace misc/libtool.c \ --subst-var-by targetPrefix '${targetPrefix}' - # The version of this file distributed with cctools defines several CPU types missing from the 10.12 SDK. - ln -s machine-cctools.h include/mach/machine.h - # Use libxar from nixpkgs for cctool_src in misc/nm.c otool/print_bitcode.c; do substituteInPlace $cctool_src \ @@ -130,7 +123,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ ld64 llvm - ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ memstreamHook ]; + ]; mesonBuildType = "release"; From 937529bb5178df7221fc4cabcb5faee558bae31e Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 21:50:14 +0100 Subject: [PATCH 153/693] gcc: remove code for macOS < 11 --- .../compilers/gcc/common/pre-configure.nix | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/pkgs/development/compilers/gcc/common/pre-configure.nix b/pkgs/development/compilers/gcc/common/pre-configure.nix index 9e1764eae916..6e22a59d5792 100644 --- a/pkgs/development/compilers/gcc/common/pre-configure.nix +++ b/pkgs/development/compilers/gcc/common/pre-configure.nix @@ -32,42 +32,6 @@ lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) '' export GFORTRAN_FOR_TARGET=${pkgsBuildTarget.gfortran}/bin/${stdenv.targetPlatform.config}-gfortran '' -# NOTE 2020/3/18: This environment variable prevents configure scripts from -# detecting the presence of aligned_alloc on Darwin. There are many facts that -# collectively make this fix necessary: -# - Nix uses a fixed set of standard library headers on all MacOS systems, -# regardless of their actual version. (Nix uses version 10.12 headers.) -# - Nix uses the native standard library binaries for the build system. That -# means the standard library binaries may not exactly match the standard -# library headers. -# - The aligned_alloc procedure is present in MacOS 10.15 (Catalina), but not -# in earlier versions. Therefore on Catalina systems, aligned_alloc is -# linkable (i.e. present in the binary libraries) but not present in the -# headers. -# - Configure scripts detect a procedure's existence by checking whether it is -# linkable. They do not check whether it is present in the headers. -# - GCC throws an error during compilation because aligned_alloc is not -# defined in the headers---even though the linker can see it. -# -# This fix would not be necessary if ANY of the above were false: -# - If Nix used native headers for each different MacOS version, aligned_alloc -# would be in the headers on Catalina. -# - If Nix used the same library binaries for each MacOS version, aligned_alloc -# would not be in the library binaries. -# - If Catalina did not include aligned_alloc, this wouldn't be a problem. -# - If the configure scripts looked for header presence as well as -# linkability, they would see that aligned_alloc is missing. -# - If GCC allowed implicit declaration of symbols, it would not fail during -# compilation even if the configure scripts did not check header presence. -# -+ lib.optionalString (buildPlatform.isDarwin) '' - export build_configargs=ac_cv_func_aligned_alloc=no -'' + lib.optionalString (hostPlatform.isDarwin) '' - export host_configargs=ac_cv_func_aligned_alloc=no -'' + lib.optionalString (targetPlatform.isDarwin) '' - export target_configargs=ac_cv_func_aligned_alloc=no -'' - # In order to properly install libgccjit on macOS Catalina, strip(1) # upon installation must not remove external symbols, otherwise the # install step errors with "symbols referenced by indirect symbol From 63a7b4f14364ba09933c38af0ec462e87d8482fa Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:22:18 +0100 Subject: [PATCH 154/693] python3: remove code for macOS < 11 --- pkgs/development/interpreters/python/cpython/default.nix | 4 ---- pkgs/stdenv/darwin/default.nix | 2 -- 2 files changed, 6 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 20c7c0c145ef..61bf21b99e2d 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -25,7 +25,6 @@ # platform-specific dependencies , bash -, apple-sdk_11 , darwin , windows @@ -178,9 +177,6 @@ let bluez ] ++ optionals enableFramework [ darwin.apple_sdk.frameworks.Cocoa - ] ++ optionals stdenv.hostPlatform.isDarwin [ - # Work around for ld64 crashes on x86_64-darwin. Remove once 11.0 becomes the default. - apple-sdk_11 ] ++ optionals stdenv.hostPlatform.isMinGW [ windows.dlfcn windows.mingw_w64_pthreads diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index ab8eae632978..63050dd3f423 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -669,8 +669,6 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check self = self.python3-bootstrap; pythonAttr = "python3-bootstrap"; enableLTO = false; - # Workaround for ld64 crashes on x86_64-darwin. Remove after 11.0 is made the default. - inherit (prevStage) apple-sdk_11; }; scons = super.scons.override { python3Packages = self.python3.pkgs; }; From b937adc202be021c546a7095d77a9eb9eb0f5dd4 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 155/693] darwin.IOKitTools: remove code for macOS < 11 --- .../apple-source-releases/IOKitTools/package.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/IOKitTools/package.nix b/pkgs/os-specific/darwin/apple-source-releases/IOKitTools/package.nix index 21426257fe35..7d3077b10e4e 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/IOKitTools/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/IOKitTools/package.nix @@ -1,7 +1,6 @@ { lib, - apple-sdk_11, - darwinMinVersionHook, + apple-sdk, mkAppleDerivation, ncurses, pkg-config, @@ -9,8 +8,8 @@ }: let - iokitUser = apple-sdk_11.sourceRelease "IOKitUser"; - xnu = apple-sdk_11.sourceRelease "xnu"; + iokitUser = apple-sdk.sourceRelease "IOKitUser"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "IOKitTools-deps-private-headers"; @@ -52,9 +51,7 @@ mkAppleDerivation { nativeBuildInputs = [ pkg-config ]; buildInputs = [ - apple-sdk_11 - apple-sdk_11.privateFrameworksHook - (darwinMinVersionHook "11.0") + apple-sdk.privateFrameworksHook ncurses ]; From 7b3dd230da3f734ec334bb3c638f766e86ce44cc Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 156/693] darwin.adv_cmds: remove code for macOS < 11 --- .../adv_cmds/meson.build.in | 9 +---- .../adv_cmds/meson.options | 1 - .../adv_cmds/package.nix | 20 ++-------- ...ck-to-task_read_pid-on-older-systems.patch | 38 ------------------- pkgs/stdenv/darwin/default.nix | 6 --- 5 files changed, 5 insertions(+), 69 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/patches/0001-Fall-back-to-task_read_pid-on-older-systems.patch diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in index 69b7d270f17b..66fa5116bf0d 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in @@ -4,8 +4,6 @@ # Project settings project('adv_cmds', 'c', 'cpp', version : '@version@') -sdk_version = get_option('sdk_version') - # Dependencies cc = meson.get_compiler('c') @@ -190,8 +188,7 @@ install_man('ps/ps.1') executable( 'stty', - build_by_default : sdk_version.version_compare('>=11.3'), - install : sdk_version.version_compare('>=11.3'), + install : true, sources : [ 'stty/cchar.c', 'stty/gfmt.c', @@ -202,9 +199,7 @@ executable( 'stty/util.c', ], ) -if sdk_version.version_compare('>=11.3') - install_man('stty/stty.1') -endif +install_man('stty/stty.1') executable( 'tabs', diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options deleted file mode 100644 index 8c4ce874c64c..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options +++ /dev/null @@ -1 +0,0 @@ -option('sdk_version', type : 'string') diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix index 646351716678..f994ab88d029 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix @@ -1,7 +1,6 @@ { lib, apple-sdk, - apple-sdk_11, bison, flex, libxo, @@ -12,9 +11,9 @@ }: let - Libc = apple-sdk_11.sourceRelease "Libc"; - libplatform = apple-sdk_11.sourceRelease "libplatform"; - xnu = apple-sdk_11.sourceRelease "xnu"; + Libc = apple-sdk.sourceRelease "Libc"; + libplatform = apple-sdk.sourceRelease "libplatform"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "adv_cmds-deps-private-headers"; @@ -41,11 +40,6 @@ mkAppleDerivation { xcodeHash = "sha256-2p/JyMPw6acHphvzkaJXPXGwxCUEoxryCejww5kPHvQ="; - patches = [ - # Use older API when running on systems prior to 11.3. - ./patches/0001-Fall-back-to-task_read_pid-on-older-systems.patch - ]; - postPatch = '' # Meson generators require using @BASENAME@ in the output. substituteInPlace mklocale/lex.l \ @@ -67,8 +61,6 @@ mkAppleDerivation { env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include"; buildInputs = [ - # Use the 11.3 SDK because CMake depends on adv_cmds.ps, so it can’t simply be omitted when using an older SDK. - apple-sdk_11 libxo ncurses ]; @@ -79,12 +71,6 @@ mkAppleDerivation { pkg-config ]; - mesonFlags = [ - # Even though adv_cmds is built with a newer SDK, the default SDK is still the deployment target. - # Don’t build packages that use newer APIs unnecessarily. - (lib.mesonOption "sdk_version" (lib.getVersion apple-sdk)) - ]; - postInstall = '' moveToOutput bin/ps "$ps" ln -s "$ps/bin/ps" "$out/bin/ps" diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/patches/0001-Fall-back-to-task_read_pid-on-older-systems.patch b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/patches/0001-Fall-back-to-task_read_pid-on-older-systems.patch deleted file mode 100644 index 8e5f344f6490..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/patches/0001-Fall-back-to-task_read_pid-on-older-systems.patch +++ /dev/null @@ -1,38 +0,0 @@ -From c05a83d29349c6ae2fd8084a48ea51c8e8bf23f2 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sun, 18 Aug 2024 10:29:16 -0400 -Subject: [PATCH] Fall back to `task_read_pid` on older systems - ---- - ps/tasks.c | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/ps/tasks.c b/ps/tasks.c -index d2fcb07..068c985 100644 ---- a/ps/tasks.c -+++ b/ps/tasks.c -@@ -25,8 +25,6 @@ - #include - #include - --extern kern_return_t task_read_for_pid(task_port_t task, pid_t pid, task_port_t *target); -- - #define STATE_MAX 7 - - int -@@ -98,7 +96,11 @@ int get_task_info (KINFO *ki) - ki->state = STATE_MAX; - - pid = KI_PROC(ki)->p_pid; -- error = task_read_for_pid(mach_task_self(), pid, &ki->task); -+ if (__builtin_available(macos 11.3, *)) { -+ error = task_read_for_pid(mach_task_self(), pid, &ki->task); -+ } else { -+ error = task_for_pid(mach_task_self(), pid, &ki->task); -+ } - if (error != KERN_SUCCESS) { - #ifdef DEBUG - mach_error("Error calling task_read_for_pid()", error); --- -2.44.1 - diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 63050dd3f423..46157f4385d3 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -681,12 +681,6 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check postLinkSignHook = prevStage.darwin.postLinkSignHook.override { inherit (selfDarwin) sigtool; }; - adv_cmds = superDarwin.adv_cmds.override { - # Break an infinite recursion between CMake and libtapi. CMake requires adv_cmds.ps, and adv_cmds - # requires a newer SDK that requires libtapi to build, which requires CMake. - inherit (prevStage) apple-sdk_11; - }; - # Rewrap binutils with the real libSystem binutils = superDarwin.binutils.override { inherit (self) coreutils; From c579058789780f869e7377916a8688ceace8f2a2 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 157/693] darwin.copyfile: remove code for macOS < 11 --- .../darwin/apple-source-releases/copyfile/package.nix | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/copyfile/package.nix b/pkgs/os-specific/darwin/apple-source-releases/copyfile/package.nix index 3382128b0e91..1edde5a1d8c6 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/copyfile/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/copyfile/package.nix @@ -1,16 +1,12 @@ { lib, apple-sdk, - apple-sdk_10_13, - apple-sdk_11, mkAppleDerivation, stdenvNoCC, }: let - # The 10.12 SDK doesn’t have the files needed in the same places or possibly at all. - # Just use the 11.x SDK to make things easier. - xnu = apple-sdk_11.sourceRelease "xnu"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "copyfile-deps-private-headers"; @@ -90,9 +86,5 @@ mkAppleDerivation { env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include"; - buildInputs = lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "10.13") [ - (apple-sdk_10_13.override { enableBootstrap = true; }) - ]; - meta.description = "Darwin file copying library"; } From 7dca57603c6ab0d706c38a5392a5306825b1c84b Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 158/693] darwin.diskdev_cmds: remove code for macOS < 11 --- .../diskdev_cmds/meson.build.in | 1 - .../apple-source-releases/diskdev_cmds/package.nix | 12 ++---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/meson.build.in index 719f602ec60d..00270488507a 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/meson.build.in @@ -110,7 +110,6 @@ executable( '-DMNT_STRICTATIME=0x80000000', # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/attr.h#L300 '-DVOL_CAP_FMT_SEALED=0x02000000', - '-D_DARWIN_USE_64_BIT_INODE=1', # Needed with older SDKs to ensure 64-bit `struct statfs`. ], dependencies : [ apfs, libdisk ], include_directories : [ 'edt_fstab', 'fsck.tproj', 'mount_flags_dir' ], diff --git a/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/package.nix index 9487eb189c85..edc71e50e868 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/diskdev_cmds/package.nix @@ -1,7 +1,6 @@ { lib, apple-sdk, - apple-sdk_11, libutil, mkAppleDerivation, removefile, @@ -9,8 +8,8 @@ }: let - Libc = apple-sdk_11.sourceRelease "Libc"; - xnu = apple-sdk_11.sourceRelease "xnu"; + Libc = apple-sdk.sourceRelease "Libc"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "diskdev_cmds-deps-private-headers"; @@ -55,13 +54,6 @@ mkAppleDerivation { '' substituteInPlace mount.tproj/mount.c \ --replace-fail 'sysctlbyname ("vfs.generic.apfs.rosp", &is_rosp, &rospsize, NULL, NULL);' 'sysctlbyname ("vfs.generic.apfs.rosp", &is_rosp, &rospsize, NULL, 0);' - '' - # The first reserved uint32 is used for the extended flags on 11.0 and newer, and - # only use sysexit_np when the version is 10.14 or newer. - + lib.optionalString (lib.versionOlder (lib.getVersion apple-sdk) "11.0") '' - substituteInPlace mount.tproj/mount.c \ - --replace-fail 'sfp->f_flags_ext' 'sfp->f_reserved[0]' \ - --replace-fail 'sysexit == -1' '__builtin_available(macOS 10.14, *) && sysexit == -1' ''; env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include"; From ab0a6abbf9b66573f1c58104272662b7a4a448e0 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 159/693] darwin.file_cmds: remove code for macOS < 11 --- .../file_cmds/meson.build.in | 66 +--------- .../file_cmds/package.nix | 42 ++----- ...tions-of-missing-APIs-for-older-SDKs.patch | 113 ------------------ 3 files changed, 13 insertions(+), 208 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/file_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch diff --git a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in index 170f9ac24243..7fc7ed7d901f 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in @@ -13,7 +13,6 @@ cc = meson.get_compiler('c') core_foundation = dependency('appleframeworks', modules : 'CoreFoundation') -libbsd = dependency('libbsd-overlay', required : false) bzip2 = dependency('bzip2') xz = dependency('liblzma') libxo = dependency('libxo') @@ -24,34 +23,6 @@ removefile = cc.find_library('removefile') libutil = cc.find_library('util') -# Compatibility tests -utimensat_test = ''' -#include -#include -#include -int main(int argc, char* argv[]) { - return utimensat(AT_FDCWD, NULL, NULL, 0); -} -''' - -rpmatch_test = ''' -#include -int main(int argc, char* argv[]) { - return rpmatch("NO"); -} -''' - -has_utimensat = cc.compiles(utimensat_test, name : 'supports utimensat') -utimensat_c_args = has_utimensat ? [ ] : [ '-include', 'time_compat.h', '-I' + meson.source_root() + '/compat' ] -utimensat_sources = has_utimensat ? [ ] : [ 'compat/time_compat.c' ] - -has_rpmatch = cc.compiles(rpmatch_test, name : 'supports rpmatch') -rpmatch_c_args = has_rpmatch ? [ ] : [ '-include', 'rpmatch_compat.h', '-I' + meson.source_root() + '/compat' ] -rpmatch_sources = has_rpmatch ? [ ] : [ 'compat/rpmatch_compat.c' ] - -compat_link_args = not (has_utimensat and has_rpmatch) ? [ '-Wl,-undefined,dynamic_lookup' ] : [ ] - - # Binaries executable( 'chflags', @@ -107,14 +78,10 @@ install_man('cksum/sum.1') executable( 'compress', - c_args : [ utimensat_c_args, rpmatch_c_args ], install : true, - link_args : compat_link_args, sources: [ 'compress/compress.c', 'compress/zopen.c', - utimensat_sources, - rpmatch_sources, ] ) install_man('compress/compress.1') @@ -130,18 +97,11 @@ install_man('compress/zopen.3') executable( 'cp', - c_args : [ - utimensat_c_args, - rpmatch_c_args, - ], dependencies : [ copyfile ], install : true, - link_args : compat_link_args, sources: [ 'cp/cp.c', 'cp/utils.c', - utimensat_sources, - rpmatch_sources, ] ) install_man('cp/cp.1') @@ -213,13 +173,10 @@ install_symlink( executable( 'install-bin', # Meson reserves the name “install”, so use a different name and rename in install phase. - c_args : utimensat_c_args, dependencies : [ copyfile ], install : true, - link_args : compat_link_args, sources: [ 'install/xinstall.c', - utimensat_sources, ], ) install_man('install/install.1') @@ -260,7 +217,7 @@ executable( # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/stat.h#L520 '-DSF_DATALESS=0x40000000', ], - dependencies : [ libbsd, libutil ], + dependencies : [ libutil ], install : true, sources: [ 'ls/cmp.c', @@ -297,17 +254,6 @@ install_man('mknod/mknod.8') executable( 'mtree', - # Define these flags for the 10.12 SDK assuming that users on older systems can’t encounter dataless files. - c_args : [ - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/stat.h#L520 - '-DSF_DATALESS=0x40000000', - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L598 - '-DIOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES=3', - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L640 - '-DIOPOL_MATERIALIZE_DATALESS_FILES_OFF=1', - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/attr.h#L562 - '-DATTR_CMNEXT_LINKID=0x00000010', - ], dependencies : [ core_foundation, removefile ], install : true, sources: [ @@ -328,14 +274,10 @@ install_man('mtree/mtree.8') executable( 'mv', - c_args : [ utimensat_c_args, rpmatch_c_args ], dependencies : [ copyfile ], install : true, - link_args : compat_link_args, sources: [ 'mv/mv.c', - utimensat_sources, - rpmatch_sources, ], ) install_man('mv/mv.1') @@ -375,13 +317,10 @@ install_man('pax/pax.1') executable( 'rm', - c_args : rpmatch_c_args, dependencies : [ removefile ], install : true, - link_args : compat_link_args, sources: [ 'rm/rm.c', - rpmatch_sources, ], ) install_man('rm/rm.1') @@ -424,12 +363,9 @@ install_man('stat/readlink.1') executable( 'touch', - c_args : utimensat_c_args, install : true, - link_args : compat_link_args, sources: [ 'touch/touch.c', - utimensat_sources, ], ) install_man('touch/touch.1') diff --git a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix index a4751bf0757a..93b578b1c008 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix @@ -1,11 +1,9 @@ { lib, apple-sdk, - apple-sdk_11, bzip2, copyfile, less, - libbsd, libutil, libxo, mkAppleDerivation, @@ -20,12 +18,9 @@ let Libc = apple-sdk.sourceRelease "Libc"; Libinfo = apple-sdk.sourceRelease "Libinfo"; - - # The 10.12 SDK doesn’t have the files needed in the same places or possibly at all. - # Just use the 11.0 SDK to make things easier. - CommonCrypto = apple-sdk_11.sourceRelease "CommonCrypto"; - libplatform = apple-sdk_11.sourceRelease "libplatform"; - xnu = apple-sdk_11.sourceRelease "xnu"; + CommonCrypto = apple-sdk.sourceRelease "CommonCrypto"; + libplatform = apple-sdk.sourceRelease "libplatform"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "file_cmds-deps-private-headers"; @@ -46,9 +41,6 @@ let install -D -t "$out/include/System/sys" \ '${xnu}/bsd/sys/fsctl.h' - # Needed by older private headers. - touch "$out/include/CrashReporterClient.h" - mkdir -p "$out/include/apfs" # APFS group is 'J' per https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/vfs/vfs_fsevents.c#L1054 cat < "$out/include/apfs/apfs_fsctl.h" @@ -64,11 +56,6 @@ let #define APFSIOC_XDSTREAM_OBJ_ID _IOWR('J', 53, struct xdstream_obj_id) EOF - # Prevent an error when using the old availability headers from the 10.12 SDK. - substituteInPlace "$out/include/CommonCrypto/CommonDigestSPI.h" \ - --replace-fail 'API_DEPRECATED(CC_DIGEST_DEPRECATION_WARNING, macos(10.4, 10.13), ios(5.0, 11.0))' "" \ - --replace-fail 'API_DEPRECATED(CC_DIGEST_DEPRECATION_WARNING, macos(10.4, 10.15), ios(5.0, 13.0))' "" - cat < "$out/include/sys/types.h" #pragma once #include @@ -108,26 +95,21 @@ mkAppleDerivation { ./patches/0001-Add-missing-extern-unix2003_compat-to-ls.patch # Add missing conditional to avoid using private APFS APIs that we lack headers for using. ./patches/0002-Add-missing-ifdef-for-private-APFS-APIs.patch - # Add implementations of missing functions for older SDKs - ./patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch ]; nativeBuildInputs = [ pkg-config ]; env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include"; - buildInputs = - [ - bzip2 - copyfile - libutil - libxo - removefile - xz - zlib - ] - # ls needs strtonum, which requires the 11.0 SDK. - ++ lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "11.0") [ libbsd ]; + buildInputs = [ + bzip2 + copyfile + libutil + libxo + removefile + xz + zlib + ]; postInstall = '' HOST_PATH='${lib.getBin shell_cmds}/bin' patchShebangs --host "$out/bin" diff --git a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch deleted file mode 100644 index d54ac1fbd295..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch +++ /dev/null @@ -1,113 +0,0 @@ -From 9d21ed4cb6b56966a7962227a33c0e1986996cb1 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sun, 8 Sep 2024 09:46:49 -0400 -Subject: [PATCH 3/3] Add implementations of missing APIs for older SDKs - ---- - compat/rpmatch_compat.c | 10 ++++++++++ - compat/rpmatch_compat.h | 6 ++++++ - compat/time_compat.c | 38 ++++++++++++++++++++++++++++++++++++++ - compat/time_compat.h | 16 ++++++++++++++++ - 4 files changed, 70 insertions(+) - create mode 100644 compat/rpmatch_compat.c - create mode 100644 compat/rpmatch_compat.h - create mode 100644 compat/time_compat.c - create mode 100644 compat/time_compat.h - -diff --git a/compat/rpmatch_compat.c b/compat/rpmatch_compat.c -new file mode 100644 -index 0000000..8eb99c3 ---- /dev/null -+++ b/compat/rpmatch_compat.c -@@ -0,0 +1,10 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#include "rpmatch_compat.h" -+ -+#include -+ -+int rpmatch(const char *response) { -+ return response != NULL && (response[0] == 'y' || response[0] == 'Y'); -+} -diff --git a/compat/rpmatch_compat.h b/compat/rpmatch_compat.h -new file mode 100644 -index 0000000..a13b64b ---- /dev/null -+++ b/compat/rpmatch_compat.h -@@ -0,0 +1,6 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#pragma once -+ -+extern int rpmatch(const char *response); -diff --git a/compat/time_compat.c b/compat/time_compat.c -new file mode 100644 -index 0000000..becf778 ---- /dev/null -+++ b/compat/time_compat.c -@@ -0,0 +1,38 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#include "time_compat.h" -+ -+#define futimens gzip_futimens -+#include "gzip/futimens.c" -+#undef futimens -+ -+#include -+#include -+ -+#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300 -+extern int utimensat(int dirfd, const char* pathname, const struct timespec times[_Nullable 2], int flags); -+extern int futimens(int fd, const struct timespec times[_Nullable 2]); -+#endif -+ -+int compat_utimensat(int dirfd, const char* pathname, const struct timespec times[_Nullable 2], int flags) { -+ if (__builtin_available(macOS 10.13, *)) { -+ return utimensat(dirfd, pathname, times, flags); -+ } else { -+ int fd = openat(dirfd, pathname, flags); -+ if (fd == -1) { return -1; } -+ -+ int retval = compat_futimens(fd, times); -+ if (close(fd) == -1) { return -1; } -+ -+ return retval; -+ } -+} -+ -+int compat_futimens(int fd, const struct timespec times[_Nullable 2]) { -+ if (__builtin_available(macOS 10.13, *)) { -+ return futimens(fd, times); -+ } else { -+ return gzip_futimens(fd, times); -+ } -+} -diff --git a/compat/time_compat.h b/compat/time_compat.h -new file mode 100644 -index 0000000..f07a7ed ---- /dev/null -+++ b/compat/time_compat.h -@@ -0,0 +1,16 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#pragma once -+ -+#include -+ -+// https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/stat.h#L578-L579 -+#define UTIME_NOW -1 -+#define UTIME_OMIT -2 -+ -+#define utimensat compat_utimensat -+#define futimens compat_futimens -+ -+extern int compat_utimensat(int dirfd, const char* pathname, const struct timespec times[_Nullable 2], int flags); -+extern int compat_futimens(int fd, const struct timespec times[_Nullable 2]); --- -2.46.0 - From 1b30d9b9f0eeacfda4e0984bf8603f78864867e6 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 160/693] darwin.libpcap: remove code for macOS < 11 --- .../darwin/apple-source-releases/libpcap/package.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/libpcap/package.nix b/pkgs/os-specific/darwin/apple-source-releases/libpcap/package.nix index 223dc3858a94..0cc81e440070 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/libpcap/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/libpcap/package.nix @@ -1,6 +1,5 @@ { lib, - apple-sdk_11, apple-sdk_15, bison, bluez, @@ -110,8 +109,6 @@ mkAppleDerivation { flex ] ++ lib.optionals withBluez [ bluez.dev ]; - buildInputs = [ apple-sdk_11 ]; - meta = { description = "Packet Capture Library (with Apple modifications)"; mainProgram = "pcap-config"; From ba01760b21f9c9af04d3cd287c94992680ab8fce Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 161/693] darwin.libresolv: remove code for macOS < 11 --- .../apple-source-releases/libresolv/package.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix b/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix index 8bfdeb6bfa27..285ee3b616e3 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/libresolv/package.nix @@ -1,15 +1,15 @@ { lib, - apple-sdk_11, + apple-sdk, mkAppleDerivation, }: let - configd = apple-sdk_11.sourceRelease "configd"; - Libinfo = apple-sdk_11.sourceRelease "Libinfo"; + configd = apple-sdk.sourceRelease "configd"; + Libinfo = apple-sdk.sourceRelease "Libinfo"; # `arpa/nameser_compat.h` is included in the Libc source release instead of libresolv. - Libc = apple-sdk_11.sourceRelease "Libc"; + Libc = apple-sdk.sourceRelease "Libc"; in mkAppleDerivation { releaseName = "libresolv"; @@ -27,13 +27,6 @@ mkAppleDerivation { ln -s "$NIX_BUILD_TOP/$sourceRoot/nameser.h" "$sourceRoot/arpa/nameser.h" ''; - # Remove unsupported availability annotations to support SDK without updated availability headers. - postPatch = '' - substituteInPlace dns_util.h \ - --replace-fail 'API_DEPRECATED_BEGIN("dns_util is deprecated.", macos(10.0, 13.0), ios(1.0, 16.0), watchos(1.0, 9.0), tvos(1.0, 16.0))' "" \ - --replace-fail API_DEPRECATED_END "" - ''; - env.NIX_CFLAGS_COMPILE = "-I${configd}/dnsinfo -I${Libinfo}/lookup.subproj"; postInstall = '' From 5cf94b53c865ceaaf0c7a111c423cdce460fb6bd Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 162/693] darwin.mail_cmds: remove code for macOS < 11 --- .../mail_cmds/meson.build.in | 19 --- .../mail_cmds/package.nix | 9 -- ...tions-of-missing-APIs-for-older-SDKs.patch | 113 ------------------ 3 files changed, 141 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/mail_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch diff --git a/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/meson.build.in index cacd64bb7b55..b4f4f9556a1a 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/meson.build.in @@ -9,28 +9,10 @@ project('mail_cmds', 'c', version : '@version@') cc = meson.get_compiler('c') -# Compatibility tests -utimensat_test = ''' -#include -#include -#include -int main(int argc, char* argv[]) { - return utimensat(AT_FDCWD, NULL, NULL, 0); -} -''' - -has_utimensat = cc.compiles(utimensat_test, name : 'supports utimensat') -utimensat_c_args = has_utimensat ? [ ] : [ '-include', 'time_compat.h', '-I' + meson.source_root() + '/compat' ] -utimensat_sources = has_utimensat ? [ ] : [ 'compat/time_compat.c' ] - -compat_link_args = not has_utimensat ? [ '-Wl,-undefined,dynamic_lookup' ] : [ ] - # Binaries executable( 'mail', - c_args : utimensat_c_args, install : true, - link_args : compat_link_args, sources : [ 'mail/cmd1.c', 'mail/cmd2.c', @@ -55,7 +37,6 @@ executable( 'mail/v7.local.c', 'mail/vars.c', 'mail/version.c', - utimensat_sources, ], ) install_man('mail/mail.1') diff --git a/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/package.nix index b4bbf77a21d9..b29e711251d6 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/package.nix @@ -16,14 +16,5 @@ mkAppleDerivation { xcodeHash = "sha256-6rBflDgQkqWDc8XPLgKIO703bMamg2QlhUnP71hBX3I="; - patches = [ - # Add implementations of missing functions for older SDKs - ./patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch - ]; - - postPatch = '' - cp '${file_cmds.src}/gzip/futimens.c' compat/futimens.c - ''; - meta.description = "Traditional mail command for Darwin"; } diff --git a/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch b/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch deleted file mode 100644 index 7838aa2b7fe9..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/mail_cmds/patches/0003-Add-implementations-of-missing-APIs-for-older-SDKs.patch +++ /dev/null @@ -1,113 +0,0 @@ -From 9d21ed4cb6b56966a7962227a33c0e1986996cb1 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Sun, 8 Sep 2024 09:46:49 -0400 -Subject: [PATCH 3/3] Add implementations of missing APIs for older SDKs - ---- - compat/rpmatch_compat.c | 10 ++++++++++ - compat/rpmatch_compat.h | 6 ++++++ - compat/time_compat.c | 38 ++++++++++++++++++++++++++++++++++++++ - compat/time_compat.h | 16 ++++++++++++++++ - 4 files changed, 70 insertions(+) - create mode 100644 compat/rpmatch_compat.c - create mode 100644 compat/rpmatch_compat.h - create mode 100644 compat/time_compat.c - create mode 100644 compat/time_compat.h - -diff --git a/compat/rpmatch_compat.c b/compat/rpmatch_compat.c -new file mode 100644 -index 0000000..8eb99c3 ---- /dev/null -+++ b/compat/rpmatch_compat.c -@@ -0,0 +1,10 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#include "rpmatch_compat.h" -+ -+#include -+ -+int rpmatch(const char *response) { -+ return response != NULL && (response[0] == 'y' || response[0] == 'Y'); -+} -diff --git a/compat/rpmatch_compat.h b/compat/rpmatch_compat.h -new file mode 100644 -index 0000000..a13b64b ---- /dev/null -+++ b/compat/rpmatch_compat.h -@@ -0,0 +1,6 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#pragma once -+ -+extern int rpmatch(const char *response); -diff --git a/compat/time_compat.c b/compat/time_compat.c -new file mode 100644 -index 0000000..becf778 ---- /dev/null -+++ b/compat/time_compat.c -@@ -0,0 +1,38 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#include "time_compat.h" -+ -+#define futimens gzip_futimens -+#include "compat/futimens.c" -+#undef futimens -+ -+#include -+#include -+ -+#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300 -+extern int utimensat(int dirfd, const char* pathname, const struct timespec times[_Nullable 2], int flags); -+extern int futimens(int fd, const struct timespec times[_Nullable 2]); -+#endif -+ -+int compat_utimensat(int dirfd, const char* pathname, const struct timespec times[_Nullable 2], int flags) { -+ if (__builtin_available(macOS 10.13, *)) { -+ return utimensat(dirfd, pathname, times, flags); -+ } else { -+ int fd = openat(dirfd, pathname, flags); -+ if (fd == -1) { return -1; } -+ -+ int retval = compat_futimens(fd, times); -+ if (close(fd) == -1) { return -1; } -+ -+ return retval; -+ } -+} -+ -+int compat_futimens(int fd, const struct timespec times[_Nullable 2]) { -+ if (__builtin_available(macOS 10.13, *)) { -+ return futimens(fd, times); -+ } else { -+ return gzip_futimens(fd, times); -+ } -+} -diff --git a/compat/time_compat.h b/compat/time_compat.h -new file mode 100644 -index 0000000..f07a7ed ---- /dev/null -+++ b/compat/time_compat.h -@@ -0,0 +1,16 @@ -+// SPDX-License-Identifier: APSL-2.0 -+// utimensat written by Randy Eckenrode © 2024 -+ -+#pragma once -+ -+#include -+ -+// https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/stat.h#L578-L579 -+#define UTIME_NOW -1 -+#define UTIME_OMIT -2 -+ -+#define utimensat compat_utimensat -+#define futimens compat_futimens -+ -+extern int compat_utimensat(int dirfd, const char* pathname, const struct timespec times[_Nullable 2], int flags); -+extern int compat_futimens(int fd, const struct timespec times[_Nullable 2]); --- -2.46.0 - From 6ec624cba0d218fa9e99a364fce7f8c2652c2357 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 163/693] darwin.network_cmds: remove code for macOS < 11 --- .../darwin/apple-source-releases/network_cmds/package.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/network_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/network_cmds/package.nix index d9b115db5742..58defd296f18 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/network_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/network_cmds/package.nix @@ -1,6 +1,6 @@ { lib, - apple-sdk_11, + apple-sdk, developer_cmds, fetchurl, libpcap, @@ -67,7 +67,7 @@ let }; }; - xnu = apple-sdk_11.sourceRelease "xnu"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "network_cmds-deps-private-headers"; @@ -449,7 +449,6 @@ mkAppleDerivation { ]; buildInputs = [ - apple-sdk_11 libpcap libresolv openssl From da2128cb405f9f517e68a36973f4a92b08de35fb Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 164/693] darwin.patch_cmds: remove code for macOS < 11 --- .../darwin/apple-source-releases/patch_cmds/meson.build.in | 4 ---- .../darwin/apple-source-releases/patch_cmds/package.nix | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/meson.build.in index 731c60420a12..9d657d702b7d 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/meson.build.in @@ -8,7 +8,6 @@ project('patch_cmds', 'c', version : '@version@') # Dependencies cc = meson.get_compiler('c') -libbsd = dependency('libbsd-overlay', required : false) libutil = cc.find_library('util') @@ -30,7 +29,6 @@ install_man('cmp/cmp.1') executable( 'diff', - dependencies : [ libbsd ], include_directories : 'diff', install : true, sources : [ @@ -79,7 +77,6 @@ install_man('diffstat/diffstat.1') executable( 'patch', - dependencies : [ libbsd ], include_directories : 'patch', install : true, sources : [ @@ -96,7 +93,6 @@ install_man('patch/patch.1') executable( 'sdiff', - dependencies : [ libbsd ], include_directories : 'sdiff', install : true, sources : [ diff --git a/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/package.nix index 8f1f213ae5c4..86eaba2136e5 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/patch_cmds/package.nix @@ -1,7 +1,6 @@ { lib, apple-sdk, - libbsd, libutil, mkAppleDerivation, pkg-config, @@ -19,10 +18,7 @@ mkAppleDerivation { nativeBuildInputs = [ pkg-config ]; - buildInputs = - [ libutil ] - # diff, patch, and sdiff need `strtonum`, which requires the 11.0 SDK. - ++ lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "11.0") [ libbsd ]; + buildInputs = [ libutil ]; meta = { description = "BSD patch commands for Darwin"; From 94bc3e473a8bf61579908d5e00e1f6268b634709 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 165/693] darwin.removefile: remove code for macOS < 11 --- .../apple-source-releases/removefile/meson.build.in | 9 --------- .../darwin/apple-source-releases/removefile/package.nix | 6 +----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/removefile/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/removefile/meson.build.in index 672a15a40b8e..ad3f05939d5b 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/removefile/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/removefile/meson.build.in @@ -14,15 +14,6 @@ library( 'removefile', c_args : [ '-D__DARWIN_NOW_CANCELABLE=1', - # Define these flags for the 10.12 SDK assuming that users on older systems can’t encounter dataless files. - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/stat.h#L520 - '-DSF_DATALESS=0x40000000', - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L598 - '-DIOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES=3', - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/resource.h#L640 - '-DIOPOL_MATERIALIZE_DATALESS_FILES_OFF=1', - # https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/attr.h#L562 - # '-DATTR_CMNEXT_LINKID=0x00000010', ], install : true, sources : [ diff --git a/pkgs/os-specific/darwin/apple-source-releases/removefile/package.nix b/pkgs/os-specific/darwin/apple-source-releases/removefile/package.nix index b5163b6b4d95..ab9f28605b5a 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/removefile/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/removefile/package.nix @@ -1,15 +1,11 @@ { apple-sdk, - apple-sdk_10_13, - apple-sdk_11, mkAppleDerivation, stdenvNoCC, }: let - # The 10.12 SDK doesn’t have the files needed in the same places or possibly at all. - # Just use the 11.x SDK to make things easier. - xnu = apple-sdk_11.sourceRelease "xnu"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "removefile-deps-private-headers"; From bd002ebb74ef301a8fabd89ea1a7ef5f821167f2 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 166/693] darwin.shell_cmds: remove code for macOS < 11 --- .../shell_cmds/meson.build.in | 3 - .../shell_cmds/package.nix | 62 ++++++------------- 2 files changed, 18 insertions(+), 47 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/meson.build.in index 33612f0cd1f9..d3582b5013f3 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/meson.build.in @@ -15,7 +15,6 @@ host_cxx = meson.get_compiler('cpp') # pam = cc.find_library('pam') -libbsd = dependency('libbsd-overlay', required : false) libedit = dependency('libedit') libresolv = host_cc.find_library('resolv') libsbuf = host_cc.find_library('sbuf') @@ -259,7 +258,6 @@ endforeach executable( 'lockf', - dependencies : [ libbsd ], install : true, sources : [ 'lockf/lockf.c' ], ) @@ -415,7 +413,6 @@ install_man('who/who.1') executable( 'xargs', - dependencies : [ libbsd ], include_directories : 'xargs', install : true, sources : [ diff --git a/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/package.nix index 98c83c1b6306..9d8cd9be2e53 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/shell_cmds/package.nix @@ -4,7 +4,6 @@ bison, clang, fetchurl, - libbsd, libedit, libresolv, libsbuf, @@ -17,15 +16,6 @@ let # nohup requires vproc_priv.h from launchd launchd = apple-sdk.sourceRelease "launchd"; - - oldTime_c = fetchurl { - url = "https://github.com/apple-oss-distributions/shell_cmds/raw/shell_cmds-207.11.1/time/time.c"; - hash = "sha256-f7aRwIaKq6r37jpw0V+1Z/sZs5Rm7vy2S774HNBnwmY="; - }; - oldTime_1 = fetchurl { - url = "https://github.com/apple-oss-distributions/shell_cmds/raw/shell_cmds-207.11.1/time/time.1"; - hash = "sha256-ZIbNJPHLQVGq2tdUB6j0DEp9Hie+XUZkfuQm676Vpwc="; - }; in mkAppleDerivation { releaseName = "shell_cmds"; @@ -37,31 +27,18 @@ mkAppleDerivation { xcodeHash = "sha256-26N7AZV/G+ryc2Nu1v91rEdb1a6jDpnj6t5rzEG2YA4="; - postPatch = - '' - # Fix `mktemp` templates - substituteInPlace sh/mkbuiltins \ - --replace-fail '-t ka' '-t ka.XXXXXX' - substituteInPlace sh/mktokens \ - --replace-fail '-t ka' '-t ka.XXXXXX' + postPatch = '' + # Fix `mktemp` templates + substituteInPlace sh/mkbuiltins \ + --replace-fail '-t ka' '-t ka.XXXXXX' + substituteInPlace sh/mktokens \ + --replace-fail '-t ka' '-t ka.XXXXXX' - # Update `/etc/locate.rc` paths to point to the store. - for path in locate/locate/locate.updatedb.8 locate/locate/locate.rc locate/locate/updatedb.sh; do - substituteInPlace $path --replace-fail '/etc/locate.rc' "$out/etc/locate.rc" - done - '' - # Use an older version of `time.c` that’s compatible with the 10.12 SDK. - + lib.optionalString (lib.versionOlder (lib.getVersion apple-sdk) "10.13") '' - cp '${oldTime_c}' time/time.c - cp '${oldTime_1}' time/time.1 - '' - + lib.optionalString (lib.versionOlder (lib.getVersion apple-sdk) "11.0") '' - # `rpmatch` was added in 11.0, so revert it to a simpler check on older SDKs. - substituteInPlace find/misc.c \ - --replace-fail 'return (rpmatch(resp) == 1);' "return (resp[0] == 'y');" - # Add missing header for older SDKs. - sed -e '1i #include ' -i w/proc_compare.c - ''; + # Update `/etc/locate.rc` paths to point to the store. + for path in locate/locate/locate.updatedb.8 locate/locate/locate.rc locate/locate/updatedb.sh; do + substituteInPlace $path --replace-fail '/etc/locate.rc' "$out/etc/locate.rc" + done + ''; env.NIX_CFLAGS_COMPILE = "-I${launchd}/liblaunch"; @@ -72,16 +49,13 @@ mkAppleDerivation { pkg-config ]; - buildInputs = - [ - libedit - libresolv - libsbuf - libutil - libxo - ] - # xargs needs `strtonum`, which was added in 11.0. - ++ lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "11.0") [ libbsd ]; + buildInputs = [ + libedit + libresolv + libsbuf + libutil + libxo + ]; postInstall = '' # Patch the shebangs to use `sh` from shell_cmds. From 1c0adeb5d45bb2afa4124ff464136fe6f9e2cf8d Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 167/693] darwin.system_cmds: remove code for macOS < 11 We need to pull in an additional XNU header for a tool we are now able to build. --- .../system_cmds/meson.build.in | 49 +++++++------------ .../system_cmds/package.nix | 8 ++- ...lability-checks-to-vm_purgeable_stat.patch | 42 ---------------- 3 files changed, 20 insertions(+), 79 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/system_cmds/patches/0001-Add-availability-checks-to-vm_purgeable_stat.patch diff --git a/pkgs/os-specific/darwin/apple-source-releases/system_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/system_cmds/meson.build.in index 1d6647869cc6..f12b3fe41b92 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/system_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/system_cmds/meson.build.in @@ -76,17 +76,14 @@ install_man('accton/accton.8') executable( 'arch', - build_by_default : sdk_version.version_compare('>=11'), dependencies : [ core_foundation ], - install : sdk_version.version_compare('>=11'), + install : true, sources : 'arch/arch.c', ) -if sdk_version.version_compare('>=11') - install_man( - 'arch/arch.1', - 'arch/machine.1', - ) -endif +install_man( + 'arch/arch.1', + 'arch/machine.1', +) executable( 'at', @@ -192,8 +189,8 @@ install_man('fs_usage/fs_usage.1') executable( 'gcore', # Requires XPC private APIs - build_by_default : false and sdk_version.version_compare('>=11'), - install : false and sdk_version.version_compare('>=11'), + build_by_default : false, + install : false, sources : [ 'gcore/convert.c', 'gcore/corefile.c', @@ -359,13 +356,10 @@ install_man('mkfile/mkfile.8') executable( 'mslutil', - build_by_default : sdk_version.version_compare('>=10.13'), - install : sdk_version.version_compare('>=10.13'), + install : true, sources : 'mslutil/mslutil.c', ) -if sdk_version.version_compare('>=10.13') - install_man('mslutil/mslutil.1') -endif +install_man('mslutil/mslutil.1') executable( 'newgrp', @@ -495,8 +489,8 @@ executable('shutdown', executable( 'stackshot', # Requires private entitlements - build_by_default : false and sdk_version.version_compare('>=10.13'), - install : false and sdk_version.version_compare('>=10.13'), + build_by_default : false, + install : false, sources : 'stackshot/stackshot.c', ) # No man pages for `stackshot`. @@ -520,13 +514,10 @@ install_man( executable( 'taskpolicy', - build_by_default : sdk_version.version_compare('>=11'), - install : sdk_version.version_compare('>=11'), + install : true, sources : 'taskpolicy/taskpolicy.c', ) -if sdk_version.version_compare('>=11') - install_man('taskpolicy/taskpolicy.8') -endif +install_man('taskpolicy/taskpolicy.8') executable( 'vifs', @@ -546,13 +537,10 @@ executable( install_man('vipw/vipw.8') executable('vm_purgeable_stat', - build_by_default : sdk_version.version_compare('>=11'), - install : sdk_version.version_compare('>=11'), + install : true, sources : 'vm_purgeable_stat/vm_purgeable_stat.c', ) -if sdk_version.version_compare('>=11') - install_man('vm_purgeable_stat/vm_purgeable_stat.1') -endif +install_man('vm_purgeable_stat/vm_purgeable_stat.1') executable( 'vm_stat', @@ -593,18 +581,15 @@ install_man('zic/zic.8') executable( 'zlog', - build_by_default : sdk_version.version_compare('>=11'), c_args : '-DKERN_NOT_FOUND=56', dependencies : [ core_foundation, core_symbolication ], - install : sdk_version.version_compare('>=11'), + install : true, sources : [ 'zlog/SymbolicationHelper.c', 'zlog/zlog.c', ], ) -if sdk_version.version_compare('>=11') - install_man('zlog/zlog.1') -endif +install_man('zlog/zlog.1') executable( 'zprint', diff --git a/pkgs/os-specific/darwin/apple-source-releases/system_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/system_cmds/package.nix index b7239730e283..f4d1b83f8c29 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/system_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/system_cmds/package.nix @@ -51,6 +51,9 @@ let chmod -R u+w "$out/include/dispatch" find "$out/include/dispatch" -name '*.h' -exec sed -i {} -e 's/, bridgeos([^)]*)//g' \; + install -D -t "$out/include/System/i386" \ + '${xnu}/osfmk/i386/cpu_capabilities.h' + install -D -t "$out/include/kern" \ '${xnu}/osfmk/kern/debug.h' @@ -81,11 +84,6 @@ mkAppleDerivation { xcodeHash = "sha256-gdtn3zNIneZKy6+X0mQ51CFVLNM6JQYLbd/lotG5/Tw="; - patches = [ - # Use availability checks to fall back to older APIs on older macOS versions. - ./patches/0001-Add-availability-checks-to-vm_purgeable_stat.patch - ]; - postPatch = '' # Replace hard-coded, impure system paths with the output path in the store. sed -e "s|PATH=[^;]*|PATH='$out/bin'|" -i "pagesize/pagesize.sh" diff --git a/pkgs/os-specific/darwin/apple-source-releases/system_cmds/patches/0001-Add-availability-checks-to-vm_purgeable_stat.patch b/pkgs/os-specific/darwin/apple-source-releases/system_cmds/patches/0001-Add-availability-checks-to-vm_purgeable_stat.patch deleted file mode 100644 index 08e5b68cad8f..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/system_cmds/patches/0001-Add-availability-checks-to-vm_purgeable_stat.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 18a676bc44a8bc24374ab35a258a18049b56b6d4 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Mon, 2 Sep 2024 21:46:34 -0400 -Subject: [PATCH] Add availability checks to vm_purgeable_stat - ---- - vm_purgeable_stat/vm_purgeable_stat.c | 12 ++++++++++-- - 1 file changed, 10 insertions(+), 2 deletions(-) - -diff --git a/vm_purgeable_stat/vm_purgeable_stat.c b/vm_purgeable_stat/vm_purgeable_stat.c -index 330704d..9d9041b 100644 ---- a/vm_purgeable_stat/vm_purgeable_stat.c -+++ b/vm_purgeable_stat/vm_purgeable_stat.c -@@ -88,7 +88,11 @@ int get_task_from_pid(int pid, task_t *task) - fprintf(stderr, "%s\n", PRIV_ERR_MSG); - return -1; - } -- kr = task_inspect_for_pid(mach_task_self(), pid, task); -+ if (__builtin_available(macOS 11.3, *)) { -+ kr = task_inspect_for_pid(mach_task_self(), pid, task); -+ } else { -+ kr = task_for_pid(mach_task_self(), pid, task); -+ } - if (kr != KERN_SUCCESS) { - fprintf(stderr, "Failed to get task port for pid: %d\n", pid); - return -1; -@@ -128,7 +132,11 @@ int get_system_tasks(task_array_t *tasks, mach_msg_type_number_t *count) - vm_deallocate(mach_task_self(), (vm_address_t)psets, (vm_size_t)psetCount * sizeof(mach_port_t)); - - /* convert the processor-set-priv to a list of tasks for the processor set */ -- ret = processor_set_tasks_with_flavor(pset_priv, TASK_FLAVOR_INSPECT, tasks, count); -+ if (__builtin_available(macOS 11.0, *)) { -+ ret = processor_set_tasks_with_flavor(pset_priv, TASK_FLAVOR_INSPECT, tasks, count); -+ } else { -+ ret = processor_set_tasks(pset_priv, tasks, count); -+ } - if (ret != KERN_SUCCESS) { - fprintf(stderr, "processor_set_tasks_with_flavor() failed: %s\n", mach_error_string(ret)); - return -1; --- -2.44.1 - From 377c3ff76b3f7d24220d530646afc6928d4152b1 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 168/693] darwin.text_cmds: remove code for macOS < 11 --- .../text_cmds/meson.build.in | 5 +- .../text_cmds/package.nix | 22 ++------ ...ability-check-for-__collate_lookup_l.patch | 54 ------------------- 3 files changed, 5 insertions(+), 76 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/text_cmds/patches/0001-Use-availability-check-for-__collate_lookup_l.patch diff --git a/pkgs/os-specific/darwin/apple-source-releases/text_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/text_cmds/meson.build.in index 6f89b31236b4..c77ea6ef4ffe 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/text_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/text_cmds/meson.build.in @@ -18,7 +18,6 @@ fs = import('fs') cc = meson.get_compiler('c') bzip2 = dependency('bzip2') -libbsd = dependency('libbsd-overlay', required : false) libmd = dependency('libmd') libresolv = cc.find_library('resolv') libutil = cc.find_library('util') @@ -81,7 +80,6 @@ install_man('cat/cat.1') executable( 'col', - dependencies : [ libbsd ], install : true, sources : [ 'col/col.c', @@ -316,7 +314,7 @@ executable( executable( 'split', - dependencies : [ libbsd, libutil ], + dependencies : [ libutil ], install : true, sources : [ 'split/split.c' ], ) @@ -366,7 +364,6 @@ executable( executable( 'uniq', - dependencies : [ libbsd ], install : true, sources : [ 'uniq/uniq.c' ], ) diff --git a/pkgs/os-specific/darwin/apple-source-releases/text_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/text_cmds/package.nix index e97ca8081b75..95867cad1186 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/text_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/text_cmds/package.nix @@ -1,10 +1,8 @@ { lib, apple-sdk, - apple-sdk_11, apple-sdk_13, bzip2, - libbsd, libmd, libresolv, libutil, @@ -22,11 +20,9 @@ let Libc = apple-sdk.sourceRelease "Libc"; Libc_13 = apple-sdk_13.sourceRelease "Libc"; - # The 10.12 SDK doesn’t have the files needed in the same places or possibly at all. - # Just use the 11.0 SDK to make things easier. - CommonCrypto = apple-sdk_11.sourceRelease "CommonCrypto"; - libplatform = apple-sdk_11.sourceRelease "libplatform"; - xnu = apple-sdk_11.sourceRelease "xnu"; + CommonCrypto = apple-sdk.sourceRelease "CommonCrypto"; + libplatform = apple-sdk.sourceRelease "libplatform"; + xnu = apple-sdk.sourceRelease "xnu"; privateHeaders = stdenvNoCC.mkDerivation { name = "text_cmds-deps-private-headers"; @@ -40,12 +36,6 @@ let '${xnu}/libkern/os/base_private.h' install -D -t "$out/include/CommonCrypto" \ '${CommonCrypto}/include/Private/CommonDigestSPI.h' - - # Prevent an error when using the old availability headers from the 10.12 SDK. - substituteInPlace "$out/include/CommonCrypto/CommonDigestSPI.h" \ - --replace-fail 'API_DEPRECATED(CC_DIGEST_DEPRECATION_WARNING, macos(10.4, 10.13), ios(5.0, 11.0))' "" \ - --replace-fail 'API_DEPRECATED(CC_DIGEST_DEPRECATION_WARNING, macos(10.4, 10.15), ios(5.0, 13.0))' "" - touch "$out/include/CrashReporterClient.h" # Needed by older SDK `os/assumes.h` ''; }; in @@ -59,10 +49,6 @@ mkAppleDerivation { xcodeHash = "sha256-dZ+yJyfflhmUyx3gitRXC115QxS87SGC4/HjMa199Ts="; - patches = lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "11.0") [ - ./patches/0001-Use-availability-check-for-__collate_lookup_l.patch - ]; - postPatch = '' # Improve compatiblity with libmd in nixpkgs. @@ -102,7 +88,7 @@ mkAppleDerivation { ncurses xz zlib - ] ++ lib.optionals (lib.versionOlder (lib.getVersion apple-sdk) "11.0") [ libbsd ]; + ]; postInstall = '' # Patch the shebangs to use `sh` from shell_cmds. diff --git a/pkgs/os-specific/darwin/apple-source-releases/text_cmds/patches/0001-Use-availability-check-for-__collate_lookup_l.patch b/pkgs/os-specific/darwin/apple-source-releases/text_cmds/patches/0001-Use-availability-check-for-__collate_lookup_l.patch deleted file mode 100644 index 55d24e5e27e6..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/text_cmds/patches/0001-Use-availability-check-for-__collate_lookup_l.patch +++ /dev/null @@ -1,54 +0,0 @@ -From 11ad41c2d3af88b5cf85d4bc2f5388b65e5ff347 Mon Sep 17 00:00:00 2001 -From: Randy Eckenrode -Date: Mon, 16 Sep 2024 12:42:59 -0400 -Subject: [PATCH] Use availability check for __collate_lookup_l - ---- - tr/str.c | 17 +++++++++++++++-- - 1 file changed, 15 insertions(+), 2 deletions(-) - -diff --git a/tr/str.c b/tr/str.c -index 6a79df2..8226abe 100644 ---- a/tr/str.c -+++ b/tr/str.c -@@ -69,6 +69,7 @@ static void genseq(STR *); - * Using libc internal function __collate_lookup_l for character - * equivalence - */ -+void __collate_lookup(const __darwin_wchar_t *, int *, int *, int *); - void __collate_lookup_l(const __darwin_wchar_t *, int *, int *, int *, - locale_t); - /* -@@ -255,7 +256,13 @@ genequiv(STR *s) - */ - int tprim, tsec; - int len; -- __collate_lookup_l(s->equiv, &len, &tprim, &tsec, LC_GLOBAL_LOCALE); -+ if (__builtin_available(macOS 11.0, *)) { -+ __collate_lookup_l(s->equiv, &len, &tprim, &tsec, LC_GLOBAL_LOCALE); -+ } else { -+ locale_t old = uselocale(LC_GLOBAL_LOCALE); -+ __collate_lookup(s->equiv, &len, &tprim, &tsec); -+ uselocale(old); -+ } - - if (tprim != -1) { - for (p = 1, i = 1; i < NCHARS_SB; i++) { -@@ -270,7 +277,13 @@ genequiv(STR *s) - * perform lookup of primary weight and fill cache - */ - int csec; -- __collate_lookup_l((__darwin_wchar_t *)&i, &len, &cprim, &csec, LC_GLOBAL_LOCALE); -+ if (__builtin_available(macOS 11.0, *)) { -+ __collate_lookup_l((__darwin_wchar_t *)&i, &len, &cprim, &csec, LC_GLOBAL_LOCALE); -+ } else { -+ locale_t old = uselocale(LC_GLOBAL_LOCALE); -+ __collate_lookup((__darwin_wchar_t *)&i, &len, &cprim, &csec); -+ uselocale(old); -+ } - collation_weight_cache[i] = cprim; - } - --- -2.46.0 - From 082b0535df73f898344701a09010ee232c717e2c Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:09:03 +0100 Subject: [PATCH 169/693] darwin.top: remove code for macOS < 11 --- .../os-specific/darwin/apple-source-releases/top/package.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/top/package.nix b/pkgs/os-specific/darwin/apple-source-releases/top/package.nix index f08b9efce1a2..35737d5f748b 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/top/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/top/package.nix @@ -1,5 +1,5 @@ { - apple-sdk_11, + apple-sdk, fetchpatch2, libutil, mkAppleDerivation, @@ -8,7 +8,7 @@ }: let - xnu = apple-sdk_11.sourceRelease "xnu"; + xnu = apple-sdk.sourceRelease "xnu"; in mkAppleDerivation { releaseName = "top"; @@ -33,7 +33,6 @@ mkAppleDerivation { ''; buildInputs = [ - apple-sdk_11 libutil ncurses ]; From c7a0002b0b64c54ea0c28a7f75a3da263d0452b4 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:48:10 +0100 Subject: [PATCH 170/693] nixVersions.{nix_2_24,git}: remove code for macOS < 11 --- pkgs/tools/package-management/nix/default.nix | 27 +++---------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 1a3ac948c0b5..22cb06f0a03d 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -9,7 +9,6 @@ , fetchpatch , fetchpatch2 , runCommand -, overrideSDK , buildPackages , Security @@ -210,22 +209,13 @@ in lib.makeExtensible (self: ({ self_attribute_name = "nix_2_23"; }; - nix_2_24 = (common { + nix_2_24 = common { version = "2.24.10"; hash = "sha256-XdeVy1/d6DEIYb3nOA6JIYF4fwMKNxtwJMgT3pHi+ko="; self_attribute_name = "nix_2_24"; - }).override (lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { - # Fix the following error with the default x86_64-darwin SDK: - # - # error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer - # - # Despite the use of the 10.13 deployment target here, the aligned - # allocation function Clang uses with this setting actually works - # all the way back to 10.6. - stdenv = overrideSDK stdenv { darwinMinVersion = "10.13"; }; - }); + }; - git = (common rec { + git = common rec { version = "2.25.0"; suffix = "pre20241101_${lib.substring 0 8 src.rev}"; src = fetchFromGitHub { @@ -235,16 +225,7 @@ in lib.makeExtensible (self: ({ hash = "sha256-E1Sp0JHtbD1CaGO3UbBH6QajCtOGqcrVfPSKL0n63yo="; }; self_attribute_name = "git"; - }).override (lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { - # Fix the following error with the default x86_64-darwin SDK: - # - # error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer - # - # Despite the use of the 10.13 deployment target here, the aligned - # allocation function Clang uses with this setting actually works - # all the way back to 10.6. - stdenv = overrideSDK stdenv { darwinMinVersion = "10.13"; }; - }); + }; latest = self.nix_2_24; From 726bfb7ca487492ebd31a2a390986ff274e6feba Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:34:18 +0100 Subject: [PATCH 171/693] memstream{,Hook}: drop --- pkgs/by-name/hy/hyx/package.nix | 4 +- pkgs/by-name/no/notemap/package.nix | 3 -- pkgs/by-name/te/telescope/package.nix | 3 +- pkgs/by-name/ti/tintin/package.nix | 4 +- pkgs/by-name/ut/util-linux/package.nix | 4 +- pkgs/by-name/xf/xfitter/package.nix | 4 +- .../libraries/memstream/default.nix | 48 ------------------- .../libraries/memstream/setup-hook.sh | 6 --- .../python-modules/pymupdf/default.nix | 3 +- pkgs/tools/misc/timidity/default.nix | 5 +- pkgs/top-level/aliases.nix | 2 + pkgs/top-level/all-packages.nix | 6 --- 12 files changed, 11 insertions(+), 81 deletions(-) delete mode 100644 pkgs/development/libraries/memstream/default.nix delete mode 100644 pkgs/development/libraries/memstream/setup-hook.sh diff --git a/pkgs/by-name/hy/hyx/package.nix b/pkgs/by-name/hy/hyx/package.nix index e41f9bbfceb2..a33f619af291 100644 --- a/pkgs/by-name/hy/hyx/package.nix +++ b/pkgs/by-name/hy/hyx/package.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, memstreamHook }: +{ lib, stdenv, fetchurl }: stdenv.mkDerivation rec { pname = "hyx"; @@ -14,8 +14,6 @@ stdenv.mkDerivation rec { --replace "-Wl,-z,relro,-z,now -fpic -pie" "" ''; - buildInputs = lib.optional (stdenv.system == "x86_64-darwin") memstreamHook; - installPhase = '' install -vD hyx $out/bin/hyx ''; diff --git a/pkgs/by-name/no/notemap/package.nix b/pkgs/by-name/no/notemap/package.nix index 0611665d6618..040f26752b51 100644 --- a/pkgs/by-name/no/notemap/package.nix +++ b/pkgs/by-name/no/notemap/package.nix @@ -3,7 +3,6 @@ , fetchzip , pkg-config , libressl -, memstreamHook }: stdenv.mkDerivation rec { @@ -21,8 +20,6 @@ stdenv.mkDerivation rec { buildInputs = [ libressl - ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - memstreamHook ]; meta = { diff --git a/pkgs/by-name/te/telescope/package.nix b/pkgs/by-name/te/telescope/package.nix index 801cae0b123c..7f1f23d07ad4 100644 --- a/pkgs/by-name/te/telescope/package.nix +++ b/pkgs/by-name/te/telescope/package.nix @@ -9,7 +9,6 @@ , ncurses , autoreconfHook , buildPackages -, memstreamHook }: stdenv.mkDerivation rec { @@ -39,7 +38,7 @@ stdenv.mkDerivation rec { libgrapheme libressl ncurses - ] ++ lib.optional stdenv.hostPlatform.isDarwin memstreamHook; + ]; configureFlags = [ "HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc" diff --git a/pkgs/by-name/ti/tintin/package.nix b/pkgs/by-name/ti/tintin/package.nix index 6f56512b1da2..a5959098d8aa 100644 --- a/pkgs/by-name/ti/tintin/package.nix +++ b/pkgs/by-name/ti/tintin/package.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, lib, zlib, pcre -, memorymappingHook, memstreamHook +, memorymappingHook , gnutls }: @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { }; buildInputs = [ zlib pcre gnutls ] - ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ]; + ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook ]; preConfigure = '' cd src diff --git a/pkgs/by-name/ut/util-linux/package.nix b/pkgs/by-name/ut/util-linux/package.nix index 6afae4dcc963..1e6569a44dc6 100644 --- a/pkgs/by-name/ut/util-linux/package.nix +++ b/pkgs/by-name/ut/util-linux/package.nix @@ -14,7 +14,6 @@ , installShellFiles , writeSupport ? stdenv.hostPlatform.isLinux , shadowSupport ? stdenv.hostPlatform.isLinux -, memstreamHook , gitUpdater }: @@ -90,8 +89,7 @@ stdenv.mkDerivation rec { ++ lib.optionals pamSupport [ pam ] ++ lib.optionals capabilitiesSupport [ libcap_ng ] ++ lib.optionals ncursesSupport [ ncurses ] - ++ lib.optionals systemdSupport [ systemd ] - ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memstreamHook ]; + ++ lib.optionals systemdSupport [ systemd ]; doCheck = false; # "For development purpose only. Don't execute on production system!" diff --git a/pkgs/by-name/xf/xfitter/package.nix b/pkgs/by-name/xf/xfitter/package.nix index e509f3a005f7..d6d1705054b8 100644 --- a/pkgs/by-name/xf/xfitter/package.nix +++ b/pkgs/by-name/xf/xfitter/package.nix @@ -18,7 +18,7 @@ , qcdnum , root , zlib -, memorymappingHook, memstreamHook +, memorymappingHook }: stdenv.mkDerivation rec { @@ -40,7 +40,7 @@ stdenv.mkDerivation rec { buildInputs = [ apfel blas ceres-solver lhapdf lapack libyaml root qcdnum gsl yaml-cpp zlib ] ++ lib.optionals ("5" == lib.versions.major root.version) [ apfelgrid applgrid ] - ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook memstreamHook ] + ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook ] ++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc ; diff --git a/pkgs/development/libraries/memstream/default.nix b/pkgs/development/libraries/memstream/default.nix deleted file mode 100644 index 7877718e6d35..000000000000 --- a/pkgs/development/libraries/memstream/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{ lib, stdenv, fetchurl }: - -stdenv.mkDerivation rec { - pname = "memstream"; - version = "0.1"; - - src = fetchurl { - url = "https://piumarta.com/software/memstream/memstream-${version}.tar.gz"; - sha256 = "0kvdb897g7nyviaz72arbqijk2g2wa61cmi3l5yh48rzr49r3a3a"; - }; - - postPatch = '' - substituteInPlace Makefile \ - --replace-fail 'cc' '$(CC)' - ''; - - dontConfigure = true; - - postBuild = '' - $AR rcs libmemstream.a memstream.o - ''; - - doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; - checkPhase = '' - runHook preCheck - - ./test | grep "This is a test of memstream" - - runHook postCheck - ''; - - installPhase = '' - runHook preInstall - - install -D libmemstream.a "$out"/lib/libmemstream.a - install -D memstream.h "$out"/include/memstream.h - - runHook postInstall - ''; - - meta = with lib; { - homepage = "https://www.piumarta.com/software/memstream/"; - description = "memstream.c is an implementation of the POSIX function open_memstream() for BSD and BSD-like operating systems"; - license = licenses.mit; - maintainers = with maintainers; [ veprbl ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/development/libraries/memstream/setup-hook.sh b/pkgs/development/libraries/memstream/setup-hook.sh deleted file mode 100644 index 09aabe748841..000000000000 --- a/pkgs/development/libraries/memstream/setup-hook.sh +++ /dev/null @@ -1,6 +0,0 @@ -useMemstream () { - export NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE-}${NIX_CFLAGS_COMPILE:+ }-include memstream.h"; - export NIX_LDFLAGS="${NIX_LDFLAGS-}${NIX_LDFLAGS:+ }-lmemstream"; -} - -postHooks+=(useMemstream) diff --git a/pkgs/development/python-modules/pymupdf/default.nix b/pkgs/development/python-modules/pymupdf/default.nix index 0b30312c480e..1271cd8a0b21 100644 --- a/pkgs/development/python-modules/pymupdf/default.nix +++ b/pkgs/development/python-modules/pymupdf/default.nix @@ -19,7 +19,6 @@ jbig2dec, libjpeg_turbo, gumbo, - memstreamHook, # dependencies mupdf, @@ -75,7 +74,7 @@ buildPythonPackage rec { jbig2dec libjpeg_turbo gumbo - ] ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memstreamHook ]; + ]; propagatedBuildInputs = [ mupdf-cxx ]; diff --git a/pkgs/tools/misc/timidity/default.nix b/pkgs/tools/misc/timidity/default.nix index f41d3b34971a..1ad1a0682b81 100644 --- a/pkgs/tools/misc/timidity/default.nix +++ b/pkgs/tools/misc/timidity/default.nix @@ -3,7 +3,6 @@ , fetchurl , nixosTests , pkg-config -, memstreamHook , CoreAudio , libobjc , libjack2 @@ -31,9 +30,7 @@ stdenv.mkDerivation rec { ./configure-compat.patch ]; - nativeBuildInputs = [ pkg-config ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ memstreamHook ]; - + nativeBuildInputs = [ pkg-config ]; buildInputs = [ libjack2 ncurses diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index d28db7363fe1..eedc995e5431 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -765,6 +765,8 @@ mapAliases { mcomix3 = mcomix; # Added 2022-06-05 mdt = md-tui; # Added 2024-09-03 meme = throw "'meme' has been renamed to/replaced by 'meme-image-generator'"; # Converted to throw 2024-10-17 + memstream = throw "memstream has been removed, as it was only useful on old macOS versions that are no longer supported"; # Added 2024-10-05 + memstreamHook = throw "memstream has been removed, as it was only useful on old macOS versions that are no longer supported"; # Added 2024-10-05 mhwaveedit = throw "'mkwaveedit' has been removed due to lack of maintenance upstream. Consider using 'audacity' or 'tenacity' instead"; microcodeAmd = microcode-amd; # Added 2024-09-08 microcodeIntel = microcode-intel; # Added 2024-09-08 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6018ed75c44d..08afcabfe14d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10360,12 +10360,6 @@ with pkgs; propagatedBuildInputs = [ memorymapping ]; } ../development/libraries/memorymapping/setup-hook.sh; - memstream = callPackage ../development/libraries/memstream { }; - memstreamHook = makeSetupHook { - name = "memstream-hook"; - propagatedBuildInputs = [ memstream ]; - } ../development/libraries/memstream/setup-hook.sh; - mergerfs = callPackage ../tools/filesystems/mergerfs { }; mergerfs-tools = callPackage ../tools/filesystems/mergerfs/tools.nix { }; From 874d326aca331ec8580fddba3e559ce15ba091c4 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 5 Oct 2024 19:37:01 +0100 Subject: [PATCH 172/693] memorymapping{,Hook}: drop --- pkgs/applications/science/physics/crystfel/default.nix | 3 --- pkgs/by-name/ti/tintin/package.nix | 4 +--- pkgs/by-name/xf/xfitter/package.nix | 2 -- pkgs/development/compilers/chicken/5/overrides.nix | 4 +--- pkgs/development/python-modules/rdkit/default.nix | 3 +-- pkgs/top-level/aliases.nix | 2 ++ pkgs/top-level/all-packages.nix | 6 ------ 7 files changed, 5 insertions(+), 19 deletions(-) diff --git a/pkgs/applications/science/physics/crystfel/default.nix b/pkgs/applications/science/physics/crystfel/default.nix index a8f2b65b669f..5c29d9b6f4d5 100644 --- a/pkgs/applications/science/physics/crystfel/default.nix +++ b/pkgs/applications/science/physics/crystfel/default.nix @@ -31,7 +31,6 @@ , gtk3 , gdk-pixbuf , argp-standalone -, memorymappingHook , withGui ? true , withBitshuffle ? true }: @@ -211,8 +210,6 @@ stdenv.mkDerivation rec { ] ++ lib.optionals withGui [ gtk3 gdk-pixbuf ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ argp-standalone - ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isAarch64) [ - memorymappingHook ] ++ lib.optionals withBitshuffle [ hdf5-external-filter-plugins ]; diff --git a/pkgs/by-name/ti/tintin/package.nix b/pkgs/by-name/ti/tintin/package.nix index a5959098d8aa..3dc7884f1f67 100644 --- a/pkgs/by-name/ti/tintin/package.nix +++ b/pkgs/by-name/ti/tintin/package.nix @@ -1,5 +1,4 @@ { stdenv, fetchFromGitHub, lib, zlib, pcre -, memorymappingHook , gnutls }: @@ -14,8 +13,7 @@ stdenv.mkDerivation rec { hash = "sha256-AfWw9CMBAzTTsrZXDEoOdpvUofIQfLCW7hRgSb7LB00="; }; - buildInputs = [ zlib pcre gnutls ] - ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook ]; + buildInputs = [ zlib pcre gnutls ]; preConfigure = '' cd src diff --git a/pkgs/by-name/xf/xfitter/package.nix b/pkgs/by-name/xf/xfitter/package.nix index d6d1705054b8..86dcd3d809d4 100644 --- a/pkgs/by-name/xf/xfitter/package.nix +++ b/pkgs/by-name/xf/xfitter/package.nix @@ -18,7 +18,6 @@ , qcdnum , root , zlib -, memorymappingHook }: stdenv.mkDerivation rec { @@ -40,7 +39,6 @@ stdenv.mkDerivation rec { buildInputs = [ apfel blas ceres-solver lhapdf lapack libyaml root qcdnum gsl yaml-cpp zlib ] ++ lib.optionals ("5" == lib.versions.major root.version) [ apfelgrid applgrid ] - ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook ] ++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc ; diff --git a/pkgs/development/compilers/chicken/5/overrides.nix b/pkgs/development/compilers/chicken/5/overrides.nix index ec465aa8d783..7519fa3852c8 100644 --- a/pkgs/development/compilers/chicken/5/overrides.nix +++ b/pkgs/development/compilers/chicken/5/overrides.nix @@ -106,9 +106,7 @@ in plot = addToBuildInputs pkgs.plotutils; postgresql = addToBuildInputsWithPkgConfig pkgs.postgresql; rocksdb = addToBuildInputs pkgs.rocksdb_8_3; - scheme2c-compatibility = old: - addToNativeBuildInputs (lib.optionals (stdenv.system == "x86_64-darwin") [ pkgs.memorymappingHook ]) - (addPkgConfig old); + scheme2c-compatibility = addPkgConfig; sdl-base = old: ((addToPropagatedBuildInputsWithPkgConfig pkgs.SDL old) // # needed for sdl-config to be in PATH diff --git a/pkgs/development/python-modules/rdkit/default.nix b/pkgs/development/python-modules/rdkit/default.nix index ec98f19c271f..fd66dd16cb90 100644 --- a/pkgs/development/python-modules/rdkit/default.nix +++ b/pkgs/development/python-modules/rdkit/default.nix @@ -17,7 +17,6 @@ numpy, pandas, pillow, - memorymappingHook, }: let external = { @@ -96,7 +95,7 @@ buildPythonPackage rec { eigen inchi maeparser - ] ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook ]; + ]; dependencies = [ numpy diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index eedc995e5431..ae1d95d0365c 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -765,6 +765,8 @@ mapAliases { mcomix3 = mcomix; # Added 2022-06-05 mdt = md-tui; # Added 2024-09-03 meme = throw "'meme' has been renamed to/replaced by 'meme-image-generator'"; # Converted to throw 2024-10-17 + memorymapping = throw "memorymapping has been removed, as it was only useful on old macOS versions that are no longer supported"; # Added 2024-10-05 + memorymappingHook = throw "memorymapping has been removed, as it was only useful on old macOS versions that are no longer supported"; # Added 2024-10-05 memstream = throw "memstream has been removed, as it was only useful on old macOS versions that are no longer supported"; # Added 2024-10-05 memstreamHook = throw "memstream has been removed, as it was only useful on old macOS versions that are no longer supported"; # Added 2024-10-05 mhwaveedit = throw "'mkwaveedit' has been removed due to lack of maintenance upstream. Consider using 'audacity' or 'tenacity' instead"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 08afcabfe14d..243711d6e4a5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10354,12 +10354,6 @@ with pkgs; mediastreamer-openh264 = callPackage ../development/libraries/mediastreamer/msopenh264.nix { }; - memorymapping = callPackage ../development/libraries/memorymapping { }; - memorymappingHook = makeSetupHook { - name = "memorymapping-hook"; - propagatedBuildInputs = [ memorymapping ]; - } ../development/libraries/memorymapping/setup-hook.sh; - mergerfs = callPackage ../tools/filesystems/mergerfs { }; mergerfs-tools = callPackage ../tools/filesystems/mergerfs/tools.nix { }; From 312737ea68be42c32ffce0b355b3fb29b7cb52a2 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 17 Nov 2024 16:27:39 -0800 Subject: [PATCH 173/693] libuv: disable test for darwin sandbox fs_event_watch_delete_dir fails in the darwin sandbox. disable it. --- pkgs/development/libraries/libuv/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/libuv/default.nix b/pkgs/development/libraries/libuv/default.nix index 0916028eaf16..b512e0df1a1d 100644 --- a/pkgs/development/libraries/libuv/default.nix +++ b/pkgs/development/libraries/libuv/default.nix @@ -72,6 +72,7 @@ stdenv.mkDerivation (finalAttrs: { "fs_event_watch_dir_recursive" "fs_event_watch_file" "fs_event_watch_file_current_dir" "fs_event_watch_file_exact_path" "process_priority" "udp_create_early_bad_bind" + "fs_event_watch_delete_dir" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ # fail on macos < 10.15 (starting in libuv 1.47.0) "fs_write_alotof_bufs_with_offset" "fs_write_multiple_bufs" "fs_read_bufs" From 8c4072073225b7dceaafc30086824e6e79e90460 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Sun, 17 Nov 2024 18:14:27 -0700 Subject: [PATCH 174/693] python3Packages.cffi: remove some obsolete darwin patches --- .../clang-pointer-substraction-warning.diff | 11 ----- .../python-modules/cffi/default.nix | 45 ++++++------------- 2 files changed, 13 insertions(+), 43 deletions(-) delete mode 100644 pkgs/development/python-modules/cffi/clang-pointer-substraction-warning.diff diff --git a/pkgs/development/python-modules/cffi/clang-pointer-substraction-warning.diff b/pkgs/development/python-modules/cffi/clang-pointer-substraction-warning.diff deleted file mode 100644 index 75b2677e380e..000000000000 --- a/pkgs/development/python-modules/cffi/clang-pointer-substraction-warning.diff +++ /dev/null @@ -1,11 +0,0 @@ -diff -r c649a735cf82 testing/support.py ---- a/testing/support.py Thu Feb 23 05:42:01 2023 +0100 -+++ b/testing/support.py Sat May 20 21:46:56 2023 -0400 -@@ -112,6 +112,7 @@ - '-Wno-unreachable-code'] - # special things for clang - extra_compile_args.append('-Qunused-arguments') -+ extra_compile_args.append('-Wno-null-pointer-subtraction') - else: - # assume a standard gcc - extra_compile_args = ['-Werror', '-Wall', '-Wextra', '-Wconversion', diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix index cd0e1c143a7f..1d4a498167b8 100644 --- a/pkgs/development/python-modules/cffi/default.nix +++ b/pkgs/development/python-modules/cffi/default.nix @@ -11,9 +11,6 @@ pycparser, }: -let - ccVersion = lib.getVersion stdenv.cc; -in if isPyPy then null else @@ -27,35 +24,19 @@ else hash = "sha256-HDnGAWwyvEjdVFYZUOvWg24WcPKuRhKPZ89J54nFKCQ="; }; - patches = - [ - # - # Trusts the libffi library inside of nixpkgs on Apple devices. - # - # Based on some analysis I did: - # - # https://groups.google.com/g/python-cffi/c/xU0Usa8dvhk - # - # I believe that libffi already contains the code from Apple's fork that is - # deemed safe to trust in cffi. - # - ./darwin-use-libffi-closures.diff - ] - ++ lib.optionals (stdenv.cc.isClang && (ccVersion == "boot" || lib.versionAtLeast ccVersion "13")) [ - # -Wnull-pointer-subtraction is enabled with -Wextra. Suppress it to allow the following tests - # to run and pass when cffi is built with newer versions of clang (including the bootstrap tools clang on Darwin): - # - testing/cffi1/test_verify1.py::test_enum_usage - # - testing/cffi1/test_verify1.py::test_named_pointer_as_argument - ./clang-pointer-substraction-warning.diff - ]; - - postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' - # Remove setup.py impurities - substituteInPlace setup.py \ - --replace "'-iwithsysroot/usr/include/ffi'" "" \ - --replace "'/usr/include/ffi'," "" \ - --replace '/usr/include/libffi' '${lib.getDev libffi}/include' - ''; + patches = [ + # + # Trusts the libffi library inside of nixpkgs on Apple devices. + # + # Based on some analysis I did: + # + # https://groups.google.com/g/python-cffi/c/xU0Usa8dvhk + # + # I believe that libffi already contains the code from Apple's fork that is + # deemed safe to trust in cffi. + # + ./darwin-use-libffi-closures.diff + ]; nativeBuildInputs = [ pkg-config ]; From 77787905e73bf06917f61ace2414034ca7bb4cc6 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Sun, 17 Nov 2024 18:15:55 -0700 Subject: [PATCH 175/693] python3Packages.cffi: disable a test on FreeBSD --- pkgs/development/python-modules/cffi/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix index 1d4a498167b8..6597dd4749d0 100644 --- a/pkgs/development/python-modules/cffi/default.nix +++ b/pkgs/development/python-modules/cffi/default.nix @@ -53,6 +53,11 @@ else nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = lib.optionals stdenv.hostPlatform.isFreeBSD [ + # https://github.com/python-cffi/cffi/pull/144 + "test_dlopen_handle" + ]; + meta = with lib; { changelog = "https://github.com/python-cffi/cffi/releases/tag/v${version}"; description = "Foreign Function Interface for Python calling C code"; From 05a480c3af6fed341033979a2a69dbd46caa5ac2 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:07:43 +1000 Subject: [PATCH 176/693] libgit2: switch to pcre2 pcre is EOL --- pkgs/development/libraries/libgit2/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libgit2/default.nix b/pkgs/development/libraries/libgit2/default.nix index 847894d06587..72c52ea899eb 100644 --- a/pkgs/development/libraries/libgit2/default.nix +++ b/pkgs/development/libraries/libgit2/default.nix @@ -7,7 +7,7 @@ , zlib , libssh2 , openssl -, pcre +, pcre2 , libiconv , Security , staticBuild ? stdenv.hostPlatform.isStatic @@ -35,6 +35,7 @@ stdenv.mkDerivation (finalAttrs: { }; cmakeFlags = [ + "-DREGEX_BACKEND=pcre2" "-DUSE_HTTP_PARSER=system" "-DUSE_SSH=ON" (lib.cmakeBool "USE_GSSAPI" withGssapi) @@ -47,7 +48,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake python3 pkg-config ]; - buildInputs = [ zlib libssh2 openssl pcre llhttp ] + buildInputs = [ zlib libssh2 openssl pcre2 llhttp ] ++ lib.optional withGssapi krb5 ++ lib.optional stdenv.hostPlatform.isDarwin Security; From e8a6b9eff5557491969ba4e7637b57b94be80557 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 10 Nov 2024 11:35:29 +0100 Subject: [PATCH 177/693] bluez.updateScript: init --- pkgs/by-name/bl/bluez/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/bl/bluez/package.nix b/pkgs/by-name/bl/bluez/package.nix index bd9a612416da..8e0bd148de08 100644 --- a/pkgs/by-name/bl/bluez/package.nix +++ b/pkgs/by-name/bl/bluez/package.nix @@ -20,6 +20,7 @@ , gobject-introspection , buildPackages , installTests ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages +, gitUpdater }: stdenv.mkDerivation (finalAttrs: { @@ -168,6 +169,10 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; + passthru.updateScript = gitUpdater { + url = "https://git.kernel.org/pub/scm/bluetooth/bluez.git"; + }; + meta = { homepage = "https://www.bluez.org/"; description = "Official Linux Bluetooth protocol stack"; From 83b7cf4a00c0052c3467896d333c45df1829a1fe Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 10 Nov 2024 11:36:44 +0100 Subject: [PATCH 178/693] bluez: 5.78 -> 5.79 --- pkgs/by-name/bl/bluez/package.nix | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/bl/bluez/package.nix b/pkgs/by-name/bl/bluez/package.nix index 8e0bd148de08..9f215dfc1937 100644 --- a/pkgs/by-name/bl/bluez/package.nix +++ b/pkgs/by-name/bl/bluez/package.nix @@ -25,28 +25,20 @@ stdenv.mkDerivation (finalAttrs: { pname = "bluez"; - version = "5.78"; + version = "5.79"; src = fetchurl { url = "mirror://kernel/linux/bluetooth/bluez-${finalAttrs.version}.tar.xz"; - hash = "sha256-gw/tGRXF03W43g9eb0X83qDcxf9f+z0x227Q8A1zxeM="; + hash = "sha256-QWSlMDqfcccPSMA/9gvjQjG1aNk6mtXnmSjTTmqg6oo="; }; patches = [ - # Upstream fix is wrong: - # https://github.com/bluez/bluez/issues/843#issuecomment-2352696535 - (fetchurl { - name = "basename.patch"; - url = "https://github.com/void-linux/void-packages/raw/187b45d47d93b6857a95cae10c2132d76e4955fc/srcpkgs/bluez/patches/basename.patch"; - hash = "sha256-Jb4u7rxIShDp1yUgaQVDJo2HJfZBzRoVlcDEWxooFgk="; + (fetchpatch { + name = "musl.patch"; + url = "https://git.kernel.org/pub/scm/bluetooth/bluez.git/patch/?id=9d69dba21f1e46b34cdd8ae27fec11d0803907ee"; + hash = "sha256-yMXPRPK8aT+luVoXNxx9zIa4c6E0BKYKS55DCfr8EQ0="; }) - ] ++ lib.optional (stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isx86_64) - # Disable one failing test with musl libc, also seen by alpine - # https://github.com/bluez/bluez/issues/726 - (fetchurl { - url = "https://git.alpinelinux.org/aports/plain/main/bluez/disable_aics_unit_testcases.patch?id=8e96f7faf01a45f0ad8449c1cd825db63a8dfd48"; - hash = "sha256-1PJkipqBO3qxxOqRFQKfpWlne1kzTCgtnTFYI1cFQt4="; - }); + ]; buildInputs = [ alsa-lib From 920dbf9a5618f4ae661a92860e0d0114e12c7b68 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 27 Oct 2024 03:41:51 +0100 Subject: [PATCH 179/693] python311Packages: stop recursing into package set For NixOS 24.11 we are going to support Python 3.12/3.13. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 243711d6e4a5..e88503b23371 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7617,7 +7617,7 @@ with pkgs; python27Packages = python27.pkgs; python39Packages = python39.pkgs; python310Packages = python310.pkgs; - python311Packages = recurseIntoAttrs python311.pkgs; + python311Packages = python311.pkgs; python312Packages = recurseIntoAttrs python312.pkgs; python313Packages = python313.pkgs; python314Packages = python314.pkgs; From 987b804367b616e53f27800a4e32504e96623214 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 27 Oct 2024 03:42:31 +0100 Subject: [PATCH 180/693] python313Packages: recurse into package set Python 3.313 is the latest stable Python release and will be supported through NixOS 24.11 and 25.05. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e88503b23371..b08c0c5cb9ea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7619,7 +7619,7 @@ with pkgs; python310Packages = python310.pkgs; python311Packages = python311.pkgs; python312Packages = recurseIntoAttrs python312.pkgs; - python313Packages = python313.pkgs; + python313Packages = recurseIntoAttrs python313.pkgs; python314Packages = python314.pkgs; pypyPackages = pypy.pkgs; pypy2Packages = pypy2.pkgs; From 53a6655f7225bf5dbd9960251d72ce7223b60bf5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 1 Nov 2024 02:42:56 +0100 Subject: [PATCH 181/693] python313Packages.flit: 3.9.0 -> 3.10.0 https://github.com/pypa/flit/blob/3.10.0/doc/history.rst --- .../python-modules/flit/default.nix | 27 ++++++------ .../flit/python314-compat.patch | 41 ------------------- 2 files changed, 15 insertions(+), 53 deletions(-) delete mode 100644 pkgs/development/python-modules/flit/python314-compat.patch diff --git a/pkgs/development/python-modules/flit/default.nix b/pkgs/development/python-modules/flit/default.nix index 825e4435535a..da47860de927 100644 --- a/pkgs/development/python-modules/flit/default.nix +++ b/pkgs/development/python-modules/flit/default.nix @@ -2,13 +2,20 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system + flit-core, + + # dependencies docutils, + pip, requests, + tomli-w, + + # tests pytestCheckHook, testpath, responses, - flit-core, - tomli-w, }: # Flit is actually an application to build universal wheels. @@ -18,27 +25,23 @@ buildPythonPackage rec { pname = "flit"; - version = "3.9.0"; + version = "3.10.0"; format = "pyproject"; src = fetchFromGitHub { owner = "takluyver"; repo = "flit"; rev = version; - hash = "sha256-yl2+PcKr7xRW4oIBWl+gzh/nKhSNu5GH9fWKRGgaNHU="; + hash = "sha256-4JMoK1UxYcHoSvKDF7Yn4iqMXokyCPCswQknK0a070k="; }; - patches = [ - # https://github.com/pypa/flit/commit/6ab62c91d0db451b5e9ab000f0dba5471550b442.patch - ./python314-compat.patch - ]; + build-system = [ flit-core ]; - nativeBuildInputs = [ flit-core ]; - - propagatedBuildInputs = [ + dependencies = [ docutils - requests flit-core + pip + requests tomli-w ]; diff --git a/pkgs/development/python-modules/flit/python314-compat.patch b/pkgs/development/python-modules/flit/python314-compat.patch deleted file mode 100644 index 439592e3a63b..000000000000 --- a/pkgs/development/python-modules/flit/python314-compat.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 6ab62c91d0db451b5e9ab000f0dba5471550b442 Mon Sep 17 00:00:00 2001 -From: Thomas A Caswell -Date: Tue, 28 May 2024 10:25:13 -0400 -Subject: [PATCH] MNT: fix compatibility with Python 3.14 - -The ast.Str class was deprecated in 3.8 and will be removed in 3.14 ---- - flit_core/flit_core/common.py | 11 +++++++++-- - 1 file changed, 9 insertions(+), 2 deletions(-) - -diff --git a/flit_core/flit_core/common.py b/flit_core/flit_core/common.py -index 6625224b..8bcda3fb 100644 ---- a/flit_core/flit_core/common.py -+++ b/flit_core/flit_core/common.py -@@ -148,6 +148,10 @@ def get_docstring_and_version_via_ast(target): - with target_path.open('rb') as f: - node = ast.parse(f.read()) - for child in node.body: -+ if sys.version_info >= (3, 8): -+ target_type = ast.Constant -+ else: -+ target_type = ast.Str - # Only use the version from the given module if it's a simple - # string assignment to __version__ - is_version_str = ( -@@ -157,10 +161,13 @@ def get_docstring_and_version_via_ast(target): - and target.id == "__version__" - for target in child.targets - ) -- and isinstance(child.value, ast.Str) -+ and isinstance(child.value, target_type) - ) - if is_version_str: -- version = child.value.s -+ if sys.version_info >= (3, 8): -+ version = child.value.value -+ else: -+ version = child.value.s - break - return ast.get_docstring(node), version - From 2c36c0c994f4c7db0d99d1fc1dce9e25d502a408 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 27 Oct 2024 20:21:28 +0100 Subject: [PATCH 182/693] python313Packages.colorlog: fix build --- pkgs/development/python-modules/colorlog/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/colorlog/default.nix b/pkgs/development/python-modules/colorlog/default.nix index 8dfb12cf5f84..f352096610cf 100644 --- a/pkgs/development/python-modules/colorlog/default.nix +++ b/pkgs/development/python-modules/colorlog/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, setuptools, pytestCheckHook, }: @@ -16,6 +17,15 @@ buildPythonPackage rec { hash = "sha256-Pj4HmkH+taG2T5eLXqT0YECpTxHw6Lu4Jh49u+ymTUQ="; }; + patches = [ + (fetchpatch2 { + name = "python313-compat.patch"; + url = "https://github.com/borntyping/python-colorlog/commit/607485def2d60b60c40c0d682574324b47fc30ba.patch"; + hash = "sha256-oO0efAOq7XIwt40Nq5pn2eXen1+p5FiUMDihn8fYAFg="; + includes = [ "colorlog/wrappers.py" ]; + }) + ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "colorlog" ]; From bf586e1e6318c18d414b10740ee18c464f238c84 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 27 Oct 2024 21:36:47 +0100 Subject: [PATCH 183/693] python313Packages.jedi: 0.19.1 -> 0.19.1-unstable-2024-10-17 Fast-forward to git master, which is supposed to get released as 0.19.2 soon. --- .../python-modules/jedi/default.nix | 23 ++++--------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/jedi/default.nix b/pkgs/development/python-modules/jedi/default.nix index b88dc9311e91..b5202d560a3d 100644 --- a/pkgs/development/python-modules/jedi/default.nix +++ b/pkgs/development/python-modules/jedi/default.nix @@ -4,7 +4,6 @@ buildPythonPackage, pythonOlder, fetchFromGitHub, - fetchpatch2, # build-system setuptools, @@ -19,7 +18,7 @@ buildPythonPackage rec { pname = "jedi"; - version = "0.19.1"; + version = "0.19.1-unstable-2024-10-17"; pyproject = true; disabled = pythonOlder "3.6"; @@ -27,22 +26,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "davidhalter"; repo = "jedi"; - rev = "v${version}"; - hash = "sha256-MD7lIKwAwULZp7yLE6jiao2PU6h6RIl0SQ/6b4Lq+9I="; + rev = "30adf43a8929ade8a9e0abee6921a5043c962215"; + hash = "sha256-ytpNKpbaisdd+BXsZBpJV09JRCrX1JcKAelDpIW0bR8="; fetchSubmodules = true; }; - patches = [ - (fetchpatch2 { - # pytest8 compat - url = "https://github.com/davidhalter/jedi/commit/39c8317922f8f0312c12127cad10aea38d0ed7b5.patch"; - hash = "sha256-wXHWcfoRJUl+ADrNMML0+DYTcRTyLs55Qrs7sDqT8BA="; - }) - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ setuptools ]; - - propagatedBuildInputs = [ parso ]; + dependencies = [ parso ]; nativeCheckInputs = [ attrs @@ -58,10 +49,6 @@ buildPythonPackage rec { # sensitive to platform, causes false negatives on darwin "test_import" ] - ++ lib.optionals (stdenv.hostPlatform.isAarch64 && pythonOlder "3.9") [ - # AssertionError: assert 'foo' in ['setup'] - "test_init_extension_module" - ] ++ lib.optionals (stdenv.targetPlatform.useLLVM or false) [ # InvalidPythonEnvironment: The python binary is potentially unsafe. "test_create_environment_executable" From 520e0ed26d32ed01b5c00681cd33a121ef5f95f8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 03:13:28 +0100 Subject: [PATCH 184/693] python313Packages.rpds-py: 0.18.1 -> 0.20.0 --- pkgs/development/python-modules/rpds-py/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/rpds-py/default.nix b/pkgs/development/python-modules/rpds-py/default.nix index 3b6747759867..de6c7a29141f 100644 --- a/pkgs/development/python-modules/rpds-py/default.nix +++ b/pkgs/development/python-modules/rpds-py/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "rpds-py"; - version = "0.18.1"; + version = "0.20.0"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -21,13 +21,13 @@ buildPythonPackage rec { src = fetchPypi { pname = "rpds_py"; inherit version; - hash = "sha256-3Ei0edVAdwyBH70eubortmlRhj5Ejv7C4sECYlMo6S8="; + hash = "sha256-1yohCCT6z9r4dozy18oloELDAyCzAg3i+gRkCSDU4SE="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; - hash = "sha256-caNEmU3K5COYa/UImE4BZYaFTc3Csi3WmnBSbFN3Yn8="; + hash = "sha256-5vbR2EbrAPJ8pb78tj/+r9nOWgQDT5aO/LUQI4kAGjU="; }; nativeBuildInputs = [ From d2751a94792cf7ee8538b3dfee8a86e6362125d0 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 15:13:59 +0100 Subject: [PATCH 185/693] python313Packages.wrapt: 1.16.0 > 1.17.0dev4 https://github.com/GrahamDumpleton/wrapt/compare/refs/tags/1.16.0...1.17.0dev4 --- .../python-modules/wrapt/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/wrapt/default.nix b/pkgs/development/python-modules/wrapt/default.nix index b4c636923b96..59af6a58b8ab 100644 --- a/pkgs/development/python-modules/wrapt/default.nix +++ b/pkgs/development/python-modules/wrapt/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, pytestCheckHook, sphinxHook, sphinx-rtd-theme, @@ -9,27 +10,30 @@ buildPythonPackage rec { pname = "wrapt"; - version = "1.16.0"; - outputs = [ - "out" - "doc" - ]; - format = "setuptools"; + version = "1.17.0dev4"; + pyproject = true; src = fetchFromGitHub { owner = "GrahamDumpleton"; - repo = pname; + repo = "wrapt"; rev = "refs/tags/${version}"; - hash = "sha256-lVpSriXSvRwAKX4iPOIBvJwhqhKjdrUdGaEG4QoTQyo="; + hash = "sha256-q2DYCzTWxGpuIa5v6cyDCTekXfDlFML4eo8J60YdCsc="; }; - nativeCheckInputs = [ pytestCheckHook ]; + build-system = [ setuptools ]; nativeBuildInputs = [ sphinxHook sphinx-rtd-theme ]; + outputs = [ + "out" + "doc" + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "wrapt" ]; meta = with lib; { From 78dd50f7a23db0843be9a615e02c3ac127ae10d4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 15:24:23 +0100 Subject: [PATCH 186/693] python313Packages.curio: 1.6 -> 1.6-unstable-2024-04-11 --- .../python-modules/curio/default.nix | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/curio/default.nix b/pkgs/development/python-modules/curio/default.nix index 434af5cb974a..dbdc54f01b5d 100644 --- a/pkgs/development/python-modules/curio/default.nix +++ b/pkgs/development/python-modules/curio/default.nix @@ -1,33 +1,27 @@ { lib, buildPythonPackage, - fetchPypi, - fetchpatch, - isPy3k, + fetchFromGitHub, + setuptools, pytestCheckHook, sphinx, stdenv, + unstableGitUpdater, }: buildPythonPackage rec { pname = "curio"; - version = "1.6"; - format = "setuptools"; - disabled = !isPy3k; + version = "1.6-unstable-2024-04-11"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-VipYbbICFrp9K+gmPeuesHnlYEj5uJBtEdX0WqgcUkc="; + src = fetchFromGitHub { + owner = "dabeaz"; + repo = "curio"; + rev = "148454621f9bd8dd843f591e87715415431f6979"; + hash = "sha256-WLu7XF5wiVzBRQH1KRdAbhluTvGE7VvnRQUS0c3SUDk="; }; - patches = [ - (fetchpatch { - # Add support for Python 3.12 - # https://github.com/dabeaz/curio/pull/363 - url = "https://github.com/dabeaz/curio/commit/a5590bb04de3f1f201fd1fd0ce9cfe5825db80ac.patch"; - hash = "sha256-dwatxLOPAWLQSyNqJvkx6Cbl327tX9OpZXM5aaDX58I="; - }) - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook @@ -53,6 +47,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "curio" ]; + # curio does not package new releaseas any more + passthru.updateScript = unstableGitUpdater { }; + meta = with lib; { description = "Library for performing concurrent I/O with coroutines in Python"; homepage = "https://github.com/dabeaz/curio"; From d390c9ee82cececccfee9f914e05eb83c80b0ebb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 15:32:41 +0100 Subject: [PATCH 187/693] python313Packages.parameterized: fix tests Kudos to the Gentoo folks for the patch. --- .../development/python-modules/parameterized/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/parameterized/default.nix b/pkgs/development/python-modules/parameterized/default.nix index 8af2b491701d..0379d5c7cb0d 100644 --- a/pkgs/development/python-modules/parameterized/default.nix +++ b/pkgs/development/python-modules/parameterized/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, mock, pytestCheckHook, pythonOlder, @@ -20,6 +21,14 @@ buildPythonPackage rec { hash = "sha256-f8kFJyzvpPNkwaNCnLvpwPmLeTmI77W/kKrIDwjbCbE="; }; + patches = [ + (fetchpatch2 { + name = "parameterized-docstring-3.13-compat.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/parameterized/files/parameterized-0.9.0-py313-test.patch"; + hash = "sha256-tWcN0eRC0oRHrOaa/cctXLhi1WapDKvxO36e6gU6UIk="; + }) + ]; + postPatch = '' # broken with pytest 7 and python 3.12 # https://github.com/wolever/parameterized/issues/167 From fd30f2796b08596646c9a43fd439c4177f53c0ac Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 16:52:18 +0100 Subject: [PATCH 188/693] python313Packages.trustme: 1.1.0 -> 1.2.0 https://trustme.readthedocs.io/en/latest/#trustme-1-2-0-2024-10-07 --- pkgs/development/python-modules/trustme/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/trustme/default.nix b/pkgs/development/python-modules/trustme/default.nix index 297a666dc5b3..dc7ff7816681 100644 --- a/pkgs/development/python-modules/trustme/default.nix +++ b/pkgs/development/python-modules/trustme/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, cryptography, fetchPypi, + hatchling, idna, pyopenssl, pytestCheckHook, @@ -12,17 +13,19 @@ buildPythonPackage rec { pname = "trustme"; - version = "1.1.0"; - format = "setuptools"; + version = "1.2.0"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-U3Wtf7QnB0vslWWS4NTuKkz02miTThukvPQhcSa8ReY="; + hash = "sha256-7SJk+0bDVFnm3p5FTtS6tzvkS2oqJq1Bf5toVK67ZEo="; }; - propagatedBuildInputs = [ + build-system = [ hatchling ]; + + dependencies = [ cryptography idna ]; From e5fb68f685aa5f70cd578cc3c57eef79fbb0c231 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 17:25:49 +0100 Subject: [PATCH 189/693] python313Packages.watchdog: 4.0.2 -> 5.0.3 https://github.com/gorakhargosh/watchdog/blob/v5.0.3/changelog.rst --- .../python-modules/watchdog/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/watchdog/default.nix b/pkgs/development/python-modules/watchdog/default.nix index f9c205f3c725..f12797a153c0 100644 --- a/pkgs/development/python-modules/watchdog/default.nix +++ b/pkgs/development/python-modules/watchdog/default.nix @@ -10,32 +10,32 @@ pytestCheckHook, pythonOlder, pyyaml, + setuptools, apple-sdk_11, }: buildPythonPackage rec { pname = "watchdog"; - version = "4.0.2"; - format = "setuptools"; - - disabled = pythonOlder "3.7"; + version = "5.0.3"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-tN+7bEkiG+RTViPqRHSk1u4KnO9KgLIMKNtNhYtk4nA="; + hash = "sha256-EI9Cp/A0UEKoVNTQrQg0t0HUITMNX1dbgcsnuINQAXY="; }; + build-system = [ setuptools ]; + buildInputs = lib.optional stdenv.hostPlatform.isDarwin apple-sdk_11; optional-dependencies.watchmedo = [ pyyaml ]; nativeCheckInputs = [ - eventlet flaky pytest-cov-stub pytest-timeout pytestCheckHook - ] ++ optional-dependencies.watchmedo; + ] ++ optional-dependencies.watchmedo ++ lib.optionals (pythonOlder "3.13") [ eventlet ]; postPatch = '' substituteInPlace setup.cfg \ From e76fbe62bef07f205ee03548adb079e3db0971ae Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 17:32:57 +0100 Subject: [PATCH 190/693] python313Packages.pure-eval: 0.2.2 -> 0.2.3 https://github.com/alexmojaki/pure_eval/compare/v0.2.2...v0.2.3 --- .../development/python-modules/pure-eval/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pure-eval/default.nix b/pkgs/development/python-modules/pure-eval/default.nix index a94abf72712a..e9c48fe6c51d 100644 --- a/pkgs/development/python-modules/pure-eval/default.nix +++ b/pkgs/development/python-modules/pure-eval/default.nix @@ -9,22 +9,22 @@ }: buildPythonPackage rec { - pname = "pure_eval"; - version = "0.2.2"; + pname = "pure-eval"; + version = "0.2.3"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "alexmojaki"; - repo = pname; + repo = "pure_eval"; rev = "v${version}"; - hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU="; + hash = "sha256-gdP8/MkzTyjkZaWUG5PoaOtBqzbCXYNYBX2XBLWLh18="; }; - buildInputs = [ setuptools-scm ]; + build-system = [ setuptools-scm ]; - propagatedBuildInputs = [ toml ]; + dependencies = [ toml ]; nativeCheckInputs = [ pytestCheckHook ]; From cbe9b6557f052148b275d46cadeb28cc4f967851 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 17:38:48 +0100 Subject: [PATCH 191/693] python313Packages.astroid: 3.3.4 -> 3.3.5 https://github.com/PyCQA/astroid/blob/refs/tags/v3.3.5/ChangeLog --- pkgs/development/python-modules/astroid/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix index 5bf0ab7dfe04..a39b8a395b70 100644 --- a/pkgs/development/python-modules/astroid/default.nix +++ b/pkgs/development/python-modules/astroid/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "astroid"; - version = "3.3.4"; # Check whether the version is compatible with pylint + version = "3.3.5"; # Check whether the version is compatible with pylint pyproject = true; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "PyCQA"; repo = "astroid"; rev = "refs/tags/v${version}"; - hash = "sha256-/VpGniyKzFToDNSnnbYvpUFJjx0Rx9N7x56BJnR0lpk="; + hash = "sha256-IFcBb0BP0FRYCztV3FscBPTDeKrGbr23nxeibSuNRno="; }; nativeBuildInputs = [ setuptools ]; From d27de45c207035e85cce9f8079e831fc9fff843c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 18:07:49 +0100 Subject: [PATCH 192/693] python313Packages.twisted: 24.7.0 -> 24.10.0 https://github.com/twisted/twisted/blob/twisted-24.10.0/NEWS.rst --- .../python-modules/twisted/default.nix | 186 ++++++++++-------- 1 file changed, 105 insertions(+), 81 deletions(-) diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index 6a6b752ab8a2..c8efec9a5e1a 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -2,9 +2,9 @@ lib, stdenv, buildPythonPackage, + pythonAtLeast, pythonOlder, fetchPypi, - fetchpatch, python, # build-system @@ -27,7 +27,6 @@ h2, idna, priority, - pyasn1, pyopenssl, pyserial, service-identity, @@ -41,6 +40,7 @@ # for passthru.tests cassandra-driver, + httpx, klein, magic-wormhole, scrapy, @@ -55,7 +55,7 @@ buildPythonPackage rec { pname = "twisted"; - version = "24.7.0"; + version = "24.10.0"; format = "pyproject"; disabled = pythonOlder "3.6"; @@ -63,25 +63,9 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "tar.gz"; - hash = "sha256-WmAUfwRBh6En7H2pbRcNSbzOUMb9NvWU5g9Fh+/005Q="; + hash = "sha256-ApUSmWcllf6g9w+i1fe149VoNhV+2miFmmrWSS02dW4="; }; - patches = [ - (fetchpatch { - # Conditionally skip tests that require METHOD_CRYPT - # https://github.com/twisted/twisted/pull/11827 - url = "https://github.com/mweinelt/twisted/commit/e69e652de671aac0abf5c7e6c662fc5172758c5a.patch"; - hash = "sha256-LmvKUTViZoY/TPBmSlx4S9FbJNZfB5cxzn/YcciDmoI="; - }) - - (fetchpatch { - name = "python-3.12.6.patch"; - url = "https://github.com/twisted/twisted/commit/3422f7988e3d42e6e5184acd65f103fd28750648.patch"; - excludes = [ ".github/workflows/test.yaml" ]; - hash = "sha256-/UmrHdWaApytkEDZiISjPGzpWv/Yxe/xjvr9GOjMPmQ="; - }) - ]; - __darwinAllowLocalNetworking = true; nativeBuildInputs = [ @@ -101,66 +85,98 @@ buildPythonPackage rec { ]; postPatch = - '' - echo 'ListingTests.test_localeIndependent.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_newFile.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_newSingleDigitDayOfMonth.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_oldFile.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_oldSingleDigitDayOfMonth.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - - echo 'WrapClientTLSParserTests.test_tls.skip = "pyopenssl update"' >> src/twisted/internet/test/test_endpoints.py - echo 'UNIXTestsBuilder_AsyncioSelectorReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - echo 'UNIXTestsBuilder_SelectReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - - echo 'FileObserverTests.test_getTimezoneOffsetEastOfUTC.skip = "mktime argument out of range"'>> src/twisted/test/test_log.py - echo 'FileObserverTests.test_getTimezoneOffsetWestOfUTC.skip = "mktime argument out of range"'>> src/twisted/test/test_log.py - echo 'FileObserverTests.test_getTimezoneOffsetWithoutDaylightSavingTime.skip = "tuple differs, values not"'>> src/twisted/test/test_log.py - - echo 'FileDescriptorTests.test_expectedFDs.skip = "Expected duplicate file descriptor to be greater than original"' >> src/twisted/internet/test/test_posixprocess.py - - echo 'MulticastTests.test_joinLeave.skip = "No such device"'>> src/twisted/test/test_udp.py - echo 'MulticastTests.test_loopback.skip = "No such device"'>> src/twisted/test/test_udp.py - echo 'MulticastTests.test_multicast.skip = "Reactor was unclean"'>> src/twisted/test/test_udp.py - echo 'MulticastTests.test_multiListen.skip = "No such device"'>> src/twisted/test/test_udp.py - - # fails since migrating to libxcrypt - echo 'HelperTests.test_refuteCryptedPassword.skip = "OSError: Invalid argument"' >> src/twisted/conch/test/test_checkers.py - - # expectation mismatch with `python -m twisted --help` and `python -m twisted.trial --help` usage output - echo 'MainTests.test_twisted.skip = "Expectation Mismatch"' >> src/twisted/test/test_main.py - echo 'MainTests.test_trial.skip = "Expectation Mismatch"' >> src/twisted/test/test_main.py - - # tests for missing https support in usage - echo 'ServiceTests.test_HTTPSFailureOnMissingSSL.skip = "Expectation Mismatch"' >> src/twisted/web/test/test_tap.py - - # fail on Python 3.12 - echo 'WorkerReporterTests.test_addSkipPyunit.skip = "'WorkerReporter' object has no attribute '_testStarted'"' >> src/twisted/trial/_dist/test/test_workerreporter.py - echo 'LocalWorkerAMPTests.test_runSkip.skip = "twisted.protocols.amp.UnknownRemoteError: Code: Unknown Error"' >> src/twisted/trial/_dist/test/test_worker.py - - # https://github.com/twisted/twisted/issues/12194 - echo 'FlattenerErrorTests.test_asynchronousFlattenError.skip = "builtins.KeyError: 'root'"' >> src/twisted/web/test/test_flatten.py - echo 'FlattenerErrorTests.test_cancel.skip = "builtins.KeyError: 'root'"' >> src/twisted/web/test/test_flatten.py - - # not packaged - substituteInPlace src/twisted/test/test_failure.py \ - --replace "from cython_test_exception_raiser import raiser # type: ignore[import]" "raiser = None" - '' + let + skippedTests = + { + "src/twisted/conch/test/test_cftp.py" = [ + # timezone issues + "ListingTests.test_localeIndependent" + "ListingTests.test_newSingleDigitDayOfMonth" + "ListingTests.test_oldFile" + "ListingTests.test_oldSingleDigitDayOfMonth" + "ListingTests.test_newFile" + ]; + "src/twisted/test/test_log.py" = [ + # wrong timezone offset calculation + "FileObserverTests.test_getTimezoneOffsetEastOfUTC" + "FileObserverTests.test_getTimezoneOffsetWestOfUTC" + "FileObserverTests.test_getTimezoneOffsetWithoutDaylightSavingTime" + ]; + "src/twisted/test/test_udp.py" = [ + # "No such device" (No multicast support in the build sandbox) + "MulticastTests.test_joinLeave" + "MulticastTests.test_loopback" + "MulticastTests.test_multicast" + "MulticastTests.test_multiListen" + ]; + } + // lib.optionalAttrs (pythonAtLeast "3.12") { + "src/twisted/trial/_dist/test/test_workerreporter.py" = [ + "WorkerReporterTests.test_addSkipPyunit" + ]; + "src/twisted/trial/_dist/test/test_worker.py" = [ + "LocalWorkerAMPTests.test_runSkip" + ]; + } + // lib.optionalAttrs (pythonOlder "3.13") { + # missing ciphers in the crypt module due to libxcrypt + "src/twisted/web/test/test_tap.py" = [ + "ServiceTests.test_HTTPSFailureOnMissingSSL" + "ServiceTests.test_HTTPSFailureOnMissingSSL" + ]; + "src/twisted/conch/test/test_checkers.py" = [ + "HelperTests.test_refuteCryptedPassword" + "HelperTests.test_verifyCryptedPassword" + "HelperTests.test_verifyCryptedPasswordMD5" + "UNIXPasswordDatabaseTests.test_defaultCheckers" + "UNIXPasswordDatabaseTests.test_passInCheckers" + ]; + "src/twisted/cred/test/test_strcred.py" = [ + "UnixCheckerTests.test_isChecker" + "UnixCheckerTests.test_unixCheckerFailsPassword" + "UnixCheckerTests.test_unixCheckerFailsPasswordBytes" + "UnixCheckerTests.test_unixCheckerFailsUsername" + "UnixCheckerTests.test_unixCheckerFailsUsernameBytes" + "UnixCheckerTests.test_unixCheckerSucceeds" + "UnixCheckerTests.test_unixCheckerSucceedsBytes" + "CryptTests.test_verifyCryptedPassword" + "CryptTests.test_verifyCryptedPasswordOSError" + ]; + # dependant on UnixCheckerTests.test_isChecker + "src/twisted/cred/test/test_cred.py" = [ + "HashedPasswordOnDiskDatabaseTests.testBadCredentials" + "HashedPasswordOnDiskDatabaseTests.testGoodCredentials" + "HashedPasswordOnDiskDatabaseTests.testGoodCredentials_login" + "HashedPasswordOnDiskDatabaseTests.testHashedCredentials" + ]; + } + // lib.optionalAttrs (pythonAtLeast "3.13") { + "src/twisted/web/test/test_flatten.py" = [ + "FlattenerErrorTests.test_asynchronousFlattenError" + "FlattenerErrorTests.test_cancel" + ]; + } + // lib.optionalAttrs stdenv.hostPlatform.isDarwin { + "src/twisted/internet/test/test_process.py" = [ + # invalid syntaax + "ProcessTestsBuilder_AsyncioSelectorReactorTests.test_openFileDescriptors" + "ProcessTestsBuilder_SelectReactorTests.test_openFileDescriptors" + # exit code 120 + "ProcessTestsBuilder_AsyncioSelectorReactorTests.test_processEnded" + "ProcessTestsBuilder_SelectReactorTests.test_processEnded" + ]; + }; + in + lib.concatStringsSep "\n" ( + lib.mapAttrsToList ( + file: tests: lib.concatMapStringsSep "\n" (test: ''echo '${test}.skip = ""' >> "${file}"'') tests + ) skippedTests + ) + lib.optionalString stdenv.hostPlatform.isLinux '' - echo 'PTYProcessTestsBuilder_EPollReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'PTYProcessTestsBuilder_PollReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'UNIXTestsBuilder_EPollReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - echo 'UNIXTestsBuilder_PollReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - # Patch t.p._inotify to point to libc. Without this, # twisted.python.runtime.platform.supportsINotify() == False - substituteInPlace src/twisted/python/_inotify.py --replace \ + substituteInPlace src/twisted/python/_inotify.py --replace-fail \ "ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'" - '' - + lib.optionalString stdenv.hostPlatform.isDarwin '' - echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'ProcessTestsBuilder_SelectReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_processEnded.skip = "exit code 120"' >> src/twisted/internet/test/test_process.py - echo 'ProcessTestsBuilder_SelectReactorTests.test_processEnded.skip = "exit code 120"' >> src/twisted/internet/test/test_process.py ''; # Generate Twisted's plug-in cache. Twisted users must do it as well. See @@ -172,12 +188,10 @@ buildPythonPackage rec { nativeCheckInputs = [ - cython-test-exception-raiser git glibcLocales - hypothesis - pyhamcrest ] + ++ optional-dependencies.test ++ optional-dependencies.conch ++ optional-dependencies.http2 ++ optional-dependencies.serial @@ -186,11 +200,16 @@ buildPythonPackage rec { !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) ) optional-dependencies.tls; - checkPhase = '' + preCheck = '' export SOURCE_DATE_EPOCH=315532800 export PATH=$out/bin:$PATH + ''; + + checkPhase = '' + runHook preCheck # race conditions when running in paralell ${python.interpreter} -m twisted.trial -j1 twisted + runHook postCheck ''; optional-dependencies = { @@ -198,13 +217,18 @@ buildPythonPackage rec { appdirs bcrypt cryptography - pyasn1 ]; http2 = [ h2 priority ]; serial = [ pyserial ]; + test = [ + cython-test-exception-raiser + pyhamcrest + hypothesis + httpx + ] ++ httpx.optional-dependencies.http2; tls = [ idna pyopenssl From a0c33425f12ecdfc3c456ff2d0d801a161e59eca Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 18:09:17 +0100 Subject: [PATCH 193/693] python313Packages.cython_0: disable --- pkgs/development/python-modules/cython/0.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/cython/0.nix b/pkgs/development/python-modules/cython/0.nix index a484892c0040..8362d6e322ca 100644 --- a/pkgs/development/python-modules/cython/0.nix +++ b/pkgs/development/python-modules/cython/0.nix @@ -7,6 +7,7 @@ setuptools, python, pkg-config, + pythonAtLeast, gdb, numpy, ncurses, @@ -35,6 +36,9 @@ buildPythonPackage rec { version = "0.29.36"; pyproject = true; + # error: too few arguments to function '_PyLong_AsByteArray' + disabled = pythonAtLeast "3.13"; + src = fetchPypi { pname = "Cython"; inherit version; From 9cd69975e3106a939c4513fdc4c3ce643f51ec9b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 18:16:11 +0100 Subject: [PATCH 194/693] python313Packages.pyflakes: disable failing tests --- pkgs/development/python-modules/pyflakes/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix index aaf9e961cb23..4550ca77e02b 100644 --- a/pkgs/development/python-modules/pyflakes/default.nix +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + pythonAtLeast, pythonOlder, fetchFromGitHub, setuptools, @@ -26,6 +27,11 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = lib.optionals (pythonAtLeast "3.13") [ + # https://github.com/PyCQA/pyflakes/issues/812 + "test_errors_syntax" + ]; + pythonImportsCheck = [ "pyflakes" ]; meta = with lib; { From c6d7e26b9f24f8f9a71b0599def49fc8d535c407 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 19:36:28 +0100 Subject: [PATCH 195/693] python313Packages.oauthlib: disable failing test Python 3.13 started dedenting multiline strings, which made this test fail. --- .../development/python-modules/oauthlib/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/oauthlib/default.nix b/pkgs/development/python-modules/oauthlib/default.nix index fbbc8a6a1ad9..ea504ea4f621 100644 --- a/pkgs/development/python-modules/oauthlib/default.nix +++ b/pkgs/development/python-modules/oauthlib/default.nix @@ -7,6 +7,7 @@ mock, pyjwt, pytestCheckHook, + pythonAtLeast, pythonOlder, setuptools, @@ -47,10 +48,14 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); - disabledTests = [ - # https://github.com/oauthlib/oauthlib/issues/877 - "test_rsa_bad_keys" - ]; + disabledTests = + [ + # https://github.com/oauthlib/oauthlib/issues/877 + "test_rsa_bad_keys" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + "test_filter_params" + ]; pythonImportsCheck = [ "oauthlib" ]; From ddc3140a998c002f9d20e12ccca1c65127d4626b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 19:37:54 +0100 Subject: [PATCH 196/693] gpgme: add python3.13 support --- pkgs/development/libraries/gpgme/default.nix | 2 ++ .../libraries/gpgme/python313-support.patch | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/development/libraries/gpgme/python313-support.patch diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index 45df332bc0ca..d9b2f9cdb182 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -43,6 +43,8 @@ stdenv.mkDerivation rec { patches = [ # Support Python 3.10-3.12, remove distutils, https://dev.gnupg.org/D545 ./python-310-312-remove-distutils.patch + # Support Python 3.13 + ./python313-support.patch # Fix a test after disallowing compressed signatures in gpg (PR #180336) ./test_t-verify_double-plaintext.patch # Don't use deprecated LFS64 APIs (removed in musl 1.2.4) diff --git a/pkgs/development/libraries/gpgme/python313-support.patch b/pkgs/development/libraries/gpgme/python313-support.patch new file mode 100644 index 000000000000..0ddfca9a0ded --- /dev/null +++ b/pkgs/development/libraries/gpgme/python313-support.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index ae4c7da0..9a0401aa 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -591,7 +591,7 @@ if test "$found_py" = "1"; then + # Reset everything, so that we can look for another Python. + m4_foreach([mym4pythonver], + [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[3.10], +- [3.11],[3.12],[all]], ++ [3.11],[3.12],[3.13],[all]], + [unset PYTHON + unset PYTHON_VERSION + unset PYTHON_CPPFLAGS From d6c1a5e4e205045d549cba78f3df520f19a558cc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 22:04:57 +0100 Subject: [PATCH 197/693] python3.pkgs.pythonRuntimeDepsCheckHook: allow prereleases Updating to prereleases should be possible, but making this an option is difficult, given that for packages with many consumers you would have to set it in each consumer. We thoroughly test the package set, so allowing prereleases unconditionally shouldn't be too bad. Closes: #301698 --- .../python/hooks/python-runtime-deps-check-hook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py index 36ce389de50f..e620a17a5d7b 100644 --- a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py +++ b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py @@ -78,6 +78,9 @@ def test_requirement(requirement: Requirement) -> bool: error(f"{package_name} not installed") return False + # Allow prereleases, to give to give us some wiggle-room + requirement.specifier.prereleases = True + if requirement.specifier and package.version not in requirement.specifier: error( f"{package_name}{requirement.specifier} not satisfied by version {package.version}" From e45ee06a8731823a10f8d9fa860174ddd3b46fee Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 22:19:03 +0100 Subject: [PATCH 198/693] python313Packages.toolz: 0.12.1 -> 1.0.0 https://github.com/pytoolz/toolz/releases/tag/1.0.0 --- pkgs/development/python-modules/toolz/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/toolz/default.nix b/pkgs/development/python-modules/toolz/default.nix index 4d4e0a71c74d..6312d9a4f958 100644 --- a/pkgs/development/python-modules/toolz/default.nix +++ b/pkgs/development/python-modules/toolz/default.nix @@ -2,19 +2,22 @@ lib, buildPythonPackage, fetchPypi, + setuptools, pytestCheckHook, }: buildPythonPackage rec { pname = "toolz"; - version = "0.12.1"; - format = "setuptools"; + version = "1.0.0"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-7Mo0JmSJPxd6E9rA5rQcvYrCWjWOXyFTFtQ+IQAiT00="; + hash = "sha256-LIbj2aBHmKxVZ5O87YOIFilqLwhQF2ZOSZXLQKEEegI="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ @@ -24,6 +27,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/pytoolz/toolz"; + changelog = "https://github.com/pytoolz/toolz/releases/tag/${version}"; description = "List processing tools and functional utilities"; license = licenses.bsd3; }; From 35a944f30c5cac6a6160d746fbdacf1b3388faf1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Oct 2024 22:33:29 +0100 Subject: [PATCH 199/693] python313Packages.pytest-doctestplus: fix tests --- .../python-modules/pytest-doctestplus/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/pytest-doctestplus/default.nix b/pkgs/development/python-modules/pytest-doctestplus/default.nix index 64aae4d60ad2..911d834c26bb 100644 --- a/pkgs/development/python-modules/pytest-doctestplus/default.nix +++ b/pkgs/development/python-modules/pytest-doctestplus/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, gitMinimal, numpy, packaging, @@ -24,6 +25,14 @@ buildPythonPackage rec { hash = "sha256-JHKoosjOo00vZfZJlUP663SO7LWcWXhS/ZiDm0cwdnk="; }; + patches = [ + (fetchpatch2 { + name = "python313-compat.patch"; + url = "https://github.com/scientific-python/pytest-doctestplus/commit/aee0be27a8e8753ac68adc035f098ccc7a9e3678.patch"; + hash = "sha256-UOG664zm7rJIjm/OXNu6N6jlINNB6UDZOCSUZxy3HrQ="; + }) + ]; + postPatch = '' substituteInPlace pytest_doctestplus/plugin.py \ --replace-fail '"git"' '"${lib.getExe gitMinimal}"' From 6cad9267f80918f7e727ea20c70becf77c7f2076 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 29 Oct 2024 04:08:36 +0100 Subject: [PATCH 200/693] python312Packages.cython_0: 0.29.36 -> 0.29.37.1 https://github.com/cython/cython/blob/0.29.37.1/CHANGES.rst --- pkgs/development/python-modules/cython/0.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/cython/0.nix b/pkgs/development/python-modules/cython/0.nix index 8362d6e322ca..3f360fbb704e 100644 --- a/pkgs/development/python-modules/cython/0.nix +++ b/pkgs/development/python-modules/cython/0.nix @@ -2,7 +2,7 @@ lib, stdenv, buildPythonPackage, - fetchPypi, + fetchFromGitHub, fetchpatch, setuptools, python, @@ -33,16 +33,17 @@ let in buildPythonPackage rec { pname = "cython"; - version = "0.29.36"; + version = "0.29.37.1"; pyproject = true; # error: too few arguments to function '_PyLong_AsByteArray' disabled = pythonAtLeast "3.13"; - src = fetchPypi { - pname = "Cython"; - inherit version; - hash = "sha256-QcDP0tdU44PJ7rle/8mqSrhH0Ml0cHfd18Dctow7wB8="; + src = fetchFromGitHub { + owner = "cython"; + repo = "cython"; + rev = "refs/tags/${version}"; + hash = "sha256-XsEy2NrG7hq+VXRCRbD4BRaBieU6mVoE0GT52L3mMhs="; }; nativeBuildInputs = [ From 26050b09dc835be830b193d55b3bb9852621b515 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 29 Oct 2024 04:12:50 +0100 Subject: [PATCH 201/693] python313Packages.psycopg2: 2.9.9 -> 2.9.10 --- pkgs/development/python-modules/psycopg2/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/psycopg2/default.nix b/pkgs/development/python-modules/psycopg2/default.nix index aaab94547a02..5b8501a29cdb 100644 --- a/pkgs/development/python-modules/psycopg2/default.nix +++ b/pkgs/development/python-modules/psycopg2/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "psycopg2"; - version = "2.9.9"; + version = "2.9.10"; format = "setuptools"; # Extension modules don't work well with PyPy. Use psycopg2cffi instead. @@ -29,7 +29,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-0UVL3pP7HiJBZoEWlNYA50ZDDABvuwMeoG7MLqQb8VY="; + hash = "sha256-EuwLQLAnP5UpYjPodQRBM5KY5qVy9wOdpbJg48i2DhE="; }; postPatch = '' From ff16cceabe6f06a58403aab0a1b5fcfe2bc86fa5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 29 Oct 2024 14:38:23 +0100 Subject: [PATCH 202/693] python312Packages.redis: 5.1.1 -> 5.2.0 https://github.com/redis/redis-py/releases/tag/v5.2.0 --- pkgs/development/python-modules/redis/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/redis/default.nix b/pkgs/development/python-modules/redis/default.nix index 8ad583fcf7b1..bada45ae9097 100644 --- a/pkgs/development/python-modules/redis/default.nix +++ b/pkgs/development/python-modules/redis/default.nix @@ -22,14 +22,14 @@ buildPythonPackage rec { pname = "redis"; - version = "5.1.1"; + version = "5.2.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-9smXUh/tuuUzhzB8XQv3hNmswo2fHQWKvqxWbsTb7XI="; + hash = "sha256-CxCHZlp3Gx/y4AOqW901TxWnDJ4l1afb+cciwWUop7A="; }; propagatedBuildInputs = [ From 92fbead477ae585c45e79131d79e7e3168ea0337 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 29 Oct 2024 14:42:32 +0100 Subject: [PATCH 203/693] python312Packages.fakeredis: 2.25.1 -> 2.26.1 https://github.com/cunla/fakeredis-py/releases/tag/v2.26.1 --- .../python-modules/fakeredis/default.nix | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/fakeredis/default.nix b/pkgs/development/python-modules/fakeredis/default.nix index 4a98f804f9cb..9b6b4e054e6d 100644 --- a/pkgs/development/python-modules/fakeredis/default.nix +++ b/pkgs/development/python-modules/fakeredis/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "fakeredis"; - version = "2.25.1"; + version = "2.26.1"; pyproject = true; disabled = pythonOlder "3.7"; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "dsoftwareinc"; repo = "fakeredis-py"; rev = "refs/tags/v${version}"; - hash = "sha256-HjId4SueqkbC319Eel8G85ZOj72ZKEVEH2D8V/GfXi4="; + hash = "sha256-eBWdrN6QfrZaavKGuVMaU0s+k0VpsBCIaIzuxC7HyYE="; }; build-system = [ poetry-core ]; @@ -37,13 +37,6 @@ buildPythonPackage rec { sortedcontainers ]; - nativeCheckInputs = [ - hypothesis - pytest-asyncio - pytest-mock - pytestCheckHook - ]; - optional-dependencies = { lua = [ lupa ]; json = [ jsonpath-ng ]; @@ -52,6 +45,13 @@ buildPythonPackage rec { probabilistic = [ pyprobables ]; }; + nativeCheckInputs = [ + hypothesis + pytest-asyncio + pytest-mock + pytestCheckHook + ]; + pythonImportsCheck = [ "fakeredis" ]; pytestFlagsArray = [ "-m 'not slow'" ]; @@ -65,11 +65,6 @@ buildPythonPackage rec { kill $REDIS_PID ''; - disabledTests = [ - # AssertionError - "test_command" - ]; - meta = with lib; { description = "Fake implementation of Redis API"; homepage = "https://github.com/dsoftwareinc/fakeredis-py"; From 26608c5e4a43987a69d843247a4aefda276a1d02 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 31 Oct 2024 11:18:07 +0100 Subject: [PATCH 204/693] python313Packages.watchfiles: 0.22.0 -> 0.24.0 https://github.com/samuelcolvin/watchfiles/compare/refs/tags/v0.22.0...v0.24.0 --- .../python-modules/watchfiles/Cargo.lock | 532 ++++++++++++++++++ .../python-modules/watchfiles/default.nix | 11 +- 2 files changed, 537 insertions(+), 6 deletions(-) create mode 100644 pkgs/development/python-modules/watchfiles/Cargo.lock diff --git a/pkgs/development/python-modules/watchfiles/Cargo.lock b/pkgs/development/python-modules/watchfiles/Cargo.lock new file mode 100644 index 000000000000..f4ab61997cf7 --- /dev/null +++ b/pkgs/development/python-modules/watchfiles/Cargo.lock @@ -0,0 +1,532 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "autocfg" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" + +[[package]] +name = "cc" +version = "1.0.96" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "065a29261d53ba54260972629f9ca6bffa69bac13cd1fed61420f7fa68b9f8bd" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "crossbeam-channel" +version = "0.5.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" + +[[package]] +name = "filetime" +version = "0.2.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf401df4a4e3872c4fe8151134cf483738e74b67fc934d6532c882b3d24a4550" +dependencies = [ + "cfg-if", + "libc", + "libredox", + "windows-sys 0.59.0", +] + +[[package]] +name = "fsevent-sys" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" +dependencies = [ + "libc", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "indoc" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" + +[[package]] +name = "inotify" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdd168d97690d0b8c412d6b6c10360277f4d7ee495c5d0d5d5fe0854923255cc" +dependencies = [ + "bitflags 1.3.2", + "inotify-sys", + "libc", +] + +[[package]] +name = "inotify-sys" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" +dependencies = [ + "libc", +] + +[[package]] +name = "instant" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "kqueue" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" +dependencies = [ + "kqueue-sys", + "libc", +] + +[[package]] +name = "kqueue-sys" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" +dependencies = [ + "bitflags 1.3.2", + "libc", +] + +[[package]] +name = "libc" +version = "0.2.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346" + +[[package]] +name = "libredox" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" +dependencies = [ + "bitflags 2.6.0", + "libc", + "redox_syscall", +] + +[[package]] +name = "log" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mio" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys 0.48.0", +] + +[[package]] +name = "notify" +version = "6.1.1" +source = "git+https://github.com/samuelcolvin/notify.git?branch=keep-io-error#0f87ab12707d231fa44180454d59478d3992eb59" +dependencies = [ + "bitflags 2.6.0", + "filetime", + "fsevent-sys", + "inotify", + "kqueue", + "libc", + "log", + "mio", + "notify-types", + "walkdir", + "windows-sys 0.52.0", +] + +[[package]] +name = "notify-types" +version = "1.0.0" +source = "git+https://github.com/samuelcolvin/notify.git?branch=keep-io-error#0f87ab12707d231fa44180454d59478d3992eb59" +dependencies = [ + "instant", +] + +[[package]] +name = "once_cell" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" + +[[package]] +name = "portable-atomic" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" + +[[package]] +name = "proc-macro2" +version = "1.0.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "pyo3" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831e8e819a138c36e212f3af3fd9eeffed6bf1510a805af35b0edee5ffa59433" +dependencies = [ + "cfg-if", + "indoc", + "libc", + "memoffset", + "once_cell", + "portable-atomic", + "pyo3-build-config", + "pyo3-ffi", + "pyo3-macros", + "unindent", +] + +[[package]] +name = "pyo3-build-config" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e8730e591b14492a8945cdff32f089250b05f5accecf74aeddf9e8272ce1fa8" +dependencies = [ + "once_cell", + "python3-dll-a", + "target-lexicon", +] + +[[package]] +name = "pyo3-ffi" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e97e919d2df92eb88ca80a037969f44e5e70356559654962cbb3316d00300c6" +dependencies = [ + "libc", + "pyo3-build-config", +] + +[[package]] +name = "pyo3-macros" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb57983022ad41f9e683a599f2fd13c3664d7063a3ac5714cae4b7bee7d3f206" +dependencies = [ + "proc-macro2", + "pyo3-macros-backend", + "quote", + "syn", +] + +[[package]] +name = "pyo3-macros-backend" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec480c0c51ddec81019531705acac51bcdbeae563557c982aa8263bb96880372" +dependencies = [ + "heck", + "proc-macro2", + "pyo3-build-config", + "quote", + "syn", +] + +[[package]] +name = "python3-dll-a" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0b78171a90d808b319acfad166c4790d9e9759bbc14ac8273fe133673dd41b" +dependencies = [ + "cc", +] + +[[package]] +name = "quote" +version = "1.0.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" +dependencies = [ + "bitflags 2.6.0", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "syn" +version = "2.0.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "909518bc7b1c9b779f1bbf07f2929d35af9f0f37e47c6e9ef7f9dddc1e1821f3" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "target-lexicon" +version = "0.12.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" + +[[package]] +name = "unicode-ident" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" + +[[package]] +name = "unindent" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "watchfiles_rust_notify" +version = "0.0.0" +dependencies = [ + "crossbeam-channel", + "notify", + "pyo3", +] + +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" diff --git a/pkgs/development/python-modules/watchfiles/default.nix b/pkgs/development/python-modules/watchfiles/default.nix index 3b09081249b0..705be5e6c047 100644 --- a/pkgs/development/python-modules/watchfiles/default.nix +++ b/pkgs/development/python-modules/watchfiles/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "watchfiles"; - version = "0.22.0"; + version = "0.24.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -27,13 +27,12 @@ buildPythonPackage rec { owner = "samuelcolvin"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-TtRSRgtMOqsnhdvsic3lg33xlA+r/DcYHlzewSOu/44="; + hash = "sha256-uc4CfczpNkS4NMevtRxhUOj9zTt59cxoC0BXnuHFzys="; }; - cargoDeps = rustPlatform.fetchCargoTarball { - inherit src; - name = "${pname}-${version}"; - hash = "sha256-n9yN/VRNQWCxh+BoliIMkKqJC51inpB9DQ9WtqR4oA0="; + cargoDeps = rustPlatform.importCargoLock { + lockFile = ./Cargo.lock; + outputHashes."notify-6.1.1" = "sha256-lT3R5ZQpjx52NVMEKTTQI90EWT16YnbqphqvZmNpw/I="; }; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ From d629877745558b0f328308e561d41b79dd2d43fc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 31 Oct 2024 11:46:38 +0100 Subject: [PATCH 205/693] python313Packages.httptools: 0.6.1 -> 0.6.4 https://github.com/MagicStack/httptools/releases/tag/v0.6.2 https://github.com/MagicStack/httptools/releases/tag/v0.6.3 https://github.com/MagicStack/httptools/releases/tag/v0.6.4 --- pkgs/development/python-modules/httptools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/httptools/default.nix b/pkgs/development/python-modules/httptools/default.nix index c6d2c176a5f6..65537e346929 100644 --- a/pkgs/development/python-modules/httptools/default.nix +++ b/pkgs/development/python-modules/httptools/default.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "httptools"; - version = "0.6.1"; + version = "0.6.4"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-xuJsMEVWALldlLG4NghROOgvF3NRRU7oQcFI+TqbrVo="; + hash = "sha256-TpPu5K3WSTtZpcUU2pjJObJE/OSg2Iec0/RmVi9LfVw="; }; # Tests are not included in pypi tarball From 024350e33914f18840790b7644b2c029fc57b915 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 31 Oct 2024 13:10:15 +0100 Subject: [PATCH 206/693] python313Packages.deprecated: disable failing tests and use the PEP517 builder. --- .../python-modules/deprecated/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/deprecated/default.nix b/pkgs/development/python-modules/deprecated/default.nix index e32aab6be8a2..b8c57b379c00 100644 --- a/pkgs/development/python-modules/deprecated/default.nix +++ b/pkgs/development/python-modules/deprecated/default.nix @@ -2,6 +2,8 @@ lib, fetchFromGitHub, buildPythonPackage, + pythonAtLeast, + setuptools, wrapt, pytestCheckHook, sphinxHook, @@ -10,7 +12,8 @@ buildPythonPackage rec { pname = "deprecated"; version = "1.2.14"; - format = "setuptools"; + pyproject = true; + outputs = [ "out" "doc" @@ -23,12 +26,20 @@ buildPythonPackage rec { hash = "sha256-H5Gp2F/ChMeEH4fSYXIB34syDIzDymfN949ksJnS0k4="; }; + build-system = [ setuptools ]; + nativeBuildInputs = [ sphinxHook ]; propagatedBuildInputs = [ wrapt ]; nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = lib.optionals (pythonAtLeast "3.13") [ + # assertion text mismatch + "test_classic_deprecated_class_method__warns" + "test_sphinx_deprecated_class_method__warns" + ]; + pythonImportsCheck = [ "deprecated" ]; meta = with lib; { From 6b9e3472ae81f934e0aeb6919974dc1760ac11cf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 8 Nov 2024 23:38:24 +0100 Subject: [PATCH 207/693] python312Packages.setuptools: 75.1.0 -> 75.3.0 https://setuptools.pypa.io/en/stable/history.html#v75-3-0 --- pkgs/development/python-modules/setuptools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/setuptools/default.nix b/pkgs/development/python-modules/setuptools/default.nix index c39ae6917bcd..961220f9260f 100644 --- a/pkgs/development/python-modules/setuptools/default.nix +++ b/pkgs/development/python-modules/setuptools/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "setuptools"; - version = "75.1.1"; + version = "75.3.0"; format = "pyproject"; src = fetchFromGitHub { owner = "pypa"; repo = "setuptools"; rev = "refs/tags/v${version}"; - hash = "sha256-b8O/DrDWAbD6ht9M762fFN6kPtV8hAbn1gAN9SS7H5g="; + hash = "sha256-kmuKHHzTXZrJyfkFm1EIvH1tv/MF9/p/HQoqHXcJew0="; }; patches = [ From 5bfacde24ba22c8dae9c28542232c68b26c3c321 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 29 Oct 2024 22:33:19 +0900 Subject: [PATCH 208/693] python312Packages.numpy: 1.26.4 -> 2.1.2 --- .../python-modules/astropy-healpix/default.nix | 4 ---- pkgs/development/python-modules/astropy/default.nix | 5 ----- pkgs/development/python-modules/blis/default.nix | 12 +++--------- pkgs/development/python-modules/blosc2/default.nix | 2 -- pkgs/development/python-modules/cartopy/default.nix | 5 ----- .../python-modules/fastparquet/default.nix | 8 +------- pkgs/development/python-modules/freud/default.nix | 7 ------- pkgs/development/python-modules/gsd/default.nix | 3 +-- pkgs/development/python-modules/gstools/default.nix | 7 ------- .../python-modules/matplotlib/default.nix | 2 -- pkgs/development/python-modules/netcdf4/default.nix | 4 ---- pkgs/development/python-modules/nitime/default.nix | 7 ------- pkgs/development/python-modules/numba/default.nix | 6 +++--- pkgs/development/python-modules/numexpr/default.nix | 9 --------- pkgs/development/python-modules/pandas/default.nix | 1 - .../development/python-modules/photutils/default.nix | 5 ----- pkgs/development/python-modules/pot/default.nix | 3 --- pkgs/development/python-modules/pyerfa/default.nix | 5 ----- pkgs/development/python-modules/pykdtree/default.nix | 5 ----- pkgs/development/python-modules/pymatgen/default.nix | 5 ----- .../python-modules/pywavelets/default.nix | 5 ----- pkgs/development/python-modules/rasterio/default.nix | 6 ------ .../development/python-modules/reproject/default.nix | 3 +-- .../python-modules/scikit-image/default.nix | 3 --- .../python-modules/scikit-learn/default.nix | 3 --- pkgs/development/python-modules/scipy/default.nix | 5 ----- pkgs/development/python-modules/spacy/default.nix | 6 ------ .../python-modules/statsmodels/default.nix | 5 ----- pkgs/development/python-modules/vispy/default.nix | 7 ------- pkgs/top-level/python-packages.nix | 2 +- 30 files changed, 10 insertions(+), 140 deletions(-) diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix index e65d0d222285..fce3ab8e11e9 100644 --- a/pkgs/development/python-modules/astropy-healpix/default.nix +++ b/pkgs/development/python-modules/astropy-healpix/default.nix @@ -24,10 +24,6 @@ buildPythonPackage rec { hash = "sha256-3l0qfsl7FnBFBmlx8loVDR5AYfBxWb4jZJY02zbnl0Y="; }; - postPatch = '' - substituteInPlace pyproject.toml --replace "numpy>=2.0.0rc1" "numpy" - ''; - nativeBuildInputs = [ astropy-extension-helpers numpy diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index 8315d4454280..956d39cfdc3a 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -36,11 +36,6 @@ buildPythonPackage rec { hash = "sha256-NhVY4rCTqZvr5p8f1H+shqGSYHpMFu05ugqACyq2DDQ="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0" "numpy" - ''; - build-system = [ astropy-extension-helpers cython diff --git a/pkgs/development/python-modules/blis/default.nix b/pkgs/development/python-modules/blis/default.nix index 26cb315a62e0..00d40e461c09 100644 --- a/pkgs/development/python-modules/blis/default.nix +++ b/pkgs/development/python-modules/blis/default.nix @@ -9,7 +9,7 @@ pytestCheckHook, pythonOlder, blis, - numpy_2, + numpy_1, gitUpdater, }: @@ -28,12 +28,6 @@ buildPythonPackage rec { }; postPatch = '' - # The commit pinning numpy to version 2 doesn't have any functional changes: - # https://github.com/explosion/cython-blis/pull/108 - # BLIS should thus work with numpy and numpy_2. - substituteInPlace pyproject.toml setup.py \ - --replace-fail "numpy>=2.0.0,<3.0.0" numpy - # See https://github.com/numpy/numpy/issues/21079 # has no functional difference as the name is only used in log output substituteInPlace blis/benchmark.py \ @@ -62,8 +56,8 @@ buildPythonPackage rec { passthru = { tests = { - numpy_2 = blis.overridePythonAttrs (old: { - numpy = numpy_2; + numpy_1 = blis.overridePythonAttrs (old: { + numpy = numpy_1; }); }; updateScript = gitUpdater { diff --git a/pkgs/development/python-modules/blosc2/default.nix b/pkgs/development/python-modules/blosc2/default.nix index f72a50eb26d3..51163f0689be 100644 --- a/pkgs/development/python-modules/blosc2/default.nix +++ b/pkgs/development/python-modules/blosc2/default.nix @@ -43,8 +43,6 @@ buildPythonPackage rec { }; postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0" "numpy" substituteInPlace requirements-runtime.txt \ --replace "pytest" "" ''; diff --git a/pkgs/development/python-modules/cartopy/default.nix b/pkgs/development/python-modules/cartopy/default.nix index 79059c7d53f5..104adf729968 100644 --- a/pkgs/development/python-modules/cartopy/default.nix +++ b/pkgs/development/python-modules/cartopy/default.nix @@ -34,11 +34,6 @@ buildPythonPackage rec { hash = "sha256-AckQ1WNMaafv3sRuChfUc9Iyh2fwAdTcC1xLSOWFyL0="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0rc1" "numpy" - ''; - build-system = [ setuptools-scm ]; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/fastparquet/default.nix b/pkgs/development/python-modules/fastparquet/default.nix index 5beafcea7a1c..79185e3a3c2f 100644 --- a/pkgs/development/python-modules/fastparquet/default.nix +++ b/pkgs/development/python-modules/fastparquet/default.nix @@ -7,7 +7,6 @@ fsspec, git, numpy, - oldest-supported-numpy, packaging, pandas, pytestCheckHook, @@ -33,11 +32,6 @@ buildPythonPackage rec { hash = "sha256-YiaVkpPzH8ZmTiEtCom9xLbKzByIt7Ilig/WlmGrYH4="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0rc1" "oldest-supported-numpy" - ''; - build-system = [ setuptools setuptools-scm @@ -47,7 +41,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cython git - oldest-supported-numpy + numpy ]; dependencies = [ diff --git a/pkgs/development/python-modules/freud/default.nix b/pkgs/development/python-modules/freud/default.nix index 9fa555e28170..da4d966c8129 100644 --- a/pkgs/development/python-modules/freud/default.nix +++ b/pkgs/development/python-modules/freud/default.nix @@ -51,13 +51,6 @@ buildPythonPackage rec { touch extern/{voro++,fsph,Eigen}/.git ''; - # Scipy still depends on numpy 1, and so we'd get 'package duplicates in - # closure' error if we'd use numpy_2 - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail 'numpy>=2.0.0rc1' 'numpy' \ - ''; - nativeBuildInputs = [ cmake cython diff --git a/pkgs/development/python-modules/gsd/default.nix b/pkgs/development/python-modules/gsd/default.nix index 28c9a5aa3d25..2ff6279b0120 100644 --- a/pkgs/development/python-modules/gsd/default.nix +++ b/pkgs/development/python-modules/gsd/default.nix @@ -4,7 +4,6 @@ cython, fetchFromGitHub, numpy, - numpy_2, pytestCheckHook, pythonOlder, setuptools, @@ -26,7 +25,7 @@ buildPythonPackage rec { build-system = [ cython - numpy_2 + numpy setuptools ]; diff --git a/pkgs/development/python-modules/gstools/default.nix b/pkgs/development/python-modules/gstools/default.nix index e11048953986..136c79b2d67e 100644 --- a/pkgs/development/python-modules/gstools/default.nix +++ b/pkgs/development/python-modules/gstools/default.nix @@ -44,13 +44,6 @@ buildPythonPackage rec { scipy ]; - # scipy derivation dont support numpy_2 and is patched to use version 1 - # Using numpy_2 in the derivation will cause a clojure duplicate error - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail 'numpy>=2.0.0rc1,' 'numpy' \ - ''; - pythonImportsCheck = [ "gstools" ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index f07acb53dc69..437bd302e3e2 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -110,8 +110,6 @@ buildPythonPackage rec { # script. postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail '"numpy>=2.0.0rc1,<2.3",' "" patchShebangs tools '' + lib.optionalString (stdenv.hostPlatform.isLinux && interactive) '' diff --git a/pkgs/development/python-modules/netcdf4/default.nix b/pkgs/development/python-modules/netcdf4/default.nix index 056949ef2f97..7f49fed39528 100644 --- a/pkgs/development/python-modules/netcdf4/default.nix +++ b/pkgs/development/python-modules/netcdf4/default.nix @@ -32,10 +32,6 @@ buildPythonPackage rec { hash = "sha256-N9VX42ZUiJ1wIBkr+1b51fk4lMsymX64N65YbFOP17Y="; }; - postPatch = '' - sed -i "/numpy>=/d" pyproject.toml - ''; - build-system = [ cython oldest-supported-numpy diff --git a/pkgs/development/python-modules/nitime/default.nix b/pkgs/development/python-modules/nitime/default.nix index 35b8eb4c46fc..d6295005e693 100644 --- a/pkgs/development/python-modules/nitime/default.nix +++ b/pkgs/development/python-modules/nitime/default.nix @@ -27,13 +27,6 @@ buildPythonPackage rec { hash = "sha256-4Ie8fuk9CKdn/64TsCfN2No2dU16ICpBRWYerqqF0/0="; }; - # Upstream wants to build against the newest version of numpy possible, but - # we only want to build against our default numpy. - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0rc1,<3" "numpy" - ''; - nativeBuildInputs = [ cython setuptools diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix index 18bd264c5d76..b9a3e734a580 100644 --- a/pkgs/development/python-modules/numba/default.nix +++ b/pkgs/development/python-modules/numba/default.nix @@ -8,7 +8,7 @@ buildPythonPackage, setuptools, numpy, - numpy_2, + numpy_1, llvmlite, libcxx, importlib-metadata, @@ -161,8 +161,8 @@ buildPythonPackage rec { doFullCheck = true; testsWithoutSandbox = false; }; - numpy_2 = numba.override { - numpy = numpy_2; + numpy_1 = numba.override { + numpy = numpy_1; }; }; diff --git a/pkgs/development/python-modules/numexpr/default.nix b/pkgs/development/python-modules/numexpr/default.nix index 3681e0d9c73a..bda5304a69c0 100644 --- a/pkgs/development/python-modules/numexpr/default.nix +++ b/pkgs/development/python-modules/numexpr/default.nix @@ -32,15 +32,6 @@ buildPythonPackage rec { dos2unix numexpr/tests/test_numexpr.py ''; - # patch for compatibility with numpy < 2.0 - # see more details, https://numpy.org/devdocs/numpy_2_0_migration_guide.html#c-api-changes - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0" "numpy" - sed -i "1i#define PyDataType_SET_ELSIZE(descr, elsize)" numexpr/interpreter.cpp - sed -i "1i#define PyDataType_ELSIZE(descr) ((descr)->elsize)" numexpr/interpreter.cpp - ''; - nativeBuildInputs = [ dos2unix ]; build-system = [ diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix index 9c707351f209..1e2d51af3627 100644 --- a/pkgs/development/python-modules/pandas/default.nix +++ b/pkgs/development/python-modules/pandas/default.nix @@ -80,7 +80,6 @@ let substituteInPlace pyproject.toml \ --replace-fail "meson-python==0.13.1" "meson-python>=0.13.1" \ --replace-fail "meson==1.2.1" "meson>=1.2.1" \ - --replace-fail "numpy>=2.0" "numpy" ''; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/photutils/default.nix b/pkgs/development/python-modules/photutils/default.nix index f81ba4f5ec4d..bfe057b3796f 100644 --- a/pkgs/development/python-modules/photutils/default.nix +++ b/pkgs/development/python-modules/photutils/default.nix @@ -35,11 +35,6 @@ buildPythonPackage rec { hash = "sha256-gXtC6O8rXBBa8VMuqxshnJieAahv3bCY2C1BXNmJxb4="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "'numpy>=2.0.0'," "" - ''; - build-system = [ setuptools setuptools-scm diff --git a/pkgs/development/python-modules/pot/default.nix b/pkgs/development/python-modules/pot/default.nix index 9d361a3ff11c..196b93dc224a 100644 --- a/pkgs/development/python-modules/pot/default.nix +++ b/pkgs/development/python-modules/pot/default.nix @@ -87,9 +87,6 @@ buildPythonPackage rec { --replace " --durations=20" "" \ --replace " --junit-xml=junit-results.xml" "" - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0" "numpy" - # we don't need setup.py to find the macos sdk for us sed -i '/sdk_path/d' setup.py ''; diff --git a/pkgs/development/python-modules/pyerfa/default.nix b/pkgs/development/python-modules/pyerfa/default.nix index 68e5f7d97496..e5bd3e20e5be 100644 --- a/pkgs/development/python-modules/pyerfa/default.nix +++ b/pkgs/development/python-modules/pyerfa/default.nix @@ -22,11 +22,6 @@ buildPythonPackage rec { hash = "sha256-rLimcTIy6jXAS8bkCsTkYd/MgX05XvKjyAUcGjMkndM="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0rc1" "numpy" - ''; - build-system = [ jinja2 packaging diff --git a/pkgs/development/python-modules/pykdtree/default.nix b/pkgs/development/python-modules/pykdtree/default.nix index f169201b2cc5..db1452a61451 100644 --- a/pkgs/development/python-modules/pykdtree/default.nix +++ b/pkgs/development/python-modules/pykdtree/default.nix @@ -25,11 +25,6 @@ buildPythonPackage rec { hash = "sha256-Osz4UulGZT45nD1Nu+EZ28bT9yz9LVqVyr8L8Mf5JP4="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-warn "numpy>=2.0.0rc1,<3" "numpy" - ''; - nativeBuildInputs = [ cython numpy diff --git a/pkgs/development/python-modules/pymatgen/default.nix b/pkgs/development/python-modules/pymatgen/default.nix index 2b133f061bf3..6074b06b0bdc 100644 --- a/pkgs/development/python-modules/pymatgen/default.nix +++ b/pkgs/development/python-modules/pymatgen/default.nix @@ -43,11 +43,6 @@ buildPythonPackage rec { hash = "sha256-o76bGItldcLfgZ5KDw2uL0GJvyljQJEwISR0topVR44="; }; - prePatch = '' - # Upstream switched to building against numpy2 but should still be compatible with numpy1 - substituteInPlace pyproject.toml --replace-fail "numpy>=2.1.0" "numpy>=1.26.0" - ''; - build-system = [ setuptools ]; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/pywavelets/default.nix b/pkgs/development/python-modules/pywavelets/default.nix index e3350c4e624d..ba81da659d5a 100644 --- a/pkgs/development/python-modules/pywavelets/default.nix +++ b/pkgs/development/python-modules/pywavelets/default.nix @@ -23,11 +23,6 @@ buildPythonPackage rec { hash = "sha256-oWAF8YDvb0SdlRzSjG2BNEekBkvR3U6KQ+e2FoIs+tw="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0" "numpy" - ''; - build-system = [ meson-python cython diff --git a/pkgs/development/python-modules/rasterio/default.nix b/pkgs/development/python-modules/rasterio/default.nix index 30dd05cffbdd..4b3650119007 100644 --- a/pkgs/development/python-modules/rasterio/default.nix +++ b/pkgs/development/python-modules/rasterio/default.nix @@ -45,12 +45,6 @@ buildPythonPackage rec { hash = "sha256-A8o8FYuhlzL6Wl6sfB7D2KRAKZl28E6K2AdUik9zmgs="; }; - postPatch = '' - # relax numpy dependency - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2" "numpy" - ''; - nativeBuildInputs = [ cython gdal diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index 48fec33e8cd1..c4fca7a1fa8a 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -32,8 +32,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace "cython==" "cython>=" \ - --replace "numpy>=2.0.0rc1" "numpy" + --replace "cython==" "cython>=" ''; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/scikit-image/default.nix b/pkgs/development/python-modules/scikit-image/default.nix index b04e02faa6e3..a125aced5a35 100644 --- a/pkgs/development/python-modules/scikit-image/default.nix +++ b/pkgs/development/python-modules/scikit-image/default.nix @@ -49,9 +49,6 @@ let postPatch = '' patchShebangs skimage/_build_utils/{version,cythoner}.py - - substituteInPlace pyproject.toml \ - --replace "numpy>=2.0.0rc1" "numpy" ''; nativeBuildInputs = [ diff --git a/pkgs/development/python-modules/scikit-learn/default.nix b/pkgs/development/python-modules/scikit-learn/default.nix index 6766ceca847e..99e57dabee14 100644 --- a/pkgs/development/python-modules/scikit-learn/default.nix +++ b/pkgs/development/python-modules/scikit-learn/default.nix @@ -36,9 +36,6 @@ buildPythonPackage rec { }; postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2" "numpy" - substituteInPlace meson.build --replace-fail \ "run_command('sklearn/_build_utils/version.py', check: true).stdout().strip()," \ "'${version}'," diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index e5b2db20a1c0..31a9010c3b29 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -92,13 +92,8 @@ buildPythonPackage { }) ]; - # Upstream says in a comment in their pyproject.toml that building against - # both numpy 2 and numpy 1 should work, but they seem to worry about numpy - # incompatibilities that we here with Nixpkgs' Python ecosystem, shouldn't - # experience. postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail 'numpy>=2.0.0rc1,' 'numpy' \ --replace-fail "pybind11>=2.12.0,<2.13.0" "pybind11>=2.12.0" \ ''; diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index df9004d483ff..9f6dd8f79a59 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -46,12 +46,6 @@ buildPythonPackage rec { hash = "sha256-Szfr0lraQFmw3J4Ik+cN3l34NIUymgaO8EWA5wiSpl0="; }; - postPatch = '' - # spaCy is compatible with NumPy v1 and v2 - substituteInPlace pyproject.toml setup.cfg \ - --replace-fail "numpy>=2.0.0,<2.1.0" numpy - ''; - build-system = [ cymem cython_0 diff --git a/pkgs/development/python-modules/statsmodels/default.nix b/pkgs/development/python-modules/statsmodels/default.nix index f08c9613fc34..07cb6fe42278 100644 --- a/pkgs/development/python-modules/statsmodels/default.nix +++ b/pkgs/development/python-modules/statsmodels/default.nix @@ -26,11 +26,6 @@ buildPythonPackage rec { hash = "sha256-7PNQJkP6k6q+XwvfI477WWCVF8TWCoEWMtMfzc6GwtI="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0,<3" "numpy" - ''; - build-system = [ cython numpy diff --git a/pkgs/development/python-modules/vispy/default.nix b/pkgs/development/python-modules/vispy/default.nix index dd74e0212bc5..eb3b16c0a3ea 100644 --- a/pkgs/development/python-modules/vispy/default.nix +++ b/pkgs/development/python-modules/vispy/default.nix @@ -31,13 +31,6 @@ buildPythonPackage rec { hash = "sha256-77u4R6kIuvfnFpq5vylhOKOTZPNn5ssKjsA61xaZ0x0="; }; - postPatch = '' - # https://numpy.org/devdocs/dev/depending_on_numpy.html#numpy-2-0-specific-advice - # upstream enforce builds with numpy 2+, which is backward compat with 1.xx - substituteInPlace pyproject.toml \ - --replace-fail "numpy>=2.0.0rc2" "numpy" - ''; - patches = lib.optionals (!stdenv.hostPlatform.isDarwin) [ (substituteAll { src = ./library-paths.patch; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a2d65b97846a..757e598e1717 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9257,7 +9257,7 @@ self: super: with self; { numpy_1 = callPackage ../development/python-modules/numpy/1.nix { }; numpy_2 = callPackage ../development/python-modules/numpy/2.nix { }; - numpy = if self.pythonOlder "3.13" then numpy_1 else numpy_2; + numpy = numpy_2; numpy-groupies = callPackage ../development/python-modules/numpy-groupies { }; From 221b4c4d4ead3274855a0bb88831639d77355cb3 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 31 Oct 2024 13:40:21 +0900 Subject: [PATCH 209/693] python312Packages.seaborn: fix compatibility with numpy>=2 --- pkgs/development/python-modules/seaborn/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/seaborn/default.nix b/pkgs/development/python-modules/seaborn/default.nix index 74987d59dcc4..bfb17ca01015 100644 --- a/pkgs/development/python-modules/seaborn/default.nix +++ b/pkgs/development/python-modules/seaborn/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch2, flit-core, matplotlib, pytest-xdist, @@ -28,6 +29,15 @@ buildPythonPackage rec { hash = "sha256-aGIVcdG/XN999nYBHh3lJqGa3QVt0j8kmzaxdkULznY="; }; + patches = [ + # https://github.com/mwaskom/seaborn/pull/3685 + (fetchpatch2 { + name = "numpy_2-compatibility.patch"; + url = "https://github.com/mwaskom/seaborn/commit/58f170fe799ef496adae19925d7d4f0f14f8da95.patch"; + hash = "sha256-/a3G+kNIRv8Oa4a0jPGnL2Wvx/9umMoiq1BXcXpehAg="; + }) + ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ From b01b543f41ab31d3411bf54ff1933f22f7a45fb4 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 31 Oct 2024 14:26:55 +0900 Subject: [PATCH 210/693] python312Packages.cirq-core: 1.4.1 -> 1.4.1-unstable-2024-09-21 fix compatibility with numpy>=2 --- pkgs/development/python-modules/cirq-core/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/cirq-core/default.nix b/pkgs/development/python-modules/cirq-core/default.nix index c2e85c1f238d..e6ac6d5b5220 100644 --- a/pkgs/development/python-modules/cirq-core/default.nix +++ b/pkgs/development/python-modules/cirq-core/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { pname = "cirq-core"; - version = "1.4.1"; + version = "1.4.1-unstable-2024-09-21"; pyproject = true; disabled = pythonOlder "3.10"; @@ -39,8 +39,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "quantumlib"; repo = "cirq"; - rev = "refs/tags/v${version}"; - hash = "sha256-1GcRDVgYF+1igZQFlQbiWZmU1WNIJh4CcOftQe6OP6I="; + rev = "3fefe2984a1203c0bf647c1ea84f4882b05f8477"; + hash = "sha256-/WDKVxNJ8pewTLAFTyAZ/nnYcJSLubEJcn7qoJslZ3U="; }; sourceRoot = "${src.name}/${pname}"; From a31c91d2e0451a43f66c658d1b30fc94a9cac619 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 31 Oct 2024 15:42:49 +0900 Subject: [PATCH 211/693] python312Packages.ase: fix compatibility with numpy>=2 --- pkgs/development/python-modules/ase/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/development/python-modules/ase/default.nix b/pkgs/development/python-modules/ase/default.nix index dbdcbce06753..b4670c9cac70 100644 --- a/pkgs/development/python-modules/ase/default.nix +++ b/pkgs/development/python-modules/ase/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchPypi, + fetchpatch2, buildPythonPackage, isPy27, pythonAtLeast, @@ -30,6 +31,16 @@ buildPythonPackage rec { hash = "sha256-kaKqMdib2QsO/f5KfoQmTzKCiyq/yfOOZeBBrXb+yK4="; }; + patches = [ + # https://gitlab.com/ase/ase/-/merge_requests/3400 + (fetchpatch2 { + name = "numpy_2-compatibility.patch"; + url = "https://gitlab.com/ase/ase/-/commit/5434193ad9dd2cb20a76b3d503fa2b50d7a8ed34.patch"; + excludes = [ "pyproject.toml" ]; + hash = "sha256-3hsyzYnFCrlZDT/jqJKKvj2UXjnjLU0U6PJqgOpA7CU="; + }) + ]; + build-system = [ setuptools ]; dependencies = [ From b41a83676e3e199f508b2eb75b6c7348cd1206e7 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 1 Nov 2024 02:27:48 +0900 Subject: [PATCH 212/693] python312Packages.einops: fix compatibility with numpy>=2 --- pkgs/development/python-modules/einops/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/einops/default.nix b/pkgs/development/python-modules/einops/default.nix index 4a6dfc6ab777..0b1fd24a3ac3 100644 --- a/pkgs/development/python-modules/einops/default.nix +++ b/pkgs/development/python-modules/einops/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, hatchling, jupyter, nbconvert, @@ -26,6 +27,15 @@ buildPythonPackage rec { hash = "sha256-6x9AttvSvgYrHaS5ESKOwyEnXxD2BitYTGtqqSKur+0="; }; + patches = [ + # https://github.com/arogozhnikov/einops/pull/325 + (fetchpatch2 { + name = "numpy_2-compatibility.patch"; + url = "https://github.com/arogozhnikov/einops/commit/11680b457ce2216d9827330d0b794565946847d7.patch"; + hash = "sha256-OKWp319ClYarNrek7TdRHt+NKTOEfBdJaV0U/6vLeMc="; + }) + ]; + nativeBuildInputs = [ hatchling ]; nativeCheckInputs = [ From c3f94cf57dc35772185b7a051f3e16a41944c343 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 1 Nov 2024 20:44:42 +0900 Subject: [PATCH 213/693] python312Packages.patsy: fix compatibility with numpy>=2 --- pkgs/development/python-modules/patsy/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/patsy/default.nix b/pkgs/development/python-modules/patsy/default.nix index d5acbee88521..00fed6f6e199 100644 --- a/pkgs/development/python-modules/patsy/default.nix +++ b/pkgs/development/python-modules/patsy/default.nix @@ -1,6 +1,7 @@ { lib, fetchPypi, + fetchpatch2, buildPythonPackage, setuptools, six, @@ -19,6 +20,15 @@ buildPythonPackage rec { hash = "sha256-lcbUenIiU1+Ev/f2PXMD8uKXdHpZjbic9cZ/DAx9LNs="; }; + patches = [ + # https://github.com/pydata/patsy/pull/212 + (fetchpatch2 { + name = "numpy_2-compatibility.patch"; + url = "https://github.com/pydata/patsy/commit/251951dd7a4116be1cd34963780b87b4a67b79ae.patch"; + hash = "sha256-bgHqa8eygf9ADLmDY/8uebuYSFzkKG667BuXvQC4WB4="; + }) + ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ From 4a4e321ffdc1378540f883b6c4ce632621e22a61 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 2 Nov 2024 15:19:49 +0900 Subject: [PATCH 214/693] python312Packages.plotly: fix compatibility with numpy>=2 --- pkgs/development/python-modules/plotly/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix index ab177fa01b32..9823c41c4fec 100644 --- a/pkgs/development/python-modules/plotly/default.nix +++ b/pkgs/development/python-modules/plotly/default.nix @@ -38,9 +38,18 @@ buildPythonPackage rec { sourceRoot = "${src.name}/packages/python/plotly"; + # tracking numpy 2 issue: https://github.com/plotly/plotly.py/pull/4622 postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "\"jupyterlab~=3.0;python_version>='3.6'\"," "" + + substituteInPlace plotly/tests/test_optional/test_utils/test_utils.py \ + --replace-fail "np.NaN" "np.nan" \ + --replace-fail "np.NAN" "np.nan" \ + --replace-fail "np.Inf" "np.inf" + + substituteInPlace plotly/tests/test_optional/test_px/test_imshow.py \ + --replace-fail "- 255 * img.max()" "- np.int64(255) * img.max()" ''; env.SKIP_NPM = true; @@ -91,6 +100,9 @@ buildPythonPackage rec { # AssertionError: assert "plotly" not in sys.modules "test_dependencies_not_imported" "test_lazy_imports" + # numpy2 related error, RecursionError + # https://github.com/plotly/plotly.py/pull/4622#issuecomment-2452886352 + "test_masked_constants_example" ]; disabledTestPaths = [ From 40f89c6e0d0cd9e47c14183d3bee21e815785151 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 9 Nov 2024 16:56:26 +0100 Subject: [PATCH 215/693] python3.pkgs.pythonRuntimeDepsCheckHook: don't validate wheel metadata Metadata can have issues that the packaging library will complain about, but that should not prevent us from building any package. --- .../interpreters/python/hooks/python-runtime-deps-check-hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py index e620a17a5d7b..77a6f33d49dd 100644 --- a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py +++ b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py @@ -55,7 +55,7 @@ def get_metadata(wheel: str) -> Metadata: """ text = get_manifest_text_from_wheel(wheel) raw, _ = parse_email(text) - metadata = Metadata.from_raw(raw) + metadata = Metadata.from_raw(raw, validate=False) return metadata From b1ac443c554758b77f877dd5e3c1c0a7bf915b93 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 9 Nov 2024 16:57:30 +0100 Subject: [PATCH 216/693] python313Packages.packaging: 24.1 -> 24.2 https://github.com/pypa/packaging/blob/24.2/CHANGELOG.rst --- pkgs/development/python-modules/packaging/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/packaging/default.nix b/pkgs/development/python-modules/packaging/default.nix index 4ddebe8901df..e93e3680351b 100644 --- a/pkgs/development/python-modules/packaging/default.nix +++ b/pkgs/development/python-modules/packaging/default.nix @@ -15,14 +15,14 @@ let packaging = buildPythonPackage rec { pname = "packaging"; - version = "24.1"; + version = "24.2"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-Am7XLI7T/M5b+JUFciWGmJJ/0dvaEKXpgc3wrDf08AI="; + hash = "sha256-wiim3F6TLTRrxXOTeRCdSeiFPdgiNXHHxbVSYO3AuX8="; }; nativeBuildInputs = [ flit-core ]; From 925d0ecf50e31c913cd968361c8b1944bb9a9147 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Nov 2024 00:30:36 +0100 Subject: [PATCH 217/693] python312Packages.starlette: 0.40.0 -> 0.41.2 https://www.starlette.io/release-notes/#0412 --- pkgs/development/python-modules/starlette/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/starlette/default.nix b/pkgs/development/python-modules/starlette/default.nix index c1b0fa8be4bd..ce0f83687b43 100644 --- a/pkgs/development/python-modules/starlette/default.nix +++ b/pkgs/development/python-modules/starlette/default.nix @@ -28,7 +28,7 @@ buildPythonPackage rec { pname = "starlette"; - version = "0.40.0"; + version = "0.41.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -37,7 +37,7 @@ buildPythonPackage rec { owner = "encode"; repo = "starlette"; rev = "refs/tags/${version}"; - hash = "sha256-CBkDDsIw9LAIeAzN5E9gdEvznFugoa/RilPmnwcJBy4="; + hash = "sha256-ZNB4OxzJHlsOie3URbUnZywJbqOZIvzxS/aq7YImdQ0="; }; build-system = [ hatchling ]; From 8722d610babccd9c2335e4c2eb1f0908e07cd40e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Nov 2024 02:28:27 +0100 Subject: [PATCH 218/693] python312Packages.python-multipart: 0.0.12 -> 0.0.17 https://github.com/Kludex/python-multipart/releases/tag/0.0.13 https://github.com/Kludex/python-multipart/releases/tag/0.0.14 https://github.com/Kludex/python-multipart/releases/tag/0.0.15 https://github.com/Kludex/python-multipart/releases/tag/0.0.16 https://github.com/Kludex/python-multipart/releases/tag/0.0.17 --- .../python-multipart/default.nix | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/python-multipart/default.nix b/pkgs/development/python-modules/python-multipart/default.nix index 12b1e19f2c5b..2fef7a320657 100644 --- a/pkgs/development/python-modules/python-multipart/default.nix +++ b/pkgs/development/python-modules/python-multipart/default.nix @@ -1,12 +1,11 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, hatchling, pytestCheckHook, mock, pyyaml, - six, # for passthru.tests asgi-csrf, @@ -18,20 +17,19 @@ buildPythonPackage rec { pname = "python-multipart"; - version = "0.0.12"; + version = "0.0.17"; pyproject = true; - src = fetchPypi { - pname = "python_multipart"; - inherit version; - hash = "sha256-BF4fmNcZwc4IXtf34e+djMyMAroCtVZtX3UhQQztWMs="; + src = fetchFromGitHub { + owner = "Kludex"; + repo = "python-multipart"; + rev = "refs/tags/${version}"; + hash = "sha256-WtP2lPrBMRYjkae+/cMz+lN0Yf0uk2LL7RYjdOwQcXU="; }; - nativeBuildInputs = [ hatchling ]; + build-system = [ hatchling ]; - propagatedBuildInputs = [ six ]; - - pythonImportsCheck = [ "multipart" ]; + pythonImportsCheck = [ "python_multipart" ]; nativeCheckInputs = [ pytestCheckHook @@ -50,8 +48,9 @@ buildPythonPackage rec { }; meta = with lib; { + changelog = "https://github.com/Kludex/python-multipart/blob/${src.rev}/CHANGELOG.md"; description = "Streaming multipart parser for Python"; - homepage = "https://github.com/andrew-d/python-multipart"; + homepage = "https://github.com/Kludex/python-multipart"; license = licenses.asl20; maintainers = with maintainers; [ ris ]; }; From 5c8e9946fd5764947dda45d03ca3a4fe00192d90 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Nov 2024 02:45:26 +0100 Subject: [PATCH 219/693] python312Packages.fastapi: 0.115.3 -> 0.115.4 https://github.com/fastapi/fastapi/releases/tag/0.115.4 --- .../python-modules/fastapi/default.nix | 73 ++++++++++++------- 1 file changed, 45 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index e9ed6eb2e2ea..bc7457623413 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -8,12 +8,12 @@ pdm-backend, # dependencies - fastapi-cli, starlette, pydantic, typing-extensions, # tests + anyio, dirty-equals, flask, inline-snapshot, @@ -25,10 +25,11 @@ trio, # optional-dependencies + fastapi-cli, httpx, jinja2, - python-multipart, itsdangerous, + python-multipart, pyyaml, ujson, orjson, @@ -40,7 +41,7 @@ buildPythonPackage rec { pname = "fastapi"; - version = "0.115.3"; + version = "0.115.4"; pyproject = true; disabled = pythonOlder "3.7"; @@ -49,7 +50,7 @@ buildPythonPackage rec { owner = "tiangolo"; repo = "fastapi"; rev = "refs/tags/${version}"; - hash = "sha256-JIaPgZVbz887liVwd3YtubJm+L4tFCM9Jcn9/smjiKo="; + hash = "sha256-jnVk2mdp07YDyC9aReCOIMt/IaJLeNFO8XMkS0y/bgU="; }; build-system = [ pdm-backend ]; @@ -60,41 +61,57 @@ buildPythonPackage rec { ]; dependencies = [ - fastapi-cli starlette pydantic typing-extensions ]; - optional-dependencies.all = - [ + optional-dependencies = { + all = + [ + fastapi-cli + httpx + jinja2 + python-multipart + itsdangerous + pyyaml + ujson + orjson + email-validator + uvicorn + ] + ++ lib.optionals (lib.versionAtLeast pydantic.version "2") [ + pydantic-settings + pydantic-extra-types + ] + ++ fastapi-cli.optional-dependencies.standard + ++ uvicorn.optional-dependencies.standard; + standard = [ + fastapi-cli httpx jinja2 python-multipart - itsdangerous - pyyaml - ujson - orjson email-validator uvicorn - ] - ++ lib.optionals (lib.versionAtLeast pydantic.version "2") [ - pydantic-settings - pydantic-extra-types - ] - ++ uvicorn.optional-dependencies.standard; + ] ++ fastapi-cli.optional-dependencies.standard ++ uvicorn.optional-dependencies.standard; + }; - nativeCheckInputs = [ - dirty-equals - flask - inline-snapshot - passlib - pyjwt - pytestCheckHook - pytest-asyncio - trio - sqlalchemy - ] ++ optional-dependencies.all; + nativeCheckInputs = + [ + anyio + dirty-equals + flask + inline-snapshot + passlib + pyjwt + pytestCheckHook + pytest-asyncio + trio + sqlalchemy + ] + ++ anyio.optional-dependencies.trio + ++ passlib.optional-dependencies.bcrypt + ++ optional-dependencies.all; pytestFlagsArray = [ # ignoring deprecation warnings to avoid test failure from From 7a635aa8be7df6588bdf365609f26888c35572dc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Nov 2024 03:48:52 +0100 Subject: [PATCH 220/693] python313Packages.eliot: patch for numpy2 compat --- pkgs/development/python-modules/eliot/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/eliot/default.nix b/pkgs/development/python-modules/eliot/default.nix index 04cb574509c2..59465d2627a3 100644 --- a/pkgs/development/python-modules/eliot/default.nix +++ b/pkgs/development/python-modules/eliot/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch2, pythonOlder, pythonAtLeast, @@ -37,6 +38,14 @@ buildPythonPackage rec { hash = "sha256-Ur7q7PZ5HH4ttD3b0HyBTe1B7eQ2nEWcTBR/Hjeg9yw="; }; + patches = [ + (fetchpatch2 { + name = "numpy2-compat.patch"; + url = "https://github.com/itamarst/eliot/commit/39eccdad44f91971ecf1211fb01366b4d9801817.patch"; + hash = "sha256-al6olmvFZ8pDblljWmWqs5QrtcuHKcea255XgG+1+1o="; + }) + ]; + build-system = [ setuptools ]; dependencies = [ From fe14d581941980f402066cbc95c953254e6a3243 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Nov 2024 05:38:13 +0100 Subject: [PATCH 221/693] python313Packages.eventlet: apply patch for 3.13 compat --- .../python-modules/eventlet/default.nix | 5 + .../eventlet/python-3.13-compat.patch | 181 ++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 pkgs/development/python-modules/eventlet/python-3.13-compat.patch diff --git a/pkgs/development/python-modules/eventlet/default.nix b/pkgs/development/python-modules/eventlet/default.nix index 88bb8a599aba..cf74130e4482 100644 --- a/pkgs/development/python-modules/eventlet/default.nix +++ b/pkgs/development/python-modules/eventlet/default.nix @@ -32,6 +32,11 @@ buildPythonPackage rec { hash = "sha256-R/nRHsz4z4phG51YYDwkGqvnXssGoiJxIPexuhAf0BI="; }; + patches = [ + # https://github.com/eventlet/eventlet/pull/988 + ./python-3.13-compat.patch + ]; + nativeBuildInputs = [ hatch-vcs hatchling diff --git a/pkgs/development/python-modules/eventlet/python-3.13-compat.patch b/pkgs/development/python-modules/eventlet/python-3.13-compat.patch new file mode 100644 index 000000000000..e0b5b1895fc9 --- /dev/null +++ b/pkgs/development/python-modules/eventlet/python-3.13-compat.patch @@ -0,0 +1,181 @@ +From 0cef8bb6bbf5baf5953e2739233572060ae70b34 Mon Sep 17 00:00:00 2001 +From: Stefano Rivera +Date: Wed, 6 Nov 2024 21:30:29 -0800 +Subject: [PATCH] Python 3.13 support + +Emulate Python 3.13's start_joinable_thread API using greenthreads. + +We cut some corners, of course: +* We aren't maintaining a table of green thread idents to threads, so we + can't wait for all threads on shutdown. +* Our _make_thread_handle() can only make a handle for the current + thread (as we don't have a way to look up green threads by ident). +* .join() on a non-GreenThread (e.g. the main thread) just returns + immediately. + +Fixes: #964 +--- + eventlet/green/thread.py | 66 ++++++++++++++++++++++++++++++++++--- + eventlet/green/threading.py | 7 ++-- + 2 files changed, 65 insertions(+), 8 deletions(-) + +diff --git a/eventlet/green/thread.py b/eventlet/green/thread.py +index 053a1c3c6..e9c4f3830 100644 +--- a/eventlet/green/thread.py ++++ b/eventlet/green/thread.py +@@ -2,13 +2,16 @@ + import _thread as __thread + from eventlet.support import greenlets as greenlet + from eventlet import greenthread ++from eventlet.timeout import with_timeout + from eventlet.lock import Lock + import sys + + +-__patched__ = ['get_ident', 'start_new_thread', 'start_new', 'allocate_lock', +- 'allocate', 'exit', 'interrupt_main', 'stack_size', '_local', +- 'LockType', 'Lock', '_count'] ++__patched__ = ['Lock', 'LockType', '_ThreadHandle', '_count', ++ '_get_main_thread_ident', '_local', '_make_thread_handle', ++ 'allocate', 'allocate_lock', 'exit', 'get_ident', ++ 'interrupt_main', 'stack_size', 'start_joinable_thread', ++ 'start_new', 'start_new_thread'] + + error = __thread.error + LockType = Lock +@@ -47,7 +50,36 @@ def __thread_body(func, args, kwargs): + __threadcount -= 1 + + +-def start_new_thread(function, args=(), kwargs=None): ++class _ThreadHandle: ++ def __init__(self, greenthread=None): ++ self._greenthread = greenthread ++ self._done = False ++ ++ def _set_done(self): ++ self._done = True ++ ++ def is_done(self): ++ return self._done ++ ++ @property ++ def ident(self): ++ return get_ident(self._greenthread) ++ ++ def join(self, timeout=None): ++ if not hasattr(self._greenthread, "wait"): ++ return ++ if timeout is not None: ++ return with_timeout(timeout, self._greenthread.wait) ++ return self._greenthread.wait() ++ ++ ++def _make_thread_handle(ident): ++ greenthread = greenlet.getcurrent() ++ assert ident == get_ident(greenthread) ++ return _ThreadHandle(greenthread=greenthread) ++ ++ ++def __spawn_green(function, args=(), kwargs=None, joinable=False): + if (sys.version_info >= (3, 4) + and getattr(function, '__module__', '') == 'threading' + and hasattr(function, '__self__')): +@@ -72,13 +104,34 @@ def wrap_bootstrap_inner(): + thread._bootstrap_inner = wrap_bootstrap_inner + + kwargs = kwargs or {} +- g = greenthread.spawn_n(__thread_body, function, args, kwargs) ++ spawn_func = greenthread.spawn if joinable else greenthread.spawn_n ++ return spawn_func(__thread_body, function, args, kwargs) ++ ++ ++def start_joinable_thread(function, handle=None, daemon=True): ++ g = __spawn_green(function, joinable=True) ++ if handle is None: ++ handle = _ThreadHandle(greenthread=g) ++ else: ++ handle._greenthread = g ++ return handle ++ ++ ++def start_new_thread(function, args=(), kwargs=None): ++ g = __spawn_green(function, args=args, kwargs=kwargs) + return get_ident(g) + + + start_new = start_new_thread + + ++def _get_main_thread_ident(): ++ greenthread = greenlet.getcurrent() ++ while greenthread.parent is not None: ++ greenthread = greenthread.parent ++ return get_ident(greenthread) ++ ++ + def allocate_lock(*a): + return LockType(1) + +@@ -118,3 +171,6 @@ def stack_size(size=None): + + if hasattr(__thread, 'daemon_threads_allowed'): + daemon_threads_allowed = __thread.daemon_threads_allowed ++ ++if hasattr(__thread, '_shutdown'): ++ _shutdown = __thread._shutdown +diff --git a/eventlet/green/threading.py b/eventlet/green/threading.py +index 7ea20cdad..83b4c767f 100644 +--- a/eventlet/green/threading.py ++++ b/eventlet/green/threading.py +@@ -4,9 +4,10 @@ + from eventlet.green import time + from eventlet.support import greenlets as greenlet + +-__patched__ = ['_start_new_thread', '_allocate_lock', +- '_sleep', 'local', 'stack_size', 'Lock', 'currentThread', +- 'current_thread', '_after_fork', '_shutdown'] ++__patched__ = ['Lock', '_after_fork', '_allocate_lock', '_make_thread_handle', ++ '_shutdown', '_sleep', '_start_joinable_thread', ++ '_start_new_thread', '_ThreadHandle', 'currentThread', ++ 'current_thread', 'local', 'stack_size'] + + __patched__ += ['get_ident', '_set_sentinel'] + +From 969cd8de59c0b0de48e17a969027f1d041b394ef Mon Sep 17 00:00:00 2001 +From: Stefano Rivera +Date: Thu, 7 Nov 2024 14:38:01 -0800 +Subject: [PATCH] _tstate_lock was removed in Python 3.13 + +In python/cpython#114271, _tstate_lock was replaced with an event on +PyThreadState. +--- + eventlet/green/thread.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/eventlet/green/thread.py b/eventlet/green/thread.py +index e9c4f3830..ef723ff46 100644 +--- a/eventlet/green/thread.py ++++ b/eventlet/green/thread.py +@@ -80,10 +80,10 @@ def _make_thread_handle(ident): + + + def __spawn_green(function, args=(), kwargs=None, joinable=False): +- if (sys.version_info >= (3, 4) ++ if ((3, 4) <= sys.version_info < (3, 13) + and getattr(function, '__module__', '') == 'threading' + and hasattr(function, '__self__')): +- # Since Python 3.4, threading.Thread uses an internal lock ++ # In Python 3.4-3.12, threading.Thread uses an internal lock + # automatically released when the python thread state is deleted. + # With monkey patching, eventlet uses green threads without python + # thread state, so the lock is not automatically released. +@@ -98,7 +98,7 @@ def wrap_bootstrap_inner(): + bootstrap_inner() + finally: + # The lock can be cleared (ex: by a fork()) +- if thread._tstate_lock is not None: ++ if getattr(thread, "_tstate_lock", None) is not None: + thread._tstate_lock.release() + + thread._bootstrap_inner = wrap_bootstrap_inner From 61e3dc616378b585ee950d6e61138221062b4101 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Nov 2024 06:02:05 +0100 Subject: [PATCH 222/693] python313Packages.msgspec: apply patch for 3.13 support --- .../python-modules/msgspec/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/msgspec/default.nix b/pkgs/development/python-modules/msgspec/default.nix index 1af1b9814a16..30f821da7385 100644 --- a/pkgs/development/python-modules/msgspec/default.nix +++ b/pkgs/development/python-modules/msgspec/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, pythonOlder, setuptools, }: @@ -20,7 +21,19 @@ buildPythonPackage rec { hash = "sha256-xqtV60saQNINPMpOnZRSDnicedPSPBUQwPSE5zJGrTo="; }; - nativeBuildInputs = [ setuptools ]; + patches = [ + (fetchpatch2 { + name = "python-3.13-compat.patch"; + url = "https://github.com/jcrist/msgspec/commit/7ade46952adea22f3b2bb9c2b8b3139e4f2831b7.patch"; + includes = [ + "msgspec/_core.c" + "msgspec/_utils.py" + ]; + hash = "sha256-yYotfJXUOaFiqvy0u+LqAx2YYnibNDXA24cE1ibPSOc="; + }) + ]; + + build-system = [ setuptools ]; # Requires libasan to be accessible doCheck = false; From bf963769c5097e4d45041192156b9f4eceb40aa1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 10 Nov 2024 06:17:47 +0100 Subject: [PATCH 223/693] python312Packages.moto: 5.0.18 -> 5.0.20 https://github.com/getmoto/moto/blob/5.0.20/CHANGELOG.md --- pkgs/development/python-modules/moto/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/moto/default.nix b/pkgs/development/python-modules/moto/default.nix index e4cee7571da9..60eddaf3ba6a 100644 --- a/pkgs/development/python-modules/moto/default.nix +++ b/pkgs/development/python-modules/moto/default.nix @@ -37,14 +37,14 @@ buildPythonPackage rec { pname = "moto"; - version = "5.0.18"; + version = "5.0.20"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-inrS9ToubMnbL/ZcDg1LXX54vAC4Jcnh/2zDlDceduk="; + hash = "sha256-JLExnMZvgfQIF6V6yAYCpfGGJmm91iHw2Wq5iaZXglU="; }; build-system = [ setuptools ]; From 6ec63d56ff76f28c22844ca6f9a21b8ae0de9d29 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 01:28:49 +0100 Subject: [PATCH 224/693] python313Packages.orjson: 3.10.7 -> 3.10.11 https://github.com/ijl/orjson/blob/3.10.11/CHANGELOG.md --- pkgs/development/python-modules/orjson/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/orjson/default.nix b/pkgs/development/python-modules/orjson/default.nix index 98ce76ed1480..5476d86dab19 100644 --- a/pkgs/development/python-modules/orjson/default.nix +++ b/pkgs/development/python-modules/orjson/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { pname = "orjson"; - version = "3.10.7"; + version = "3.10.11"; pyproject = true; disabled = pythonOlder "3.8"; @@ -40,13 +40,13 @@ buildPythonPackage rec { owner = "ijl"; repo = "orjson"; rev = "refs/tags/${version}"; - hash = "sha256-+ofDblSbaG8CjRXFfF0QFpq2yGmLF/2yILqk2m8PSl8="; + hash = "sha256-RJcTyLf2pLb1kHd7+5K9dGMWja4KFdKIwdRAp6Ud+Ps="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; - hash = "sha256-MACmdptHmnifBTfB5s+CY6npAOFIrh0zvrIImYghGsw="; + hash = "sha256-HlvsV3Bsxa4Ud1+RrEnDWKX82DRyfgBS7GvK9827/wE="; }; maturinBuildFlags = [ "--interpreter ${python.executable}" ]; From b0a6dbeffc28da6ff44c72cfa964badb2a2678fc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 01:36:51 +0100 Subject: [PATCH 225/693] python313Packages.numpy: 2.1.2 -> 2.1.3 https://github.com/numpy/numpy/releases/tag/v2.1.3 --- pkgs/development/python-modules/numpy/2.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix index 5acc21db4538..bbf8acbb3292 100644 --- a/pkgs/development/python-modules/numpy/2.nix +++ b/pkgs/development/python-modules/numpy/2.nix @@ -59,7 +59,7 @@ let in buildPythonPackage rec { pname = "numpy"; - version = "2.1.2"; + version = "2.1.3"; pyproject = true; disabled = pythonOlder "3.10"; @@ -67,7 +67,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; extension = "tar.gz"; - hash = "sha256-E1MqCIIX+mJMmbhD7rVGQN4js0FLFKpm0COAXrcxBmw="; + hash = "sha256-qgjgTgiq+XTURY3vU53s4NKBRthmo52lY5WW9JIf12E="; }; patches = lib.optionals python.hasDistutilsCxxPatch [ From 41b458bf839b2311617d78c86ff7f40b94e20d18 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 02:08:21 +0100 Subject: [PATCH 226/693] python313Packages.ipdb: disable failing tests --- pkgs/development/python-modules/ipdb/default.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ipdb/default.nix b/pkgs/development/python-modules/ipdb/default.nix index 84123590fe1b..9d140f2bebfa 100644 --- a/pkgs/development/python-modules/ipdb/default.nix +++ b/pkgs/development/python-modules/ipdb/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + pythonAtLeast, pythonOlder, decorator, ipython, @@ -9,7 +10,8 @@ exceptiongroup, tomli, setuptools, - unittestCheckHook, + pytestCheckHook, + pytest-timeout, }: buildPythonPackage rec { @@ -36,12 +38,22 @@ buildPythonPackage rec { tomli ]; - nativeCheckInputs = [ unittestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$(mktemp -d) ''; + disabledTestPaths = + [ + # OSError: pytest: reading from stdin while output is captured! Consider using `-s`. + "manual_test.py" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # tests get stuck + "tests/test_opts.py" + ]; + meta = with lib; { homepage = "https://github.com/gotcha/ipdb"; description = "IPython-enabled pdb"; From 59d776981717f35ab70669b67f153a19fa7b8498 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 02:12:14 +0100 Subject: [PATCH 227/693] python313Packages.pkginfo: 1.11.1 -> 1.11.2 --- .../development/python-modules/pkginfo/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pkginfo/default.nix b/pkgs/development/python-modules/pkginfo/default.nix index 069ffd31a4ab..f21b2b38c844 100644 --- a/pkgs/development/python-modules/pkginfo/default.nix +++ b/pkgs/development/python-modules/pkginfo/default.nix @@ -2,21 +2,29 @@ lib, buildPythonPackage, fetchPypi, + setuptools, pytestCheckHook, }: buildPythonPackage rec { pname = "pkginfo"; - version = "1.11.1"; - format = "setuptools"; + version = "1.11.2"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-Lg3KHPTI45ZE7tMkCOqZZu4V4NMkxiuomaOTs8a0Z6o="; + hash = "sha256-xryRa4KY0VnjHywhbjXuW4bafaGIdPh5eY0KGYNTfIY="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; + disabledTests = [ + # wheel metadata version mismatch 2.1 vs 2.3 + "test_installed_ctor_w_dist_info" + ]; + pythonImportsCheck = [ "pkginfo" ]; meta = with lib; { From e5c3b12b6a1896673c7928f38efe7286ce43813a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 02:16:48 +0100 Subject: [PATCH 228/693] python313Packages.pyodbc: 5.1.0 -> 5.2.0 https://github.com/mkleehammer/pyodbc/releases/tag/5.2.0 --- pkgs/development/python-modules/pyodbc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyodbc/default.nix b/pkgs/development/python-modules/pyodbc/default.nix index 5e224805d14d..f5e1da3ce897 100644 --- a/pkgs/development/python-modules/pyodbc/default.nix +++ b/pkgs/development/python-modules/pyodbc/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "pyodbc"; - version = "5.1.0"; + version = "5.2.0"; format = "setuptools"; disabled = pythonOlder "3.7" || isPyPy; # use pypypdbc instead src = fetchPypi { inherit pname version; - hash = "sha256-OX/u5EVhplgL4IztvphkNoWVY/S7N49IIkZVyOmH6mA="; + hash = "sha256-3ovjmAnI3e7uJqS4dqZGNSnNSHpg0Tk+sqk+m81EqPU="; }; nativeBuildInputs = [ From 052de9f5973b3a2014622465c33f6a207e5bdde6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 02:44:15 +0100 Subject: [PATCH 229/693] python313Packagese.cattrs: disable failing tests, modernize --- .../python-modules/cattrs/default.nix | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix index b3bd55484b0f..edf8becd02fb 100644 --- a/pkgs/development/python-modules/cattrs/default.nix +++ b/pkgs/development/python-modules/cattrs/default.nix @@ -16,6 +16,7 @@ orjson, pytest-xdist, pytestCheckHook, + pythonAtLeast, pythonOlder, pyyaml, tomlkit, @@ -55,12 +56,12 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ + build-system = [ hatchling hatch-vcs ]; - propagatedBuildInputs = + dependencies = [ attrs ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup @@ -85,10 +86,10 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace "-l --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname" "" + --replace-fail "-l --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname" "" substituteInPlace tests/test_preconf.py \ - --replace "from orjson import dumps as orjson_dumps" "" \ - --replace "from orjson import loads as orjson_loads" "" + --replace-fail "from orjson import dumps as orjson_dumps" "" \ + --replace-fail "from orjson import loads as orjson_loads" "" ''; preCheck = '' @@ -97,21 +98,21 @@ buildPythonPackage rec { disabledTestPaths = [ # Don't run benchmarking tests - "bench/test_attrs_collections.py" - "bench/test_attrs_nested.py" - "bench/test_attrs_primitives.py" - "bench/test_primitives.py" + "bench" ]; - disabledTests = [ - # orjson is not available as it requires Rust nightly features to compile its requirements - "test_orjson" - # tomlkit is pinned to an older version and newer versions raise InvalidControlChar exception - "test_tomlkit" - # msgspec causes a segmentation fault for some reason - "test_simple_classes" - "test_msgspec_json_converter" - ]; + disabledTests = + [ + # orjson is not available as it requires Rust nightly features to compile its requirements + "test_orjson" + # msgspec causes a segmentation fault for some reason + "test_simple_classes" + "test_msgspec_json_converter" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # https://github.com/python-attrs/cattrs/pull/543 + "test_unstructure_deeply_nested_generics_list" + ]; pythonImportsCheck = [ "cattr" ]; From 0c2c3c8ee9ba35cebdcf08e40301add651d5e15e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 04:48:10 +0100 Subject: [PATCH 230/693] python313Packages.ml-dtypes: establish numpy2 compat --- pkgs/development/python-modules/ml-dtypes/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/ml-dtypes/default.nix b/pkgs/development/python-modules/ml-dtypes/default.nix index b23ca450327c..1b8b581267c3 100644 --- a/pkgs/development/python-modules/ml-dtypes/default.nix +++ b/pkgs/development/python-modules/ml-dtypes/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, # build-system setuptools, @@ -30,9 +31,16 @@ buildPythonPackage rec { fetchSubmodules = true; }; + patches = [ + (fetchpatch2 { + name = "numpy2-compat.patch"; + url = "https://github.com/jax-ml/ml_dtypes/commit/204df1147fd568f65890d958b6cdfa4dc55a226c.patch"; + hash = "sha256-IPHE6bQTbM0Ky5X6FDwwD/1eXL+kcA/D8pDGihAiJrQ="; + }) + ]; + postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail "numpy~=2.0" "numpy" \ --replace-fail "setuptools~=73.0.1" "setuptools" ''; From 99673388572ffc162e762fc6919259484dffcbc8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 11 Nov 2024 18:46:25 +0100 Subject: [PATCH 231/693] python312Packages.pytest-benchmark: 4.0.0 -> 5.1.0 https://github.com/ionelmc/pytest-benchmark/blob/v5.1.0/CHANGELOG.rst --- .../pytest-benchmark/default.nix | 41 +++++-------------- 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/pkgs/development/python-modules/pytest-benchmark/default.nix b/pkgs/development/python-modules/pytest-benchmark/default.nix index 585092787483..cd50288d3d22 100644 --- a/pkgs/development/python-modules/pytest-benchmark/default.nix +++ b/pkgs/development/python-modules/pytest-benchmark/default.nix @@ -5,10 +5,10 @@ elasticsearch, elastic-transport, fetchFromGitHub, - fetchpatch, freezegun, git, mercurial, + nbmake, py-cpuinfo, pygal, pytest, @@ -20,44 +20,28 @@ buildPythonPackage rec { pname = "pytest-benchmark"; - version = "4.0.0"; + version = "5.1.0"; pyproject = true; - disabled = pythonOlder "3.7"; - src = fetchFromGitHub { owner = "ionelmc"; repo = pname; rev = "v${version}"; - hash = "sha256-f9Ty4+5PycraxoLUSa9JFusV5Cot6bBWKfOGHZIRR3o="; + hash = "sha256-4fD9UfZ6jtY7Gx/PVzd1JNWeQNz+DJ2kQmCku2TgxzI="; }; - patches = [ - # replace distutils.spawn.find_executable with shutil.which - (fetchpatch { - url = "https://github.com/ionelmc/pytest-benchmark/commit/728752d2976ef53fde7e40beb3e55f09cf4d4736.patch"; - hash = "sha256-WIQADCLey5Y79UJUj9J5E02HQ0O86xBh/3IeGLpVrWI="; - }) - # fix tests with python3.11+; https://github.com/ionelmc/pytest-benchmark/pull/232 - (fetchpatch { - url = "https://github.com/ionelmc/pytest-benchmark/commit/b2f624afd68a3090f20187a46284904dd4baa4f6.patch"; - hash = "sha256-cylxPj/d0YzvOGw+ncVSCnQHwq2cukrgXhBHePPwjO0="; - }) - (fetchpatch { - url = "https://github.com/ionelmc/pytest-benchmark/commit/2b987f5be1873617f02f24cb6d76196f9aed21bd.patch"; - hash = "sha256-92kWEd935Co6uc/1y5OGKsc5/or81bORSdaiQFjDyTw="; - }) - ]; - - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; buildInputs = [ pytest ]; - propagatedBuildInputs = [ py-cpuinfo ]; + dependencies = [ py-cpuinfo ]; optional-dependencies = { aspect = [ aspectlib ]; - histogram = [ pygal ]; + histogram = [ + pygal + setuptools + ]; elasticsearch = [ elasticsearch ]; }; @@ -68,17 +52,14 @@ buildPythonPackage rec { freezegun git mercurial + nbmake pytestCheckHook pytest-xdist ] ++ lib.flatten (lib.attrValues optional-dependencies); - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - preCheck = '' export PATH="$out/bin:$PATH" + export HOME=$(mktemp -d) ''; disabledTests = lib.optionals (pythonOlder "3.12") [ From 19908dd50f6e5eec156db7193032d99a0e3d776e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 Nov 2024 02:26:50 +0100 Subject: [PATCH 232/693] python313Packages.django_4: disable failing test --- pkgs/development/python-modules/django/4.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/django/4.nix b/pkgs/development/python-modules/django/4.nix index 3e79caf80134..ad174e933528 100644 --- a/pkgs/development/python-modules/django/4.nix +++ b/pkgs/development/python-modules/django/4.nix @@ -85,6 +85,13 @@ buildPythonPackage rec { # https://hydra.nixos.org/build/254630990 substituteInPlace tests/view_tests/tests/test_debug.py \ --replace-fail "test_files" "dont_test_files" + '' + + lib.optionalString (pythonAtLeast "3.13") '' + # Fixed CommandTypes.test_help_default_options_with_custom_arguments test on Python 3.13+. + # https://github.com/django/django/commit/3426a5c33c36266af42128ee9eca4921e68ea876 + substituteInPlace tests/admin_scripts/tests.py --replace-fail \ + "test_help_default_options_with_custom_arguments" \ + "dont_test_help_default_options_with_custom_arguments" ''; nativeBuildInputs = [ setuptools ]; From ad54759c98a96596f11b88ad48d2e28b378c7a27 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 Nov 2024 02:54:04 +0100 Subject: [PATCH 233/693] python313Packages.importlib-resources: backport 3.13 compat --- .../python-modules/importlib-resources/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix index b9f05dda461c..529f03a806ea 100644 --- a/pkgs/development/python-modules/importlib-resources/default.nix +++ b/pkgs/development/python-modules/importlib-resources/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, pythonOlder, # build-system @@ -33,6 +34,15 @@ buildPythonPackage rec { hash = "sha256-mAhiodFsnhR6WWA2d/oqpf2CuH8iO2y4cGlbz86DAGU="; }; + patches = [ + (fetchpatch2 { + # https://github.com/python/importlib_resources/issues/318 + name = "python-3.13-compat.patch"; + url = "https://github.com/python/importlib_resources/commit/8684c7a028b65381ec6c6724e2f9c9bea7df0aee.patch"; + hash = "sha256-mb2V4rQPKyi5jMQ+yCf9fY3vHxB54BhvLzy2NNc0zNc="; + }) + ]; + build-system = [ setuptools setuptools-scm From 3b5710835c31dbfc7048a3cf13e4647d5afae9c8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 Nov 2024 03:04:55 +0100 Subject: [PATCH 234/693] python313Packages.hatchling: 1.25.0 -> 1.26.1 https://github.com/pypa/hatch/releases/tag/hatchling-v1.26.0 https://github.com/pypa/hatch/releases/tag/hatchling-v1.26.1 --- pkgs/development/python-modules/hatchling/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hatchling/default.nix b/pkgs/development/python-modules/hatchling/default.nix index 069cd5374b4c..19daf7262e18 100644 --- a/pkgs/development/python-modules/hatchling/default.nix +++ b/pkgs/development/python-modules/hatchling/default.nix @@ -21,13 +21,13 @@ buildPythonPackage rec { pname = "hatchling"; - version = "1.25.0"; + version = "1.26.1"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-cGRjGlEmELUiUKTT/xvYFVHW0UMcTre3LnNN9sdPQmI="; + hash = "sha256-jZVlkubF1d8fWRvh6XqUHHuexv0Dn0yGJMKVV7rANOk="; }; # listed in backend/pyproject.toml From d4c26774d5eb78e3374a8131934ea1f51b533cff Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:53:05 +0000 Subject: [PATCH 235/693] folly: 2024.03.11.00 -> 2024.11.18.00 Diff: https://github.com/facebook/folly/compare/refs/tags/v2024.03.11.00...v2024.11.18.00 --- pkgs/by-name/fo/folly/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 94fdacf323a4..f4ab18b34a71 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -10,6 +10,7 @@ boost, double-conversion, + fast-float, gflags, glog, libevent, @@ -34,7 +35,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "folly"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; # split outputs to reduce downstream closure sizes outputs = [ @@ -46,7 +47,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "facebook"; repo = "folly"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-INvWTw27fmVbKQIT9ebdRGMCOIzpc/NepRN2EnKLJx0="; + hash = "sha256-CX4YzNs64yeq/nDDaYfD5y8GKrxBueW4y275edPoS0c="; }; nativeBuildInputs = [ @@ -60,6 +61,7 @@ stdenv.mkDerivation (finalAttrs: { [ boost double-conversion + fast-float gflags glog libevent From 2fc882c70caf62e96b14996b7feff6f60ee8cbd9 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:23:30 +0000 Subject: [PATCH 236/693] folly: patch `pkg-config` file instead of CMake files This is closer to fixing the problem at the source. --- pkgs/by-name/fo/folly/package.nix | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index f4ab18b34a71..b5999f17cbd0 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -90,10 +90,11 @@ stdenv.mkDerivation (finalAttrs: { # see https://github.com/facebook/folly/issues/1880 "-DCMAKE_LIBRARY_ARCHITECTURE=${if stdenv.hostPlatform.isx86_64 then "x86_64" else "dummy"}" - # ensure correct dirs in $dev/lib/pkgconfig/libfolly.pc - # see https://github.com/NixOS/nixpkgs/issues/144170 - "-DCMAKE_INSTALL_INCLUDEDIR=include" - "-DCMAKE_INSTALL_LIBDIR=lib" + # Folly uses these instead of the standard CMake variables for some reason. + (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") + (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib") + (lib.cmakeFeature "CMAKE_INSTALL_DIR" "${placeholder "dev"}/lib/cmake/folly") + (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" (placeholder "dev")) ]; env.NIX_CFLAGS_COMPILE = toString [ @@ -101,11 +102,15 @@ stdenv.mkDerivation (finalAttrs: { "-fpermissive" ]; - # patch prefix issues again - # see https://github.com/NixOS/nixpkgs/issues/144170 - postFixup = '' - substituteInPlace $dev/lib/cmake/${finalAttrs.pname}/${finalAttrs.pname}-targets-release.cmake \ - --replace '$'{_IMPORT_PREFIX}/lib/ $out/lib/ + # https://github.com/NixOS/nixpkgs/issues/144170 + postPatch = '' + substituteInPlace CMake/libfolly.pc.in \ + --replace-fail \ + ${lib.escapeShellArg "\${exec_prefix}/@LIB_INSTALL_DIR@"} \ + '@CMAKE_INSTALL_FULL_LIBDIR@' \ + --replace-fail \ + ${lib.escapeShellArg "\${prefix}/@CMAKE_INSTALL_INCLUDEDIR@"} \ + '@CMAKE_INSTALL_FULL_INCLUDEDIR@' ''; passthru = { From fbdced9bb35a7a9619bfeab7a0244fd603fa6b03 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 12:23:30 +0000 Subject: [PATCH 237/693] folly: fix split outputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Downstream derivations were picking up references to the `dev` output through indirect `__FILE__` usage in the headers. I borrowed and modified this trick from the Boost package, where I believe vcunat originated it. It’s not very pretty and it should be in a hook or something, but it works at a pinch. --- pkgs/by-name/fo/folly/package.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index b5999f17cbd0..050cbf86bcb3 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -7,6 +7,7 @@ cmake, ninja, pkg-config, + removeReferencesTo, boost, double-conversion, @@ -54,6 +55,7 @@ stdenv.mkDerivation (finalAttrs: { cmake ninja pkg-config + removeReferencesTo ]; # See CMake/folly-deps.cmake in the Folly source tree. @@ -113,6 +115,18 @@ stdenv.mkDerivation (finalAttrs: { '@CMAKE_INSTALL_FULL_INCLUDEDIR@' ''; + postFixup = '' + # Sanitize header paths to avoid runtime dependencies leaking in + # through `__FILE__`. + ( + shopt -s globstar + for header in "$dev/include"/**/*.h; do + sed -i "1i#line 1 \"$header\"" "$header" + remove-references-to -t "$dev" "$header" + done + ) + ''; + passthru = { # folly-config.cmake, will `find_package` these, thus there should be # a way to ensure abi compatibility. From ae0425bd9a566411f8cd86de17985786f895bcb0 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:43:05 +0000 Subject: [PATCH 238/693] folly: refine `-fpermissive` flag This was added for AArch64 support, but we can use a more targeted flag for the build failure. --- pkgs/by-name/fo/folly/package.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 050cbf86bcb3..626dd800ce91 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -99,10 +99,15 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" (placeholder "dev")) ]; - env.NIX_CFLAGS_COMPILE = toString [ - "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" - "-fpermissive" - ]; + env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " ( + [ + "-DFOLLY_MOBILE=${if follyMobile then "1" else "0"}" + ] + ++ lib.optionals (stdenv.cc.isGNU && stdenv.hostPlatform.isAarch64) [ + # /build/source/folly/algorithm/simd/Movemask.h:156:32: error: cannot convert '__Uint64x1_t' to '__Uint8x8_t' + "-flax-vector-conversions" + ] + ); # https://github.com/NixOS/nixpkgs/issues/144170 postPatch = '' From 3352d4f1ab484923e31f86a2969e6c8442efd964 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:43:34 +0000 Subject: [PATCH 239/693] folly: remove obsolete AArch64 hack --- pkgs/by-name/fo/folly/package.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 626dd800ce91..809f62eb5d14 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -88,10 +88,6 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" - # temporary hack until folly builds work on aarch64, - # see https://github.com/facebook/folly/issues/1880 - "-DCMAKE_LIBRARY_ARCHITECTURE=${if stdenv.hostPlatform.isx86_64 then "x86_64" else "dummy"}" - # Folly uses these instead of the standard CMake variables for some reason. (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib") From cad3e3ece680b4bab28d15c9626dd78b4d4db726 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:43:59 +0000 Subject: [PATCH 240/693] folly: condition shared libraries on platform setting --- pkgs/by-name/fo/folly/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 809f62eb5d14..b21a2ad50466 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -86,7 +86,7 @@ stdenv.mkDerivation (finalAttrs: { propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc; cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) # Folly uses these instead of the standard CMake variables for some reason. (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") From fb3b469558cc59f1c992d86264f1f193208d01aa Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:45:03 +0000 Subject: [PATCH 241/693] folly: propagate required dependencies --- pkgs/by-name/fo/folly/package.nix | 22 ++++++++++++------- pkgs/by-name/wd/wdt/package.nix | 4 +--- .../libraries/edencommon/default.nix | 4 ---- pkgs/development/libraries/fb303/default.nix | 2 -- .../libraries/fbthrift/default.nix | 4 ---- pkgs/development/libraries/fizz/default.nix | 4 ---- pkgs/development/libraries/mvfst/default.nix | 2 -- pkgs/development/libraries/wangle/default.nix | 4 ---- pkgs/development/tools/watchman/default.nix | 6 +---- 9 files changed, 16 insertions(+), 36 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index b21a2ad50466..4716e53701f1 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -9,7 +9,6 @@ pkg-config, removeReferencesTo, - boost, double-conversion, fast-float, gflags, @@ -22,11 +21,13 @@ zstd, libiberty, libunwind, - fmt_8, - jemalloc, apple-sdk_11, darwinMinVersionHook, + boost, + fmt_8, + jemalloc, + follyMobile ? false, # for passthru.tests @@ -76,14 +77,21 @@ stdenv.mkDerivation (finalAttrs: { libunwind fmt_8 ] - ++ lib.optional stdenv.hostPlatform.isLinux jemalloc ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 (darwinMinVersionHook "11.0") ]; - # jemalloc headers are required in include/folly/portability/Malloc.h - propagatedBuildInputs = lib.optional stdenv.hostPlatform.isLinux jemalloc; + propagatedBuildInputs = + [ + # `folly-config.cmake` pulls these in. + boost + fmt_8 + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + # jemalloc headers are required in include/folly/portability/Malloc.h + jemalloc + ]; cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) @@ -129,8 +137,6 @@ stdenv.mkDerivation (finalAttrs: { ''; passthru = { - # folly-config.cmake, will `find_package` these, thus there should be - # a way to ensure abi compatibility. inherit boost; fmt = fmt_8; diff --git a/pkgs/by-name/wd/wdt/package.nix b/pkgs/by-name/wd/wdt/package.nix index f07734928bf9..f8c23aa04bbc 100644 --- a/pkgs/by-name/wd/wdt/package.nix +++ b/pkgs/by-name/wd/wdt/package.nix @@ -3,12 +3,10 @@ , fetchFromGitHub , cmake , folly -, boost , gflags , glog , openssl , double-conversion -, fmt , unstableGitUpdater }: @@ -24,7 +22,7 @@ stdenv.mkDerivation { }; nativeBuildInputs = [ cmake ]; - buildInputs = [ folly boost gflags glog openssl double-conversion fmt ]; + buildInputs = [ folly gflags glog openssl double-conversion ]; # source is expected to be named wdt # https://github.com/facebook/wdt/blob/43319e59d0c77092468367cdadab37d12d7a2383/CMakeLists.txt#L238 diff --git a/pkgs/development/libraries/edencommon/default.nix b/pkgs/development/libraries/edencommon/default.nix index ce26bc6f7125..9abd387a9d92 100644 --- a/pkgs/development/libraries/edencommon/default.nix +++ b/pkgs/development/libraries/edencommon/default.nix @@ -1,9 +1,7 @@ { stdenv , lib , fetchFromGitHub -, boost , cmake -, fmt_8 , folly , glog , gtest @@ -34,8 +32,6 @@ stdenv.mkDerivation rec { buildInputs = [ glog folly - fmt_8 - boost gtest ]; diff --git a/pkgs/development/libraries/fb303/default.nix b/pkgs/development/libraries/fb303/default.nix index 659497d690f6..9ed38b615cae 100644 --- a/pkgs/development/libraries/fb303/default.nix +++ b/pkgs/development/libraries/fb303/default.nix @@ -35,8 +35,6 @@ stdenv.mkDerivation rec { fbthrift fizz folly - folly.boost - folly.fmt glog libsodium mvfst diff --git a/pkgs/development/libraries/fbthrift/default.nix b/pkgs/development/libraries/fbthrift/default.nix index 04bce085c088..2d897613dfe5 100644 --- a/pkgs/development/libraries/fbthrift/default.nix +++ b/pkgs/development/libraries/fbthrift/default.nix @@ -2,13 +2,11 @@ , fetchFromGitHub , cmake , bison -, boost , libevent , double-conversion , libsodium , fizz , flex -, fmt_8 , folly , glog , gflags @@ -45,10 +43,8 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - boost double-conversion fizz - fmt_8 folly glog gflags diff --git a/pkgs/development/libraries/fizz/default.nix b/pkgs/development/libraries/fizz/default.nix index 4c38c54316b7..d53611cdc29f 100644 --- a/pkgs/development/libraries/fizz/default.nix +++ b/pkgs/development/libraries/fizz/default.nix @@ -1,12 +1,10 @@ { stdenv , fetchFromGitHub , cmake -, boost , libevent , double-conversion , glog , lib -, fmt_8 , zstd , gflags , libiberty @@ -42,8 +40,6 @@ stdenv.mkDerivation (finalAttrs: { NIX_LDFLAGS = "-lz"; buildInputs = [ - fmt_8 - boost double-conversion folly glog diff --git a/pkgs/development/libraries/mvfst/default.nix b/pkgs/development/libraries/mvfst/default.nix index 7c9d2e8da445..aee41d09afaf 100644 --- a/pkgs/development/libraries/mvfst/default.nix +++ b/pkgs/development/libraries/mvfst/default.nix @@ -30,8 +30,6 @@ stdenv.mkDerivation rec { buildInputs = [ fizz folly - folly.boost - folly.fmt gflags glog libsodium diff --git a/pkgs/development/libraries/wangle/default.nix b/pkgs/development/libraries/wangle/default.nix index d07145641a70..140bda3f631c 100644 --- a/pkgs/development/libraries/wangle/default.nix +++ b/pkgs/development/libraries/wangle/default.nix @@ -2,11 +2,9 @@ , lib , fetchFromGitHub , cmake -, boost , libevent , double-conversion , glog -, fmt_8 , gflags , openssl , fizz @@ -39,10 +37,8 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ - fmt_8 libsodium zlib - boost double-conversion fizz folly diff --git a/pkgs/development/tools/watchman/default.nix b/pkgs/development/tools/watchman/default.nix index aa915d89c7fa..d2ea2ed6ba0d 100644 --- a/pkgs/development/tools/watchman/default.nix +++ b/pkgs/development/tools/watchman/default.nix @@ -1,5 +1,4 @@ -{ boost -, cargo +{ cargo , cmake , CoreServices , cpptoml @@ -11,7 +10,6 @@ , fetchFromGitHub , fetchpatch , fizz -, fmt_8 , folly , glog , gtest @@ -67,9 +65,7 @@ stdenv.mkDerivation rec { openssl gtest glog - boost libevent - fmt_8 libsodium zlib folly From bba7126b28441f19eace48cd842d31799473ee82 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:48:13 +0000 Subject: [PATCH 242/693] folly: bump to `fmt_11` This is the version used upstream. --- pkgs/by-name/fo/folly/package.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 4716e53701f1..7d71c0c1d22f 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -25,7 +25,7 @@ darwinMinVersionHook, boost, - fmt_8, + fmt_11, jemalloc, follyMobile ? false, @@ -75,7 +75,6 @@ stdenv.mkDerivation (finalAttrs: { zstd libiberty libunwind - fmt_8 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 @@ -86,7 +85,7 @@ stdenv.mkDerivation (finalAttrs: { [ # `folly-config.cmake` pulls these in. boost - fmt_8 + fmt_11 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ # jemalloc headers are required in include/folly/portability/Malloc.h @@ -138,7 +137,7 @@ stdenv.mkDerivation (finalAttrs: { passthru = { inherit boost; - fmt = fmt_8; + fmt = fmt_11; tests = { inherit watchman; From a3afbe7ccf4d41df8c712f9eba76aa985c3a2e5b Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 02:30:18 +0000 Subject: [PATCH 243/693] folly: enable tests --- pkgs/by-name/fo/folly/package.nix | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 7d71c0c1d22f..3de4d6c632a5 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -28,6 +28,8 @@ fmt_11, jemalloc, + gtest, + follyMobile ? false, # for passthru.tests @@ -92,9 +94,15 @@ stdenv.mkDerivation (finalAttrs: { jemalloc ]; + checkInputs = [ + gtest + ]; + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + # Folly uses these instead of the standard CMake variables for some reason. (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib") @@ -112,6 +120,8 @@ stdenv.mkDerivation (finalAttrs: { ] ); + doCheck = true; + # https://github.com/NixOS/nixpkgs/issues/144170 postPatch = '' substituteInPlace CMake/libfolly.pc.in \ @@ -123,6 +133,35 @@ stdenv.mkDerivation (finalAttrs: { '@CMAKE_INSTALL_FULL_INCLUDEDIR@' ''; + # TODO: Figure out why `GTEST_FILTER` doesn’t work to skip these. + checkPhase = '' + runHook preCheck + + ctest -j $NIX_BUILD_CORES --output-on-failure --exclude-regex ${ + lib.escapeShellArg ( + lib.concatMapStringsSep "|" (test: "^${lib.escapeRegex test}$") ( + [ + "concurrency_concurrent_hash_map_test.*/ConcurrentHashMapTest/*.StressTestReclamation" + "io_async_ssl_session_test.SSLSessionTest.BasicTest" + "io_async_ssl_session_test.SSLSessionTest.NullSessionResumptionTest" + "singleton_thread_local_test.SingletonThreadLocalDeathTest.Overload" + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + "concurrency_cache_locality_test.CacheLocality.BenchmarkSysfs" + "concurrency_cache_locality_test.CacheLocality.LinuxActual" + "futures_future_test.Future.NoThrow" + "futures_retrying_test.RetryingTest.largeRetries" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "buffered_atomic_test.BufferedAtomic.singleThreadUnguardedAccess" + ] + ) + ) + } + + runHook postCheck + ''; + postFixup = '' # Sanitize header paths to avoid runtime dependencies leaking in # through `__FILE__`. From f86db4874da1299fe7b09c470ae618c544eaa923 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 02:39:35 +0000 Subject: [PATCH 244/693] folly: add update script --- pkgs/by-name/fo/folly/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 3de4d6c632a5..86f626fbce77 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -32,6 +32,8 @@ follyMobile ? false, + nix-update-script, + # for passthru.tests python3, watchman, @@ -178,6 +180,8 @@ stdenv.mkDerivation (finalAttrs: { inherit boost; fmt = fmt_11; + updateScript = nix-update-script { }; + tests = { inherit watchman; inherit (python3.pkgs) django pywatchman; From df175d625e04e14a69fffbc186c3c69d52e825cf Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:44:35 +0000 Subject: [PATCH 245/693] folly: add emily to maintainers --- pkgs/by-name/fo/folly/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 86f626fbce77..589c65c6f551 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -198,6 +198,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ abbradar pierreis + emily ]; }; }) From c71ed296d791941e67e108cc39eec4b13a32b705 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:17:11 +0000 Subject: [PATCH 246/693] folly: add techknowlogick to maintainers --- pkgs/by-name/fo/folly/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fo/folly/package.nix b/pkgs/by-name/fo/folly/package.nix index 589c65c6f551..3d84de4ea5c7 100644 --- a/pkgs/by-name/fo/folly/package.nix +++ b/pkgs/by-name/fo/folly/package.nix @@ -199,6 +199,7 @@ stdenv.mkDerivation (finalAttrs: { abbradar pierreis emily + techknowlogick ]; }; }) From 95d28ae657e6cc9eb01abbfc1623138955c798ac Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:51:02 +0000 Subject: [PATCH 247/693] fizz: format with `nixfmt-rfc-style` --- pkgs/development/libraries/fizz/default.nix | 76 ++++++++++++--------- 1 file changed, 42 insertions(+), 34 deletions(-) diff --git a/pkgs/development/libraries/fizz/default.nix b/pkgs/development/libraries/fizz/default.nix index d53611cdc29f..481e5ed326a0 100644 --- a/pkgs/development/libraries/fizz/default.nix +++ b/pkgs/development/libraries/fizz/default.nix @@ -1,18 +1,19 @@ -{ stdenv -, fetchFromGitHub -, cmake -, libevent -, double-conversion -, glog -, lib -, zstd -, gflags -, libiberty -, openssl -, folly -, libsodium -, gtest -, zlib +{ + stdenv, + fetchFromGitHub, + cmake, + libevent, + double-conversion, + glog, + lib, + zstd, + gflags, + libiberty, + openssl, + folly, + libsodium, + gtest, + zlib, }: stdenv.mkDerivation (finalAttrs: { @@ -30,12 +31,14 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../fizz"; - cmakeFlags = [ - "-Wno-dev" - (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; + cmakeFlags = + [ + "-Wno-dev" + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + ]; NIX_LDFLAGS = "-lz"; @@ -56,19 +59,21 @@ stdenv.mkDerivation (finalAttrs: { checkInputs = [ gtest ]; - preCheck = let - disabledTests = [ - # these don't work with openssl 3.x probably due to - # https://github.com/openssl/openssl/issues/13283 - "DefaultCertificateVerifierTest.TestVerifySuccess" - "DefaultCertificateVerifierTest.TestVerifyWithIntermediates" + preCheck = + let + disabledTests = [ + # these don't work with openssl 3.x probably due to + # https://github.com/openssl/openssl/issues/13283 + "DefaultCertificateVerifierTest.TestVerifySuccess" + "DefaultCertificateVerifierTest.TestVerifyWithIntermediates" - # timing-related & flaky - "SlidingBloomReplayCacheTest.TestTimeBucketing" - ]; - in '' - export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" - ''; + # timing-related & flaky + "SlidingBloomReplayCacheTest.TestTimeBucketing" + ]; + in + '' + export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" + ''; meta = with lib; { description = "C++14 implementation of the TLS-1.3 standard"; @@ -76,6 +81,9 @@ stdenv.mkDerivation (finalAttrs: { changelog = "https://github.com/facebookincubator/fizz/releases/tag/v${finalAttrs.version}"; license = licenses.bsd3; platforms = platforms.unix; - maintainers = with maintainers; [ pierreis kylesferrazza ]; + maintainers = with maintainers; [ + pierreis + kylesferrazza + ]; }; }) From 91c31b10692ba26cdfeb9501e8eb5280fbb66220 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:51:53 +0000 Subject: [PATCH 248/693] fizz: convert to new Darwin SDK pattern --- pkgs/development/libraries/fizz/default.nix | 43 +++++++++++---------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/pkgs/development/libraries/fizz/default.nix b/pkgs/development/libraries/fizz/default.nix index 481e5ed326a0..542e09a0e878 100644 --- a/pkgs/development/libraries/fizz/default.nix +++ b/pkgs/development/libraries/fizz/default.nix @@ -14,6 +14,8 @@ libsodium, gtest, zlib, + apple-sdk_11, + darwinMinVersionHook, }: stdenv.mkDerivation (finalAttrs: { @@ -31,29 +33,30 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../fizz"; - cmakeFlags = - [ - "-Wno-dev" - (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; + cmakeFlags = [ + "-Wno-dev" + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + ]; NIX_LDFLAGS = "-lz"; - buildInputs = [ - double-conversion - folly - glog - gflags - libevent - libiberty - libsodium - openssl - zlib - zstd - ]; + buildInputs = + [ + double-conversion + folly + glog + gflags + libevent + libiberty + libsodium + openssl + zlib + zstd + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + (darwinMinVersionHook "11.0") + ]; doCheck = true; checkInputs = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 94e6d30d91cd..f070fcf17f45 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9270,7 +9270,7 @@ with pkgs; }; fftwMpi = fftw.override { enableMpi = true; }; - fizz = darwin.apple_sdk_11_0.callPackage ../development/libraries/fizz { }; + fizz = callPackage ../development/libraries/fizz { }; flint = callPackage ../development/libraries/flint { }; From eb19c30c3ace43959738f0885b6c7f0f82a124a8 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:52:21 +0000 Subject: [PATCH 249/693] fizz: move to `pkgs/by-name` --- .../libraries/fizz/default.nix => by-name/fi/fizz/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/fizz/default.nix => by-name/fi/fizz/package.nix} (100%) diff --git a/pkgs/development/libraries/fizz/default.nix b/pkgs/by-name/fi/fizz/package.nix similarity index 100% rename from pkgs/development/libraries/fizz/default.nix rename to pkgs/by-name/fi/fizz/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f070fcf17f45..13d923728cf4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9270,8 +9270,6 @@ with pkgs; }; fftwMpi = fftw.override { enableMpi = true; }; - fizz = callPackage ../development/libraries/fizz { }; - flint = callPackage ../development/libraries/flint { }; flint3 = callPackage ../development/libraries/flint/3.nix { }; From be3861494e77b389b2ee98beda99b533f7195f67 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:53:24 +0000 Subject: [PATCH 250/693] fizz: remove `with lib;` --- pkgs/by-name/fi/fizz/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 542e09a0e878..2ff4f7ed2de5 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -78,13 +78,13 @@ stdenv.mkDerivation (finalAttrs: { export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" ''; - meta = with lib; { + meta = { description = "C++14 implementation of the TLS-1.3 standard"; homepage = "https://github.com/facebookincubator/fizz"; changelog = "https://github.com/facebookincubator/fizz/releases/tag/v${finalAttrs.version}"; - license = licenses.bsd3; - platforms = platforms.unix; - maintainers = with maintainers; [ + license = lib.licenses.bsd3; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ pierreis kylesferrazza ]; From d68470e96bd21abbd8f28c3cba770c19f643ecb5 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:54:02 +0000 Subject: [PATCH 251/693] fizz: reorder attributes --- pkgs/by-name/fi/fizz/package.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 2ff4f7ed2de5..05705dfeb234 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -31,15 +31,6 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; - cmakeDir = "../fizz"; - - cmakeFlags = [ - "-Wno-dev" - (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) - ]; - - NIX_LDFLAGS = "-lz"; - buildInputs = [ double-conversion @@ -58,10 +49,21 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; - doCheck = true; checkInputs = [ gtest ]; + + cmakeDir = "../fizz"; + + cmakeFlags = [ + "-Wno-dev" + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + ]; + + NIX_LDFLAGS = "-lz"; + + doCheck = true; + preCheck = let disabledTests = [ From 997d4edee5cc3d79b9530ee14e1ac913f928fc13 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:57:11 +0000 Subject: [PATCH 252/693] fizz: reorder inputs to match upstream file --- pkgs/by-name/fi/fizz/package.nix | 36 ++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 05705dfeb234..5a6579918d4e 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -1,21 +1,25 @@ { - stdenv, - fetchFromGitHub, - cmake, - libevent, - double-conversion, - glog, lib, - zstd, - gflags, - libiberty, - openssl, + stdenv, + + fetchFromGitHub, + + cmake, + folly, + openssl, + glog, + double-conversion, + zstd, libsodium, - gtest, + gflags, zlib, + libevent, + libiberty, apple-sdk_11, darwinMinVersionHook, + + gtest, }: stdenv.mkDerivation (finalAttrs: { @@ -33,16 +37,16 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ - double-conversion folly + openssl glog + double-conversion + zstd + libsodium gflags + zlib libevent libiberty - libsodium - openssl - zlib - zstd ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 From 74e329179b95b39fd04bb04c415d350c98488113 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:47:05 +0000 Subject: [PATCH 253/693] fizz: remove unnecessary input --- pkgs/by-name/fi/fizz/package.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 5a6579918d4e..c6711fe77d3e 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -15,7 +15,6 @@ gflags, zlib, libevent, - libiberty, apple-sdk_11, darwinMinVersionHook, @@ -46,7 +45,6 @@ stdenv.mkDerivation (finalAttrs: { gflags zlib libevent - libiberty ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 From cb829657b8992dee9d0781462718bd5a6498245b Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 01:36:55 +0000 Subject: [PATCH 254/693] fizz: remove unnecessary `NIX_LDFLAGS` --- pkgs/by-name/fi/fizz/package.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index c6711fe77d3e..976a8194a414 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -62,8 +62,6 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; - NIX_LDFLAGS = "-lz"; - doCheck = true; preCheck = From ca280ee51f8c404858fa2778889ec155cb5c2390 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 01:37:11 +0000 Subject: [PATCH 255/693] fizz: remove unnecessary CMake flag No point silencing these warnings. --- pkgs/by-name/fi/fizz/package.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 976a8194a414..a822021cd333 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -58,7 +58,6 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../fizz"; cmakeFlags = [ - "-Wno-dev" (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; From 1c1d6a6ba2943c6272ee865021b9ca4c02f7876c Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 14:07:00 +0000 Subject: [PATCH 256/693] fizz: use Ninja --- pkgs/by-name/fi/fizz/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index a822021cd333..85511fdf9853 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, cmake, + ninja, folly, openssl, @@ -32,7 +33,10 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-IHWotiVUjGOvebXy4rwsh8U8UMxTrF1VaqXzZMjojiM="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + ninja + ]; buildInputs = [ From 3f4e898d0a359a2847aff3145bb81a8d4147f245 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 19:41:11 +0000 Subject: [PATCH 257/693] fizz: set `__darwinAllowLocalNetworking` --- pkgs/by-name/fi/fizz/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 85511fdf9853..df5ffa289a31 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -65,6 +65,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; + __darwinAllowLocalNetworking = true; + doCheck = true; preCheck = From 67fd043f62962e02670b4a714ac375b40772e1e1 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 13:59:45 +0000 Subject: [PATCH 258/693] fizz: 2024.03.11.00 -> 2024.11.11.00 Diff: https://github.com/facebookincubator/fizz/compare/refs/tags/v2024.03.11.00...v2024.11.18.00 Changelog: https://github.com/facebookincubator/fizz/releases/tag/v2024.11.18.00 --- pkgs/by-name/fi/fizz/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index df5ffa289a31..c4024eedc82b 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -24,13 +24,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "fizz"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; src = fetchFromGitHub { owner = "facebookincubator"; repo = "fizz"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-IHWotiVUjGOvebXy4rwsh8U8UMxTrF1VaqXzZMjojiM="; + hash = "sha256-mNe+CHEXhkwzek9qy2l6zvPXim9tJV44s+naSm6bQ4Q="; }; nativeBuildInputs = [ From 136740dec662e1bc4e9560393fa568c3f9450b53 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 01:51:53 +0000 Subject: [PATCH 259/693] fizz: condition shared libraries on platform setting --- pkgs/by-name/fi/fizz/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index c4024eedc82b..d7373cc1e178 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -62,6 +62,7 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../fizz"; cmakeFlags = [ + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; From 03b58e14f792db6acbed43439281561dcfe92d7f Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 17:14:38 +0000 Subject: [PATCH 260/693] fizz: propagate required dependencies --- pkgs/by-name/fi/fizz/package.nix | 16 ++++++++++------ pkgs/development/libraries/fb303/default.nix | 4 ---- pkgs/development/libraries/fbthrift/default.nix | 2 -- pkgs/development/libraries/mvfst/default.nix | 4 ---- pkgs/development/libraries/wangle/default.nix | 4 ---- pkgs/development/tools/watchman/default.nix | 2 -- 6 files changed, 10 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index d7373cc1e178..19d78dee6ead 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -7,18 +7,19 @@ cmake, ninja, - folly, openssl, glog, double-conversion, zstd, - libsodium, gflags, - zlib, libevent, apple-sdk_11, darwinMinVersionHook, + folly, + libsodium, + zlib, + gtest, }: @@ -40,14 +41,11 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ - folly openssl glog double-conversion zstd - libsodium gflags - zlib libevent ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ @@ -55,6 +53,12 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + propagatedBuildInputs = [ + folly + libsodium + zlib + ]; + checkInputs = [ gtest ]; diff --git a/pkgs/development/libraries/fb303/default.nix b/pkgs/development/libraries/fb303/default.nix index 9ed38b615cae..5236e07b77d3 100644 --- a/pkgs/development/libraries/fb303/default.nix +++ b/pkgs/development/libraries/fb303/default.nix @@ -6,11 +6,9 @@ , fizz , folly , glog -, libsodium , mvfst , python3 , wangle -, zlib }: stdenv.mkDerivation rec { @@ -36,11 +34,9 @@ stdenv.mkDerivation rec { fizz folly glog - libsodium mvfst python3 wangle - zlib ]; meta = with lib; { diff --git a/pkgs/development/libraries/fbthrift/default.nix b/pkgs/development/libraries/fbthrift/default.nix index 2d897613dfe5..ad0173b458b4 100644 --- a/pkgs/development/libraries/fbthrift/default.nix +++ b/pkgs/development/libraries/fbthrift/default.nix @@ -4,7 +4,6 @@ , bison , libevent , double-conversion -, libsodium , fizz , flex , folly @@ -55,7 +54,6 @@ stdenv.mkDerivation rec { wangle zlib zstd - libsodium ]; meta = with lib; { diff --git a/pkgs/development/libraries/mvfst/default.nix b/pkgs/development/libraries/mvfst/default.nix index aee41d09afaf..f99fc041ab97 100644 --- a/pkgs/development/libraries/mvfst/default.nix +++ b/pkgs/development/libraries/mvfst/default.nix @@ -6,8 +6,6 @@ , folly , gflags , glog -, libsodium -, zlib }: stdenv.mkDerivation rec { @@ -32,8 +30,6 @@ stdenv.mkDerivation rec { folly gflags glog - libsodium - zlib ]; meta = with lib; { diff --git a/pkgs/development/libraries/wangle/default.nix b/pkgs/development/libraries/wangle/default.nix index 140bda3f631c..c1209e0ee800 100644 --- a/pkgs/development/libraries/wangle/default.nix +++ b/pkgs/development/libraries/wangle/default.nix @@ -10,8 +10,6 @@ , fizz , folly , gtest -, libsodium -, zlib }: stdenv.mkDerivation (finalAttrs: { @@ -37,8 +35,6 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ - libsodium - zlib double-conversion fizz folly diff --git a/pkgs/development/tools/watchman/default.nix b/pkgs/development/tools/watchman/default.nix index d2ea2ed6ba0d..0a928810eb68 100644 --- a/pkgs/development/tools/watchman/default.nix +++ b/pkgs/development/tools/watchman/default.nix @@ -27,7 +27,6 @@ , stateDir ? "/tmp" , stdenv , wangle -, zlib , zstd }: @@ -67,7 +66,6 @@ stdenv.mkDerivation rec { glog libevent libsodium - zlib folly fizz wangle From f88b7334eaedf837cb81f08bd40e9d80543f7b61 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 01:53:36 +0000 Subject: [PATCH 261/693] fizz: enable more tests --- pkgs/by-name/fi/fizz/package.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 19d78dee6ead..a78218ad8d09 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -77,11 +77,6 @@ stdenv.mkDerivation (finalAttrs: { preCheck = let disabledTests = [ - # these don't work with openssl 3.x probably due to - # https://github.com/openssl/openssl/issues/13283 - "DefaultCertificateVerifierTest.TestVerifySuccess" - "DefaultCertificateVerifierTest.TestVerifyWithIntermediates" - # timing-related & flaky "SlidingBloomReplayCacheTest.TestTimeBucketing" ]; From dbb5591b5b267339ac46448b1096f0d457c237b6 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 02:40:52 +0000 Subject: [PATCH 262/693] fizz: split outputs --- pkgs/by-name/fi/fizz/package.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index a78218ad8d09..e5927116c456 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -6,6 +6,7 @@ cmake, ninja, + removeReferencesTo, openssl, glog, @@ -27,6 +28,12 @@ stdenv.mkDerivation (finalAttrs: { pname = "fizz"; version = "2024.11.18.00"; + outputs = [ + "bin" + "out" + "dev" + ]; + src = fetchFromGitHub { owner = "facebookincubator"; repo = "fizz"; @@ -37,6 +44,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja + removeReferencesTo ]; buildInputs = @@ -67,7 +75,16 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + + (lib.cmakeFeature "BIN_INSTALL_DIR" "${placeholder "bin"}/bin") + (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") + (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib") + (lib.cmakeFeature "CMAKE_INSTALL_DIR" "${placeholder "dev"}/lib/cmake/fizz") + # Fizz puts test headers into `${CMAKE_INSTALL_PREFIX}/include` + # for other projects to consume. + (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" (placeholder "dev")) ]; __darwinAllowLocalNetworking = true; @@ -85,6 +102,18 @@ stdenv.mkDerivation (finalAttrs: { export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" ''; + postFixup = '' + # Sanitize header paths to avoid runtime dependencies leaking in + # through `__FILE__`. + ( + shopt -s globstar + for header in "$dev/include"/**/*.h; do + sed -i "1i#line 1 \"$header\"" "$header" + remove-references-to -t "$dev" "$header" + done + ) + ''; + meta = { description = "C++14 implementation of the TLS-1.3 standard"; homepage = "https://github.com/facebookincubator/fizz"; From 0414a001b6b80cbf81c84cbbe67fc418191f581d Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 02:41:47 +0000 Subject: [PATCH 263/693] fizz: add update script --- pkgs/by-name/fi/fizz/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index e5927116c456..81bb4e5f6792 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -22,6 +22,8 @@ zlib, gtest, + + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -114,6 +116,8 @@ stdenv.mkDerivation (finalAttrs: { ) ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "C++14 implementation of the TLS-1.3 standard"; homepage = "https://github.com/facebookincubator/fizz"; From 5115b6186a5c3d6264964358022d27a2ce508702 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:47:41 +0000 Subject: [PATCH 264/693] fizz: add emily to maintainers --- pkgs/by-name/fi/fizz/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 81bb4e5f6792..3a4bc2daaae9 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -127,6 +127,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ pierreis kylesferrazza + emily ]; }; }) From 4871d40414226e48c89c411b56fc668dea1cb23a Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:16:54 +0000 Subject: [PATCH 265/693] fizz: add techknowlogick to maintainers --- pkgs/by-name/fi/fizz/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fi/fizz/package.nix b/pkgs/by-name/fi/fizz/package.nix index 3a4bc2daaae9..4c5c1efe08c6 100644 --- a/pkgs/by-name/fi/fizz/package.nix +++ b/pkgs/by-name/fi/fizz/package.nix @@ -128,6 +128,7 @@ stdenv.mkDerivation (finalAttrs: { pierreis kylesferrazza emily + techknowlogick ]; }; }) From ee8c1b1980f466183f36b473accf64b58de12aa4 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:00:04 +0000 Subject: [PATCH 266/693] mvfst: format with `nixfmt-rfc-style` --- pkgs/development/libraries/mvfst/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/mvfst/default.nix b/pkgs/development/libraries/mvfst/default.nix index f99fc041ab97..fe2513b2c220 100644 --- a/pkgs/development/libraries/mvfst/default.nix +++ b/pkgs/development/libraries/mvfst/default.nix @@ -1,11 +1,12 @@ -{ stdenv -, lib -, fetchFromGitHub -, cmake -, fizz -, folly -, gflags -, glog +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + fizz, + folly, + gflags, + glog, }: stdenv.mkDerivation rec { From 5b60e96f64c75a169768492ef30e125037242f66 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:00:20 +0000 Subject: [PATCH 267/693] mvfst: convert to new Darwin SDK pattern --- pkgs/development/libraries/mvfst/default.nix | 23 +++++++++++--------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/mvfst/default.nix b/pkgs/development/libraries/mvfst/default.nix index fe2513b2c220..429de18e2267 100644 --- a/pkgs/development/libraries/mvfst/default.nix +++ b/pkgs/development/libraries/mvfst/default.nix @@ -7,6 +7,8 @@ folly, gflags, glog, + apple-sdk_11, + darwinMinVersionHook, }: stdenv.mkDerivation rec { @@ -22,16 +24,17 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; - cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; - - buildInputs = [ - fizz - folly - gflags - glog - ]; + buildInputs = + [ + fizz + folly + gflags + glog + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + (darwinMinVersionHook "11.0") + ]; meta = with lib; { description = "Implementation of the QUIC transport protocol"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13d923728cf4..a0f31205a225 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10530,7 +10530,7 @@ with pkgs; mpich-pmix = mpich.override { pmixSupport = true; withPm = [ ]; }; - mvfst = darwin.apple_sdk_11_0.callPackage ../development/libraries/mvfst { }; + mvfst = callPackage ../development/libraries/mvfst { }; mygpoclient = with python3.pkgs; toPythonApplication mygpoclient; From d76e1dc840eb0d018f11ec88d8808c71052e29cd Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:01:02 +0000 Subject: [PATCH 268/693] mvfst: move to `pkgs/by-name` --- .../mvfst/default.nix => by-name/mv/mvfst/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/mvfst/default.nix => by-name/mv/mvfst/package.nix} (100%) diff --git a/pkgs/development/libraries/mvfst/default.nix b/pkgs/by-name/mv/mvfst/package.nix similarity index 100% rename from pkgs/development/libraries/mvfst/default.nix rename to pkgs/by-name/mv/mvfst/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a0f31205a225..0add6f0f4721 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10530,8 +10530,6 @@ with pkgs; mpich-pmix = mpich.override { pmixSupport = true; withPm = [ ]; }; - mvfst = callPackage ../development/libraries/mvfst { }; - mygpoclient = with python3.pkgs; toPythonApplication mygpoclient; mygui = callPackage ../development/libraries/mygui { From e82a30f577f4547eb29ed20f428813e1d0a363b2 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:02:20 +0000 Subject: [PATCH 269/693] mvfst: use `finalAttrs` --- pkgs/by-name/mv/mvfst/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 429de18e2267..66df107ba399 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -11,14 +11,14 @@ darwinMinVersionHook, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "mvfst"; version = "2024.03.11.00"; src = fetchFromGitHub { owner = "facebook"; repo = "mvfst"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8="; }; @@ -43,4 +43,4 @@ stdenv.mkDerivation rec { platforms = platforms.unix; maintainers = with maintainers; [ ris ]; }; -} +}) From 5848ed9bfbec76ed225ffb9519584c0d945851e2 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:02:42 +0000 Subject: [PATCH 270/693] mvfst: remove `with lib;` --- pkgs/by-name/mv/mvfst/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 66df107ba399..d50fcb14efc8 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -36,11 +36,11 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; - meta = with lib; { + meta = { description = "Implementation of the QUIC transport protocol"; homepage = "https://github.com/facebook/mvfst"; - license = licenses.mit; - platforms = platforms.unix; - maintainers = with maintainers; [ ris ]; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ ris ]; }; }) From 40d409e3dbd6da712dafe2ecf8c1f9d1ecbf138f Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:05:34 +0000 Subject: [PATCH 271/693] mvfst: use `refs/tags/` --- pkgs/by-name/mv/mvfst/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index d50fcb14efc8..c1eb7036f5fd 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "facebook"; repo = "mvfst"; - rev = "v${finalAttrs.version}"; + rev = "refs/tags/v${finalAttrs.version}"; sha256 = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8="; }; From 067a44e638003c206c9ec4826e727b7d31e25ce4 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:05:44 +0000 Subject: [PATCH 272/693] mvfst: use `hash` --- pkgs/by-name/mv/mvfst/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index c1eb7036f5fd..0c59fcaccdcb 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "facebook"; repo = "mvfst"; rev = "refs/tags/v${finalAttrs.version}"; - sha256 = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8="; + hash = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8="; }; nativeBuildInputs = [ cmake ]; From 4f8f722165e5f490327e4d5a65513846cd9bd309 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:27:29 +0000 Subject: [PATCH 273/693] mvfst: reorder inputs --- pkgs/by-name/mv/mvfst/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 0c59fcaccdcb..49a93f56642c 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -1,8 +1,11 @@ { - stdenv, lib, + stdenv, + fetchFromGitHub, + cmake, + fizz, folly, gflags, From c647a831203c3d51eef949e9cd60cdcc5a191fdc Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:27:29 +0000 Subject: [PATCH 274/693] mvfst: use Ninja --- pkgs/by-name/mv/mvfst/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 49a93f56642c..b322f07b05d3 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, cmake, + ninja, fizz, folly, @@ -25,7 +26,10 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + ninja + ]; buildInputs = [ From 5b08d0983422fc5cbe9502de2cc137aea3b7eb8f Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:06:12 +0000 Subject: [PATCH 275/693] mvfst: 2024.03.11.00 -> 2024.11.18.00 Diff: https://github.com/facebook/mvfst/compare/refs/tags/v2024.03.11.00...v2024.11.18.00 --- pkgs/by-name/mv/mvfst/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index b322f07b05d3..d78431ff91e4 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -17,13 +17,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "mvfst"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; src = fetchFromGitHub { owner = "facebook"; repo = "mvfst"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8="; + hash = "sha256-2Iqk6QshM8fVO65uIqrTbex7aj8ELNSzNseYEeNdzCY="; }; nativeBuildInputs = [ From ee1e828c2731ec81cc11c03b7f7eb23c3d02b5e3 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 02:08:57 +0000 Subject: [PATCH 276/693] mvfst: condition shared libraries on platform setting --- pkgs/by-name/mv/mvfst/package.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index d78431ff91e4..379f292bcfb6 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -43,6 +43,24 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + cmakeFlags = + [ + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) + + (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Homebrew sets this, and the shared library build fails without + # it. I don‘t know, either. It scares me. + (lib.cmakeFeature "CMAKE_SHARED_LINKER_FLAGS" "-Wl,-undefined,dynamic_lookup") + ]; + + postPatch = '' + # Make sure the libraries the `tperf` binary uses are installed. + printf 'install(TARGETS mvfst_test_utils)\n' >> quic/common/test/CMakeLists.txt + printf 'install(TARGETS mvfst_dsr_backend)\n' >> quic/dsr/CMakeLists.txt + ''; + meta = { description = "Implementation of the QUIC transport protocol"; homepage = "https://github.com/facebook/mvfst"; From e5709fe8148e9af89d7eca372eda64d6fe7ab6a7 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:29:07 +0000 Subject: [PATCH 277/693] mvfst: propagate required dependencies --- pkgs/by-name/mv/mvfst/package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 379f292bcfb6..73f06c4cd677 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -7,12 +7,13 @@ cmake, ninja, - fizz, folly, gflags, glog, apple-sdk_11, darwinMinVersionHook, + + fizz, }: stdenv.mkDerivation (finalAttrs: { @@ -33,7 +34,6 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ - fizz folly gflags glog @@ -43,6 +43,10 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + propagatedBuildInputs = [ + fizz + ]; + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) From ea635930e783661d12ffd5a589981c89ee84b646 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 02:11:05 +0000 Subject: [PATCH 278/693] mvfst: enable tests --- pkgs/by-name/mv/mvfst/package.nix | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 73f06c4cd677..8bbc024263e8 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -14,6 +14,8 @@ darwinMinVersionHook, fizz, + + gtest, }: stdenv.mkDerivation (finalAttrs: { @@ -47,11 +49,17 @@ stdenv.mkDerivation (finalAttrs: { fizz ]; + checkInputs = [ + gtest + ]; + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) + + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Homebrew sets this, and the shared library build fails without @@ -59,12 +67,46 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "CMAKE_SHARED_LINKER_FLAGS" "-Wl,-undefined,dynamic_lookup") ]; + __darwinAllowLocalNetworking = true; + + doCheck = true; + postPatch = '' # Make sure the libraries the `tperf` binary uses are installed. printf 'install(TARGETS mvfst_test_utils)\n' >> quic/common/test/CMakeLists.txt printf 'install(TARGETS mvfst_dsr_backend)\n' >> quic/dsr/CMakeLists.txt ''; + checkPhase = '' + runHook preCheck + + ctest -j $NIX_BUILD_CORES --output-on-failure ${ + lib.optionalString stdenv.hostPlatform.isLinux ( + lib.escapeShellArgs [ + "--exclude-regex" + (lib.concatMapStringsSep "|" (test: "^${lib.escapeRegex test}$") [ + "*/QuicClientTransportIntegrationTest.NetworkTest/*" + "*/QuicClientTransportIntegrationTest.FlowControlLimitedTest/*" + "*/QuicClientTransportIntegrationTest.NetworkTestConnected/*" + "*/QuicClientTransportIntegrationTest.SetTransportSettingsAfterStart/*" + "*/QuicClientTransportIntegrationTest.TestZeroRttSuccess/*" + "*/QuicClientTransportIntegrationTest.ZeroRttRetryPacketTest/*" + "*/QuicClientTransportIntegrationTest.NewTokenReceived/*" + "*/QuicClientTransportIntegrationTest.UseNewTokenThenReceiveRetryToken/*" + "*/QuicClientTransportIntegrationTest.TestZeroRttRejection/*" + "*/QuicClientTransportIntegrationTest.TestZeroRttNotAttempted/*" + "*/QuicClientTransportIntegrationTest.TestZeroRttInvalidAppParams/*" + "*/QuicClientTransportIntegrationTest.ChangeEventBase/*" + "*/QuicClientTransportIntegrationTest.ResetClient/*" + "*/QuicClientTransportIntegrationTest.TestStatelessResetToken/*" + ]) + ] + ) + } + + runHook postCheck + ''; + meta = { description = "Implementation of the QUIC transport protocol"; homepage = "https://github.com/facebook/mvfst"; From 49ad47893e80628afe3e08fc847929503da1de9b Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 02:59:42 +0000 Subject: [PATCH 279/693] mvfst: split outputs --- pkgs/by-name/mv/mvfst/package.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 8bbc024263e8..f01f1be5a817 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -6,6 +6,7 @@ cmake, ninja, + removeReferencesTo, folly, gflags, @@ -22,6 +23,12 @@ stdenv.mkDerivation (finalAttrs: { pname = "mvfst"; version = "2024.11.18.00"; + outputs = [ + "bin" + "out" + "dev" + ]; + src = fetchFromGitHub { owner = "facebook"; repo = "mvfst"; @@ -32,6 +39,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja + removeReferencesTo ]; buildInputs = @@ -60,6 +68,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + + (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" (placeholder "dev")) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Homebrew sets this, and the shared library build fails without @@ -107,6 +117,21 @@ stdenv.mkDerivation (finalAttrs: { runHook postCheck ''; + postFixup = '' + # Sanitize header paths to avoid runtime dependencies leaking in + # through `__FILE__`. + ( + shopt -s globstar + for header in "$dev/include"/**/*.h; do + sed -i "1i#line 1 \"$header\"" "$header" + remove-references-to -t "$dev" "$header" + done + ) + + # TODO: Do this in `gtest` rather than downstream. + remove-references-to -t ${gtest.dev} $out/lib/* + ''; + meta = { description = "Implementation of the QUIC transport protocol"; homepage = "https://github.com/facebook/mvfst"; From 0931562600485a700fd8d3ed65af94495e13e3c2 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:00:36 +0000 Subject: [PATCH 280/693] mvfst: add update script --- pkgs/by-name/mv/mvfst/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index f01f1be5a817..b551e0e7fcf8 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -17,6 +17,8 @@ fizz, gtest, + + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -132,6 +134,8 @@ stdenv.mkDerivation (finalAttrs: { remove-references-to -t ${gtest.dev} $out/lib/* ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Implementation of the QUIC transport protocol"; homepage = "https://github.com/facebook/mvfst"; From fef1275d9bdb171b189364ad6e26f9f478ab7389 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:49:30 +0000 Subject: [PATCH 281/693] mvfst: add emily to maintainers --- pkgs/by-name/mv/mvfst/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index b551e0e7fcf8..9224a2d4ebc1 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -141,6 +141,9 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/facebook/mvfst"; license = lib.licenses.mit; platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ ris ]; + maintainers = with lib.maintainers; [ + ris + emily + ]; }; }) From 01eddf68ddef3292efb478616a613e5adff45ad0 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:16:38 +0000 Subject: [PATCH 282/693] mvfst: add techknowlogick to maintainers --- pkgs/by-name/mv/mvfst/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/mv/mvfst/package.nix b/pkgs/by-name/mv/mvfst/package.nix index 9224a2d4ebc1..de686a269b51 100644 --- a/pkgs/by-name/mv/mvfst/package.nix +++ b/pkgs/by-name/mv/mvfst/package.nix @@ -144,6 +144,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ ris emily + techknowlogick ]; }; }) From 6d542aedaf25d86a78a3ab58b9a574a972b8f785 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:43:53 +0000 Subject: [PATCH 283/693] wangle: format with `nixfmt-rfc-style` --- pkgs/development/libraries/wangle/default.nix | 78 +++++++++++-------- 1 file changed, 44 insertions(+), 34 deletions(-) diff --git a/pkgs/development/libraries/wangle/default.nix b/pkgs/development/libraries/wangle/default.nix index c1209e0ee800..c4ce19bd426e 100644 --- a/pkgs/development/libraries/wangle/default.nix +++ b/pkgs/development/libraries/wangle/default.nix @@ -1,15 +1,16 @@ -{ stdenv -, lib -, fetchFromGitHub -, cmake -, libevent -, double-conversion -, glog -, gflags -, openssl -, fizz -, folly -, gtest +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + libevent, + double-conversion, + glog, + gflags, + openssl, + fizz, + folly, + gtest, }: stdenv.mkDerivation (finalAttrs: { @@ -27,12 +28,14 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../wangle"; - cmakeFlags = [ - "-Wno-dev" - (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; + cmakeFlags = + [ + "-Wno-dev" + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + ]; buildInputs = [ double-conversion @@ -48,22 +51,26 @@ stdenv.mkDerivation (finalAttrs: { checkInputs = [ gtest ]; - preCheck = let - disabledTests = [ - # these depend on example pem files from the folly source tree (?) - "SSLContextManagerTest.TestSingleClientCAFileSet" - "SSLContextManagerTest.TestMultipleClientCAsSet" + preCheck = + let + disabledTests = + [ + # these depend on example pem files from the folly source tree (?) + "SSLContextManagerTest.TestSingleClientCAFileSet" + "SSLContextManagerTest.TestMultipleClientCAsSet" - # https://github.com/facebook/wangle/issues/206 - "SSLContextManagerTest.TestSessionContextCertRemoval" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - # flaky - "BroadcastPoolTest.ThreadLocalPool" - "Bootstrap.UDPClientServerTest" - ]; - in '' - export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" - ''; + # https://github.com/facebook/wangle/issues/206 + "SSLContextManagerTest.TestSessionContextCertRemoval" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # flaky + "BroadcastPoolTest.ThreadLocalPool" + "Bootstrap.UDPClientServerTest" + ]; + in + '' + export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" + ''; meta = with lib; { description = "Open-source C++ networking library"; @@ -75,6 +82,9 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/facebook/wangle"; license = licenses.asl20; platforms = platforms.unix; - maintainers = with maintainers; [ pierreis kylesferrazza ]; + maintainers = with maintainers; [ + pierreis + kylesferrazza + ]; }; }) From b21418c8d81f68502d196c4fcfaad1197413b2ce Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:44:26 +0000 Subject: [PATCH 284/693] wangle: convert to new Darwin SDK pattern --- pkgs/development/libraries/wangle/default.nix | 31 ++++++++++--------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/pkgs/development/libraries/wangle/default.nix b/pkgs/development/libraries/wangle/default.nix index c4ce19bd426e..26271c5f0ac7 100644 --- a/pkgs/development/libraries/wangle/default.nix +++ b/pkgs/development/libraries/wangle/default.nix @@ -11,6 +11,8 @@ fizz, folly, gtest, + apple-sdk_11, + darwinMinVersionHook, }: stdenv.mkDerivation (finalAttrs: { @@ -28,25 +30,26 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../wangle"; - cmakeFlags = + cmakeFlags = [ + "-Wno-dev" + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + ]; + + buildInputs = [ - "-Wno-dev" - (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + double-conversion + fizz + folly + glog + gflags + libevent + openssl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + apple-sdk_11 + (darwinMinVersionHook "11.0") ]; - buildInputs = [ - double-conversion - fizz - folly - glog - gflags - libevent - openssl - ]; - doCheck = true; checkInputs = [ gtest diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0add6f0f4721..60b530948643 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11283,7 +11283,7 @@ with pkgs; vulkan-tools = callPackage ../tools/graphics/vulkan-tools { inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; }; - wangle = darwin.apple_sdk_11_0.callPackage ../development/libraries/wangle { }; + wangle = callPackage ../development/libraries/wangle { }; wayland = darwin.apple_sdk_11_0.callPackage ../development/libraries/wayland { }; wayland-scanner = callPackage ../development/libraries/wayland/scanner.nix { }; From 1b7c0a5eb09050f2ba618b00983e06255b813089 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:44:53 +0000 Subject: [PATCH 285/693] wangle: move to `pkgs/by-name` --- .../wangle/default.nix => by-name/wa/wangle/package.nix} | 0 pkgs/top-level/all-packages.nix | 1 - 2 files changed, 1 deletion(-) rename pkgs/{development/libraries/wangle/default.nix => by-name/wa/wangle/package.nix} (100%) diff --git a/pkgs/development/libraries/wangle/default.nix b/pkgs/by-name/wa/wangle/package.nix similarity index 100% rename from pkgs/development/libraries/wangle/default.nix rename to pkgs/by-name/wa/wangle/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 60b530948643..c6aa5f52f07a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11283,7 +11283,6 @@ with pkgs; vulkan-tools = callPackage ../tools/graphics/vulkan-tools { inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; }; - wangle = callPackage ../development/libraries/wangle { }; wayland = darwin.apple_sdk_11_0.callPackage ../development/libraries/wayland { }; wayland-scanner = callPackage ../development/libraries/wayland/scanner.nix { }; From 337f896690b67e5b5a4950e24ee6b60f47944b54 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:45:21 +0000 Subject: [PATCH 286/693] wangle: remove `with lib;` --- pkgs/by-name/wa/wangle/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 26271c5f0ac7..cbb7d31f3621 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -75,7 +75,7 @@ stdenv.mkDerivation (finalAttrs: { export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" ''; - meta = with lib; { + meta = { description = "Open-source C++ networking library"; longDescription = '' Wangle is a framework providing a set of common client/server @@ -83,9 +83,9 @@ stdenv.mkDerivation (finalAttrs: { composable way. ''; homepage = "https://github.com/facebook/wangle"; - license = licenses.asl20; - platforms = platforms.unix; - maintainers = with maintainers; [ + license = lib.licenses.asl20; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ pierreis kylesferrazza ]; From 355eae10ef9909f6b69d203210680ce2c7d8e0e6 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:45:38 +0000 Subject: [PATCH 287/693] wangle: use `refs/tags/` --- pkgs/by-name/wa/wangle/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index cbb7d31f3621..9c7f3e278b15 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "facebook"; repo = "wangle"; - rev = "v${finalAttrs.version}"; + rev = "refs/tags/v${finalAttrs.version}"; sha256 = "sha256-fDtJ+9bZj+siKlMglYMkLO/+jldUmsS5V3Umk1gNdlo="; }; From 34fa0315d46ca13086db80d38564dac1fc9cf720 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:45:47 +0000 Subject: [PATCH 288/693] wangle: use `hash` --- pkgs/by-name/wa/wangle/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 9c7f3e278b15..b0984f9477fd 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "facebook"; repo = "wangle"; rev = "refs/tags/v${finalAttrs.version}"; - sha256 = "sha256-fDtJ+9bZj+siKlMglYMkLO/+jldUmsS5V3Umk1gNdlo="; + hash = "sha256-fDtJ+9bZj+siKlMglYMkLO/+jldUmsS5V3Umk1gNdlo="; }; nativeBuildInputs = [ cmake ]; From 4a2ad7732b9f179c0878a9978bcf142e183abdf7 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:46:50 +0000 Subject: [PATCH 289/693] wangle: reorder attributes --- pkgs/by-name/wa/wangle/package.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index b0984f9477fd..1d3dd1c0bb3f 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -28,13 +28,6 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; - cmakeDir = "../wangle"; - - cmakeFlags = [ - "-Wno-dev" - (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) - ]; - buildInputs = [ double-conversion @@ -50,10 +43,19 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; - doCheck = true; checkInputs = [ gtest ]; + + cmakeDir = "../wangle"; + + cmakeFlags = [ + "-Wno-dev" + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + ]; + + doCheck = true; + preCheck = let disabledTests = From c93b3ff59af12832f81deb4c191964dbd9009bcb Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:48:50 +0000 Subject: [PATCH 290/693] wangle: reorder inputs to match upstream file --- pkgs/by-name/wa/wangle/package.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 1d3dd1c0bb3f..5ded3e1e70a3 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -1,18 +1,22 @@ { - stdenv, lib, + stdenv, + fetchFromGitHub, + cmake, - libevent, - double-conversion, + + folly, + fizz, + openssl, glog, gflags, - openssl, - fizz, - folly, - gtest, + libevent, + double-conversion, apple-sdk_11, darwinMinVersionHook, + + gtest, }: stdenv.mkDerivation (finalAttrs: { @@ -30,13 +34,13 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ - double-conversion - fizz folly + fizz + openssl glog gflags libevent - openssl + double-conversion ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 From 6ad10b9af58e9f1bcdde56ca4173595d33348ebc Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:02:08 +0000 Subject: [PATCH 291/693] wangle: remove unnecessary CMake flag No point silencing these warnings. --- pkgs/by-name/wa/wangle/package.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 5ded3e1e70a3..09ad82e55e56 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -54,7 +54,6 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../wangle"; cmakeFlags = [ - "-Wno-dev" (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; From 2477b3ee0172b87573f5610e06b6fd4169e34fa8 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:52:25 +0000 Subject: [PATCH 292/693] wangle: use Ninja --- pkgs/by-name/wa/wangle/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 09ad82e55e56..3f4eeb65dcfe 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, cmake, + ninja, folly, fizz, @@ -30,7 +31,10 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-fDtJ+9bZj+siKlMglYMkLO/+jldUmsS5V3Umk1gNdlo="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + ninja + ]; buildInputs = [ From ad8aa38bc71e64df8acfcf17d732e5a72bc2ad42 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 19:41:11 +0000 Subject: [PATCH 293/693] wangle: set `__darwinAllowLocalNetworking` --- pkgs/by-name/wa/wangle/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 3f4eeb65dcfe..1c778c65aad1 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -61,6 +61,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; + __darwinAllowLocalNetworking = true; + doCheck = true; preCheck = From 6ff98c69607f755a49773181761f0715aae8853d Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:51:39 +0000 Subject: [PATCH 294/693] wangle: 2024.03.11.00 -> 2024.11.18.00 Diff: https://github.com/facebook/wangle/compare/refs/tags/v2024.03.11.00...v2024.11.18.00 --- pkgs/by-name/wa/wangle/package.nix | 50 ++++++++++++++++++------------ 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 1c778c65aad1..4e37062c3896 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -22,13 +22,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "wangle"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; src = fetchFromGitHub { owner = "facebook"; repo = "wangle"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-fDtJ+9bZj+siKlMglYMkLO/+jldUmsS5V3Umk1gNdlo="; + hash = "sha256-4mqE9GgJP2f7QAykwdhMFoReE9wmPKOXqSHJ2MHP2G0="; }; nativeBuildInputs = [ @@ -61,30 +61,40 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; + env.GTEST_FILTER = + "-" + + lib.concatStringsSep ":" ( + [ + # these depend on example pem files from the folly source tree (?) + "SSLContextManagerTest.TestSingleClientCAFileSet" + "SSLContextManagerTest.TestMultipleClientCAsSet" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # flaky + "BroadcastPoolTest.ThreadLocalPool" + "Bootstrap.UDPClientServerTest" + ] + ); + __darwinAllowLocalNetworking = true; doCheck = true; - preCheck = - let - disabledTests = - [ - # these depend on example pem files from the folly source tree (?) - "SSLContextManagerTest.TestSingleClientCAFileSet" - "SSLContextManagerTest.TestMultipleClientCAsSet" + checkPhase = '' + runHook preCheck - # https://github.com/facebook/wangle/issues/206 - "SSLContextManagerTest.TestSessionContextCertRemoval" + ctest -j $NIX_BUILD_CORES --output-on-failure ${ + # Deterministic glibc abort 🫠 + lib.optionalString stdenv.hostPlatform.isLinux ( + lib.escapeShellArgs [ + "--exclude-regex" + "^(BootstrapTest|BroadcastPoolTest)$" ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - # flaky - "BroadcastPoolTest.ThreadLocalPool" - "Bootstrap.UDPClientServerTest" - ]; - in - '' - export GTEST_FILTER="-${lib.concatStringsSep ":" disabledTests}" - ''; + ) + } + + runHook postCheck + ''; meta = { description = "Open-source C++ networking library"; From ade1eb00f9af7780c3254e434d047d78ca45b3c5 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:06:36 +0000 Subject: [PATCH 295/693] wangle: condition shared libraries on platform setting --- pkgs/by-name/wa/wangle/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 4e37062c3896..f20316fcccb8 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -58,6 +58,8 @@ stdenv.mkDerivation (finalAttrs: { cmakeDir = "../wangle"; cmakeFlags = [ + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) + (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) ]; From 5205f55d4d0a46e33956d9732c2185afe70932d0 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:03:15 +0000 Subject: [PATCH 296/693] wangle: split outputs --- pkgs/by-name/wa/wangle/package.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index f20316fcccb8..ca3e7a6f285d 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -6,6 +6,7 @@ cmake, ninja, + removeReferencesTo, folly, fizz, @@ -24,6 +25,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "wangle"; version = "2024.11.18.00"; + outputs = [ + "out" + "dev" + ]; + src = fetchFromGitHub { owner = "facebook"; repo = "wangle"; @@ -34,6 +40,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja + removeReferencesTo ]; buildInputs = @@ -61,6 +68,10 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "BUILD_TESTS" finalAttrs.finalPackage.doCheck) + + (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") + (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib") + (lib.cmakeFeature "CMAKE_INSTALL_DIR" "${placeholder "dev"}/lib/cmake/wangle") ]; env.GTEST_FILTER = @@ -98,6 +109,18 @@ stdenv.mkDerivation (finalAttrs: { runHook postCheck ''; + postFixup = '' + # Sanitize header paths to avoid runtime dependencies leaking in + # through `__FILE__`. + ( + shopt -s globstar + for header in "$dev/include"/**/*.h; do + sed -i "1i#line 1 \"$header\"" "$header" + remove-references-to -t "$dev" "$header" + done + ) + ''; + meta = { description = "Open-source C++ networking library"; longDescription = '' From 762f456228f1373a898c9997476e5a80082e694a Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:07:00 +0000 Subject: [PATCH 297/693] wangle: add update script --- pkgs/by-name/wa/wangle/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index ca3e7a6f285d..3c0541749308 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -19,6 +19,8 @@ darwinMinVersionHook, gtest, + + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -121,6 +123,8 @@ stdenv.mkDerivation (finalAttrs: { ) ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Open-source C++ networking library"; longDescription = '' From 82c87506538ca969d57da9e18dec999edc8d3365 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:07:23 +0000 Subject: [PATCH 298/693] wangle: add emily to maintainers --- pkgs/by-name/wa/wangle/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 3c0541749308..4ff0b32a5ccb 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -138,6 +138,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ pierreis kylesferrazza + emily ]; }; }) From 17fe5480a108d9a25756be5792e21fffe330c4f5 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:16:21 +0000 Subject: [PATCH 299/693] wangle: add techknowlogick to maintainers --- pkgs/by-name/wa/wangle/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/wa/wangle/package.nix b/pkgs/by-name/wa/wangle/package.nix index 4ff0b32a5ccb..356f479eab13 100644 --- a/pkgs/by-name/wa/wangle/package.nix +++ b/pkgs/by-name/wa/wangle/package.nix @@ -139,6 +139,7 @@ stdenv.mkDerivation (finalAttrs: { pierreis kylesferrazza emily + techknowlogick ]; }; }) From 1848967c016e020021deaf18efd54ca8ccbc5f20 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:55:27 +0000 Subject: [PATCH 300/693] fbthrift: format with `nixfmt-rfc-style` --- .../libraries/fbthrift/default.nix | 54 ++++++++++--------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/pkgs/development/libraries/fbthrift/default.nix b/pkgs/development/libraries/fbthrift/default.nix index ad0173b458b4..b150283bb1cb 100644 --- a/pkgs/development/libraries/fbthrift/default.nix +++ b/pkgs/development/libraries/fbthrift/default.nix @@ -1,21 +1,22 @@ -{ stdenv -, fetchFromGitHub -, cmake -, bison -, libevent -, double-conversion -, fizz -, flex -, folly -, glog -, gflags -, libiberty -, mvfst -, openssl -, lib -, wangle -, zlib -, zstd +{ + stdenv, + fetchFromGitHub, + cmake, + bison, + libevent, + double-conversion, + fizz, + flex, + folly, + glog, + gflags, + libiberty, + mvfst, + openssl, + lib, + wangle, + zlib, + zstd, }: stdenv.mkDerivation rec { @@ -35,11 +36,13 @@ stdenv.mkDerivation rec { flex ]; - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; + cmakeFlags = + [ + "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + ]; buildInputs = [ double-conversion @@ -62,6 +65,9 @@ stdenv.mkDerivation rec { homepage = "https://github.com/facebook/fbthrift"; license = licenses.asl20; platforms = platforms.unix; - maintainers = with maintainers; [ pierreis kylesferrazza ]; + maintainers = with maintainers; [ + pierreis + kylesferrazza + ]; }; } From 3a06e577d69e845ed472bd877955ad54e8be6bd7 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:56:04 +0000 Subject: [PATCH 301/693] fbthrift: convert to new Darwin SDK pattern --- .../libraries/fbthrift/default.nix | 39 ++++++++++--------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/pkgs/development/libraries/fbthrift/default.nix b/pkgs/development/libraries/fbthrift/default.nix index b150283bb1cb..818404c06b84 100644 --- a/pkgs/development/libraries/fbthrift/default.nix +++ b/pkgs/development/libraries/fbthrift/default.nix @@ -17,6 +17,8 @@ wangle, zlib, zstd, + apple-sdk_11, + darwinMinVersionHook, }: stdenv.mkDerivation rec { @@ -36,29 +38,30 @@ stdenv.mkDerivation rec { flex ]; - cmakeFlags = + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" + ]; + + buildInputs = [ - "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" + double-conversion + fizz + folly + glog + gflags + libevent + libiberty + mvfst + openssl + wangle + zlib + zstd ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + apple-sdk_11 + (darwinMinVersionHook "11.0") ]; - buildInputs = [ - double-conversion - fizz - folly - glog - gflags - libevent - libiberty - mvfst - openssl - wangle - zlib - zstd - ]; - meta = with lib; { description = "Facebook's branch of Apache Thrift"; mainProgram = "thrift1"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c6aa5f52f07a..339949e192dd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9242,7 +9242,7 @@ with pkgs; autoreconfHook = buildPackages.autoreconfHook269; }; - fbthrift = darwin.apple_sdk_11_0.callPackage ../development/libraries/fbthrift { }; + fbthrift = callPackage ../development/libraries/fbthrift { }; fb303 = darwin.apple_sdk_11_0.callPackage ../development/libraries/fb303 { }; From dddd67fced92a76eeed32bc47c7116df1fcac968 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:56:36 +0000 Subject: [PATCH 302/693] fbthrift: move to `pkgs/by-name` --- .../fbthrift/default.nix => by-name/fb/fbthrift/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/fbthrift/default.nix => by-name/fb/fbthrift/package.nix} (100%) diff --git a/pkgs/development/libraries/fbthrift/default.nix b/pkgs/by-name/fb/fbthrift/package.nix similarity index 100% rename from pkgs/development/libraries/fbthrift/default.nix rename to pkgs/by-name/fb/fbthrift/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 339949e192dd..98aede8ab945 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9242,8 +9242,6 @@ with pkgs; autoreconfHook = buildPackages.autoreconfHook269; }; - fbthrift = callPackage ../development/libraries/fbthrift { }; - fb303 = darwin.apple_sdk_11_0.callPackage ../development/libraries/fb303 { }; inherit (callPackage ../development/libraries/ffmpeg { }) From 548f1f7c35fa88b31ed1936395c04cc032a8f438 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:57:26 +0000 Subject: [PATCH 303/693] fbthrift: use `finalAttrs` --- pkgs/by-name/fb/fbthrift/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index 818404c06b84..b0ebf0765943 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -21,14 +21,14 @@ darwinMinVersionHook, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "fbthrift"; version = "2024.03.11.00"; src = fetchFromGitHub { owner = "facebook"; repo = "fbthrift"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-iCiiKNDlfKm1Y4SGzcSP6o/OdiRRrj9UEawW6qpBpSY="; }; @@ -73,4 +73,4 @@ stdenv.mkDerivation rec { kylesferrazza ]; }; -} +}) From 9b67782a3fc04e4cfec4f51cfb8cc476a58771fc Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:57:32 +0000 Subject: [PATCH 304/693] fbthrift: remove `with lib;` --- pkgs/by-name/fb/fbthrift/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index b0ebf0765943..367bb2f9beb8 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -62,13 +62,13 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; - meta = with lib; { + meta = { description = "Facebook's branch of Apache Thrift"; mainProgram = "thrift1"; homepage = "https://github.com/facebook/fbthrift"; - license = licenses.asl20; - platforms = platforms.unix; - maintainers = with maintainers; [ + license = lib.licenses.asl20; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ pierreis kylesferrazza ]; From cf3fde892c97026d00eb23767f765fa157c4ed38 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:57:59 +0000 Subject: [PATCH 305/693] fbthrift: use `refs/tags/` --- pkgs/by-name/fb/fbthrift/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index 367bb2f9beb8..d17de9fb049f 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -28,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "facebook"; repo = "fbthrift"; - rev = "v${finalAttrs.version}"; + rev = "refs/tags/v${finalAttrs.version}"; sha256 = "sha256-iCiiKNDlfKm1Y4SGzcSP6o/OdiRRrj9UEawW6qpBpSY="; }; From 33fe8a6aff7a8c3deaaa49af78859b5bc64a4197 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:58:12 +0000 Subject: [PATCH 306/693] fbthrift: use `hash` --- pkgs/by-name/fb/fbthrift/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index d17de9fb049f..ee0a5cedc979 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "facebook"; repo = "fbthrift"; rev = "refs/tags/v${finalAttrs.version}"; - sha256 = "sha256-iCiiKNDlfKm1Y4SGzcSP6o/OdiRRrj9UEawW6qpBpSY="; + hash = "sha256-iCiiKNDlfKm1Y4SGzcSP6o/OdiRRrj9UEawW6qpBpSY="; }; nativeBuildInputs = [ From 19f009b3aad9b68e968a02acfa30620db367a39b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:00:46 +0000 Subject: [PATCH 307/693] fbthrift: reorder attributes --- pkgs/by-name/fb/fbthrift/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index ee0a5cedc979..c1f330335e53 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -38,10 +38,6 @@ stdenv.mkDerivation (finalAttrs: { flex ]; - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" - ]; - buildInputs = [ double-conversion @@ -62,6 +58,10 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" + ]; + meta = { description = "Facebook's branch of Apache Thrift"; mainProgram = "thrift1"; From 26008b4611d77bb9e3d3726f758604cfd9975365 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:58:20 +0000 Subject: [PATCH 308/693] fbthrift: reorder inputs to match upstream file --- pkgs/by-name/fb/fbthrift/package.nix | 39 ++++++++++++++++------------ 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index c1f330335e53..7a6189585ad4 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -1,22 +1,26 @@ { + lib, stdenv, + fetchFromGitHub, + cmake, bison, - libevent, - double-conversion, - fizz, flex, - folly, - glog, - gflags, - libiberty, - mvfst, + openssl, - lib, + gflags, + glog, + folly, + fizz, wangle, zlib, zstd, + mvfst, + double-conversion, + libevent, + libiberty, + libsodium, apple-sdk_11, darwinMinVersionHook, }: @@ -40,18 +44,19 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ - double-conversion - fizz - folly - glog - gflags - libevent - libiberty - mvfst openssl + gflags + glog + folly + fizz wangle zlib zstd + mvfst + double-conversion + libevent + libiberty + libsodium ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 From c55b18d9158c6c163e5e5df2499e2445bdd9cf46 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 00:40:35 +0000 Subject: [PATCH 309/693] fbthrift: remove unnecessary inputs --- pkgs/by-name/fb/fbthrift/package.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index 7a6189585ad4..084aa87c6659 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -5,8 +5,6 @@ fetchFromGitHub, cmake, - bison, - flex, openssl, gflags, @@ -17,10 +15,6 @@ zlib, zstd, mvfst, - double-conversion, - libevent, - libiberty, - libsodium, apple-sdk_11, darwinMinVersionHook, }: @@ -38,8 +32,6 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake - bison - flex ]; buildInputs = @@ -53,10 +45,6 @@ stdenv.mkDerivation (finalAttrs: { zlib zstd mvfst - double-conversion - libevent - libiberty - libsodium ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 From fcf3d5262ce1ae625bf374c6d2f64dfa77ecf087 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:02:41 +0000 Subject: [PATCH 310/693] fbthrift: use Ninja --- pkgs/by-name/fb/fbthrift/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index 084aa87c6659..ea531d7978f6 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, cmake, + ninja, openssl, gflags, @@ -32,6 +33,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + ninja ]; buildInputs = From dc60c66359534f5f69ab126974b05d8b71f6271d Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:01:47 +0000 Subject: [PATCH 311/693] fbthrift: 2024.03.11.00 -> 2024.11.11.00 We need to explicitly disable the Python bindings now. Diff: https://github.com/facebook/fbthrift/compare/refs/tags/v2024.03.18.00...v2024.11.18.00 --- pkgs/by-name/fb/fbthrift/package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index ea531d7978f6..801c1b1dc588 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -15,6 +15,7 @@ wangle, zlib, zstd, + xxHash, mvfst, apple-sdk_11, darwinMinVersionHook, @@ -22,13 +23,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "fbthrift"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; src = fetchFromGitHub { owner = "facebook"; repo = "fbthrift"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-iCiiKNDlfKm1Y4SGzcSP6o/OdiRRrj9UEawW6qpBpSY="; + hash = "sha256-dJf4vaIcat24WiKLFNEqeCnJYiO+c5YkuFu+hrS6cPE="; }; nativeBuildInputs = [ @@ -46,6 +47,7 @@ stdenv.mkDerivation (finalAttrs: { wangle zlib zstd + xxHash mvfst ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ @@ -55,6 +57,8 @@ stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" + + (lib.cmakeBool "thriftpy" false) ]; meta = { From 3bdc69269d392026f6c25ad136f709e12e8d1a8c Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 19:41:11 +0000 Subject: [PATCH 312/693] fbthrift: condition shared libraries on platform setting --- pkgs/by-name/fb/fbthrift/package.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index 801c1b1dc588..fcfc8d8ffdf3 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -55,11 +55,17 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isDarwin then "OFF" else "ON"}" + cmakeFlags = + [ + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) - (lib.cmakeBool "thriftpy" false) - ]; + (lib.cmakeBool "thriftpy" false) + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Homebrew sets this, and the shared library build fails without + # it. I don‘t know, either. It scares me. + (lib.cmakeFeature "CMAKE_SHARED_LINKER_FLAGS" "-Wl,-undefined,dynamic_lookup") + ]; meta = { description = "Facebook's branch of Apache Thrift"; From 3dd6e0e71a23a91aaf1f846ef487f6a0e59bc69e Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 17:14:38 +0000 Subject: [PATCH 313/693] fbthrift: propagate required dependencies --- pkgs/by-name/fb/fbthrift/package.nix | 8 ++++++-- pkgs/development/libraries/fb303/default.nix | 2 -- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index fcfc8d8ffdf3..f7a5d630ff12 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -16,9 +16,10 @@ zlib, zstd, xxHash, - mvfst, apple-sdk_11, darwinMinVersionHook, + + mvfst, }: stdenv.mkDerivation (finalAttrs: { @@ -48,13 +49,16 @@ stdenv.mkDerivation (finalAttrs: { zlib zstd xxHash - mvfst ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 (darwinMinVersionHook "11.0") ]; + propagatedBuildInputs = [ + mvfst + ]; + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) diff --git a/pkgs/development/libraries/fb303/default.nix b/pkgs/development/libraries/fb303/default.nix index 5236e07b77d3..f77979a51e6a 100644 --- a/pkgs/development/libraries/fb303/default.nix +++ b/pkgs/development/libraries/fb303/default.nix @@ -6,7 +6,6 @@ , fizz , folly , glog -, mvfst , python3 , wangle }: @@ -34,7 +33,6 @@ stdenv.mkDerivation rec { fizz folly glog - mvfst python3 wangle ]; From acf1c72bfceec7572b7043dd42abee0bf76dfa16 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 19:41:11 +0000 Subject: [PATCH 314/693] fbthrift: add note about tests --- pkgs/by-name/fb/fbthrift/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index f7a5d630ff12..ebc8f5c688cd 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -20,6 +20,7 @@ darwinMinVersionHook, mvfst, + }: stdenv.mkDerivation (finalAttrs: { @@ -64,6 +65,10 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "thriftpy" false) + + # TODO: Can’t figure out where the C++ tests are wired up in the + # CMake build, if anywhere, and this requires Python. + #(lib.cmakeBool "enable_tests" finalAttrs.finalPackage.doCheck) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Homebrew sets this, and the shared library build fails without From 7699884b844f330209eccd18906f90e1b95405e8 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:07:56 +0000 Subject: [PATCH 315/693] fbthrift: split outputs --- pkgs/by-name/fb/fbthrift/package.nix | 33 +++++++++++++++++++ .../fbthrift/remove-cmake-install-rpath.patch | 12 +++++++ 2 files changed, 45 insertions(+) create mode 100644 pkgs/by-name/fb/fbthrift/remove-cmake-install-rpath.patch diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index ebc8f5c688cd..bbebf9b1c207 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -6,6 +6,7 @@ cmake, ninja, + removeReferencesTo, openssl, gflags, @@ -27,6 +28,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "fbthrift"; version = "2024.11.18.00"; + outputs = [ + # Trying to split this up further into `bin`, `out`, and `dev` + # causes issues with circular references due to the installed CMake + # files referencing the path to the compiler. + "out" + "lib" + ]; + src = fetchFromGitHub { owner = "facebook"; repo = "fbthrift"; @@ -34,9 +43,16 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-dJf4vaIcat24WiKLFNEqeCnJYiO+c5YkuFu+hrS6cPE="; }; + patches = [ + # Remove a line that breaks the build due to the CMake classic of + # incorrect path concatenation. + ./remove-cmake-install-rpath.patch + ]; + nativeBuildInputs = [ cmake ninja + removeReferencesTo ]; buildInputs = @@ -69,6 +85,11 @@ stdenv.mkDerivation (finalAttrs: { # TODO: Can’t figure out where the C++ tests are wired up in the # CMake build, if anywhere, and this requires Python. #(lib.cmakeBool "enable_tests" finalAttrs.finalPackage.doCheck) + + (lib.cmakeFeature "BIN_INSTALL_DIR" "${placeholder "out"}/bin") + (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "out"}/include") + (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "lib"}/lib") + (lib.cmakeFeature "CMAKE_INSTALL_DIR" "${placeholder "out"}/lib/cmake/fbthrift") ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Homebrew sets this, and the shared library build fails without @@ -76,6 +97,18 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "CMAKE_SHARED_LINKER_FLAGS" "-Wl,-undefined,dynamic_lookup") ]; + postFixup = '' + # Sanitize header paths to avoid runtime dependencies leaking in + # through `__FILE__`. + ( + shopt -s globstar + for header in "$out/include"/**/*.h; do + sed -i "1i#line 1 \"$header\"" "$header" + remove-references-to -t "$out" "$header" + done + ) + ''; + meta = { description = "Facebook's branch of Apache Thrift"; mainProgram = "thrift1"; diff --git a/pkgs/by-name/fb/fbthrift/remove-cmake-install-rpath.patch b/pkgs/by-name/fb/fbthrift/remove-cmake-install-rpath.patch new file mode 100644 index 000000000000..84271ca24697 --- /dev/null +++ b/pkgs/by-name/fb/fbthrift/remove-cmake-install-rpath.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c6b2b2a810..497dcd3d94 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -39,7 +39,6 @@ + set(CMAKE_INSTALL_DIR lib/cmake/fbthrift CACHE STRING + "The subdirectory where CMake package config files should be installed") + +-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}") + set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) + + # Add root dir so qualified includes work, e.g. #include "thrift/compiler/*.h". From 814fc8dcf101a837ea262631438075abcf4d575c Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:08:44 +0000 Subject: [PATCH 316/693] fbthrift: add update script --- pkgs/by-name/fb/fbthrift/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index bbebf9b1c207..c8e3360efcbd 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -22,6 +22,7 @@ mvfst, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -109,6 +110,8 @@ stdenv.mkDerivation (finalAttrs: { ) ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Facebook's branch of Apache Thrift"; mainProgram = "thrift1"; From 0293bf6af5f73272e792a07484a25453b0a7c68c Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:09:17 +0000 Subject: [PATCH 317/693] fbthrift: add emily to maintainers --- pkgs/by-name/fb/fbthrift/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index c8e3360efcbd..46373343695a 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -121,6 +121,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ pierreis kylesferrazza + emily ]; }; }) From 143f253756ca08f80e47c3e411c38cc16606ce9c Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:16:03 +0000 Subject: [PATCH 318/693] fbthrift: add techknowlogick to maintainers --- pkgs/by-name/fb/fbthrift/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index 46373343695a..a189e7a66a93 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -122,6 +122,7 @@ stdenv.mkDerivation (finalAttrs: { pierreis kylesferrazza emily + techknowlogick ]; }; }) From 6582129eab3c3d58081106ca000bbbe96a2d4091 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:28:01 +0000 Subject: [PATCH 319/693] fb303: format with `nixfmt-rfc-style` --- pkgs/development/libraries/fb303/default.nix | 33 +++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/pkgs/development/libraries/fb303/default.nix b/pkgs/development/libraries/fb303/default.nix index f77979a51e6a..bedd96f9d59c 100644 --- a/pkgs/development/libraries/fb303/default.nix +++ b/pkgs/development/libraries/fb303/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, fetchFromGitHub -, cmake -, fbthrift -, fizz -, folly -, glog -, python3 -, wangle +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + fbthrift, + fizz, + folly, + glog, + python3, + wangle, }: stdenv.mkDerivation rec { @@ -22,11 +23,13 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake ]; - cmakeFlags = [ - "-DPYTHON_EXTENSIONS=OFF" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; + cmakeFlags = + [ + "-DPYTHON_EXTENSIONS=OFF" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + ]; buildInputs = [ fbthrift From 87a7353f0c9ef56525c290ad50fe1d2b4e4bfa84 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:28:33 +0000 Subject: [PATCH 320/693] fb303: convert to new Darwin SDK pattern --- pkgs/development/libraries/fb303/default.nix | 27 +++++++++++--------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/pkgs/development/libraries/fb303/default.nix b/pkgs/development/libraries/fb303/default.nix index bedd96f9d59c..14353bc4b5ee 100644 --- a/pkgs/development/libraries/fb303/default.nix +++ b/pkgs/development/libraries/fb303/default.nix @@ -9,6 +9,8 @@ glog, python3, wangle, + apple-sdk_11, + darwinMinVersionHook, }: stdenv.mkDerivation rec { @@ -23,23 +25,24 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ cmake ]; - cmakeFlags = + cmakeFlags = [ + "-DPYTHON_EXTENSIONS=OFF" + ]; + + buildInputs = [ - "-DPYTHON_EXTENSIONS=OFF" + fbthrift + fizz + folly + glog + python3 + wangle ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + apple-sdk_11 + (darwinMinVersionHook "11.0") ]; - buildInputs = [ - fbthrift - fizz - folly - glog - python3 - wangle - ]; - meta = with lib; { description = "Base Thrift service and a common set of functionality for querying stats, options, and other information from a service"; homepage = "https://github.com/facebook/fb303"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 98aede8ab945..76474355a4c0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9242,7 +9242,7 @@ with pkgs; autoreconfHook = buildPackages.autoreconfHook269; }; - fb303 = darwin.apple_sdk_11_0.callPackage ../development/libraries/fb303 { }; + fb303 = callPackage ../development/libraries/fb303 { }; inherit (callPackage ../development/libraries/ffmpeg { }) ffmpeg_4 From be97ac3fe63710b41b15a95fb7aff75fb1627f00 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:29:09 +0000 Subject: [PATCH 321/693] fb303: move to `pkgs/by-name` --- .../fb303/default.nix => by-name/fb/fb303/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/libraries/fb303/default.nix => by-name/fb/fb303/package.nix} (100%) diff --git a/pkgs/development/libraries/fb303/default.nix b/pkgs/by-name/fb/fb303/package.nix similarity index 100% rename from pkgs/development/libraries/fb303/default.nix rename to pkgs/by-name/fb/fb303/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 76474355a4c0..d7689f27314d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9242,8 +9242,6 @@ with pkgs; autoreconfHook = buildPackages.autoreconfHook269; }; - fb303 = callPackage ../development/libraries/fb303 { }; - inherit (callPackage ../development/libraries/ffmpeg { }) ffmpeg_4 ffmpeg_4-headless From 3c20ddd66d335c2186a229d233c462d2c568435d Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:29:38 +0000 Subject: [PATCH 322/693] fb303: use `finalAttrs` --- pkgs/by-name/fb/fb303/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 14353bc4b5ee..bac97c6ec253 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -13,14 +13,14 @@ darwinMinVersionHook, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "fb303"; version = "2024.03.11.00"; src = fetchFromGitHub { owner = "facebook"; repo = "fb303"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-Jtztb8CTqvRdRjUa3jaouP5PFAwoM4rKLIfgvOyXUIg="; }; @@ -50,4 +50,4 @@ stdenv.mkDerivation rec { platforms = platforms.unix; maintainers = with maintainers; [ kylesferrazza ]; }; -} +}) From fa9cad876b6bfbfcf50974a9f5deafa267abf532 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:29:56 +0000 Subject: [PATCH 323/693] fb303: remove `with lib;` --- pkgs/by-name/fb/fb303/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index bac97c6ec253..a87d0a5a7fd1 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -43,11 +43,11 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; - meta = with lib; { + meta = { description = "Base Thrift service and a common set of functionality for querying stats, options, and other information from a service"; homepage = "https://github.com/facebook/fb303"; - license = licenses.asl20; - platforms = platforms.unix; - maintainers = with maintainers; [ kylesferrazza ]; + license = lib.licenses.asl20; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ kylesferrazza ]; }; }) From 29125310cc32a1b10886559f7029f3e00e05317d Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:30:07 +0000 Subject: [PATCH 324/693] fb303: use `refs/tags/` --- pkgs/by-name/fb/fb303/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index a87d0a5a7fd1..754da5f1c832 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "facebook"; repo = "fb303"; - rev = "v${finalAttrs.version}"; + rev = "refs/tags/v${finalAttrs.version}"; sha256 = "sha256-Jtztb8CTqvRdRjUa3jaouP5PFAwoM4rKLIfgvOyXUIg="; }; From 5be8fbd184ebd0466e7de166ae8313508183bcad Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:30:14 +0000 Subject: [PATCH 325/693] fb303: use `hash` --- pkgs/by-name/fb/fb303/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 754da5f1c832..0cc8ccd7f6d3 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "facebook"; repo = "fb303"; rev = "refs/tags/v${finalAttrs.version}"; - sha256 = "sha256-Jtztb8CTqvRdRjUa3jaouP5PFAwoM4rKLIfgvOyXUIg="; + hash = "sha256-Jtztb8CTqvRdRjUa3jaouP5PFAwoM4rKLIfgvOyXUIg="; }; nativeBuildInputs = [ cmake ]; From 025d0edf867c5f33192977756dd49196cb66c7bb Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:43:14 +0000 Subject: [PATCH 326/693] fb303: reorder attributes --- pkgs/by-name/fb/fb303/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 0cc8ccd7f6d3..3d3cc2a4f3fc 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -25,9 +25,6 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ cmake ]; - cmakeFlags = [ - "-DPYTHON_EXTENSIONS=OFF" - ]; buildInputs = [ @@ -43,6 +40,10 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + cmakeFlags = [ + "-DPYTHON_EXTENSIONS=OFF" + ]; + meta = { description = "Base Thrift service and a common set of functionality for querying stats, options, and other information from a service"; homepage = "https://github.com/facebook/fb303"; From ef6c8fc06f3590ab7953776e3a36c39d492dde20 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:33:42 +0000 Subject: [PATCH 327/693] fb303: reorder inputs to match upstream file --- pkgs/by-name/fb/fb303/package.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 3d3cc2a4f3fc..a3fdf927a78c 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -1,14 +1,17 @@ { - stdenv, lib, + stdenv, + fetchFromGitHub, + cmake, + + glog, + folly, fbthrift, fizz, - folly, - glog, - python3, wangle, + python3, apple-sdk_11, darwinMinVersionHook, }: @@ -28,12 +31,12 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ + glog + folly fbthrift fizz - folly - glog - python3 wangle + python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 From 01b30ede829a6a794f164085a4974dc80bf2b5de Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:55:43 +0000 Subject: [PATCH 328/693] fb303: add explicit `gflags` input --- pkgs/by-name/fb/fb303/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index a3fdf927a78c..8c5c45da94da 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -6,6 +6,7 @@ cmake, + gflags, glog, folly, fbthrift, @@ -31,6 +32,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ + gflags glog folly fbthrift From f7efb7b813c2d2a322b719783366d13c0b59dbaa Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:50:50 +0000 Subject: [PATCH 329/693] fb303: remove `python3` input --- pkgs/by-name/fb/fb303/package.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 8c5c45da94da..18e0ea7c784c 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -12,7 +12,6 @@ fbthrift, fizz, wangle, - python3, apple-sdk_11, darwinMinVersionHook, }: @@ -38,7 +37,6 @@ stdenv.mkDerivation (finalAttrs: { fbthrift fizz wangle - python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 From 068ceb04d027ed8bc84c9de23406c5dc4cb814e6 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:56:45 +0000 Subject: [PATCH 330/693] fb303: use `lib.cmakeBool` --- pkgs/by-name/fb/fb303/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 18e0ea7c784c..4d3ab9a124a5 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ - "-DPYTHON_EXTENSIONS=OFF" + (lib.cmakeBool "PYTHON_EXTENSIONS" false) ]; meta = { From 2801ca739a90ed2bda06bd43f9a0b9a88cd3b27b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:43:30 +0000 Subject: [PATCH 331/693] fb303: use Ninja --- pkgs/by-name/fb/fb303/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 4d3ab9a124a5..6feea1b164ca 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, cmake, + ninja, gflags, glog, @@ -27,7 +28,10 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-Jtztb8CTqvRdRjUa3jaouP5PFAwoM4rKLIfgvOyXUIg="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + ninja + ]; buildInputs = [ From 633f8f77b23351f1d19494f2f2cc56e79f5e4285 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 15:38:02 +0000 Subject: [PATCH 332/693] fb303: 2024.03.11.00 -> 2024.11.18.00 Diff: https://github.com/facebook/fb303/compare/refs/tags/v2024.03.11.00...v2024.11.18.00 --- pkgs/by-name/fb/fb303/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 6feea1b164ca..deba3e32062b 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -19,13 +19,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "fb303"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; src = fetchFromGitHub { owner = "facebook"; repo = "fb303"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-Jtztb8CTqvRdRjUa3jaouP5PFAwoM4rKLIfgvOyXUIg="; + hash = "sha256-3zQLX42qeOE2bbFmu4Kuvu0Fvq2mBq8YgkVGpyfwaak="; }; nativeBuildInputs = [ From 72f24cc2938db98b238d58c6445d61b3f2b65a67 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:11:55 +0000 Subject: [PATCH 333/693] fb303: condition shared libraries on platform setting --- pkgs/by-name/fb/fb303/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index deba3e32062b..9448e55e0006 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -48,6 +48,10 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) + + (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) + (lib.cmakeBool "PYTHON_EXTENSIONS" false) ]; From 79dc5a8b54c7e7149674fd1d4348c8dd412119f9 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:13:56 +0000 Subject: [PATCH 334/693] fb303: split outputs --- pkgs/by-name/fb/fb303/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 9448e55e0006..9abc57b12244 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -21,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "fb303"; version = "2024.11.18.00"; + outputs = [ + "out" + "dev" + ]; + src = fetchFromGitHub { owner = "facebook"; repo = "fb303"; @@ -53,6 +58,11 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) (lib.cmakeBool "PYTHON_EXTENSIONS" false) + + (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") + (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib") + (lib.cmakeFeature "CMAKE_INSTALL_DIR" "${placeholder "dev"}/lib/cmake/fb303") + (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" (placeholder "dev")) ]; meta = { From 172efded7a0b48e6daf1ad0f3c7c1ec676b525ee Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:14:16 +0000 Subject: [PATCH 335/693] fb303: add update script --- pkgs/by-name/fb/fb303/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 9abc57b12244..61076ec6455c 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -15,6 +15,8 @@ wangle, apple-sdk_11, darwinMinVersionHook, + + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -65,6 +67,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" (placeholder "dev")) ]; + passthru.updateScript = nix-update-script { }; + meta = { description = "Base Thrift service and a common set of functionality for querying stats, options, and other information from a service"; homepage = "https://github.com/facebook/fb303"; From d4b587f878193665d7cb259559e85531f1d4c235 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:14:34 +0000 Subject: [PATCH 336/693] fb303: add emily to maintainers --- pkgs/by-name/fb/fb303/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 61076ec6455c..1ae59ed1daee 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -74,6 +74,9 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/facebook/fb303"; license = lib.licenses.asl20; platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ kylesferrazza ]; + maintainers = with lib.maintainers; [ + kylesferrazza + emily + ]; }; }) From c9719114fd9fc85f7123dc873140f43d08b45bab Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:15:48 +0000 Subject: [PATCH 337/693] fb303: add techknowlogick to maintainers --- pkgs/by-name/fb/fb303/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fb/fb303/package.nix b/pkgs/by-name/fb/fb303/package.nix index 1ae59ed1daee..b03e66eb861c 100644 --- a/pkgs/by-name/fb/fb303/package.nix +++ b/pkgs/by-name/fb/fb303/package.nix @@ -77,6 +77,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ kylesferrazza emily + techknowlogick ]; }; }) From c20f3875247fe88fc3a6f013688302b74197bef3 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:03:21 +0000 Subject: [PATCH 338/693] edencommon: format with `nixfmt-rfc-style` --- pkgs/development/libraries/edencommon/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/edencommon/default.nix b/pkgs/development/libraries/edencommon/default.nix index 9abd387a9d92..ef930814e021 100644 --- a/pkgs/development/libraries/edencommon/default.nix +++ b/pkgs/development/libraries/edencommon/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, lib -, fetchFromGitHub -, cmake -, folly -, glog -, gtest +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + folly, + glog, + gtest, }: stdenv.mkDerivation rec { From 3c14c26a35418f54f3ec3f1d767a92de8fdb5341 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:03:57 +0000 Subject: [PATCH 339/693] edencommon: convert to new Darwin SDK pattern --- .../libraries/edencommon/default.nix | 21 +++++++++++-------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/edencommon/default.nix b/pkgs/development/libraries/edencommon/default.nix index ef930814e021..d9f659e24191 100644 --- a/pkgs/development/libraries/edencommon/default.nix +++ b/pkgs/development/libraries/edencommon/default.nix @@ -6,6 +6,8 @@ folly, glog, gtest, + apple-sdk_11, + darwinMinVersionHook, }: stdenv.mkDerivation rec { @@ -26,15 +28,16 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; - cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; - - buildInputs = [ - glog - folly - gtest - ]; + buildInputs = + [ + glog + folly + gtest + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + (darwinMinVersionHook "11.0") + ]; meta = with lib; { description = "Shared library for Meta's source control filesystem tools (EdenFS and Watchman)"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d7689f27314d..c67205d9ffd1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9196,7 +9196,7 @@ with pkgs; stdenv = if stdenv.hostPlatform.isDarwin then gccStdenv else stdenv; }; - edencommon = darwin.apple_sdk_11_0.callPackage ../development/libraries/edencommon { }; + edencommon = callPackage ../development/libraries/edencommon { }; eigen = callPackage ../development/libraries/eigen { }; From aa5a90ed1d4a113bfd74e62685df4892dc6912db Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:04:23 +0000 Subject: [PATCH 340/693] edencommon: move to `pkgs/by-name` --- .../ed}/edencommon/increase-test-discovery-timeout.patch | 0 .../default.nix => by-name/ed/edencommon/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 2 deletions(-) rename pkgs/{development/libraries => by-name/ed}/edencommon/increase-test-discovery-timeout.patch (100%) rename pkgs/{development/libraries/edencommon/default.nix => by-name/ed/edencommon/package.nix} (100%) diff --git a/pkgs/development/libraries/edencommon/increase-test-discovery-timeout.patch b/pkgs/by-name/ed/edencommon/increase-test-discovery-timeout.patch similarity index 100% rename from pkgs/development/libraries/edencommon/increase-test-discovery-timeout.patch rename to pkgs/by-name/ed/edencommon/increase-test-discovery-timeout.patch diff --git a/pkgs/development/libraries/edencommon/default.nix b/pkgs/by-name/ed/edencommon/package.nix similarity index 100% rename from pkgs/development/libraries/edencommon/default.nix rename to pkgs/by-name/ed/edencommon/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c67205d9ffd1..1b8e47dc8c13 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9196,8 +9196,6 @@ with pkgs; stdenv = if stdenv.hostPlatform.isDarwin then gccStdenv else stdenv; }; - edencommon = callPackage ../development/libraries/edencommon { }; - eigen = callPackage ../development/libraries/eigen { }; eigen2 = callPackage ../development/libraries/eigen/2.0.nix { }; From a82596414267f3cba069337b2c8597b1547a53cd Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:04:50 +0000 Subject: [PATCH 341/693] edencommon: use `finalAttrs` --- pkgs/by-name/ed/edencommon/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index d9f659e24191..3cb4ff8d75b7 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -10,14 +10,14 @@ darwinMinVersionHook, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "edencommon"; version = "2024.03.11.00"; src = fetchFromGitHub { owner = "facebookexperimental"; repo = "edencommon"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; sha256 = "sha256-1z4QicS98juv4bUEbHBkCjVJHEhnoJyLYp4zMHmDbMg="; }; @@ -46,4 +46,4 @@ stdenv.mkDerivation rec { platforms = platforms.unix; maintainers = with maintainers; [ kylesferrazza ]; }; -} +}) From 171a5474ac2c3b8e520be6b3c5fa2d1dcd0cd325 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:04:58 +0000 Subject: [PATCH 342/693] edencommon: remove `with lib;` --- pkgs/by-name/ed/edencommon/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 3cb4ff8d75b7..7152ef1eb9e2 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -39,11 +39,11 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; - meta = with lib; { + meta = { description = "Shared library for Meta's source control filesystem tools (EdenFS and Watchman)"; homepage = "https://github.com/facebookexperimental/edencommon"; - license = licenses.mit; - platforms = platforms.unix; - maintainers = with maintainers; [ kylesferrazza ]; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ kylesferrazza ]; }; }) From eb86332558fed372ff758b4466012a2fe6cb24a7 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:05:13 +0000 Subject: [PATCH 343/693] edencommon: use `refs/tags/` --- pkgs/by-name/ed/edencommon/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 7152ef1eb9e2..837ebef07486 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "facebookexperimental"; repo = "edencommon"; - rev = "v${finalAttrs.version}"; + rev = "refs/tags/v${finalAttrs.version}"; sha256 = "sha256-1z4QicS98juv4bUEbHBkCjVJHEhnoJyLYp4zMHmDbMg="; }; From d26d7a195ee0570b72f2e3267a9e8df5f4ee5be8 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:05:22 +0000 Subject: [PATCH 344/693] edencommon: use `hash` --- pkgs/by-name/ed/edencommon/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 837ebef07486..1f9aa59bcf34 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "facebookexperimental"; repo = "edencommon"; rev = "refs/tags/v${finalAttrs.version}"; - sha256 = "sha256-1z4QicS98juv4bUEbHBkCjVJHEhnoJyLYp4zMHmDbMg="; + hash = "sha256-1z4QicS98juv4bUEbHBkCjVJHEhnoJyLYp4zMHmDbMg="; }; patches = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ From 7e35f7f5bb495607c624b299d6d0c04f32471006 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:06:48 +0000 Subject: [PATCH 345/693] edencommon: reorder inputs to match upstream file --- pkgs/by-name/ed/edencommon/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 1f9aa59bcf34..59db7256def5 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -1,10 +1,13 @@ { - stdenv, lib, + stdenv, + fetchFromGitHub, + cmake, - folly, + glog, + folly, gtest, apple-sdk_11, darwinMinVersionHook, From 2de2d0fad8f21742a342099420f999a519b1070e Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 23:33:48 +0000 Subject: [PATCH 346/693] edencommon: add explicit `gflags` dependency --- pkgs/by-name/ed/edencommon/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 59db7256def5..9b977f6d7ab0 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -7,6 +7,7 @@ cmake, glog, + gflags, folly, gtest, apple-sdk_11, @@ -34,6 +35,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ glog + gflags folly gtest ] From 66a2ebb46d081620dc8ca55bf800136808ba4e62 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:10:48 +0000 Subject: [PATCH 347/693] edencommon: use Ninja --- pkgs/by-name/ed/edencommon/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 9b977f6d7ab0..0fef1acdb9a2 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -5,6 +5,7 @@ fetchFromGitHub, cmake, + ninja, glog, gflags, @@ -30,7 +31,10 @@ stdenv.mkDerivation (finalAttrs: { ./increase-test-discovery-timeout.patch ]; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ + cmake + ninja + ]; buildInputs = [ From 509f33b9956bcd33db149b8e4a957a1d0bad9079 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:07:49 +0000 Subject: [PATCH 348/693] edencommon: 2024.03.11.00 -> 2024.11.18.00 Diff: https://github.com/facebookexperimental/edencommon/compare/refs/tags/v2024.03.11.00...v2024.11.18.00 --- pkgs/by-name/ed/edencommon/package.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 0fef1acdb9a2..44c2ad509db9 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -10,6 +10,9 @@ glog, gflags, folly, + fb303, + wangle, + fbthrift, gtest, apple-sdk_11, darwinMinVersionHook, @@ -17,13 +20,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "edencommon"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; src = fetchFromGitHub { owner = "facebookexperimental"; repo = "edencommon"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-1z4QicS98juv4bUEbHBkCjVJHEhnoJyLYp4zMHmDbMg="; + hash = "sha256-pVPkH80vowdpwWv/h6ovEk335OeI6/0k0cAFhhFqSDM="; }; patches = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ @@ -41,6 +44,9 @@ stdenv.mkDerivation (finalAttrs: { glog gflags folly + fb303 + wangle + fbthrift gtest ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ @@ -48,6 +54,16 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + postPatch = '' + # The CMake build requires the FBThrift Python support even though + # it’s not used, presumably because of the relevant code having + # been moved in from another repository. + substituteInPlace CMakeLists.txt \ + --replace-fail \ + 'find_package(FBThrift CONFIG REQUIRED COMPONENTS cpp2 py)' \ + 'find_package(FBThrift CONFIG REQUIRED COMPONENTS cpp2)' + ''; + meta = { description = "Shared library for Meta's source control filesystem tools (EdenFS and Watchman)"; homepage = "https://github.com/facebookexperimental/edencommon"; From c8d4e11d1ce49ed6dcb5edb4ee2c583a38aff428 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:16:01 +0000 Subject: [PATCH 349/693] edencommon: condition shared libraries on platform setting --- pkgs/by-name/ed/edencommon/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 44c2ad509db9..d998f5bc3d01 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -54,6 +54,12 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + cmakeFlags = [ + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) + + (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) + ]; + postPatch = '' # The CMake build requires the FBThrift Python support even though # it’s not used, presumably because of the relevant code having From d7df60e8f45e7b8f4eb7fe31376b108def2ea888 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:17:36 +0000 Subject: [PATCH 350/693] edencommon: enable tests --- pkgs/by-name/ed/edencommon/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index d998f5bc3d01..0f2ad5884570 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -60,6 +60,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) ]; + doCheck = true; + postPatch = '' # The CMake build requires the FBThrift Python support even though # it’s not used, presumably because of the relevant code having From 7da9ef3eb4db25e5082db30293a98b0a4dd3b9a3 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:18:11 +0000 Subject: [PATCH 351/693] edencommon: split outputs --- pkgs/by-name/ed/edencommon/package.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 0f2ad5884570..6a812e4ada65 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -6,6 +6,7 @@ cmake, ninja, + removeReferencesTo, glog, gflags, @@ -22,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "edencommon"; version = "2024.11.18.00"; + outputs = [ + "out" + "dev" + ]; + src = fetchFromGitHub { owner = "facebookexperimental"; repo = "edencommon"; @@ -37,6 +43,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja + removeReferencesTo ]; buildInputs = @@ -58,6 +65,10 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) + + (lib.cmakeFeature "INCLUDE_INSTALL_DIR" "${placeholder "dev"}/include") + (lib.cmakeFeature "LIB_INSTALL_DIR" "${placeholder "out"}/lib") + (lib.cmakeFeature "CMAKE_INSTALL_DIR" "${placeholder "dev"}/lib/cmake/edencommon") ]; doCheck = true; @@ -72,6 +83,18 @@ stdenv.mkDerivation (finalAttrs: { 'find_package(FBThrift CONFIG REQUIRED COMPONENTS cpp2)' ''; + postFixup = '' + # Sanitize header paths to avoid runtime dependencies leaking in + # through `__FILE__`. + ( + shopt -s globstar + for header in "$dev/include"/**/*.h; do + sed -i "1i#line 1 \"$header\"" "$header" + remove-references-to -t "$dev" "$header" + done + ) + ''; + meta = { description = "Shared library for Meta's source control filesystem tools (EdenFS and Watchman)"; homepage = "https://github.com/facebookexperimental/edencommon"; From c7b019d5f7ef6eb06d794e4357fc17f3a51034dc Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:18:27 +0000 Subject: [PATCH 352/693] edencommon: add update script --- pkgs/by-name/ed/edencommon/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 6a812e4ada65..8111faf7cf18 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -17,6 +17,8 @@ gtest, apple-sdk_11, darwinMinVersionHook, + + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -95,6 +97,8 @@ stdenv.mkDerivation (finalAttrs: { ) ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Shared library for Meta's source control filesystem tools (EdenFS and Watchman)"; homepage = "https://github.com/facebookexperimental/edencommon"; From cd48138e8dca0440999ccff34368159cb2c34dec Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:19:27 +0000 Subject: [PATCH 353/693] edencommon: add emily to maintainers --- pkgs/by-name/ed/edencommon/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 8111faf7cf18..8382e2d12a0b 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -104,6 +104,9 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/facebookexperimental/edencommon"; license = lib.licenses.mit; platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ kylesferrazza ]; + maintainers = with lib.maintainers; [ + kylesferrazza + emily + ]; }; }) From b4b2ad6a9e83f05a67773b8801a5ea9938fbbdd3 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:15:25 +0000 Subject: [PATCH 354/693] edencommon: add techknowlogick to maintainers --- pkgs/by-name/ed/edencommon/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ed/edencommon/package.nix b/pkgs/by-name/ed/edencommon/package.nix index 8382e2d12a0b..060ea7cc2da2 100644 --- a/pkgs/by-name/ed/edencommon/package.nix +++ b/pkgs/by-name/ed/edencommon/package.nix @@ -107,6 +107,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ kylesferrazza emily + techknowlogick ]; }; }) From fcb99bc19c648f7946bc9baf1fa143920ca69641 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 15 Nov 2024 15:51:30 +0000 Subject: [PATCH 355/693] cpptoml: add patch for GCC 11 --- .../cp/cpptoml/add-limits-include.patch | 21 +++++++++++++++++++ pkgs/by-name/cp/cpptoml/package.nix | 6 ++++++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/by-name/cp/cpptoml/add-limits-include.patch diff --git a/pkgs/by-name/cp/cpptoml/add-limits-include.patch b/pkgs/by-name/cp/cpptoml/add-limits-include.patch new file mode 100644 index 000000000000..6ab767ad5b9f --- /dev/null +++ b/pkgs/by-name/cp/cpptoml/add-limits-include.patch @@ -0,0 +1,21 @@ +From c55a516e90133d89d67285429c6474241346d27a Mon Sep 17 00:00:00 2001 +From: Dirk Eddelbuettel +Date: Mon, 30 Nov 2020 09:41:49 -0600 +Subject: [PATCH] g++-11 requires limits header + +--- + include/cpptoml.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/cpptoml.h b/include/cpptoml.h +index 5a00da3..1dc9fd1 100644 +--- a/include/cpptoml.h ++++ b/include/cpptoml.h +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/pkgs/by-name/cp/cpptoml/package.nix b/pkgs/by-name/cp/cpptoml/package.nix index 888af1c18631..421f67b8260a 100644 --- a/pkgs/by-name/cp/cpptoml/package.nix +++ b/pkgs/by-name/cp/cpptoml/package.nix @@ -11,6 +11,12 @@ stdenv.mkDerivation rec { sha256 = "0zlgdlk9nsskmr8xc2ajm6mn1x5wz82ssx9w88s02icz71mcihrx"; }; + patches = [ + # Fix compilation with GCC 11. + # + ./add-limits-include.patch + ]; + nativeBuildInputs = [ cmake ]; cmakeFlags = [ From ca944d626ba5cff1ecaddc0dda5cc2a59fa92522 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:11:04 +0000 Subject: [PATCH 356/693] watchman: format with `nixfmt-rfc-style` --- pkgs/development/tools/watchman/default.nix | 79 +++++++++++---------- 1 file changed, 41 insertions(+), 38 deletions(-) diff --git a/pkgs/development/tools/watchman/default.nix b/pkgs/development/tools/watchman/default.nix index 0a928810eb68..a57faaff6259 100644 --- a/pkgs/development/tools/watchman/default.nix +++ b/pkgs/development/tools/watchman/default.nix @@ -1,33 +1,34 @@ -{ cargo -, cmake -, CoreServices -, cpptoml -, double-conversion -, edencommon -, ensureNewerSourcesForZipFilesHook -, fb303 -, fbthrift -, fetchFromGitHub -, fetchpatch -, fizz -, folly -, glog -, gtest -, lib -, libevent -, libiconv -, libsodium -, libunwind -, lz4 -, openssl -, pcre2 -, pkg-config -, rustPlatform -, rustc -, stateDir ? "/tmp" -, stdenv -, wangle -, zstd +{ + cargo, + cmake, + CoreServices, + cpptoml, + double-conversion, + edencommon, + ensureNewerSourcesForZipFilesHook, + fb303, + fbthrift, + fetchFromGitHub, + fetchpatch, + fizz, + folly, + glog, + gtest, + lib, + libevent, + libiconv, + libsodium, + libunwind, + lz4, + openssl, + pcre2, + pkg-config, + rustPlatform, + rustc, + stateDir ? "/tmp", + stdenv, + wangle, + zstd, }: stdenv.mkDerivation rec { @@ -41,14 +42,16 @@ stdenv.mkDerivation rec { hash = "sha256-cD8mIYCc+8Z2p3rwKVRFcW9sOBbpb5KHU5VpbXHMpeg="; }; - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs - "-DWATCHMAN_STATE_DIR=${stateDir}" - "-DWATCHMAN_VERSION_OVERRIDE=${version}" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; + cmakeFlags = + [ + "-DBUILD_SHARED_LIBS=ON" + "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs + "-DWATCHMAN_STATE_DIR=${stateDir}" + "-DWATCHMAN_VERSION_OVERRIDE=${version}" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation + ]; nativeBuildInputs = [ cmake From 1c60ec77f4081f5ff616f8b50a21b967e99c10eb Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:11:15 +0000 Subject: [PATCH 357/693] watchman: convert to new Darwin SDK pattern --- pkgs/development/tools/watchman/default.nix | 64 ++++++++++----------- pkgs/top-level/all-packages.nix | 4 +- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/pkgs/development/tools/watchman/default.nix b/pkgs/development/tools/watchman/default.nix index a57faaff6259..f91f53389f58 100644 --- a/pkgs/development/tools/watchman/default.nix +++ b/pkgs/development/tools/watchman/default.nix @@ -1,7 +1,6 @@ { cargo, cmake, - CoreServices, cpptoml, double-conversion, edencommon, @@ -16,7 +15,6 @@ gtest, lib, libevent, - libiconv, libsodium, libunwind, lz4, @@ -29,6 +27,8 @@ stdenv, wangle, zstd, + apple-sdk_11, + darwinMinVersionHook, }: stdenv.mkDerivation rec { @@ -42,16 +42,12 @@ stdenv.mkDerivation rec { hash = "sha256-cD8mIYCc+8Z2p3rwKVRFcW9sOBbpb5KHU5VpbXHMpeg="; }; - cmakeFlags = - [ - "-DBUILD_SHARED_LIBS=ON" - "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs - "-DWATCHMAN_STATE_DIR=${stateDir}" - "-DWATCHMAN_VERSION_OVERRIDE=${version}" - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation - ]; + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs + "-DWATCHMAN_STATE_DIR=${stateDir}" + "-DWATCHMAN_VERSION_OVERRIDE=${version}" + ]; nativeBuildInputs = [ cmake @@ -62,26 +58,30 @@ stdenv.mkDerivation rec { rustc ]; - buildInputs = [ - pcre2 - openssl - gtest - glog - libevent - libsodium - folly - fizz - wangle - fbthrift - fb303 - cpptoml - edencommon - libunwind - double-conversion - lz4 - zstd - libiconv - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ]; + buildInputs = + [ + pcre2 + openssl + gtest + glog + libevent + libsodium + folly + fizz + wangle + fbthrift + fb303 + cpptoml + edencommon + libunwind + double-conversion + lz4 + zstd + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + (darwinMinVersionHook "11.0") + ]; cargoRoot = "watchman/cli"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b8e47dc8c13..f9ea2c388f0e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5733,9 +5733,7 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Cocoa AppKit; }; - watchman = darwin.apple_sdk_11_0.callPackage ../development/tools/watchman { - inherit (darwin.apple_sdk_11_0.frameworks) CoreServices; - }; + watchman = callPackage ../development/tools/watchman { }; webassemblyjs-cli = nodePackages."@webassemblyjs/cli-1.11.1"; webassemblyjs-repl = nodePackages."@webassemblyjs/repl-1.11.1"; From ba17205ae363ee665fbc7065b48ae3865d0384e4 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:13:23 +0000 Subject: [PATCH 358/693] watchman: move to `pkgs/by-name` --- pkgs/{development/tools => by-name/wa}/watchman/Cargo.lock | 0 .../watchman/default.nix => by-name/wa/watchman/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 2 deletions(-) rename pkgs/{development/tools => by-name/wa}/watchman/Cargo.lock (100%) rename pkgs/{development/tools/watchman/default.nix => by-name/wa/watchman/package.nix} (100%) diff --git a/pkgs/development/tools/watchman/Cargo.lock b/pkgs/by-name/wa/watchman/Cargo.lock similarity index 100% rename from pkgs/development/tools/watchman/Cargo.lock rename to pkgs/by-name/wa/watchman/Cargo.lock diff --git a/pkgs/development/tools/watchman/default.nix b/pkgs/by-name/wa/watchman/package.nix similarity index 100% rename from pkgs/development/tools/watchman/default.nix rename to pkgs/by-name/wa/watchman/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f9ea2c388f0e..9ec9650bafb2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5733,8 +5733,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Cocoa AppKit; }; - watchman = callPackage ../development/tools/watchman { }; - webassemblyjs-cli = nodePackages."@webassemblyjs/cli-1.11.1"; webassemblyjs-repl = nodePackages."@webassemblyjs/repl-1.11.1"; wasm-strip = nodePackages."@webassemblyjs/wasm-strip"; From 4f864948a8b40bbd964c521a433c972e67325330 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:14:03 +0000 Subject: [PATCH 359/693] watchman: use `finalAttrs` --- pkgs/by-name/wa/watchman/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index f91f53389f58..7446ee777bed 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -31,14 +31,14 @@ darwinMinVersionHook, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "watchman"; version = "2024.03.11.00"; src = fetchFromGitHub { owner = "facebook"; repo = "watchman"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-cD8mIYCc+8Z2p3rwKVRFcW9sOBbpb5KHU5VpbXHMpeg="; }; @@ -46,7 +46,7 @@ stdenv.mkDerivation rec { "-DBUILD_SHARED_LIBS=ON" "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs "-DWATCHMAN_STATE_DIR=${stateDir}" - "-DWATCHMAN_VERSION_OVERRIDE=${version}" + "-DWATCHMAN_VERSION_OVERRIDE=${finalAttrs.version}" ]; nativeBuildInputs = [ @@ -99,7 +99,7 @@ stdenv.mkDerivation rec { postPatch = '' patchShebangs . - cp ${./Cargo.lock} ${cargoRoot}/Cargo.lock + cp ${./Cargo.lock} ${finalAttrs.cargoRoot}/Cargo.lock ''; meta = with lib; { @@ -109,4 +109,4 @@ stdenv.mkDerivation rec { platforms = platforms.unix; license = licenses.mit; }; -} +}) From 8a2efd913300b7e6c6fd79a53962686cf9298383 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:14:08 +0000 Subject: [PATCH 360/693] watchman: remove `with lib;` --- pkgs/by-name/wa/watchman/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 7446ee777bed..bd471a914b1b 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -102,11 +102,11 @@ stdenv.mkDerivation (finalAttrs: { cp ${./Cargo.lock} ${finalAttrs.cargoRoot}/Cargo.lock ''; - meta = with lib; { + meta = { description = "Watches files and takes action when they change"; homepage = "https://facebook.github.io/watchman"; - maintainers = with maintainers; [ kylesferrazza ]; - platforms = platforms.unix; - license = licenses.mit; + maintainers = with lib.maintainers; [ kylesferrazza ]; + platforms = lib.platforms.unix; + license = lib.licenses.mit; }; }) From 14410cc8dca87ea0131afce4acce49c4a0d714eb Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:14:56 +0000 Subject: [PATCH 361/693] watchman: use `refs/tags/` --- pkgs/by-name/wa/watchman/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index bd471a914b1b..3337590d3172 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "facebook"; repo = "watchman"; - rev = "v${finalAttrs.version}"; + rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-cD8mIYCc+8Z2p3rwKVRFcW9sOBbpb5KHU5VpbXHMpeg="; }; From 033896e98cf203107a6a751db4fe8f351371ea41 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:28:31 +0000 Subject: [PATCH 362/693] watchman: reorder attributes --- pkgs/by-name/wa/watchman/package.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 3337590d3172..3cd870b52473 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -42,11 +42,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-cD8mIYCc+8Z2p3rwKVRFcW9sOBbpb5KHU5VpbXHMpeg="; }; - cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs - "-DWATCHMAN_STATE_DIR=${stateDir}" - "-DWATCHMAN_VERSION_OVERRIDE=${finalAttrs.version}" + patches = [ + # fix build with rustc >=1.79 + (fetchpatch { + url = "https://github.com/facebook/watchman/commit/c3536143cab534cdd9696eb3e2d03c4ac1e2f883.patch"; + hash = "sha256-lpGr5H28gfVXkWNdfDo4SCbF/p5jB4SNlHj6km/rfw4="; + }) ]; nativeBuildInputs = [ @@ -83,20 +84,19 @@ stdenv.mkDerivation (finalAttrs: { (darwinMinVersionHook "11.0") ]; + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs + "-DWATCHMAN_STATE_DIR=${stateDir}" + "-DWATCHMAN_VERSION_OVERRIDE=${finalAttrs.version}" + ]; + cargoRoot = "watchman/cli"; cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; - patches = [ - # fix build with rustc >=1.79 - (fetchpatch { - url = "https://github.com/facebook/watchman/commit/c3536143cab534cdd9696eb3e2d03c4ac1e2f883.patch"; - hash = "sha256-lpGr5H28gfVXkWNdfDo4SCbF/p5jB4SNlHj6km/rfw4="; - }) - ]; - postPatch = '' patchShebangs . cp ${./Cargo.lock} ${finalAttrs.cargoRoot}/Cargo.lock From fe60436739a0cd8aec4c7382249c2f5029dde64b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 16:18:49 +0000 Subject: [PATCH 363/693] watchman: reorder inputs to match upstream file --- pkgs/by-name/wa/watchman/package.nix | 60 +++++++++++++++------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 3cd870b52473..57ec17947096 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -1,34 +1,38 @@ { - cargo, - cmake, - cpptoml, - double-conversion, - edencommon, - ensureNewerSourcesForZipFilesHook, - fb303, - fbthrift, + lib, + stdenv, + fetchFromGitHub, fetchpatch, - fizz, - folly, - glog, - gtest, - lib, - libevent, - libsodium, - libunwind, - lz4, - openssl, - pcre2, + + cmake, pkg-config, - rustPlatform, rustc, - stateDir ? "/tmp", - stdenv, + cargo, + rustPlatform, + ensureNewerSourcesForZipFilesHook, + + pcre2, + openssl, + glog, + libevent, + edencommon, + folly, + fizz, wangle, + fbthrift, + fb303, + cpptoml, + gtest, + libunwind, + libsodium, + double-conversion, + lz4, zstd, apple-sdk_11, darwinMinVersionHook, + + stateDir ? "/tmp", }: stdenv.mkDerivation (finalAttrs: { @@ -53,27 +57,27 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake pkg-config - ensureNewerSourcesForZipFilesHook - rustPlatform.cargoSetupHook - cargo rustc + cargo + rustPlatform.cargoSetupHook + ensureNewerSourcesForZipFilesHook ]; buildInputs = [ pcre2 openssl - gtest glog libevent - libsodium + edencommon folly fizz wangle fbthrift fb303 cpptoml - edencommon + gtest + libsodium libunwind double-conversion lz4 From f7f5d1a9473a3fafc5aa8f685e9e364d97548fc5 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 21:45:57 +0000 Subject: [PATCH 364/693] watchman: clean up inputs --- pkgs/by-name/wa/watchman/package.nix | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 57ec17947096..300305d8efd4 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -14,6 +14,7 @@ pcre2, openssl, + gflags, glog, libevent, edencommon, @@ -23,15 +24,11 @@ fbthrift, fb303, cpptoml, - gtest, - libunwind, - libsodium, - double-conversion, - lz4, - zstd, apple-sdk_11, darwinMinVersionHook, + gtest, + stateDir ? "/tmp", }: @@ -67,6 +64,7 @@ stdenv.mkDerivation (finalAttrs: { [ pcre2 openssl + gflags glog libevent edencommon @@ -76,18 +74,16 @@ stdenv.mkDerivation (finalAttrs: { fbthrift fb303 cpptoml - gtest - libsodium - libunwind - double-conversion - lz4 - zstd ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 (darwinMinVersionHook "11.0") ]; + checkInputs = [ + gtest + ]; + cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs From 354913f342e64e93c2a8384e52f17daf1d97b3bb Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 21:21:43 +0000 Subject: [PATCH 365/693] watchman: use Ninja --- pkgs/by-name/wa/watchman/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 300305d8efd4..181a03bdf417 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -6,6 +6,7 @@ fetchpatch, cmake, + ninja, pkg-config, rustc, cargo, @@ -53,6 +54,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake + ninja pkg-config rustc cargo From 13a571f5ee27e94c04140ae14e5bc74dc4917343 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 21:05:47 +0000 Subject: [PATCH 366/693] watchman: 2024.03.11.00 -> 2024.11.18.00 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Turning off Sapling support breaks the build with newer versions, and anyway it seems to build just fine with it turned on. Similarly for shared libraries: the internal libraries aren’t used by anything else, and break the build when made shared because they aren’t installed in the CMake files, so we should just leave them static. Diff: https://github.com/facebook/watchman/compare/refs/tags/v2024.03.11.00...v2024.11.18.00 --- pkgs/by-name/wa/watchman/Cargo.lock | 455 ++++++++++++--------------- pkgs/by-name/wa/watchman/package.nix | 14 +- 2 files changed, 208 insertions(+), 261 deletions(-) diff --git a/pkgs/by-name/wa/watchman/Cargo.lock b/pkgs/by-name/wa/watchman/Cargo.lock index 4da733140b48..09cd62514f5a 100644 --- a/pkgs/by-name/wa/watchman/Cargo.lock +++ b/pkgs/by-name/wa/watchman/Cargo.lock @@ -4,24 +4,24 @@ version = 3 [[package]] name = "addr2line" -version = "0.21.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "gimli", ] [[package]] -name = "adler" -version = "1.0.2" +name = "adler2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] name = "ahash" -version = "0.8.7" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", "getrandom", @@ -41,9 +41,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.79" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" +checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" [[package]] name = "atty" @@ -58,23 +58,23 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.1.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "backtrace" -version = "0.3.69" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ "addr2line", - "cc", "cfg-if", "libc", "miniz_oxide", "object", "rustc-demangle", + "windows-targets", ] [[package]] @@ -83,6 +83,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" + [[package]] name = "byteorder" version = "1.5.0" @@ -91,22 +97,13 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.5.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" dependencies = [ "serde", ] -[[package]] -name = "cc" -version = "1.0.83" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" -dependencies = [ - "libc", -] - [[package]] name = "cfg-if" version = "1.0.0" @@ -121,7 +118,7 @@ checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" dependencies = [ "ansi_term", "atty", - "bitflags", + "bitflags 1.3.2", "strsim", "textwrap", "unicode-width", @@ -130,9 +127,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "crossbeam" @@ -149,9 +146,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.11" +version = "0.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176dc175b78f56c0f321911d9c8eb2b77a78a4860b9c19db83835fea1a46649b" +checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2" dependencies = [ "crossbeam-utils", ] @@ -186,9 +183,9 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "duct" @@ -204,9 +201,9 @@ dependencies = [ [[package]] name = "either" -version = "1.9.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "futures" @@ -216,9 +213,9 @@ checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -231,9 +228,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -241,15 +238,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -258,38 +255,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.87", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures 0.1.31", "futures-channel", @@ -306,9 +303,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.12" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", @@ -317,9 +314,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.28.1" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "heck" @@ -341,15 +338,15 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.3.4" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d3d0e0f38255e7fa3cf31335b3a56f05febd18025f4db5ef7a0cfb4f8da651f" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "itoa" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jwalk" @@ -363,21 +360,21 @@ dependencies = [ [[package]] name = "lazy_static" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.152" +version = "0.2.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "lock_api" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ "autocfg", "scopeguard", @@ -385,9 +382,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.20" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "maplit" @@ -397,9 +394,9 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" [[package]] name = "memchr" -version = "2.7.1" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memoffset" @@ -412,22 +409,23 @@ dependencies = [ [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" dependencies = [ - "adler", + "adler2", ] [[package]] name = "mio" -version = "0.8.10" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" +checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ + "hermit-abi 0.3.9", "libc", "wasi", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -437,7 +435,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4" dependencies = [ "autocfg", - "bitflags", + "bitflags 1.3.2", "cfg-if", "libc", "memoffset", @@ -453,46 +451,36 @@ dependencies = [ "winapi", ] -[[package]] -name = "num_cpus" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" -dependencies = [ - "hermit-abi 0.3.4", - "libc", -] - [[package]] name = "object" -version = "0.32.2" +version = "0.36.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "os_pipe" -version = "1.1.5" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57119c3b893986491ec9aa85056780d3a0f3cf4da7cc09dd3650dbd6c6738fb9" +checksum = "5ffd2b0a5634335b135d5728d84c5e0fd726954b87111f7506a61c502280d982" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] name = "parking_lot" -version = "0.12.1" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ "lock_api", "parking_lot_core", @@ -500,22 +488,22 @@ dependencies = [ [[package]] name = "parking_lot_core" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", - "windows-targets 0.48.5", + "windows-targets", ] [[package]] name = "pin-project-lite" -version = "0.2.13" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pin-utils" @@ -549,27 +537,27 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.78" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.35" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] [[package]] name = "rayon" -version = "1.8.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa7237101a77a10773db45d62004a272517633fbcc3df19d96455ede1122e051" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" dependencies = [ "either", "rayon-core", @@ -587,24 +575,24 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.4.1" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" dependencies = [ - "bitflags", + "bitflags 2.6.0", ] [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "ryu" -version = "1.0.16" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "scopeguard" @@ -614,16 +602,16 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "serde" -version = "1.0.196" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] [[package]] name = "serde_bser" -version = "0.3.1" +version = "0.4.0" dependencies = [ "anyhow", "byteorder", @@ -635,50 +623,51 @@ dependencies = [ [[package]] name = "serde_bytes" -version = "0.11.14" +version = "0.11.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" +checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" dependencies = [ "serde", ] [[package]] name = "serde_derive" -version = "1.0.196" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.87", ] [[package]] name = "serde_json" -version = "1.0.113" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] [[package]] name = "shared_child" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0d94659ad3c2137fef23ae75b03d5241d633f8acded53d672decfa0e6e0caef" +checksum = "09fa9338aed9a1df411814a5b2252f7cd206c55ae9bf2fa763f8de84603aa60c" dependencies = [ "libc", - "winapi", + "windows-sys 0.59.0", ] [[package]] name = "signal-hook-registry" -version = "1.4.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" dependencies = [ "libc", ] @@ -694,18 +683,18 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "socket2" -version = "0.5.5" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" +checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" dependencies = [ "libc", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -751,9 +740,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.48" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -762,9 +751,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.26.9" +version = "0.30.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c18a6156d1f27a9592ee18c1a846ca8dd5c258b7179fc193ae87c74ebb666f5" +checksum = "0a5b4ddaee55fb2bea2bf0e5000747e5f5c0de765e5a5ff87f4cd106439f4bb3" dependencies = [ "cfg-if", "core-foundation-sys", @@ -772,7 +761,7 @@ dependencies = [ "ntapi", "once_cell", "rayon", - "winapi", + "windows", ] [[package]] @@ -795,53 +784,52 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.56" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.56" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.87", ] [[package]] name = "tokio" -version = "1.35.1" +version = "1.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c89b4efa943be685f629b149f53829423f8f5531ea21249408e8e2f8671ec104" +checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" dependencies = [ "backtrace", "bytes", "libc", "mio", - "num_cpus", "parking_lot", "pin-project-lite", "signal-hook-registry", "socket2", "tokio-macros", "tracing", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "tokio-macros" -version = "2.2.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" +checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.87", ] [[package]] @@ -881,21 +869,21 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" [[package]] name = "unicode-segmentation" -version = "1.10.1" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unicode-width" -version = "0.1.11" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" [[package]] name = "vec_map" @@ -905,9 +893,9 @@ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "wasi" @@ -917,11 +905,11 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "watchman_client" -version = "0.8.0" +version = "0.9.0" dependencies = [ "anyhow", "bytes", - "futures 0.3.30", + "futures 0.3.31", "maplit", "serde", "serde_bser", @@ -972,12 +960,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] -name = "windows-sys" -version = "0.48.0" +name = "windows" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" dependencies = [ - "windows-targets 0.48.5", + "windows-core", + "windows-targets", +] + +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets", ] [[package]] @@ -986,139 +984,98 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.0", + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", ] [[package]] name = "windows-targets" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", -] - -[[package]] -name = "windows-targets" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a18201040b24831fbb9e4eb208f8892e1f50a37feb53cc7ff887feb8f50e7cd" -dependencies = [ - "windows_aarch64_gnullvm 0.52.0", - "windows_aarch64_msvc 0.52.0", - "windows_i686_gnu 0.52.0", - "windows_i686_msvc 0.52.0", - "windows_x86_64_gnu 0.52.0", - "windows_x86_64_gnullvm 0.52.0", - "windows_x86_64_msvc 0.52.0", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7764e35d4db8a7921e09562a0304bf2f93e0a51bfccee0bd0bb0b666b015ea" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbaa0368d4f1d2aaefc55b6fcfee13f41544ddf36801e793edbbfd7d7df075ef" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] -name = "windows_i686_gnu" -version = "0.52.0" +name = "windows_i686_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a28637cb1fa3560a16915793afb20081aba2c92ee8af57b4d5f28e4b3e7df313" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffe5e8e31046ce6230cc7215707b816e339ff4d4d67c65dffa206fd0f7aa7b9a" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6fa32db2bc4a2f5abeacf2b69f7992cd09dca97498da74a151a3132c26befd" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a657e1e9d3f514745a572a6846d3c7aa7dbe1658c056ed9c3344c4109a6949e" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "zerocopy" -version = "0.7.32" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.32" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.87", ] diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 181a03bdf417..03ba83297db6 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -35,23 +35,15 @@ stdenv.mkDerivation (finalAttrs: { pname = "watchman"; - version = "2024.03.11.00"; + version = "2024.11.18.00"; src = fetchFromGitHub { owner = "facebook"; repo = "watchman"; rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-cD8mIYCc+8Z2p3rwKVRFcW9sOBbpb5KHU5VpbXHMpeg="; + hash = "sha256-deOSeExhwn8wrtP2Y0BDaHdmaeiUaDBok6W7N1rH/24="; }; - patches = [ - # fix build with rustc >=1.79 - (fetchpatch { - url = "https://github.com/facebook/watchman/commit/c3536143cab534cdd9696eb3e2d03c4ac1e2f883.patch"; - hash = "sha256-lpGr5H28gfVXkWNdfDo4SCbF/p5jB4SNlHj6km/rfw4="; - }) - ]; - nativeBuildInputs = [ cmake ninja @@ -87,8 +79,6 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ - "-DBUILD_SHARED_LIBS=ON" - "-DENABLE_EDEN_SUPPORT=NO" # requires sapling (formerly known as eden), which is not packaged in nixpkgs "-DWATCHMAN_STATE_DIR=${stateDir}" "-DWATCHMAN_VERSION_OVERRIDE=${finalAttrs.version}" ]; From d9ea8bbebfe60895ac98640402a655e95149bcf1 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 22:30:33 +0000 Subject: [PATCH 367/693] watchman: use `lib.cmake{Bool,Feature}` --- pkgs/by-name/wa/watchman/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 03ba83297db6..143894b64b6b 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -79,8 +79,8 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ - "-DWATCHMAN_STATE_DIR=${stateDir}" - "-DWATCHMAN_VERSION_OVERRIDE=${finalAttrs.version}" + (lib.cmakeFeature "WATCHMAN_STATE_DIR" stateDir) + (lib.cmakeFeature "WATCHMAN_VERSION_OVERRIDE" finalAttrs.version) ]; cargoRoot = "watchman/cli"; From 33b5c76f1492e5afca9a3c03d525f50891af42c1 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 15 Nov 2024 16:26:47 +0000 Subject: [PATCH 368/693] watchman: set `CMAKE_INSTALL_RPATH_USE_LINK_PATH` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shared libraries, CMake, necessary on Linux… I don’t know. --- pkgs/by-name/wa/watchman/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 143894b64b6b..e713ff947aec 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -79,6 +79,8 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ + (lib.cmakeBool "CMAKE_INSTALL_RPATH_USE_LINK_PATH" true) + (lib.cmakeFeature "WATCHMAN_STATE_DIR" stateDir) (lib.cmakeFeature "WATCHMAN_VERSION_OVERRIDE" finalAttrs.version) ]; From e701eb3d63fa3f4cae55d86dd935bcc117e4f174 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 13 Nov 2024 22:30:33 +0000 Subject: [PATCH 369/693] watchman: use upstream default for `stateDir` Possibly it should use `/run/watchman` on Linux. --- pkgs/by-name/wa/watchman/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index e713ff947aec..82d5e4e39b9d 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -30,7 +30,7 @@ gtest, - stateDir ? "/tmp", + stateDir ? "", }: stdenv.mkDerivation (finalAttrs: { From 10dbf1de4b6864143707529c34ace520a46a7372 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:21:36 +0000 Subject: [PATCH 370/693] watchman: enable tests --- pkgs/by-name/wa/watchman/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 82d5e4e39b9d..683024e61488 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -91,6 +91,8 @@ stdenv.mkDerivation (finalAttrs: { lockFile = ./Cargo.lock; }; + doCheck = true; + postPatch = '' patchShebangs . cp ${./Cargo.lock} ${finalAttrs.cargoRoot}/Cargo.lock From 9a90e1cd80359c9dd5e7eaca80274ba9c96b5180 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 13:24:16 +0000 Subject: [PATCH 371/693] watchman: strip references to `folly.fmt.dev` --- pkgs/by-name/wa/watchman/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 683024e61488..29a0eb12767e 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -12,6 +12,7 @@ cargo, rustPlatform, ensureNewerSourcesForZipFilesHook, + removeReferencesTo, pcre2, openssl, @@ -52,6 +53,7 @@ stdenv.mkDerivation (finalAttrs: { cargo rustPlatform.cargoSetupHook ensureNewerSourcesForZipFilesHook + removeReferencesTo ]; buildInputs = @@ -98,6 +100,11 @@ stdenv.mkDerivation (finalAttrs: { cp ${./Cargo.lock} ${finalAttrs.cargoRoot}/Cargo.lock ''; + postFixup = '' + # TODO: Do this in `fmt` rather than downstream. + remove-references-to -t ${folly.fmt.dev} $out/bin/* + ''; + meta = { description = "Watches files and takes action when they change"; homepage = "https://facebook.github.io/watchman"; From ec166bb5f0eb1af4fc706ea55c01cd886e81ea01 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:39:01 +0000 Subject: [PATCH 372/693] watchman: add update script --- pkgs/by-name/wa/watchman/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 29a0eb12767e..4471aa25ffb8 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -31,6 +31,8 @@ gtest, + nix-update-script, + stateDir ? "", }: @@ -105,6 +107,8 @@ stdenv.mkDerivation (finalAttrs: { remove-references-to -t ${folly.fmt.dev} $out/bin/* ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Watches files and takes action when they change"; homepage = "https://facebook.github.io/watchman"; From df28dd1d3c0915c071561a132d013badf3086c6d Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 14 Nov 2024 03:24:15 +0000 Subject: [PATCH 373/693] watchman: add emily to maintainers --- pkgs/by-name/wa/watchman/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index 4471aa25ffb8..b41121f48083 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -112,7 +112,10 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "Watches files and takes action when they change"; homepage = "https://facebook.github.io/watchman"; - maintainers = with lib.maintainers; [ kylesferrazza ]; + maintainers = with lib.maintainers; [ + kylesferrazza + emily + ]; platforms = lib.platforms.unix; license = lib.licenses.mit; }; From 041e7f435d6bb191f0e472763fc5f52df40c7b76 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 06:14:52 +0000 Subject: [PATCH 374/693] watchman: add techknowlogick to maintainers --- pkgs/by-name/wa/watchman/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/wa/watchman/package.nix b/pkgs/by-name/wa/watchman/package.nix index b41121f48083..8ee1aaf2c3b4 100644 --- a/pkgs/by-name/wa/watchman/package.nix +++ b/pkgs/by-name/wa/watchman/package.nix @@ -115,6 +115,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ kylesferrazza emily + techknowlogick ]; platforms = lib.platforms.unix; license = lib.licenses.mit; From dde9606751a89abc4cd05014b2ecc25e20848f6d Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 18 Nov 2024 18:06:36 +0000 Subject: [PATCH 375/693] llvmPackages.compiler-rt: use `$SDKROOT` to fix Darwin static --- .../compilers/llvm/common/compiler-rt/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index b6b2d6d39755..2e7bc41e0c6e 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -7,11 +7,11 @@ , src ? null , monorepoSrc ? null , runCommand -, apple-sdk , cmake , ninja , python3 , libllvm +, jq , libcxx , linuxHeaders , freebsd @@ -68,7 +68,8 @@ stdenv.mkDerivation ({ nativeBuildInputs = [ cmake ] ++ (lib.optional (lib.versionAtLeast release_version "15") ninja) - ++ [ python3 libllvm.dev ]; + ++ [ python3 libllvm.dev ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ jq ]; buildInputs = lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isRiscV) linuxHeaders ++ lib.optional (stdenv.hostPlatform.isFreeBSD) freebsd.include; @@ -136,8 +137,6 @@ stdenv.mkDerivation ({ # Darwin support, so force it to be enabled during the first stage of the compiler-rt bootstrap. "-DCOMPILER_RT_HAS_G_FLAG=ON" ] ++ [ - "-DDARWIN_macosx_CACHED_SYSROOT=${apple-sdk.sdkroot}" - "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=${lib.versions.majorMinor (lib.getVersion apple-sdk)}" "-DDARWIN_osx_ARCHS=${stdenv.hostPlatform.darwinArch}" "-DDARWIN_osx_BUILTIN_ARCHS=${stdenv.hostPlatform.darwinArch}" "-DSANITIZER_MIN_OSX_VERSION=${stdenv.hostPlatform.darwinMinVersion}" @@ -184,6 +183,13 @@ stdenv.mkDerivation ({ --replace-fail 'find_program(CODESIGN codesign)' "" ''; + preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' + cmakeFlagsArray+=( + "-DDARWIN_macosx_CACHED_SYSROOT=$SDKROOT" + "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=$(jq -r .Version "$SDKROOT/SDKSettings.json")" + ) + ''; + # Hack around weird upsream RPATH bug postInstall = lib.optionalString (stdenv.hostPlatform.isDarwin) '' ln -s "$out/lib"/*/* "$out/lib" From 195c2b5a51e75db4b7d5d70801bd8bbc9b2da003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 11 Nov 2024 15:05:38 -0800 Subject: [PATCH 376/693] python312Packages.baize: init at 0.22.2 --- .../python-modules/baize/default.nix | 49 +++++++++---------- pkgs/top-level/python-packages.nix | 4 +- 2 files changed, 24 insertions(+), 29 deletions(-) diff --git a/pkgs/development/python-modules/baize/default.nix b/pkgs/development/python-modules/baize/default.nix index d0fec79bc5a6..b3ac8bc5e564 100644 --- a/pkgs/development/python-modules/baize/default.nix +++ b/pkgs/development/python-modules/baize/default.nix @@ -1,18 +1,13 @@ { buildPythonPackage, + fetchFromGitHub, + httpx, lib, - fetchPypi, - pytestCheckHook, pdm-pep517, - pytest-httpx, + pytest-asyncio, + pytestCheckHook, setuptools, starlette, - anyio, - pytest-asyncio, - pytest-tornasync, - pytest-trio, - pytest-twisted, - twisted, }: buildPythonPackage rec { @@ -20,9 +15,11 @@ buildPythonPackage rec { version = "0.22.2"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-J+l8NsSTpCh7Uws+Zp45LXkLEBBurqOsOr8Iik/9smY="; + src = fetchFromGitHub { + owner = "abersheeran"; + repo = "baize"; + rev = "refs/tags/v${version}"; + hash = "sha256-vsYt1q8QEDmEXjd8dlzHr85Fz3YAjPowS+oBWYGbG1o="; }; build-system = [ @@ -30,31 +27,29 @@ buildPythonPackage rec { setuptools ]; - dependencies = [ + pythonImportsCheck = [ "baize" ]; + + nativeCheckInputs = [ + httpx + pytest-asyncio + pytestCheckHook starlette ]; - nativeCheckInputs = [ - pytestCheckHook - pytest-httpx - anyio - pytest-asyncio - pytest-tornasync - pytest-trio - pytest-twisted - twisted - ]; - disabledTests = [ - # https://github.com/abersheeran/baize/issues/67 + # test relies on last modified date, which is set to 1970-01-01 in the sandbox "test_files" + # starlette.testclient.WebSocketDenialResponse "test_request_response" ]; meta = { description = "Powerful and exquisite WSGI/ASGI framework/toolkit"; - maintainers = with lib.maintainers; [ bot-wxt1221 ]; - homepage = "https://baize.aber.sh/"; + homepage = "https://github.com/abersheeran/baize"; license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ + dotlambda + bot-wxt1221 + ]; }; } diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 757e598e1717..1845dc7402a4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1402,6 +1402,8 @@ self: super: with self; { enablePython = true; }); + baize = callPackage ../development/python-modules/baize { }; + bambi = callPackage ../development/python-modules/bambi { }; pad4pi = callPackage ../development/python-modules/pad4pi { }; @@ -1456,8 +1458,6 @@ self: super: with self; { bagit = callPackage ../development/python-modules/bagit { }; - baize = callPackage ../development/python-modules/baize { }; - banal = callPackage ../development/python-modules/banal { }; bandcamp-api = callPackage ../development/python-modules/bandcamp-api { }; From 435f5fc0a7990255acaf681c24528009414baa6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 11 Nov 2024 15:07:06 -0800 Subject: [PATCH 377/693] python312Packages.a2wsgi: fix tests --- .../python-modules/a2wsgi/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/a2wsgi/default.nix b/pkgs/development/python-modules/a2wsgi/default.nix index e9a90937760d..08460911bbec 100644 --- a/pkgs/development/python-modules/a2wsgi/default.nix +++ b/pkgs/development/python-modules/a2wsgi/default.nix @@ -2,13 +2,12 @@ lib, buildPythonPackage, fetchPypi, - asgiref, + baize, httpx, pdm-backend, pytest-asyncio, pytestCheckHook, starlette, - baize, }: buildPythonPackage rec { @@ -21,20 +20,21 @@ buildPythonPackage rec { hash = "sha256-zkYv9+HarAvFcYPG+ADwmnHCp6mN3VzeyhSePqvzM44="; }; - nativeBuildInputs = [ pdm-backend ]; - - nativeCheckInputs = [ - asgiref - httpx - pytest-asyncio - pytestCheckHook - ]; + build-system = [ pdm-backend ]; dependencies = [ starlette baize ]; + nativeCheckInputs = [ + baize + httpx + pytest-asyncio + pytestCheckHook + starlette + ]; + meta = { description = "Convert WSGI app to ASGI app or ASGI app to WSGI app"; homepage = "https://github.com/abersheeran/a2wsgi"; From 3c0f325d73ffa9f89d95a7fc45b00828753f7183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 11 Nov 2024 15:27:31 -0800 Subject: [PATCH 378/693] python312Packages.connexion: skip failing test --- pkgs/development/python-modules/connexion/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/connexion/default.nix b/pkgs/development/python-modules/connexion/default.nix index b56c8acb2258..595bd8ef14d0 100644 --- a/pkgs/development/python-modules/connexion/default.nix +++ b/pkgs/development/python-modules/connexion/default.nix @@ -98,6 +98,8 @@ buildPythonPackage rec { "test_get_bad_default_response" "test_schema_response" "test_writeonly" + # test expects "{'name': 'foo', 'type': 'string'}" rather than "{'type': 'string', 'name': 'foo'}" + "test_invalid_type" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # ImportError: Error while finding loader for '/private/tmp/nix-build-python3.12-connexion-3.1.0.drv-0/source' (: No module named '/private/tmp/nix-build-python3') From bc05229e2e5cea3fad6e717625a73889d9dbd84d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 Nov 2024 05:11:57 +0100 Subject: [PATCH 379/693] python313Packages.aiohappyeyeballs: 2.4.2 -> 2.4.3 https://github.com/bdraco/aiohappyeyeballs/blob/v2.4.3/CHANGELOG.md --- pkgs/development/python-modules/aiohappyeyeballs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiohappyeyeballs/default.nix b/pkgs/development/python-modules/aiohappyeyeballs/default.nix index 51b923c86df6..7c2f015a76c0 100644 --- a/pkgs/development/python-modules/aiohappyeyeballs/default.nix +++ b/pkgs/development/python-modules/aiohappyeyeballs/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "aiohappyeyeballs"; - version = "2.4.2"; + version = "2.4.3"; pyproject = true; disabled = pythonOlder "3.10"; @@ -30,7 +30,7 @@ buildPythonPackage rec { owner = "bdraco"; repo = "aiohappyeyeballs"; rev = "refs/tags/v${version}"; - hash = "sha256-ZHxAup3Qf+ejW5Lz9ucuiWAQAwSG0Rf5giPSwk9A0ww="; + hash = "sha256-mN1vJ/ktkabEkON3BqomnUoahrM0uEB/KJStqAYUS5s="; }; outputs = [ From a8e2237172be5df5ad33b29fbc6a87a92875aba6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 12 Nov 2024 08:04:42 +0100 Subject: [PATCH 380/693] python313Packages.sphinx-autodoc-typehints: 2.4.4 -> 2.5.0 https://github.com/tox-dev/sphinx-autodoc-typehints/releases/tag/2.5.0 --- .../python-modules/sphinx-autodoc-typehints/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix b/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix index a5bd5406b0cc..51f67fb4a0ad 100644 --- a/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix +++ b/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix @@ -11,7 +11,7 @@ let pname = "sphinx-autodoc-typehints"; - version = "2.4.4"; + version = "2.5.0"; in buildPythonPackage { @@ -23,7 +23,7 @@ buildPythonPackage { src = fetchPypi { pname = "sphinx_autodoc_typehints"; inherit version; - hash = "sha256-50NRLaWLZ6BleaFGJ5imkHZkq3dGB1ikMjSt6sNQr78="; + hash = "sha256-JZ4QJrIY1WPXJ0P0F/zCWQapYUiX/jf5G9jX1Y90jDs="; }; pythonRelaxDeps = [ "sphinx" ]; From 9d7feef61a8b76c522dfbc98ebb08b3c194d8d46 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 13 Nov 2024 19:36:25 +0100 Subject: [PATCH 381/693] python312Packages.nbmake: create home for ipython tests --- pkgs/development/python-modules/nbmake/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/nbmake/default.nix b/pkgs/development/python-modules/nbmake/default.nix index 4c6d46e6d470..d070f39853cb 100644 --- a/pkgs/development/python-modules/nbmake/default.nix +++ b/pkgs/development/python-modules/nbmake/default.nix @@ -56,6 +56,10 @@ buildPythonPackage rec { typing-extensions ]; + preCheck = '' + export HOME=$(mktemp -d) + ''; + __darwinAllowLocalNetworking = true; meta = { From e6dea5c44c142ec9ba50d3f6cb0cdec15889e07c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 13 Nov 2024 21:20:43 +0100 Subject: [PATCH 382/693] python312Packages.datalad: ignore deprecation warning in tests --- pkgs/development/python-modules/datalad/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/datalad/default.nix b/pkgs/development/python-modules/datalad/default.nix index c61c0566c163..815fa83a1684 100644 --- a/pkgs/development/python-modules/datalad/default.nix +++ b/pkgs/development/python-modules/datalad/default.nix @@ -234,6 +234,12 @@ buildPythonPackage rec { httpretty ]; + pytestFlagsArray = [ + # Deprecated in 3.13. Use exc_type_str instead. + "-W" + "ignore::DeprecationWarning" + ]; + pythonImportsCheck = [ "datalad" ]; meta = { From 5690819d8059acc22fce78029c11065703eeeffc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 13 Nov 2024 21:33:26 +0100 Subject: [PATCH 383/693] python313Packages.nbformat: disable failing tests --- pkgs/development/python-modules/nbformat/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/nbformat/default.nix b/pkgs/development/python-modules/nbformat/default.nix index e6eb3344e8d9..7c31e3e4acc7 100644 --- a/pkgs/development/python-modules/nbformat/default.nix +++ b/pkgs/development/python-modules/nbformat/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + pythonAtLeast, pythonOlder, fetchPypi, hatchling, @@ -45,6 +46,14 @@ buildPythonPackage rec { testpath ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.13") [ + # ResourceWarning: unclosed database in + "tests/test_validator.py" + "tests/v4/test_convert.py" + "tests/v4/test_json.py" + "tests/v4/test_validate.py" + ]; + # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; From 7ae858a18a71866f681ae7810f4f227abcd289ed Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 13 Nov 2024 21:38:04 +0100 Subject: [PATCH 384/693] python312Packages.filterpy: disable failing test and make the derivation a PEP517 build with the relevant lingo. --- .../python-modules/filterpy/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/filterpy/default.nix b/pkgs/development/python-modules/filterpy/default.nix index 039c2e863ac7..9522b0c4c27e 100644 --- a/pkgs/development/python-modules/filterpy/default.nix +++ b/pkgs/development/python-modules/filterpy/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, numpy, scipy, matplotlib, @@ -11,8 +12,8 @@ buildPythonPackage { pname = "filterpy"; - version = "unstable-2022-08-23"; - format = "setuptools"; + version = "1.4.5-unstable-2022-08-23"; + pyproject = true; disabled = !isPy3k; @@ -23,14 +24,21 @@ buildPythonPackage { hash = "sha256-KuuVu0tqrmQuNKYmDmdy+TU6BnnhDxh4G8n9BGzjGag="; }; - nativeCheckInputs = [ pytestCheckHook ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ numpy scipy matplotlib ]; + nativeCheckInputs = [ pytestCheckHook ]; + + disabledTests = [ + # ValueError: Unable to avoid copy while creating an array as requested." + "test_multivariate_gaussian" + ]; + meta = with lib; { homepage = "https://github.com/rlabbe/filterpy"; description = "Kalman filtering and optimal estimation library"; From e4c5bb40963ad660df392839cd9e93494eabdd43 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 13 Nov 2024 21:45:41 +0100 Subject: [PATCH 385/693] python312Packages.norfair: relax numpy constraint and apply PEP517 lingo. --- pkgs/development/python-modules/norfair/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/norfair/default.nix b/pkgs/development/python-modules/norfair/default.nix index 24376e28863f..7624e396b9de 100644 --- a/pkgs/development/python-modules/norfair/default.nix +++ b/pkgs/development/python-modules/norfair/default.nix @@ -25,13 +25,14 @@ buildPythonPackage rec { hash = "sha256-aKB5TYSLW7FOXIy9u2hK7px6eEmIQdKPrhChKaU1uYs="; }; - nativeBuildInputs = [ - poetry-core + build-system = [ poetry-core ]; + + pythonRelaxDeps = [ + "numpy" + "rich" ]; - pythonRelaxDeps = [ "rich" ]; - - propagatedBuildInputs = [ + dependencies = [ filterpy importlib-metadata numpy From d08e1a3f61c2ea03c4435b9bbcbe5955a192c47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 11 Nov 2024 20:35:02 -0800 Subject: [PATCH 386/693] python312Packages.graphql-core: 3.2.4 -> 3.2.5 Diff: https://github.com/graphql-python/graphql-core/compare/refs/tags/v3.2.4...v3.2.5 Changelog: https://github.com/graphql-python/graphql-core/releases/tag/v3.2.5 --- .../python-modules/graphql-core/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/graphql-core/default.nix b/pkgs/development/python-modules/graphql-core/default.nix index 57043658c744..1b8fa37aa5e7 100644 --- a/pkgs/development/python-modules/graphql-core/default.nix +++ b/pkgs/development/python-modules/graphql-core/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, - py, + poetry-core, pytest-benchmark, pytest-asyncio, pytestCheckHook, @@ -11,20 +11,28 @@ buildPythonPackage rec { pname = "graphql-core"; - version = "3.2.4"; - format = "setuptools"; + version = "3.2.5"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "graphql-python"; - repo = pname; + repo = "graphql-core"; rev = "refs/tags/v${version}"; - hash = "sha256-LWmUrkYZuyzQ89Z3dXrce1xk3NODXrHWvWG9zAYTUi0="; + hash = "sha256-xZOiQOFWnImDXuvHP9V6BDjIZwlwHSxN/os+UYV4A0M="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail ', "setuptools>=59,<70"' "" + ''; + + build-system = [ + poetry-core + ]; + nativeCheckInputs = [ - py pytest-asyncio pytest-benchmark pytestCheckHook @@ -33,6 +41,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "graphql" ]; meta = with lib; { + changelog = "https://github.com/graphql-python/graphql-core/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; description = "Port of graphql-js to Python"; homepage = "https://github.com/graphql-python/graphql-core"; license = licenses.mit; From 2300738a41c486f687e5ae6901a3a79442b73fb3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 13 Nov 2024 23:29:14 +0100 Subject: [PATCH 387/693] python313Packages.css-inline: 0.14.1 -> 0.14.2 https://github.com/Stranger6667/css-inline/blob/python-v0.14.2/CHANGELOG.md --- .../python-modules/css-inline/Cargo.lock | 1054 ++++++++++------- .../python-modules/css-inline/default.nix | 6 +- 2 files changed, 651 insertions(+), 409 deletions(-) diff --git a/pkgs/development/python-modules/css-inline/Cargo.lock b/pkgs/development/python-modules/css-inline/Cargo.lock index cbd1794e6994..12e4e4e8ae40 100644 --- a/pkgs/development/python-modules/css-inline/Cargo.lock +++ b/pkgs/development/python-modules/css-inline/Cargo.lock @@ -4,36 +4,24 @@ version = 3 [[package]] name = "addr2line" -version = "0.21.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "gimli", ] [[package]] -name = "adler" -version = "1.0.2" +name = "adler2" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" - -[[package]] -name = "ahash" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" -dependencies = [ - "cfg-if", - "once_cell", - "version_check", - "zerocopy", -] +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] name = "allocator-api2" -version = "0.2.18" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" [[package]] name = "android-tzdata" @@ -52,23 +40,23 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "backtrace" -version = "0.3.71" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ "addr2line", - "cc", "cfg-if", "libc", "miniz_oxide", "object", "rustc-demangle", + "windows-targets", ] [[package]] @@ -79,15 +67,15 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bitflags" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "built" -version = "0.7.2" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41bfbdb21256b87a8b5e80fab81a8eed158178e812fd7ba451907518b2742f16" +checksum = "c360505aed52b7ec96a3636c3f039d99103c37d1d9b4f7a8c743d3ea9ffcd03b" dependencies = [ "cargo-lock", "chrono", @@ -107,15 +95,15 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.6.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" [[package]] name = "cargo-lock" -version = "9.0.0" +version = "10.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e11c675378efb449ed3ce8de78d75d0d80542fc98487c26aba28eb3b82feac72" +checksum = "6469776d007022d505bbcc2be726f5f096174ae76d710ebc609eb3029a45b551" dependencies = [ "semver", "serde", @@ -125,9 +113,12 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.96" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "065a29261d53ba54260972629f9ca6bffa69bac13cd1fed61420f7fa68b9f8bd" +checksum = "1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8" +dependencies = [ + "shlex", +] [[package]] name = "cfg-if" @@ -135,6 +126,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chrono" version = "0.4.38" @@ -144,14 +141,14 @@ dependencies = [ "android-tzdata", "iana-time-zone", "num-traits", - "windows-targets 0.52.5", + "windows-targets", ] [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "crossbeam-deque" @@ -174,13 +171,13 @@ dependencies = [ [[package]] name = "crossbeam-utils" -version = "0.8.19" +version = "0.8.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" +checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" [[package]] name = "css-inline" -version = "0.14.1" +version = "0.14.2" dependencies = [ "cssparser", "html5ever", @@ -195,7 +192,7 @@ dependencies = [ [[package]] name = "css-inline-python" -version = "0.14.1" +version = "0.14.2" dependencies = [ "built", "css-inline", @@ -225,18 +222,29 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" dependencies = [ "quote", - "syn 2.0.60", + "syn", ] [[package]] name = "derive_more" -version = "0.99.17" +version = "0.99.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" +checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", ] [[package]] @@ -247,18 +255,18 @@ checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653" [[package]] name = "dtoa-short" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbaceec3c6e4211c79e7b1800fb9680527106beb2f9c51904a3210c03a448c74" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" dependencies = [ "dtoa", ] [[package]] name = "either" -version = "1.11.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "equivalent" @@ -272,6 +280,12 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foldhash" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2" + [[package]] name = "form_urlencoded" version = "1.2.1" @@ -293,9 +307,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -303,33 +317,33 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-core", "futures-io", @@ -352,36 +366,39 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", + "js-sys", "libc", "wasi", + "wasm-bindgen", ] [[package]] name = "gimli" -version = "0.28.1" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "hashbrown" -version = "0.14.5" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" dependencies = [ - "ahash", "allocator-api2", + "equivalent", + "foldhash", ] [[package]] name = "heck" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "hermit-abi" @@ -400,7 +417,7 @@ dependencies = [ "markup5ever", "proc-macro2", "quote", - "syn 2.0.60", + "syn", ] [[package]] @@ -416,9 +433,9 @@ dependencies = [ [[package]] name = "http-body" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cac85db508abc24a2e48553ba12a996e87244a0395ce011e62b37158745d643" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", "http", @@ -426,12 +443,12 @@ dependencies = [ [[package]] name = "http-body-util" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0475f8b2ac86659c21b64320d5d653f9efe42acd2a4e560073ec61a155a34f1d" +checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ "bytes", - "futures-core", + "futures-util", "http", "http-body", "pin-project-lite", @@ -439,15 +456,15 @@ dependencies = [ [[package]] name = "httparse" -version = "1.8.0" +version = "1.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" +checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" [[package]] name = "hyper" -version = "1.3.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d" +checksum = "bbbff0a806a4728c99295b254c8838933b5b082d75e3cb70c8dab21fdfbcfa9a" dependencies = [ "bytes", "futures-channel", @@ -464,9 +481,9 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.26.0" +version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c" +checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" dependencies = [ "futures-util", "http", @@ -477,13 +494,14 @@ dependencies = [ "tokio", "tokio-rustls", "tower-service", + "webpki-roots", ] [[package]] name = "hyper-util" -version = "0.1.3" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca38ef113da30126bbff9cd1705f9273e15d45498615d138b0c20279ac7a76aa" +checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" dependencies = [ "bytes", "futures-channel", @@ -494,16 +512,15 @@ dependencies = [ "pin-project-lite", "socket2", "tokio", - "tower", "tower-service", "tracing", ] [[package]] name = "iana-time-zone" -version = "0.1.60" +version = "0.1.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -523,20 +540,149 @@ dependencies = [ ] [[package]] -name = "idna" -version = "0.5.0" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", ] [[package]] name = "indexmap" -version = "2.2.6" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", "hashbrown", @@ -550,9 +696,9 @@ checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" [[package]] name = "ipnet" -version = "2.9.0" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" [[package]] name = "itoa" @@ -562,18 +708,24 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "js-sys" -version = "0.3.69" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" +checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" dependencies = [ "wasm-bindgen", ] [[package]] name = "libc" -version = "0.2.154" +version = "0.2.162" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae743338b92ff9146ce83992f766a31066a91a8c84a45e0e9f21e7cf6de6d346" +checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398" + +[[package]] +name = "litemap" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" [[package]] name = "lock_api" @@ -587,15 +739,15 @@ dependencies = [ [[package]] name = "log" -version = "0.4.21" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "lru" -version = "0.12.3" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" +checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" dependencies = [ "hashbrown", ] @@ -622,9 +774,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.7.2" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memoffset" @@ -643,22 +795,23 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.7.2" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" +checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" dependencies = [ - "adler", + "adler2", ] [[package]] name = "mio" -version = "0.8.11" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ + "hermit-abi", "libc", "wasi", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -676,36 +829,26 @@ dependencies = [ "autocfg", ] -[[package]] -name = "num_cpus" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" -dependencies = [ - "hermit-abi", - "libc", -] - [[package]] name = "object" -version = "0.32.2" +version = "0.36.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "parking_lot" -version = "0.12.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e4af0ca4f6caed20e900d564c242b8e5d4903fdacf31d3daf527b66fe6f42fb" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ "lock_api", "parking_lot_core", @@ -721,7 +864,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-targets 0.52.5", + "windows-targets", ] [[package]] @@ -799,7 +942,7 @@ dependencies = [ "phf_shared 0.11.2", "proc-macro2", "quote", - "syn 2.0.60", + "syn", ] [[package]] @@ -820,31 +963,11 @@ dependencies = [ "siphasher", ] -[[package]] -name = "pin-project" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" -dependencies = [ - "pin-project-internal", -] - -[[package]] -name = "pin-project-internal" -version = "1.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.60", -] - [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pin-utils" @@ -854,15 +977,18 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "portable-atomic" -version = "1.6.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" +checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] [[package]] name = "precomputed-hash" @@ -872,24 +998,24 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "proc-macro2" -version = "1.0.81" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] [[package]] name = "pyo3" -version = "0.21.2" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5e00b96a521718e08e03b1a622f01c8a8deb50719335de3f60b3b3950f069d8" +checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884" dependencies = [ "cfg-if", "indoc", "libc", "memoffset", - "parking_lot", + "once_cell", "portable-atomic", "pyo3-build-config", "pyo3-ffi", @@ -899,9 +1025,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.21.2" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7883df5835fafdad87c0d888b266c8ec0f4c9ca48a5bed6bbb592e8dedee1b50" +checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38" dependencies = [ "once_cell", "target-lexicon", @@ -915,9 +1041,9 @@ checksum = "35ee655adc94166665a1d714b439e27857dd199b947076891d6a17d32d396cde" [[package]] name = "pyo3-ffi" -version = "0.21.2" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01be5843dc60b916ab4dad1dca6d20b9b4e6ddc8e15f50c47fe6d85f1fb97403" +checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636" dependencies = [ "libc", "pyo3-build-config", @@ -925,34 +1051,86 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.21.2" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77b34069fc0682e11b31dbd10321cbf94808394c56fd996796ce45217dfac53c" +checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453" dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn 2.0.60", + "syn", ] [[package]] name = "pyo3-macros-backend" -version = "0.21.2" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08260721f32db5e1a5beae69a55553f56b99bd0e1c3e6e0a5e8851a9d0f5a85c" +checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe" dependencies = [ "heck", "proc-macro2", "pyo3-build-config", "quote", - "syn 2.0.60", + "syn", +] + +[[package]] +name = "quinn" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" +dependencies = [ + "bytes", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2", + "thiserror", + "tokio", + "tracing", +] + +[[package]] +name = "quinn-proto" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" +dependencies = [ + "bytes", + "getrandom", + "rand", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.59.0", ] [[package]] name = "quote" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] @@ -1009,18 +1187,18 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.1" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "469052894dcb553421e483e4209ee581a45100d31b4018de03e5a7ad86374a7e" +checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" dependencies = [ "bitflags", ] [[package]] name = "reqwest" -version = "0.12.4" +version = "0.12.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "566cafdd92868e0939d3fb961bd0dc25fcfaaed179291093b3d43e6b3150ea10" +checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f" dependencies = [ "base64", "bytes", @@ -1040,6 +1218,7 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", + "quinn", "rustls", "rustls-pemfile", "rustls-pki-types", @@ -1055,7 +1234,7 @@ dependencies = [ "wasm-bindgen-futures", "web-sys", "webpki-roots", - "winreg", + "windows-registry", ] [[package]] @@ -1075,23 +1254,23 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "1.1.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" [[package]] name = "rustls" -version = "0.22.4" +version = "0.23.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" +checksum = "eee87ff5d9b36712a58574e12e9f0ea80f915a5b0ac518d322b24a465617925e" dependencies = [ - "log", + "once_cell", "ring", "rustls-pki-types", "rustls-webpki", @@ -1101,25 +1280,27 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "2.1.2" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" dependencies = [ - "base64", "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.5.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "beb461507cee2c2ff151784c52762cf4d9ff6a61f3e80968600ed24fa837fa54" +checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" +dependencies = [ + "web-time", +] [[package]] name = "rustls-webpki" -version = "0.102.3" +version = "0.102.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3bce581c0dd41bce533ce695a1437fa16a7ab5ac3ccfa99fe1a620a7885eabf" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" dependencies = [ "ring", "rustls-pki-types", @@ -1128,9 +1309,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "scopeguard" @@ -1159,49 +1340,50 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" dependencies = [ "serde", ] [[package]] name = "serde" -version = "1.0.200" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc6f9cc94d67c0e21aaf7eda3a010fd3af78ebf6e096aa6e2e13c79749cce4f" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.200" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "856f046b9400cee3c8c94ed572ecdb752444c24528c035cd35882aad6f492bcb" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.60", + "syn", ] [[package]] name = "serde_json" -version = "1.0.116" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e17db7126d17feb94eb3fad46bf1a96b034e8aacbc2e775fe81505f8b0b2813" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "itoa", + "memchr", "ryu", "serde", ] [[package]] name = "serde_spanned" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" dependencies = [ "serde", ] @@ -1227,6 +1409,12 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "siphasher" version = "0.3.11" @@ -1298,26 +1486,15 @@ dependencies = [ [[package]] name = "subtle" -version = "2.5.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "1.0.109" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "syn" -version = "2.0.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "909518bc7b1c9b779f1bbf07f2929d35af9f0f37e47c6e9ef7f9dddc1e1821f3" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -1326,15 +1503,29 @@ dependencies = [ [[package]] name = "sync_wrapper" -version = "0.1.2" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] [[package]] name = "target-lexicon" -version = "0.12.14" +version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tendril" @@ -1348,10 +1539,40 @@ dependencies = [ ] [[package]] -name = "tinyvec" -version = "1.6.0" +name = "thiserror" +version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" dependencies = [ "tinyvec_macros", ] @@ -1364,25 +1585,24 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.37.0" +version = "1.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" +checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" dependencies = [ "backtrace", "bytes", "libc", "mio", - "num_cpus", "pin-project-lite", "socket2", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] name = "tokio-rustls" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" +checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ "rustls", "rustls-pki-types", @@ -1391,9 +1611,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.7.8" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" dependencies = [ "serde", "serde_spanned", @@ -1403,18 +1623,18 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "0.6.5" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" dependencies = [ "serde", ] [[package]] name = "toml_edit" -version = "0.19.15" +version = "0.22.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" dependencies = [ "indexmap", "serde", @@ -1423,33 +1643,11 @@ dependencies = [ "winnow", ] -[[package]] -name = "tower" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" -dependencies = [ - "futures-core", - "futures-util", - "pin-project", - "pin-project-lite", - "tokio", - "tower-layer", - "tower-service", - "tracing", -] - -[[package]] -name = "tower-layer" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" - [[package]] name = "tower-service" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" @@ -1457,7 +1655,6 @@ version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "log", "pin-project-lite", "tracing-core", ] @@ -1477,26 +1674,11 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" -[[package]] -name = "unicode-bidi" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" - [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" - -[[package]] -name = "unicode-normalization" -version = "0.1.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" -dependencies = [ - "tinyvec", -] +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" [[package]] name = "unindent" @@ -1512,9 +1694,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.0" +version = "2.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" +checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" dependencies = [ "form_urlencoded", "idna", @@ -1528,10 +1710,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" [[package]] -name = "version_check" -version = "0.9.4" +name = "utf16_iter" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" [[package]] name = "want" @@ -1550,34 +1738,35 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.92" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" +checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" dependencies = [ "cfg-if", + "once_cell", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.92" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" +checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.60", + "syn", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.42" +version = "0.4.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" +checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" dependencies = [ "cfg-if", "js-sys", @@ -1587,9 +1776,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.92" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" +checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -1597,28 +1786,38 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.92" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" +checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" dependencies = [ "proc-macro2", "quote", - "syn 2.0.60", + "syn", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.92" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" +checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" [[package]] name = "web-sys" -version = "0.3.69" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" +checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ "js-sys", "wasm-bindgen", @@ -1626,9 +1825,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.26.1" +version = "0.26.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3de34ae270483955a94f4b21bdaaeb83d508bb84a01435f393818edb0012009" +checksum = "841c67bff177718f1d4dfefde8d8f0e78f9b6589319ba88312f567fc5841a958" dependencies = [ "rustls-pki-types", ] @@ -1639,16 +1838,37 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.5", + "windows-targets", ] [[package]] -name = "windows-sys" -version = "0.48.0" +name = "windows-registry" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" dependencies = [ - "windows-targets 0.48.5", + "windows-result", + "windows-strings", + "windows-targets", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result", + "windows-targets", ] [[package]] @@ -1657,171 +1877,193 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.5", + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", ] [[package]] name = "windows-targets" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", -] - -[[package]] -name = "windows-targets" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" -dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", "windows_i686_gnullvm", - "windows_i686_msvc 0.52.5", - "windows_x86_64_gnu 0.52.5", - "windows_x86_64_gnullvm 0.52.5", - "windows_x86_64_msvc 0.52.5", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] name = "windows_i686_gnullvm" -version = "0.52.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.5.40" +version = "0.6.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" dependencies = [ "memchr", ] [[package]] -name = "winreg" -version = "0.52.0" +name = "write16" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + +[[package]] +name = "yoke" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" dependencies = [ - "cfg-if", - "windows-sys 0.48.0", + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", ] [[package]] name = "zerocopy" -version = "0.7.33" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "087eca3c1eaf8c47b94d02790dd086cd594b912d2043d4de4bfdd466b3befb7c" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ + "byteorder", "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.33" +version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f4b6c273f496d8fd4eaf18853e6b448760225dc030ff2c485a786859aea6393" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.60", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", ] [[package]] name = "zeroize" -version = "1.7.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] diff --git a/pkgs/development/python-modules/css-inline/default.nix b/pkgs/development/python-modules/css-inline/default.nix index a108599eb6ba..0f6ed18338a6 100644 --- a/pkgs/development/python-modules/css-inline/default.nix +++ b/pkgs/development/python-modules/css-inline/default.nix @@ -19,14 +19,14 @@ buildPythonPackage rec { pname = "css-inline"; - version = "0.14.1"; + version = "0.14.2"; pyproject = true; src = fetchFromGitHub { owner = "Stranger6667"; repo = "css-inline"; rev = "python-v${version}"; - hash = "sha256-+hX05y+ii2/wAbcc3SPK3ns4slUKFGqHURb3Z08yhVw="; + hash = "sha256-2C+UbndhGQxIsPVaJOMu/WdLHcA2H1uuJrNMhafybmU="; }; postPatch = '' @@ -43,7 +43,7 @@ buildPythonPackage rec { ln -s ${./Cargo.lock} Cargo.lock ''; name = "${pname}-${version}"; - hash = "sha256-ogzj8JxiFX2VWEeEnKACycd2Bud9VUpLuF4h35eUls0="; + hash = "sha256-FvkVwd681EhEHRJ8ip97moEkRE3VcuIPbi+F1SjXz8E="; }; nativeBuildInputs = [ From c3f73ea908d82dba589a8b3ac2f7bb0737a2c49b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 00:06:42 +0100 Subject: [PATCH 388/693] python313Packages.pycurl: 7.45.3 -> 7.45.3-unstable-2024-10-17 Update to unstable version to relieve some compat issues and reenable a number of tests. The upstream unfortunately does not push out release very often anymore. --- .../python-modules/pycurl/default.nix | 57 ++++++++----------- 1 file changed, 24 insertions(+), 33 deletions(-) diff --git a/pkgs/development/python-modules/pycurl/default.nix b/pkgs/development/python-modules/pycurl/default.nix index 2d18e7110a7b..40aa79a8a7e9 100644 --- a/pkgs/development/python-modules/pycurl/default.nix +++ b/pkgs/development/python-modules/pycurl/default.nix @@ -3,41 +3,32 @@ stdenv, buildPythonPackage, isPyPy, - fetchPypi, - fetchpatch, - pythonOlder, + fetchFromGitHub, curl, openssl, bottle, pytestCheckHook, flaky, + flask, setuptools, }: buildPythonPackage rec { pname = "pycurl"; - version = "7.45.3"; + version = "7.45.3-unstable-2024-10-17"; pyproject = true; - disabled = isPyPy || pythonOlder "3.8"; # https://github.com/pycurl/pycurl/issues/208 + disabled = isPyPy; # https://github.com/pycurl/pycurl/issues/208 - src = fetchPypi { - inherit pname version; - hash = "sha256-jCRxr5B5rXmOFkXsCw09QiPbaHN50X3TanBjdEn4HWs="; + src = fetchFromGitHub { + owner = "pycurl"; + repo = "pycurl"; + # Pinned to newer commit, since the release cadence is not keeping up with curl itself + #rev = "refs/tags/REL_${lib.replaceStrings [ "." ] [ "_" ] version}"; + rev = "885d08b4d3cbc59547b8b80fbd13ab5fc6f27238"; + hash = "sha256-WnrQhv6xiA+/Uz0hUmQxmEUasxtvlIV2EjlO+ZOUgI8="; }; - patches = [ - # Don't use -flat_namespace on macOS - # https://github.com/pycurl/pycurl/pull/855 remove on next update - (fetchpatch { - name = "no_flat_namespace.patch"; - url = "https://github.com/pycurl/pycurl/commit/7deb85e24981e23258ea411dcc79ca9b527a297d.patch"; - hash = "sha256-tk0PQy3cHyXxFnoVYNQV+KD/07i7AUYHNJnrw6H8tHk="; - }) - ]; - - __darwinAllowLocalNetworking = true; - preConfigure = '' substituteInPlace setup.py \ --replace-fail '--static-libs' '--libs' @@ -46,19 +37,24 @@ buildPythonPackage rec { build-system = [ setuptools ]; + nativeBuildInputs = [ curl ]; + buildInputs = [ curl openssl ]; - nativeBuildInputs = [ curl ]; + pythonImportsCheck = [ "pycurl" ]; nativeCheckInputs = [ bottle flaky + flask pytestCheckHook ]; + __darwinAllowLocalNetworking = true; + pytestFlagsArray = [ # don't pick up the tests directory below examples/ "tests" @@ -68,8 +64,6 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - pythonImportsCheck = [ "pycurl" ]; - disabledTests = [ # tests that require network access @@ -83,27 +77,24 @@ buildPythonPackage rec { "test_libcurl_ssl_gnutls" # AssertionError: assert 'crypto' in ['curl'] "test_ssl_in_static_libs" - # tests that require curl with http3Support - "test_http_version_3" # https://github.com/pycurl/pycurl/issues/819 "test_multi_socket_select" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # https://github.com/pycurl/pycurl/issues/729 "test_easy_pause_unpause" "test_multi_socket_action" - # https://github.com/pycurl/pycurl/issues/822 - "test_request_with_verifypeer" - # https://github.com/pycurl/pycurl/issues/836 - "test_proxy_tlsauth" - # AssertionError: 'Москва' != '\n... - "test_encoded_unicode_header" - # https://github.com/pycurl/pycurl/issues/856 - "test_multi_info_read" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ # Fatal Python error: Segmentation fault "cadata_test" ]; + disabledTestPaths = [ + # https://github.com/pycurl/pycurl/issues/856 + "tests/multi_test.py" + ]; + meta = with lib; { description = "Python Interface To The cURL library"; homepage = "http://pycurl.io/"; From bdfcd349ba70632b2949e424c1c0563920aae408 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 03:10:53 +0100 Subject: [PATCH 389/693] python313Packages.pytest-benchmark: disable failing test --- .../pytest-benchmark/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pytest-benchmark/default.nix b/pkgs/development/python-modules/pytest-benchmark/default.nix index cd50288d3d22..28b427f208f1 100644 --- a/pkgs/development/python-modules/pytest-benchmark/default.nix +++ b/pkgs/development/python-modules/pytest-benchmark/default.nix @@ -14,6 +14,7 @@ pytest, pytestCheckHook, pytest-xdist, + pythonAtLeast, pythonOlder, setuptools, }: @@ -62,14 +63,19 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - disabledTests = lib.optionals (pythonOlder "3.12") [ - # AttributeError: 'PluginImportFixer' object has no attribute 'find_spec' - "test_compare_1" - "test_compare_2" - "test_regression_checks" - "test_regression_checks_inf" - "test_rendering" - ]; + disabledTests = + lib.optionals (pythonOlder "3.12") [ + # AttributeError: 'PluginImportFixer' object has no attribute 'find_spec' + "test_compare_1" + "test_compare_2" + "test_regression_checks" + "test_regression_checks_inf" + "test_rendering" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # argparse usage changes mismatches test artifact + "test_help" + ]; meta = with lib; { changelog = "https://github.com/ionelmc/pytest-benchmark/blob/${src.rev}/CHANGELOG.rst"; From 1a671cd65484955b85bc476e6e3c0f90f4881071 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 03:28:59 +0100 Subject: [PATCH 390/693] python313Packages.sqlalchemy-utils: disable failing test --- .../python-modules/sqlalchemy-utils/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/sqlalchemy-utils/default.nix b/pkgs/development/python-modules/sqlalchemy-utils/default.nix index ec8f69958be3..e0cd899e3877 100644 --- a/pkgs/development/python-modules/sqlalchemy-utils/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-utils/default.nix @@ -22,6 +22,7 @@ pyodbc, pytestCheckHook, python-dateutil, + pythonAtLeast, pythonOlder, pytz, setuptools, @@ -81,10 +82,15 @@ buildPythonPackage rec { psycopg2cffi ]; - disabledTests = [ - "test_create_database_twice" - "test_create_and_drop" - ]; + disabledTests = + [ + "test_create_database_twice" + "test_create_and_drop" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # https://github.com/kvesteri/sqlalchemy-utils/issues/764 + "test_render_mock_ddl" + ]; pytestFlagsArray = [ "-W" From 56053abb61c94b17f0eeece7a02c93a4e18ca0d3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 06:46:15 +0100 Subject: [PATCH 391/693] python312Packages.mxnet: relax numpy constraint --- pkgs/development/python-modules/mxnet/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/mxnet/default.nix b/pkgs/development/python-modules/mxnet/default.nix index 3b9f692d7205..75f9ff539146 100644 --- a/pkgs/development/python-modules/mxnet/default.nix +++ b/pkgs/development/python-modules/mxnet/default.nix @@ -29,6 +29,7 @@ buildPythonPackage { pythonRelaxDeps = [ "graphviz" + "numpy" ]; LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.mxnet ]; From 256fa808b50ef711a3ce7cb0c9a00ab56c46e963 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 06:46:45 +0100 Subject: [PATCH 392/693] python312Packages.pyvirtualdisplay: test without xdist High core counts tend to produce hangs and defunct python processes. And while upstream has put pytest-xdist into its test requirements they don't actually use it themselves either. --- pkgs/development/python-modules/pyvirtualdisplay/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyvirtualdisplay/default.nix b/pkgs/development/python-modules/pyvirtualdisplay/default.nix index 9905ee45e367..ac2a3bf68f69 100644 --- a/pkgs/development/python-modules/pyvirtualdisplay/default.nix +++ b/pkgs/development/python-modules/pyvirtualdisplay/default.nix @@ -14,6 +14,7 @@ entrypoint2, pillow, psutil, + pytest-timeout, pytest-xdist, pytestCheckHook, vncdo, @@ -47,7 +48,7 @@ buildPythonPackage rec { entrypoint2 pillow psutil - pytest-xdist + pytest-timeout pytestCheckHook (vncdo.overridePythonAttrs { doCheck = false; }) xorg.xorgserver @@ -55,6 +56,8 @@ buildPythonPackage rec { xorg.xvfb ]; + pytestFlagsArray = [ "-v" ]; + meta = with lib; { description = "Python wrapper for Xvfb, Xephyr and Xvnc"; homepage = "https://github.com/ponty/pyvirtualdisplay"; From bb6c4217865f98b132ba927aee11a26ca5874c13 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 13:37:22 +0100 Subject: [PATCH 393/693] python313Packages.future: disable No compatibility has been established as of 2024-11. --- pkgs/development/python-modules/future/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/future/default.nix b/pkgs/development/python-modules/future/default.nix index 47ed954e1b1a..730274bc19d3 100644 --- a/pkgs/development/python-modules/future/default.nix +++ b/pkgs/development/python-modules/future/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + pythonAtLeast, # build-system setuptools, @@ -12,6 +13,9 @@ buildPythonPackage rec { version = "1.0.0"; pyproject = true; + # https://github.com/PythonCharmers/python-future/issues/640 + disabled = pythonAtLeast "3.13"; + src = fetchPypi { inherit pname version; hash = "sha256-vSloMJMHhh7a4UWKT4pPNZjAO+Q7l1IQdq6/XZTAewU="; From 9e3e01e254df04d5fbd2e86ae5d4c5d9a31a9141 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 13:40:28 +0100 Subject: [PATCH 394/693] python313Packages.python-json-logger: disable failing test --- .../python-json-logger/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/python-json-logger/default.nix b/pkgs/development/python-modules/python-json-logger/default.nix index c56428e33c4a..cd4499e20312 100644 --- a/pkgs/development/python-modules/python-json-logger/default.nix +++ b/pkgs/development/python-modules/python-json-logger/default.nix @@ -18,12 +18,17 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/madzak/python-json-logger/issues/185 - "test_custom_object_serialization" - "test_percentage_format" - "test_rename_reserved_attrs" - ]; + disabledTests = + lib.optionals (pythonAtLeast "3.12") [ + # https://github.com/madzak/python-json-logger/issues/185 + "test_custom_object_serialization" + "test_percentage_format" + "test_rename_reserved_attrs" + ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # https://github.com/madzak/python-json-logger/issues/198 + "test_json_default_encoder_with_timestamp" + ]; meta = with lib; { description = "Json Formatter for the standard python logger"; From 860bdf3aba8fe2b9bd996bfd9a8de6fa3c533204 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 13:41:04 +0100 Subject: [PATCH 395/693] python313Packages.python-json-logger: migrate to PEP517 build --- .../python-modules/python-json-logger/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/python-json-logger/default.nix b/pkgs/development/python-modules/python-json-logger/default.nix index cd4499e20312..ba9de7ec3d1e 100644 --- a/pkgs/development/python-modules/python-json-logger/default.nix +++ b/pkgs/development/python-modules/python-json-logger/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, pytestCheckHook, pythonAtLeast, }: @@ -9,13 +10,15 @@ buildPythonPackage rec { pname = "python-json-logger"; version = "2.0.7"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-I+fsAtNCN8WqHimgcBk6Tqh1g7tOf4/QbT3oJkxLLhw="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = From 407bf75ac5b8637a31f43c91eb5d47713f447c37 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 14:00:48 +0100 Subject: [PATCH 396/693] python313Packages.coreapi: disable Consumer of the retired cgi module. The upstream project is also archived. --- pkgs/development/python-modules/coreapi/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/coreapi/default.nix b/pkgs/development/python-modules/coreapi/default.nix index d620f6fb4e22..f70b8a73a65e 100644 --- a/pkgs/development/python-modules/coreapi/default.nix +++ b/pkgs/development/python-modules/coreapi/default.nix @@ -2,6 +2,7 @@ lib, fetchFromGitHub, buildPythonPackage, + pythonAtLeast, django, coreschema, itypes, @@ -15,6 +16,9 @@ buildPythonPackage rec { version = "2.3.3"; format = "setuptools"; + # cgi module was removed in 3.13, upstream repo archived since 2019 + disabled = pythonAtLeast "3.13"; + src = fetchFromGitHub { repo = "python-client"; owner = "core-api"; From 635bae7444c190b54b8c2bf4b7f90b21c8b79480 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 14:01:13 +0100 Subject: [PATCH 397/693] python313Packages.djangorestframework: fix build As coreapi does not support Python 3.13, make its consumption conditional on the python version. --- .../djangorestframework/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/djangorestframework/default.nix b/pkgs/development/python-modules/djangorestframework/default.nix index 108ec71a2978..43a5c0779801 100644 --- a/pkgs/development/python-modules/djangorestframework/default.nix +++ b/pkgs/development/python-modules/djangorestframework/default.nix @@ -46,15 +46,19 @@ buildPythonPackage rec { ] ++ (lib.optional (lib.versionOlder django.version "5.0.0") pytz); optional-dependencies = { - complete = [ - coreapi - coreschema - django-guardian - inflection - psycopg2 - pygments - pyyaml - ]; + complete = + [ + coreschema + django-guardian + inflection + psycopg2 + pygments + pyyaml + ] + ++ lib.optionals (pythonOlder "3.13") [ + # broken on 3.13 + coreapi + ]; }; nativeCheckInputs = [ From 8fb80971fd5412cdfbae967a476e5d6a3282424a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 14:41:31 +0100 Subject: [PATCH 398/693] python313Packages.pytest-codspeed: init at 3.0.0 --- .../pytest-codspeed/default.nix | 57 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-codspeed/default.nix diff --git a/pkgs/development/python-modules/pytest-codspeed/default.nix b/pkgs/development/python-modules/pytest-codspeed/default.nix new file mode 100644 index 000000000000..d502f0069f37 --- /dev/null +++ b/pkgs/development/python-modules/pytest-codspeed/default.nix @@ -0,0 +1,57 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + cffi, + filelock, + importlib-metadata, + pytest, + rich, + setuptools, + pytest-cov-stub, + pytestCheckHook, + semver, +}: + +buildPythonPackage rec { + pname = "pytest-codspeed"; + version = "3.0.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "CodSpeedHQ"; + repo = "pytest-codspeed"; + rev = "v${version}"; + hash = "sha256-06U7S0hRb0J4hO48DaKMQk8Uzl2rUi1thQ4lGorfqpU="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + cffi + filelock + importlib-metadata + pytest + rich + setuptools + ]; + + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + semver + ]; + + pythonImportsCheck = [ + "pytest_codspeed" + ]; + + meta = { + changelog = "https://github.com/CodSpeedHQ/pytest-codspeed/releases/tag/v${version}"; + description = "Pytest plugin to create CodSpeed benchmarks"; + homepage = "https://github.com/CodSpeedHQ/pytest-codspeed"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1845dc7402a4..a58224781bbd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12620,6 +12620,8 @@ self: super: with self; { pytest-click = callPackage ../development/python-modules/pytest-click { }; + pytest-codspeed = callPackage ../development/python-modules/pytest-codspeed { }; + pytest-console-scripts = callPackage ../development/python-modules/pytest-console-scripts { }; pytest-cov = callPackage ../development/python-modules/pytest-cov { }; From 9ba1a70f7f49ed6651c0430387bc30e325de2039 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 14:42:17 +0100 Subject: [PATCH 399/693] python313Packages.yarl: 1.13.1 -> 1.17.1 https://github.com/aio-libs/yarl/blob/v1.17.1/CHANGES.rst --- pkgs/development/python-modules/yarl/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index 356e3f792639..c44b11693176 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -8,6 +8,9 @@ setuptools, idna, multidict, + propcache, + hypothesis, + pytest-codspeed, pytest-cov-stub, pytest-xdist, pytestCheckHook, @@ -15,7 +18,7 @@ buildPythonPackage rec { pname = "yarl"; - version = "1.13.1"; + version = "1.17.1"; disabled = pythonOlder "3.8"; @@ -25,7 +28,7 @@ buildPythonPackage rec { owner = "aio-libs"; repo = "yarl"; rev = "refs/tags/v${version}"; - hash = "sha256-I6/c5Q6/SRw8PIW4rPLKhVRVPRIC+n+Cz+UrKn5Pv/0="; + hash = "sha256-0/3hyx0n4UHlqZyGLGfdNlm04gCYiBjYYbaqRPoSfgA="; }; build-system = [ @@ -37,6 +40,7 @@ buildPythonPackage rec { dependencies = [ idna multidict + propcache ]; preCheck = '' @@ -45,6 +49,8 @@ buildPythonPackage rec { ''; nativeCheckInputs = [ + hypothesis + pytest-codspeed pytest-cov-stub pytest-xdist pytestCheckHook From 9d4db9409f97a4d6735c12eb7dc5000ede4d16f1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 14:51:47 +0100 Subject: [PATCH 400/693] python313Packages.aiohttp: 3.10.10 -> 3.11.0 https://github.com/aio-libs/aiohttp/blob/v3.11.0/CHANGES.rst --- .../python-modules/aiohttp/default.nix | 46 +++++++++++-------- .../aiohttp/unvendor-llhttp.patch | 22 ++++----- 2 files changed, 37 insertions(+), 31 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 86cb1b427734..8d064d79d1e4 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -5,8 +5,8 @@ pythonOlder, fetchFromGitHub, substituteAll, - python, isPy310, + isPyPy, # build-system cython, @@ -17,21 +17,27 @@ # dependencies aiohappyeyeballs, - attrs, - multidict, - async-timeout, - yarl, - frozenlist, aiosignal, + async-timeout, + attrs, + frozenlist, + multidict, + propcache, + yarl, + + # optional dependencies aiodns, brotli, + brotlicffi, # tests freezegun, gunicorn, proxy-py, + pytest-codspeed, pytest-cov-stub, pytest-mock, + pytest-xdist, pytestCheckHook, python-on-whales, re-assert, @@ -40,7 +46,7 @@ buildPythonPackage rec { pname = "aiohttp"; - version = "3.10.10"; + version = "3.11.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -49,7 +55,7 @@ buildPythonPackage rec { owner = "aio-libs"; repo = "aiohttp"; rev = "refs/tags/v${version}"; - hash = "sha256-c2mnt2ZQ7d7WO7Z8eDaUo9y+v0V0JwXUa1WJI9bwGTM="; + hash = "sha256-/BtXCB50zy+s8ZLdSumsIDy8JFyk+WgUN2hUgduasM0="; }; patches = [ @@ -77,28 +83,28 @@ buildPythonPackage rec { dependencies = [ aiohappyeyeballs - attrs - multidict - async-timeout - yarl - frozenlist aiosignal + async-timeout + attrs + frozenlist + multidict + propcache + yarl + ] ++ optional-dependencies.speedups; + + optional-dependencies.speedups = [ aiodns - brotli + (if isPyPy then brotlicffi else brotli) ]; - postInstall = '' - # remove source code file with reference to dev dependencies - rm $out/${python.sitePackages}/aiohttp/_cparser.pxd{,.orig} - ''; - - # NOTE: pytest-xdist cannot be added because it is flaky. See https://github.com/NixOS/nixpkgs/issues/230597 for more info. nativeCheckInputs = [ freezegun gunicorn proxy-py + pytest-codspeed pytest-cov-stub pytest-mock + pytest-xdist pytestCheckHook python-on-whales re-assert diff --git a/pkgs/development/python-modules/aiohttp/unvendor-llhttp.patch b/pkgs/development/python-modules/aiohttp/unvendor-llhttp.patch index 49b3e9154ded..5fad9427371d 100644 --- a/pkgs/development/python-modules/aiohttp/unvendor-llhttp.patch +++ b/pkgs/development/python-modules/aiohttp/unvendor-llhttp.patch @@ -1,22 +1,22 @@ diff --git a/Makefile b/Makefile -index 5769d2a1..f505dd81 100644 +index b0a3ef32..f36132c6 100644 --- a/Makefile +++ b/Makefile -@@ -71,7 +71,7 @@ vendor/llhttp/node_modules: vendor/llhttp/package.json +@@ -79,7 +79,7 @@ vendor/llhttp/node_modules: vendor/llhttp/package.json generate-llhttp: .llhttp-gen .PHONY: cythonize --cythonize: .install-cython $(PYXS:.pyx=.c) -+cythonize: $(PYXS:.pyx=.c) +-cythonize: .install-cython $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c ++cythonize: $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c - .install-deps: .install-cython $(PYXS:.pyx=.c) $(call to-hash,$(CYS) $(REQS)) - @python -m pip install -r requirements/dev.txt -c requirements/constraints.txt + .install-deps: .install-cython $(PYXS:.pyx=.c) aiohttp/_websocket/reader_c.c $(call to-hash,$(CYS) $(REQS)) + @python -m pip install -r requirements/dev.in -c requirements/dev.txt diff --git a/aiohttp/_cparser.pxd b/aiohttp/_cparser.pxd -index 165dd61d..bc6bf86d 100644 +index c2cd5a92..9184ac60 100644 --- a/aiohttp/_cparser.pxd +++ b/aiohttp/_cparser.pxd -@@ -10,7 +10,7 @@ from libc.stdint cimport ( - ) +@@ -1,7 +1,7 @@ + from libc.stdint cimport int32_t, uint8_t, uint16_t, uint64_t -cdef extern from "../vendor/llhttp/build/llhttp.h": @@ -25,7 +25,7 @@ index 165dd61d..bc6bf86d 100644 struct llhttp__internal_s: int32_t _index diff --git a/setup.py b/setup.py -index 4d59a022..d87d5b69 100644 +index 2f024e87..feebc638 100644 --- a/setup.py +++ b/setup.py @@ -17,13 +17,6 @@ if sys.implementation.name != "cpython": @@ -56,5 +56,5 @@ index 4d59a022..d87d5b69 100644 + library_dirs=["@llhttpLib@/lib"], + libraries=["llhttp"], ), - Extension("aiohttp._helpers", ["aiohttp/_helpers.c"]), Extension("aiohttp._http_writer", ["aiohttp/_http_writer.c"]), + Extension("aiohttp._websocket.reader_c", ["aiohttp/_websocket/reader_c.c"]), From 707d3848923b813b21a05c620b489dae636708e8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 15:23:30 +0100 Subject: [PATCH 401/693] python313Packages.aiohttp-fast-zlib: disable tests API changes in aiohttp 3.11.0 caused the test suite to break. --- pkgs/development/python-modules/aiohttp-fast-zlib/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix b/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix index 3cea7804918e..ea89f7d67c38 100644 --- a/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix +++ b/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix @@ -34,6 +34,8 @@ buildPythonPackage rec { zlib_ng = [ zlib-ng ]; }; + doCheck = false; # tests fail with aiohttp 3.11.0; https://github.com/bdraco/aiohttp-fast-zlib/issues/2 + nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); pythonImportsCheck = [ "aiohttp_fast_zlib" ]; From dce41cc5e8f1124a3f69d4a033ad7d3df9586c3a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 15:31:26 +0100 Subject: [PATCH 402/693] python313Packages.aioresponses: fix compat with aiohttp 3.11.0 --- .../python-modules/aioresponses/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix index 5b102d463171..929432d91e74 100644 --- a/pkgs/development/python-modules/aioresponses/default.nix +++ b/pkgs/development/python-modules/aioresponses/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, pythonOlder, # build-system @@ -28,6 +29,15 @@ buildPythonPackage rec { hash = "sha256-95XZ29otYXdIQOfjL1Nm9FdS0a3Bt0yTYq/QFylsfuE="; }; + patches = [ + (fetchpatch2 { + # https://github.com/pnuckowski/aioresponses/pull/262 + name = "aiohttp-3.11.0-compat.patch"; + url = "https://github.com/pnuckowski/aioresponses/commit/e909123c5a70180a54443899d26b44ada511cd39.patch"; + hash = "sha256-i/2rPtX64buVrVDSdB06NMOJCTdgENsxZDyphXWRwJI="; + }) + ]; + nativeBuildInputs = [ pbr setuptools From 6ad8b70417795202a36742ecfd79a83563a87c18 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 15:35:21 +0100 Subject: [PATCH 403/693] python312Packages.elastic-transport: ignore deprecation warnings in tests --- .../development/python-modules/elastic-transport/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/elastic-transport/default.nix b/pkgs/development/python-modules/elastic-transport/default.nix index 2e333376bb93..97ef9334cf7c 100644 --- a/pkgs/development/python-modules/elastic-transport/default.nix +++ b/pkgs/development/python-modules/elastic-transport/default.nix @@ -61,6 +61,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "elastic_transport" ]; + pytestFlagsArray = [ + "-W" + "ignore::DeprecationWarning" + ]; + disabledTests = [ # Tests require network access "fingerprint" From e057514118b1adff6dc81e1605047c8dea631d78 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 17:26:21 +0100 Subject: [PATCH 404/693] python313Packages.aiohttp-fast-zlib: 0.1.1 -> 0.2.0 https://github.com/bdraco/aiohttp-fast-zlib/blob/v0.2.0/CHANGELOG.md --- .../python-modules/aiohttp-fast-zlib/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix b/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix index ea89f7d67c38..f3fe8d90c7ff 100644 --- a/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix +++ b/pkgs/development/python-modules/aiohttp-fast-zlib/default.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "aiohttp-fast-zlib"; - version = "0.1.1"; + version = "0.2.0"; pyproject = true; src = fetchFromGitHub { owner = "bdraco"; repo = "aiohttp-fast-zlib"; rev = "v${version}"; - hash = "sha256-uPmttfEiWmEtQrBZYwiSjLTMmXhZ0MmaAQJMXTSQj+U="; + hash = "sha256-fvZVviKN/CL42Zmmm6k/JNdeAljRoqN63rlduNJVr98="; }; postPatch = '' @@ -34,8 +34,6 @@ buildPythonPackage rec { zlib_ng = [ zlib-ng ]; }; - doCheck = false; # tests fail with aiohttp 3.11.0; https://github.com/bdraco/aiohttp-fast-zlib/issues/2 - nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); pythonImportsCheck = [ "aiohttp_fast_zlib" ]; From eb700290d744268910286b4d2ebcdcaf96c68fc4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 17:28:49 +0100 Subject: [PATCH 405/693] python313Packages.aiogram: 3.13.1 -> 3.14.0 https://github.com/aiogram/aiogram/releases/tag/v3.14.0 --- pkgs/development/python-modules/aiogram/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/aiogram/default.nix b/pkgs/development/python-modules/aiogram/default.nix index afd1bcd6258f..c34ff9464cd3 100644 --- a/pkgs/development/python-modules/aiogram/default.nix +++ b/pkgs/development/python-modules/aiogram/default.nix @@ -42,6 +42,8 @@ buildPythonPackage rec { build-system = [ hatchling ]; + pythonRelaxDeps = [ "aiohttp" ]; + dependencies = [ aiofiles aiohttp From c107d8c99b53bce661df17bf6fd6d66ebf1551bc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Nov 2024 17:30:50 +0100 Subject: [PATCH 406/693] python313Packages.aiohttp-zlib-ng: drop Archived by upstream in favor of aiohttp-fast-zlib and ultimately broke in the aiohttp 3.11.0 update. --- .../aiohttp-zlib-ng/default.nix | 49 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 pkgs/development/python-modules/aiohttp-zlib-ng/default.nix diff --git a/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix b/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix deleted file mode 100644 index 73ab81fa78a8..000000000000 --- a/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix +++ /dev/null @@ -1,49 +0,0 @@ -{ - lib, - aiohttp, - buildPythonPackage, - fetchFromGitHub, - poetry-core, - pytestCheckHook, - pythonOlder, - zlib-ng, -}: - -buildPythonPackage rec { - pname = "aiohttp-zlib-ng"; - version = "0.3.2"; - pyproject = true; - - disabled = pythonOlder "3.8"; - - src = fetchFromGitHub { - owner = "bdraco"; - repo = "aiohttp-zlib-ng"; - rev = "refs/tags/v${version}"; - hash = "sha256-SiDDtadbBnw67lnqadAVSkHILB/8Sur0MfjgCbndX4o="; - }; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail " --cov=aiohttp_zlib_ng --cov-report=term-missing:skip-covered" "" - ''; - - nativeBuildInputs = [ poetry-core ]; - - propagatedBuildInputs = [ - aiohttp - zlib-ng - ]; - - nativeCheckInputs = [ pytestCheckHook ]; - - pythonImportsCheck = [ "aiohttp_zlib_ng" ]; - - meta = with lib; { - description = "Enable zlib_ng on aiohttp"; - homepage = "https://github.com/bdraco/aiohttp-zlib-ng"; - changelog = "https://github.com/bdraco/aiohttp-zlib-ng/blob/${version}/CHANGELOG.md"; - license = licenses.asl20; - maintainers = with maintainers; [ fab ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 8602eeca2980..9179bbe0326f 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -40,6 +40,7 @@ mapAliases ({ adafruit-nrfutil = throw "adafruit-nrfutil has been promoted to a top-level attribute name: `pkgs.adafruit-nrfutil`."; # Added 2023-11-19 aioaladdinconnect = throw "aioaladdinconnect has been removed, as the API is supported was obsoleted on 2024-01-24."; # Added 2024-06-07 aiohttp-isal = throw "aiohttp-isal has been removed, as it has been archived and replace by aiohttp-fast-zlib"; # Added 2024-08-11 + aiohttp-zlib-ng = throw "aiohttp-zlib-ng has been removed, as it has been archived and replaced by aiohttp-fast-zlib"; # Added 2024-11-14 aiomysensors = throw "aiomysensors has been removed, as it was packaged for Home Assistant, which migrated to pymysensors."; # Added 2024-07-07 aioh2 = throw "aioh2 has been removed because it is abandoned and broken."; # Added 2022-03-30 aiolip = throw "aiolip has been removed because the upstream repository was archived in 2021"; # Added 2024-10-04 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a58224781bbd..3a6c645664dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -279,8 +279,6 @@ self: super: with self; { aiohttp-wsgi = callPackage ../development/python-modules/aiohttp-wsgi { }; - aiohttp-zlib-ng = callPackage ../development/python-modules/aiohttp-zlib-ng { }; - aioitertools = callPackage ../development/python-modules/aioitertools { }; aiobiketrax = callPackage ../development/python-modules/aiobiketrax { }; From 8d171082ff2c4b44330b4b693bcd75ec481a8e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 08:31:22 -0800 Subject: [PATCH 407/693] python313Packages.coloredlogs: replace pipes module usage It was deprecated in 3.11 and removed in 3.13. --- .../development/python-modules/coloredlogs/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/coloredlogs/default.nix b/pkgs/development/python-modules/coloredlogs/default.nix index 182c5c370624..09dbc726cfc1 100644 --- a/pkgs/development/python-modules/coloredlogs/default.nix +++ b/pkgs/development/python-modules/coloredlogs/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch2, humanfriendly, verboselogs, capturer, @@ -23,6 +24,15 @@ buildPythonPackage rec { hash = "sha256-TodI2Wh8M0qMM2K5jzqlLmUKILa5+5qq4ByLttmAA7E="; }; + patches = [ + # https://github.com/xolox/python-coloredlogs/pull/120 + (fetchpatch2 { + name = "python313-compat.patch"; + url = "https://github.com/xolox/python-coloredlogs/commit/9d4f4020897fcf48d381de8e099dc29b53fc9531.patch?full_index=1"; + hash = "sha256-Z7MYzyoQBMLBS7c0r5zITuHpl5yn4Vg7Xf/CiG7jTSs="; + }) + ]; + propagatedBuildInputs = [ humanfriendly ]; nativeCheckInputs = [ From 562de2dd84cf174721ff2cfb5129a5a84eb8cbae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 08:32:33 -0800 Subject: [PATCH 408/693] python313Packages.coloredlogs: use pep517 builder --- pkgs/development/python-modules/coloredlogs/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/coloredlogs/default.nix b/pkgs/development/python-modules/coloredlogs/default.nix index 09dbc726cfc1..c3852dc4ad07 100644 --- a/pkgs/development/python-modules/coloredlogs/default.nix +++ b/pkgs/development/python-modules/coloredlogs/default.nix @@ -4,6 +4,7 @@ buildPythonPackage, fetchFromGitHub, fetchpatch2, + setuptools, humanfriendly, verboselogs, capturer, @@ -15,7 +16,7 @@ buildPythonPackage rec { pname = "coloredlogs"; version = "15.0.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "xolox"; @@ -33,7 +34,9 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ humanfriendly ]; + build-system = [ setuptools ]; + + dependencies = [ humanfriendly ]; nativeCheckInputs = [ pytestCheckHook From 9018643afd8b7c8330b44e4d4cbfbc37f93b8da2 Mon Sep 17 00:00:00 2001 From: Arne Keller <2012gdwu+github@posteo.de> Date: Thu, 14 Nov 2024 18:28:51 +0100 Subject: [PATCH 409/693] python3Packages.uvloop: use system libuv (#351870) Co-Authored-By: Martin Weinelt --- pkgs/development/python-modules/uvloop/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix index 8ef7730047d5..881be880d9d9 100644 --- a/pkgs/development/python-modules/uvloop/default.nix +++ b/pkgs/development/python-modules/uvloop/default.nix @@ -32,6 +32,13 @@ buildPythonPackage rec { hash = "sha256-O/ErD9poRHgGp62Ee/pZFhMXcnXTW2ckse5XP6o3BOM="; }; + postPatch = '' + rm -rf vendor + + substituteInPlace setup.py \ + --replace-fail "use_system_libuv = False" "use_system_libuv = True" + ''; + build-system = [ cython setuptools From 964bd997f24210c26ea78d9502bf0d2e87bfb66b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 08:33:59 -0800 Subject: [PATCH 410/693] python313Packages.pyarrow: use Cython 3 --- pkgs/development/python-modules/pyarrow/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index ba171e372c8b..46a1151edd04 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -9,7 +9,7 @@ cffi, cloudpickle, cmake, - cython_0, + cython, fsspec, hypothesis, numpy, @@ -37,7 +37,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake - cython_0 + cython pkg-config setuptools setuptools-scm From 738202573aaad4c4fa81bcd082f29df85ad4de31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 12:34:35 -0800 Subject: [PATCH 411/693] python313Packages.testfixtures: fix tests --- pkgs/development/python-modules/testfixtures/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/testfixtures/default.nix b/pkgs/development/python-modules/testfixtures/default.nix index e95952f94010..409435d4a533 100644 --- a/pkgs/development/python-modules/testfixtures/default.nix +++ b/pkgs/development/python-modules/testfixtures/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + fetchpatch2, fetchPypi, mock, pytestCheckHook, @@ -28,6 +29,14 @@ buildPythonPackage rec { hash = "sha256-1MC4SvLyZ2EPkIAJtQ1vmDpOWK3iLGe6tnh7WkAtWcA="; }; + patches = [ + (fetchpatch2 { + name = "python313-compat.patch"; + url = "https://github.com/simplistix/testfixtures/commit/a23532c7bc685589cce6a5037821a74da48959e7.patch?full_index=1"; + hash = "sha256-k0j/WgA+6LNTYJ233GJjeRU403bJJRxbpOu+BUsMeyQ="; + }) + ]; + build-system = [ setuptools ]; nativeCheckInputs = [ From 926794941f92c8377edd9e5509c8e6db727387d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 12:44:00 -0800 Subject: [PATCH 412/693] python313Packages.patsy: 0.5.6 -> 1.0.1 Diff: https://github.com/pydata/patsy/compare/refs/tags/v0.5.6...v1.0.1 Changelog: https://github.com/pydata/patsy/releases/tag/v1.0.0 https://github.com/pydata/patsy/releases/tag/v1.0.1 --- .../python-modules/patsy/default.nix | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/patsy/default.nix b/pkgs/development/python-modules/patsy/default.nix index 00fed6f6e199..5db6c74916f1 100644 --- a/pkgs/development/python-modules/patsy/default.nix +++ b/pkgs/development/python-modules/patsy/default.nix @@ -1,10 +1,8 @@ { lib, - fetchPypi, - fetchpatch2, + fetchFromGitHub, buildPythonPackage, setuptools, - six, numpy, scipy, # optional, allows spline-related features (see patsy's docs) pytestCheckHook, @@ -12,27 +10,19 @@ buildPythonPackage rec { pname = "patsy"; - version = "0.5.6"; + version = "1.0.1"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-lcbUenIiU1+Ev/f2PXMD8uKXdHpZjbic9cZ/DAx9LNs="; + src = fetchFromGitHub { + owner = "pydata"; + repo = "patsy"; + rev = "refs/tags/v${version}"; + hash = "sha256-gtkvFxNzMFiBBiuKhelSSsTilA/fLJSC5QHqDLiRrWE="; }; - patches = [ - # https://github.com/pydata/patsy/pull/212 - (fetchpatch2 { - name = "numpy_2-compatibility.patch"; - url = "https://github.com/pydata/patsy/commit/251951dd7a4116be1cd34963780b87b4a67b79ae.patch"; - hash = "sha256-bgHqa8eygf9ADLmDY/8uebuYSFzkKG667BuXvQC4WB4="; - }) - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ setuptools ]; - - propagatedBuildInputs = [ - six + dependencies = [ numpy scipy ]; @@ -42,6 +32,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "patsy" ]; meta = { + changelog = "https://github.com/pydata/patsy/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; description = "Python package for describing statistical models"; homepage = "https://github.com/pydata/patsy"; license = lib.licenses.bsd2; From 73db954b5aeb29efe1cb3c362953937248fe5a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 13:36:30 -0800 Subject: [PATCH 413/693] python313Packages.venusian: fix tests --- pkgs/development/python-modules/venusian/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/venusian/default.nix b/pkgs/development/python-modules/venusian/default.nix index 2794a7a1699b..a5f6812a9455 100644 --- a/pkgs/development/python-modules/venusian/default.nix +++ b/pkgs/development/python-modules/venusian/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + fetchpatch2, fetchPypi, isPy27, pytestCheckHook, @@ -20,6 +21,15 @@ buildPythonPackage rec { hash = "sha256-63LNym8xOaFdyA+cldPBD4pUoLqIHu744uxbQtPuOpU="; }; + patches = [ + # https://github.com/Pylons/venusian/pull/92 + (fetchpatch2 { + name = "python313-compat.patch"; + url = "https://github.com/Pylons/venusian/pull/92/commits/000b36d6968502683615da618afc3677ec8f05fc.patch?full_index=1"; + hash = "sha256-lH4x3Fc7odV+j/sHw48BDjaZAXo+WN20omnpKPNiF7w="; + }) + ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ From 56224891d28b0122c6b82ad74af4df20e3594ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 13:48:17 -0800 Subject: [PATCH 414/693] python313Packages.compreffor: 0.5.5 -> 0.5.6 --- .../python-modules/compreffor/default.nix | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/compreffor/default.nix b/pkgs/development/python-modules/compreffor/default.nix index 76cd8caa1a9a..5cf9169bb1a3 100644 --- a/pkgs/development/python-modules/compreffor/default.nix +++ b/pkgs/development/python-modules/compreffor/default.nix @@ -2,49 +2,48 @@ lib, buildPythonPackage, cython, - fetchpatch, fetchPypi, setuptools-scm, fonttools, pytestCheckHook, - wheel, }: buildPythonPackage rec { pname = "compreffor"; - version = "0.5.5"; - format = "pyproject"; + version = "0.5.6"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-9NMmIJC8Q4hRC/H2S7OrgoWSQ9SRIPHxHvZpPrPCvHo="; + hash = "sha256-icE9GDf5SD/gmqZrGe30SQ7ghColye3VIytSXaI/EA4="; }; - patches = [ - # https://github.com/googlefonts/compreffor/pull/153 - (fetchpatch { - name = "remove-setuptools-git-ls-files.patch"; - url = "https://github.com/googlefonts/compreffor/commit/10f563564390568febb3ed1d0f293371cbd86953.patch"; - hash = "sha256-wNQMJFJXTFILGzAgzUXzz/rnK67/RU+exYP6MhEQAkA="; - }) - ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail '"setuptools_git_ls_files",' "" + substituteInPlace setup.py \ + --replace-fail ', "setuptools_git_ls_files"' "" + ''; - nativeBuildInputs = [ + build-system = [ cython setuptools-scm - wheel ]; - propagatedBuildInputs = [ fonttools ]; + dependencies = [ fonttools ]; nativeCheckInputs = [ pytestCheckHook ]; - # Tests cannot seem to open the cpython module. - doCheck = false; + preCheck = '' + # import from $out + mv src/python/compreffor/test . + rm -r src tools + ''; pythonImportsCheck = [ "compreffor" ]; meta = with lib; { + changelog = "https://github.com/googlefonts/compreffor/releases/tag/${version}"; description = "CFF table subroutinizer for FontTools"; mainProgram = "compreffor"; homepage = "https://github.com/googlefonts/compreffor"; From 7e6ea1b67f4f22a6c8a817a8659c179710e5604c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 01:00:15 +0100 Subject: [PATCH 415/693] python313Packages.falcon: 3.1.3 -> 4.0.2 https://falcon.readthedocs.io/en/stable/changes/4.0.0.html https://falcon.readthedocs.io/en/stable/changes/4.0.1.html https://falcon.readthedocs.io/en/stable/changes/4.0.2.html --- pkgs/development/python-modules/falcon/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/falcon/default.nix b/pkgs/development/python-modules/falcon/default.nix index cb2ff6942eb2..27492073c580 100644 --- a/pkgs/development/python-modules/falcon/default.nix +++ b/pkgs/development/python-modules/falcon/default.nix @@ -30,18 +30,19 @@ buildPythonPackage rec { pname = "falcon"; - version = "3.1.3"; - format = "pyproject"; + version = "4.0.2"; + pyproject = true; + disabled = pythonOlder "3.5"; src = fetchFromGitHub { owner = "falconry"; - repo = pname; + repo = "falcon"; rev = "refs/tags/${version}"; - hash = "sha256-7719gOM8WQVjODwOSo7HpH3HMFFeCGQQYBKktBAevig="; + hash = "sha256-umNuHyZrdDGyrhQEG9+f08D4Wwrz6bVJ6ysw8pfbHv4="; }; - nativeBuildInputs = [ setuptools ] ++ lib.optionals (!isPyPy) [ cython ]; + build-system = [ setuptools ] ++ lib.optionals (!isPyPy) [ cython ]; __darwinAllowLocalNetworking = true; @@ -90,7 +91,8 @@ buildPythonPackage rec { ]; meta = with lib; { - description = "Unladen web framework for building APIs and app backends"; + changelog = "https://falcon.readthedocs.io/en/stable/changes/${version}.html"; + description = "Ultra-reliable, fast ASGI+WSGI framework for building data plane APIs at scale"; homepage = "https://falconframework.org/"; license = licenses.asl20; maintainers = with maintainers; [ desiderius ]; From d0d62af65371b61a72fd89ec01ff8bf738541a51 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 01:17:15 +0100 Subject: [PATCH 416/693] python313Packages.hug: drop Marked broken since 2021, still pins falcon==2.0.0 and we are at falcon>4 now. --- .../python-modules/hug/default.nix | 66 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 pkgs/development/python-modules/hug/default.nix diff --git a/pkgs/development/python-modules/hug/default.nix b/pkgs/development/python-modules/hug/default.nix deleted file mode 100644 index 2bd9cc3a20db..000000000000 --- a/pkgs/development/python-modules/hug/default.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ - lib, - buildPythonPackage, - fetchFromGitHub, - isPy27, - falcon, - requests, - pytestCheckHook, - marshmallow, - mock, - numpy, -}: - -buildPythonPackage rec { - pname = "hug"; - version = "2.6.0"; - format = "setuptools"; - disabled = isPy27; - - src = fetchFromGitHub { - owner = "hugapi"; - repo = pname; - rev = version; - sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq"; - }; - - propagatedBuildInputs = [ - falcon - requests - ]; - - nativeCheckInputs = [ - mock - marshmallow - pytestCheckHook - numpy - ]; - - postPatch = '' - substituteInPlace setup.py --replace '"pytest-runner"' "" - ''; - - preCheck = '' - # some tests need the `hug` CLI on the PATH - export PATH=$out/bin:$PATH - ''; - - disabledTests = [ - # some tests attempt network access - "test_datagram_request" - "test_request" - # these tests use an unstable test dependency (https://github.com/hugapi/hug/issues/859) - "test_marshmallow_custom_context" - "test_marshmallow_schema" - "test_transform" - "test_validate_route_args_negative_case" - ]; - - meta = with lib; { - description = "Python framework that makes developing APIs as simple as possible, but no simpler"; - homepage = "https://github.com/hugapi/hug"; - license = licenses.mit; - # Missing support for later falcon releases - broken = true; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 9179bbe0326f..01bc2331c64d 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -267,6 +267,7 @@ mapAliases ({ homeassistant-pyozw = throw "homeassistant-pyozw has been removed, as it was packaged for home-assistant which has removed it as a dependency."; # added 2024-01-05 htmllaundry = throw "htmllaundry has been removed because it is abandoned"; # added 2024-06-04 HTSeq = htseq; # added 2023-02-19 + hug = throw "hug was marked broken since 2021 and has not established compatibility with newer dependency versions. It has therefore been removed."; # added 2024-11-15 hyperkitty = throw "Please use pkgs.mailmanPackages.hyperkitty"; # added 2022-04-29 ihatemoney = throw "ihatemoney was removed because it is no longer maintained downstream"; # added 2023-04-08 IMAPClient = imapclient; # added 2021-10-28 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3a6c645664dc..9cd37049411a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5976,8 +5976,6 @@ self: super: with self; { huey = callPackage ../development/python-modules/huey { }; - hug = callPackage ../development/python-modules/hug { }; - huggingface-hub = callPackage ../development/python-modules/huggingface-hub { }; huisbaasje-client = callPackage ../development/python-modules/huisbaasje-client { }; From 6297a64a36e1c613cc7f2c40979c8e7ce8a73d34 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 02:03:45 +0100 Subject: [PATCH 417/693] python313Packages.audioop-lts: init at 0.2.1 --- .../python-modules/audioop-lts/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/audioop-lts/default.nix diff --git a/pkgs/development/python-modules/audioop-lts/default.nix b/pkgs/development/python-modules/audioop-lts/default.nix new file mode 100644 index 000000000000..b25454bf0671 --- /dev/null +++ b/pkgs/development/python-modules/audioop-lts/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "audioop-lts"; + version = "0.2.1"; + pyproject = true; + + disabled = pythonOlder "3.13"; + + src = fetchFromGitHub { + owner = "AbstractUmbra"; + repo = "audioop"; + rev = "refs/tags/${version}"; + hash = "sha256-tx5/dcyEfHlYRohfYW/t0UkLiZ9LJHmI8g3sC3+DGAE="; + }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + preCheck = '' + rm -rf audioop + ''; + + pythonImportsCheck = [ + "audioop" + ]; + + meta = { + changelog = "https://github.com/AbstractUmbra/audioop/releases/tag/${version}"; + description = "An LTS port of Python's `audioop` module"; + homepage = "https://github.com/AbstractUmbra/audioop"; + license = lib.licenses.psfl; + maintainers = with lib.maintainers; [ hexa ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9cd37049411a..594b9a9197e1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -984,6 +984,8 @@ self: super: with self; { audio-metadata = callPackage ../development/python-modules/audio-metadata { }; + audioop-lts = callPackage ../development/python-modules/audioop-lts { }; + audioread = callPackage ../development/python-modules/audioread { }; audiotools = callPackage ../development/python-modules/audiotools { From 98d9ddb0efb62473c474fd5e34585c13461743cf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 02:06:33 +0100 Subject: [PATCH 418/693] python313Packages.aiohttp: 3.11.0 -> 3.11.2 https://github.com/aio-libs/aiohttp/blob/v3.11.2/CHANGES.rst --- pkgs/development/python-modules/aiohttp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 8d064d79d1e4..867a78484ad9 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -46,7 +46,7 @@ buildPythonPackage rec { pname = "aiohttp"; - version = "3.11.0"; + version = "3.11.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -55,7 +55,7 @@ buildPythonPackage rec { owner = "aio-libs"; repo = "aiohttp"; rev = "refs/tags/v${version}"; - hash = "sha256-/BtXCB50zy+s8ZLdSumsIDy8JFyk+WgUN2hUgduasM0="; + hash = "sha256-+a5ok4jg6+eL8uQBqZ6AaaZ1wNqJyh6Fxe08VOoJxNM="; }; patches = [ From b9733f28c3dee118741926c4f2936750482779e3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 03:11:59 +0100 Subject: [PATCH 419/693] python313Packages.nbconvert: disable DeprecationWarning in tests --- pkgs/development/python-modules/nbconvert/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/nbconvert/default.nix b/pkgs/development/python-modules/nbconvert/default.nix index 870b0dba1088..d13414c12567 100644 --- a/pkgs/development/python-modules/nbconvert/default.nix +++ b/pkgs/development/python-modules/nbconvert/default.nix @@ -86,6 +86,11 @@ buildPythonPackage rec { pytestCheckHook ]; + pytestFlagsArray = [ + "-W" + "ignore::DeprecationWarning" + ]; + disabledTests = [ # Attempts network access (Failed to establish a new connection: [Errno -3] Temporary failure in name resolution) "test_export" From 481b33e79977eec487ed7bfcb2b092c23579b535 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 03:21:41 +0100 Subject: [PATCH 420/693] python313Packages.pyramid: fix build --- pkgs/development/python-modules/pyramid/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/pyramid/default.nix b/pkgs/development/python-modules/pyramid/default.nix index d30f96b67d66..c930fefd524f 100644 --- a/pkgs/development/python-modules/pyramid/default.nix +++ b/pkgs/development/python-modules/pyramid/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + fetchpatch2, webtest, zope-component, hupper, @@ -31,6 +32,14 @@ buildPythonPackage rec { hash = "sha256-NyE4pzjkIWU1zHbczm7d1aGqypUTDyNU+4NCZMBvGN4="; }; + patches = [ + (fetchpatch2 { + name = "python-3.13-compat.patch"; + url = "https://github.com/Pylons/pyramid/commit/1079613eb07e2a67454378e1fc28815dfd64bb82.patch"; + hash = "sha256-/jxbA2q0kAeXDvIwhNkO8h4KbKtdquWXAH7/0lV8MXc="; + }) + ]; + build-system = [ setuptools ]; dependencies = [ From 543e9ed9e77f6fe139e8a74d0afc8c508dbec7b8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 03:25:18 +0100 Subject: [PATCH 421/693] python313Packages.tiktoken: 0.7.0 -> 0.8.0 https://github.com/openai/tiktoken/blob/0.8.0/CHANGELOG.md --- .../python-modules/tiktoken/Cargo.lock | 219 ++++-------------- .../python-modules/tiktoken/default.nix | 6 +- 2 files changed, 51 insertions(+), 174 deletions(-) diff --git a/pkgs/development/python-modules/tiktoken/Cargo.lock b/pkgs/development/python-modules/tiktoken/Cargo.lock index c0ae6a287067..ad321b632cd9 100644 --- a/pkgs/development/python-modules/tiktoken/Cargo.lock +++ b/pkgs/development/python-modules/tiktoken/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "bit-set" @@ -32,17 +32,11 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" -[[package]] -name = "bitflags" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" - [[package]] name = "bstr" -version = "1.9.1" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" +checksum = "1a68f1f47cdf0ec8ee4b941b2eee2a80cb796db73118c0dd09ac63fbe405be22" dependencies = [ "memchr", "regex-automata", @@ -57,19 +51,20 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "fancy-regex" -version = "0.11.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b95f7c0680e4142284cf8b22c14a476e87d61b004a3a0861872b32ef7ead40a2" +checksum = "531e46835a22af56d1e3b66f04844bed63158bc094a628bec1d321d9b4c44bf2" dependencies = [ "bit-set", - "regex", + "regex-automata", + "regex-syntax", ] [[package]] name = "heck" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "indoc" @@ -79,19 +74,9 @@ checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" [[package]] name = "libc" -version = "0.2.155" +version = "0.2.162" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" - -[[package]] -name = "lock_api" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" -dependencies = [ - "autocfg", - "scopeguard", -] +checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398" [[package]] name = "memchr" @@ -110,59 +95,36 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" - -[[package]] -name = "parking_lot" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-targets", -] +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "portable-atomic" -version = "1.6.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" +checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] [[package]] name = "pyo3" -version = "0.20.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233" +checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884" dependencies = [ "cfg-if", "indoc", "libc", "memoffset", - "parking_lot", + "once_cell", "portable-atomic", "pyo3-build-config", "pyo3-ffi", @@ -172,9 +134,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.20.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "deaa5745de3f5231ce10517a1f5dd97d53e5a2fd77aa6b5842292085831d48d7" +checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38" dependencies = [ "once_cell", "target-lexicon", @@ -182,9 +144,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.20.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b42531d03e08d4ef1f6e85a2ed422eb678b8cd62b762e53891c05faf0d4afa" +checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636" dependencies = [ "libc", "pyo3-build-config", @@ -192,9 +154,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.20.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7305c720fa01b8055ec95e484a6eca7a83c841267f0dd5280f0c8b8551d2c158" +checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -204,9 +166,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.20.3" +version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c7e9b68bb9c3149c5b0cade5d07f953d6d125eb4337723c4ccdb665f1f96185" +checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe" dependencies = [ "heck", "proc-macro2", @@ -217,27 +179,18 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] -[[package]] -name = "redox_syscall" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd" -dependencies = [ - "bitflags", -] - [[package]] name = "regex" -version = "1.10.5" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", @@ -247,9 +200,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", @@ -258,9 +211,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "rustc-hash" @@ -268,43 +221,31 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" -[[package]] -name = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - [[package]] name = "serde" -version = "1.0.204" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.204" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", "syn", ] -[[package]] -name = "smallvec" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" - [[package]] name = "syn" -version = "2.0.71" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b146dcf730474b4bcd16c311627b31ede9ab149045db4d6088b3becaea046462" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -313,13 +254,13 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.15" +version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tiktoken" -version = "0.7.0" +version = "0.8.0" dependencies = [ "bstr", "fancy-regex", @@ -330,76 +271,12 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" [[package]] name = "unindent" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" - -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" diff --git a/pkgs/development/python-modules/tiktoken/default.nix b/pkgs/development/python-modules/tiktoken/default.nix index 9ce945ebf7c3..7999fe4a66ed 100644 --- a/pkgs/development/python-modules/tiktoken/default.nix +++ b/pkgs/development/python-modules/tiktoken/default.nix @@ -16,10 +16,10 @@ }: let pname = "tiktoken"; - version = "0.7.0"; + version = "0.8.0"; src = fetchPypi { inherit pname version; - hash = "sha256-EHcmbpScJOApH2w1BDPG8JcTZezisXOiO8O5+d7+9rY="; + hash = "sha256-nMuydA8kVCU0NpxWNc/ZsrPCSQdUp4rIgx2Z+J+U7rI="; }; postPatch = '' cp ${./Cargo.lock} Cargo.lock @@ -44,7 +44,7 @@ buildPythonPackage { cargoDeps = rustPlatform.fetchCargoTarball { inherit src postPatch; name = "${pname}-${version}"; - hash = "sha256-i0AQUu9ERDWBw0kjTTTyn4VHMig/k2/7wX2884MCGx8="; + hash = "sha256-XzUEqiUdi70bgQwARGHsgti36cFOh7QDiEkccjxlwls="; }; nativeBuildInputs = [ From b24fe59fca27e5a57589d9ed1e4851a1a0358adb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 03:32:41 +0100 Subject: [PATCH 422/693] python313Packages.objgraph: 3.6.1 -> 3.6.2 https://github.com/mgedmin/objgraph/blob/3.6.2/CHANGES.rst --- pkgs/development/python-modules/objgraph/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/objgraph/default.nix b/pkgs/development/python-modules/objgraph/default.nix index bdd104518852..de84c59b59b8 100644 --- a/pkgs/development/python-modules/objgraph/default.nix +++ b/pkgs/development/python-modules/objgraph/default.nix @@ -13,14 +13,14 @@ buildPythonPackage rec { pname = "objgraph"; - version = "3.6.1"; + version = "3.6.2"; pyproject = true; disabled = pythonOlder "3.7" || isPyPy; src = fetchPypi { inherit pname version; - hash = "sha256-/pbHQUe7yq6GZbOW5TiL3MMZfe67pOY4HwUgLuW0U6c="; + hash = "sha256-ALny9A90IuPH9FphxNr9r4HwP/BknW6uyGbwEDDlGtg="; }; patches = [ From c29d54a7dc90fa2f3dda54b5c78f161894ecd398 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 03:38:19 +0100 Subject: [PATCH 423/693] python312Packages.python-lsp-server: disable failing test --- .../python-modules/python-lsp-server/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/python-lsp-server/default.nix b/pkgs/development/python-modules/python-lsp-server/default.nix index 54fa536f792e..3e64e48a5926 100644 --- a/pkgs/development/python-modules/python-lsp-server/default.nix +++ b/pkgs/development/python-modules/python-lsp-server/default.nix @@ -34,6 +34,7 @@ matplotlib, numpy, pandas, + pytest-cov-stub, pytestCheckHook, websockets, @@ -55,12 +56,6 @@ buildPythonPackage rec { hash = "sha256-oFqa7DtFpJmDZrw+GJqrFH3QqnMAu9159q3IWT9vRko="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "--cov-report html --cov-report term --junitxml=pytest.xml" "" \ - --replace-fail "--cov pylsp --cov test" "" - ''; - pythonRelaxDeps = [ "autopep8" "flake8" @@ -115,6 +110,7 @@ buildPythonPackage rec { matplotlib numpy pandas + pytest-cov-stub pytestCheckHook ] ++ optional-dependencies.all; @@ -127,6 +123,8 @@ buildPythonPackage rec { "test_autoimport_code_actions_and_completions_for_notebook_document" # avoid dependencies on many Qt things just to run one singular test "test_pyqt_completion" + # https://github.com/python-lsp/python-lsp-server/issues/602 + "test_jedi_completion_with_fuzzy_enabled" ]; preCheck = '' From cbf267bde4444b2665a635edb6f51a5a8406e1fc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 03:47:02 +0100 Subject: [PATCH 424/693] python313Packages.sqlalchemy: 2.0.34 -> 2.0.36 https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_2_0_36 --- pkgs/development/python-modules/sqlalchemy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sqlalchemy/default.nix b/pkgs/development/python-modules/sqlalchemy/default.nix index 06ce40e7e336..0aec8225933f 100644 --- a/pkgs/development/python-modules/sqlalchemy/default.nix +++ b/pkgs/development/python-modules/sqlalchemy/default.nix @@ -41,7 +41,7 @@ buildPythonPackage rec { pname = "sqlalchemy"; - version = "2.0.34"; + version = "2.0.36"; pyproject = true; disabled = pythonOlder "3.7"; @@ -50,7 +50,7 @@ buildPythonPackage rec { owner = "sqlalchemy"; repo = "sqlalchemy"; rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}"; - hash = "sha256-5nnMh8pEG6rXiy0nk9SKjIOY+htXNx9eHTEtNOkLrd8="; + hash = "sha256-i1yyAVBXz0efAdpFvUPvdzS+4IRU94akmePoprb8Is0="; }; postPatch = '' From 93e03a8b597847edf436fe54d958d2e172437577 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 04:16:26 +0100 Subject: [PATCH 425/693] python312Packages.inkex: relax numpy constraint --- pkgs/development/python-modules/inkex/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/inkex/default.nix b/pkgs/development/python-modules/inkex/default.nix index 2435c7e46786..f19708321bfb 100644 --- a/pkgs/development/python-modules/inkex/default.nix +++ b/pkgs/development/python-modules/inkex/default.nix @@ -40,6 +40,8 @@ buildPythonPackage { nativeBuildInputs = [ poetry-core ]; + pythonRelaxDeps = [ "numpy" ]; + propagatedBuildInputs = [ cssselect lxml From 4516306d19b29932dc168a376a2138325c89592a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 04:25:11 +0100 Subject: [PATCH 426/693] python313Packages.quantities: 0.15.0 -> 0.16.1 https://github.com/python-quantities/python-quantities/blob/v0.16.1/CHANGES.txt --- .../python-modules/quantities/default.nix | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/quantities/default.nix b/pkgs/development/python-modules/quantities/default.nix index 991274fd267a..c1c1b8f8e303 100644 --- a/pkgs/development/python-modules/quantities/default.nix +++ b/pkgs/development/python-modules/quantities/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - fetchpatch2, numpy, pytestCheckHook, pythonOlder, @@ -12,7 +11,7 @@ buildPythonPackage rec { pname = "quantities"; - version = "0.15.0"; + version = "0.16.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -21,17 +20,9 @@ buildPythonPackage rec { owner = "python-quantities"; repo = "python-quantities"; rev = "refs/tags/v${version}"; - hash = "sha256-N20xfzGtM0VnfkJtzMytNLySTkgVz2xf1nEJxlwBSCI="; + hash = "sha256-gXxUmuhFAqHVj8jqWt8Ed2M6UvnPxku6hr/yJoa3nXE="; }; - patches = [ - (fetchpatch2 { - name = "prevent-arbitrary-code-eval.patch"; - url = "https://github.com/python-quantities/python-quantities/pull/236.patch"; - hash = "sha256-H1tOfXqNMIKY01m6o2PsfZG0CvnWNxW2qIWA5ce1lRk="; - }) - ]; - build-system = [ setuptools setuptools-scm @@ -41,11 +32,6 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # test fails with numpy 1.24 - "test_mul" - ]; - pythonImportsCheck = [ "quantities" ]; meta = with lib; { From 8b702dda352fa7d8f90407fb796daa5697dc76b7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 04:28:54 +0100 Subject: [PATCH 427/693] python312Packages.pydevd: disable failing test This is due to the numpy 2 migration. --- pkgs/development/python-modules/pydevd/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/pydevd/default.nix b/pkgs/development/python-modules/pydevd/default.nix index 207e5e5c9edf..20264af54865 100644 --- a/pkgs/development/python-modules/pydevd/default.nix +++ b/pkgs/development/python-modules/pydevd/default.nix @@ -62,6 +62,8 @@ buildPythonPackage rec { "test_tracing_other_threads" # subprocess.CalledProcessError "test_find_main_thread_id" + # numpy 2 compat + "test_evaluate_numpy" ] ++ lib.optionals (pythonAtLeast "3.12") [ "test_case_handled_and_unhandled_exception_generator" From 420d7fc3527aaae341690c3fd2afa138ada9b74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 19:43:05 -0800 Subject: [PATCH 428/693] python313Packages.flexparser: 0.3.1 -> 0.4 Diff: https://github.com/hgrecco/flexparser/compare/0.3.1...0.4 Changelog: https://github.com/hgrecco/flexparser/blob/0.4/CHANGES --- pkgs/development/python-modules/flexparser/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/flexparser/default.nix b/pkgs/development/python-modules/flexparser/default.nix index 60ab74a5546e..4cb3cfbf6c58 100644 --- a/pkgs/development/python-modules/flexparser/default.nix +++ b/pkgs/development/python-modules/flexparser/default.nix @@ -6,7 +6,6 @@ # build-system setuptools, setuptools-scm, - wheel, # dependencies typing-extensions, @@ -19,23 +18,22 @@ buildPythonPackage rec { pname = "flexparser"; - version = "0.3.1"; + version = "0.4"; pyproject = true; src = fetchFromGitHub { owner = "hgrecco"; repo = "flexparser"; rev = version; - hash = "sha256-9ImG8uh1SZ+pAbqzWBkTVn+3EBAGzzdP8vqqP59IgIw="; + hash = "sha256-0Ocp4GsrnzkpSqnP+AK5OxJ3KyUf5Uc6CegDXpRYRqo="; }; - nativeBuildInputs = [ + build-system = [ setuptools setuptools-scm - wheel ]; - propagatedBuildInputs = [ typing-extensions ]; + dependencies = [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook From a74f4fc335b567d3adb09bb5b939810265a86a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 19:39:11 -0800 Subject: [PATCH 429/693] python313Packages.pint: 0.24.3 -> 0.24.4 Diff: https://github.com/hgrecco/pint/compare/refs/tags/0.24.3...0.24.4 Changelog: https://github.com/hgrecco/pint/blob/0.24.4/CHANGES --- pkgs/development/python-modules/pint/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pint/default.nix b/pkgs/development/python-modules/pint/default.nix index 1339b39505a9..e480d1657875 100644 --- a/pkgs/development/python-modules/pint/default.nix +++ b/pkgs/development/python-modules/pint/default.nix @@ -9,9 +9,9 @@ setuptools-scm, # dependencies - appdirs, flexcache, flexparser, + platformdirs, typing-extensions, # tests @@ -25,7 +25,7 @@ buildPythonPackage rec { pname = "pint"; - version = "0.24.3"; + version = "0.24.4"; pyproject = true; disabled = pythonOlder "3.9"; @@ -34,7 +34,7 @@ buildPythonPackage rec { owner = "hgrecco"; repo = "pint"; rev = "refs/tags/${version}"; - hash = "sha256-PJEgwshTBIqmKMEro+IT+7v4dab3qD7I45OuTOJloR0="; + hash = "sha256-Pr+BRLj6BjEDwKJ24qxmfiJswpgQJDumAx3rT6tQHSY="; }; build-system = [ @@ -43,9 +43,9 @@ buildPythonPackage rec { ]; dependencies = [ - appdirs flexcache flexparser + platformdirs typing-extensions # Both uncertainties and numpy are not necessarily needed for every From f472920c8631ec8270391d13532b68a891576cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 14 Nov 2024 19:59:04 -0800 Subject: [PATCH 430/693] python313Packages.geojson: fix build --- pkgs/development/python-modules/geojson/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/geojson/default.nix b/pkgs/development/python-modules/geojson/default.nix index a8c1ea999077..eb070e8234a9 100644 --- a/pkgs/development/python-modules/geojson/default.nix +++ b/pkgs/development/python-modules/geojson/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, setuptools, unittestCheckHook, }: @@ -18,7 +19,15 @@ buildPythonPackage rec { hash = "sha256-OL+7ntgzpA63ALQ8whhKRePsKxcp81PLuU1bHJvxN9U="; }; - nativeBuildInputs = [ setuptools ]; + patches = [ + (fetchpatch2 { + name = "dont-fail-with-python-313.patch"; + url = "https://github.com/jazzband/geojson/commit/c13afff339e6b78f442785cc95f0eb66ddab3e7b.patch?full_index=1"; + hash = "sha256-xdz96vzTA+zblJtCvXIZe5p51xJGM5eB/HAtCXgy5JA="; + }) + ]; + + build-system = [ setuptools ]; pythonImportsCheck = [ "geojson" ]; From e09e98971f91756b82d9ed4b595207e194cdd1a9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 04:58:38 +0100 Subject: [PATCH 431/693] python313Packages.quart: 0.19.8 -> 0.19.9 https://github.com/pallets/quart/blob/refs/tags/0.19.9/CHANGES.rst --- pkgs/development/python-modules/quart/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/quart/default.nix b/pkgs/development/python-modules/quart/default.nix index 17c7a65ec387..1d589c177400 100644 --- a/pkgs/development/python-modules/quart/default.nix +++ b/pkgs/development/python-modules/quart/default.nix @@ -27,28 +27,24 @@ mock, py, pytest-asyncio, - pytest7CheckHook, + pytest-cov-stub, + pytestCheckHook, }: buildPythonPackage rec { pname = "quart"; - version = "0.19.8"; + version = "0.19.9"; pyproject = true; src = fetchFromGitHub { owner = "pallets"; repo = "quart"; rev = "refs/tags/${version}"; - hash = "sha256-A23+25bDzK2GlGNTCul6HbsjNujrnhpzTxdnV3Ig028="; + hash = "sha256-jekbrHpB+7d3IagVUtDYA1VFlWtnE7kPqIm19NB2scA="; }; build-system = [ poetry-core ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "--no-cov-on-fail " "" - ''; - dependencies = [ aiofiles @@ -75,7 +71,8 @@ buildPythonPackage rec { mock py pytest-asyncio - pytest7CheckHook + pytest-cov-stub + pytestCheckHook ]; meta = with lib; { From a8b611ba8d03f9fe59b9643d9532e31f6136a002 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 05:15:03 +0100 Subject: [PATCH 432/693] python313Packages.werkzeug: 3.0.6 -> 3.1.3 https://werkzeug.palletsprojects.com/en/3.1.x/changes/#version-3-1-3 --- .../python-modules/werkzeug/default.nix | 39 +++++++++---------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/werkzeug/default.nix b/pkgs/development/python-modules/werkzeug/default.nix index feafb29bcbd3..aef1412124fd 100644 --- a/pkgs/development/python-modules/werkzeug/default.nix +++ b/pkgs/development/python-modules/werkzeug/default.nix @@ -15,11 +15,10 @@ watchdog, # tests + cffi, cryptography, ephemeral-port-reserve, - greenlet, pytest-timeout, - pytest-xprocess, pytestCheckHook, # reverse dependencies @@ -29,14 +28,14 @@ buildPythonPackage rec { pname = "werkzeug"; - version = "3.0.6"; + version = "3.1.3"; pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; - hash = "sha256-qN1Z1N4oynBHGjTLp5vtX37y4Danazqwg1R0JG60H40="; + hash = "sha256-YHI86UXBkyhnl5DjKCzHWKpKYEDkuzMPU9MPpUbUR0Y="; }; build-system = [ flit-core ]; @@ -44,26 +43,26 @@ buildPythonPackage rec { dependencies = [ markupsafe ]; optional-dependencies = { - watchdog = lib.optionals (!stdenv.hostPlatform.isDarwin) [ - # watchdog requires macos-sdk 10.13 - watchdog - ]; + watchdog = [ watchdog ]; }; - nativeCheckInputs = - [ - cryptography - ephemeral-port-reserve - pytest-timeout - pytest-xprocess - pytestCheckHook - ] - ++ lib.optionals (pythonOlder "3.11") [ greenlet ] - ++ lib.flatten (builtins.attrValues optional-dependencies); + nativeCheckInputs = [ + cffi + cryptography + ephemeral-port-reserve + pytest-timeout + pytestCheckHook + ] ++ lib.flatten (lib.attrValues optional-dependencies); pythonImportsCheck = [ "werkzeug" ]; - disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_get_machine_id" ]; + disabledTests = [ + # ConnectionRefusedError: [Errno 111] Connection refused + "test_http_proxy" + # ResourceWarning: subprocess 309 is still running + "test_basic" + "test_long_build" + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_get_machine_id" ]; disabledTestPaths = [ # ConnectionRefusedError: [Errno 111] Connection refused From dc07d2e954cd28a74a8e554bd02fa4a934b3924a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 05:15:42 +0100 Subject: [PATCH 433/693] python313Packages.blinker: 1.8.2 -> 1.9.0 https://github.com/pallets-eco/blinker/releases/tag/1.9.0 --- pkgs/development/python-modules/blinker/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/blinker/default.nix b/pkgs/development/python-modules/blinker/default.nix index c32e23e56a92..d338057e70a6 100644 --- a/pkgs/development/python-modules/blinker/default.nix +++ b/pkgs/development/python-modules/blinker/default.nix @@ -13,15 +13,15 @@ buildPythonPackage rec { pname = "blinker"; - version = "1.8.2"; - format = "pyproject"; + version = "1.9.0"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-j3ewnTv3x5XpaelIbznCxenDnU7gdCS+K8WU7OlkLYM="; + hash = "sha256-tM4iZaer7ORefMiW6Y2+vmzq1WvPgFo9IxNtFF9URb8="; }; - nativeBuildInputs = [ flit-core ]; + build-system = [ flit-core ]; pythonImportsCheck = [ "blinker" ]; From e5a791db2708b633b89bb2e02482d9398410e136 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 05:17:34 +0100 Subject: [PATCH 434/693] python313Packages.flask: 3.0.3 -> 3.1.0 https://flask.palletsprojects.com/en/3.1.x/changes/#version-3-1-0 --- pkgs/development/python-modules/flask/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/flask/default.nix b/pkgs/development/python-modules/flask/default.nix index 850dba14f28e..ac0653a56c9b 100644 --- a/pkgs/development/python-modules/flask/default.nix +++ b/pkgs/development/python-modules/flask/default.nix @@ -32,17 +32,17 @@ buildPythonPackage rec { pname = "flask"; - version = "3.0.3"; - format = "pyproject"; + version = "3.1.0"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-zrJ7CvOCPqJzeSik2Z0SWgYXW4USxEXL2anOIA73aEI="; + hash = "sha256-X4c8UYTIl8jZ0bBd8ePQGxSRDOaWB6EXvTJ3CYpYNqw="; }; - nativeBuildInputs = [ flit-core ]; + build-system = [ flit-core ]; - propagatedBuildInputs = [ + dependencies = [ click blinker itsdangerous @@ -55,10 +55,7 @@ buildPythonPackage rec { dotenv = [ python-dotenv ]; }; - nativeCheckInputs = - [ pytestCheckHook ] - ++ lib.optionals (pythonOlder "3.11") [ greenlet ] - ++ lib.flatten (builtins.attrValues optional-dependencies); + nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); passthru.tests = { inherit From 29b189a8218b03d7279269dc57c07562f4574627 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 06:17:09 +0100 Subject: [PATCH 435/693] octoprint: fix flask override --- pkgs/by-name/oc/octoprint/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/oc/octoprint/package.nix b/pkgs/by-name/oc/octoprint/package.nix index a4b437ac6d1c..e1808f8824e4 100644 --- a/pkgs/by-name/oc/octoprint/package.nix +++ b/pkgs/by-name/oc/octoprint/package.nix @@ -34,6 +34,7 @@ let flask = super.flask.overridePythonAttrs (oldAttrs: rec { version = "2.2.5"; format = "setuptools"; + pyproject = null; src = fetchPypi { pname = "Flask"; inherit version; From 95a113156ebbe6504c5d96ee5b24a9d76885131d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 06:20:05 +0100 Subject: [PATCH 436/693] python312Packages.flask-sqlalchemy: update disabled tests --- pkgs/development/python-modules/flask-sqlalchemy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/flask-sqlalchemy/default.nix b/pkgs/development/python-modules/flask-sqlalchemy/default.nix index 4a9de0f4dd6d..e48856056afb 100644 --- a/pkgs/development/python-modules/flask-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/flask-sqlalchemy/default.nix @@ -39,8 +39,8 @@ buildPythonPackage rec { disabledTests = [ # flaky "test_session_scoping_changing" - # https://github.com/pallets-eco/flask-sqlalchemy/issues/1084 - "test_persist_selectable" + # https://github.com/pallets-eco/flask-sqlalchemy/issues/1378 + "test_explicit_table" ]; pytestFlagsArray = lib.optionals (pythonAtLeast "3.12") [ From 1735ffa215bac6db6adf180095537aaece23571c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 14:49:25 +0100 Subject: [PATCH 437/693] sourcehut: fix flask ecosystem overrides --- pkgs/applications/version-management/sourcehut/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/version-management/sourcehut/default.nix b/pkgs/applications/version-management/sourcehut/default.nix index 147257dc3d5d..45f317e1b0d8 100644 --- a/pkgs/applications/version-management/sourcehut/default.nix +++ b/pkgs/applications/version-management/sourcehut/default.nix @@ -45,6 +45,7 @@ let flask sqlalchemy ]; + disabledTests = [ "test_persist_selectable" ]; }); # flask-sqlalchemy 2.x requires flask 2.x @@ -72,6 +73,7 @@ let hash = "sha256-83doVvfdpymlAB0EbfrHmuoKE5B2LJbFq+AY2xGpnl4="; }) ]; + nativeCheckInputs = oldAttrs.nativeCheckInputs or [] ++ [ self.pytest-xprocess ]; }); # sourcehut is not (yet) compatible with factory-boy 3.x From 205cfb661773948db8cc78d2554b116ccf694549 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 15:08:17 +0100 Subject: [PATCH 438/693] python313Packages.asn1: fix build --- pkgs/development/python-modules/asn1/default.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/asn1/default.nix b/pkgs/development/python-modules/asn1/default.nix index b3591e0610e9..d76bb41da69f 100644 --- a/pkgs/development/python-modules/asn1/default.nix +++ b/pkgs/development/python-modules/asn1/default.nix @@ -3,7 +3,6 @@ buildPythonPackage, pythonOlder, fetchFromGitHub, - future, pytestCheckHook, setuptools, }: @@ -24,15 +23,10 @@ buildPythonPackage rec { build-system = [ setuptools ]; - dependencies = [ future ]; + pythonRemoveDeps = [ "enum-compat" ]; nativeCheckInputs = [ pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.py \ - --replace "enum-compat" "" - ''; - pytestFlagsArray = [ "tests/test_asn1.py" ]; pythonImportsCheck = [ "asn1" ]; From 7e5fcf0250fee5ba0cfc625079151b3f8649adf7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 15:15:37 +0100 Subject: [PATCH 439/693] python313Packages.yeelight: fix build --- .../python-modules/yeelight/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/yeelight/default.nix b/pkgs/development/python-modules/yeelight/default.nix index cf9e8da676ec..ba9faf0217b2 100644 --- a/pkgs/development/python-modules/yeelight/default.nix +++ b/pkgs/development/python-modules/yeelight/default.nix @@ -3,8 +3,8 @@ async-timeout, buildPythonPackage, fetchFromGitLab, + fetchpatch2, flit-core, - future, ifaddr, pytestCheckHook, pythonOlder, @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "yeelight"; version = "0.7.14"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -24,12 +24,17 @@ buildPythonPackage rec { hash = "sha256-BnMvRs95rsmoBa/5bp0zShgU1BBHtZzyADjbH0y1d/o="; }; - nativeBuildInputs = [ flit-core ]; + patches = [ + (fetchpatch2 { + name = "remove-future-dependency.patch"; + url = "https://gitlab.com/stavros/python-yeelight/-/commit/654f4f34e0246e65d8db02a107e2ab706de4806d.patch"; + hash = "sha256-olKpYCzIq/E7zup40Kwzwgk5iOtCubLHo9uQDOhaByQ="; + }) + ]; - propagatedBuildInputs = [ - future - ifaddr - ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; + build-system = [ flit-core ]; + + dependencies = [ ifaddr ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ pytestCheckHook ]; From 63fcfc42f9bece68d881a5820d7df0b2bf9ac488 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 15:28:18 +0100 Subject: [PATCH 440/693] python313Packages.commonmark: revamp and fix build --- .../python-modules/commonmark/default.nix | 46 +++++++++++-------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/commonmark/default.nix b/pkgs/development/python-modules/commonmark/default.nix index 2d7b83782730..6ac907f78ab5 100644 --- a/pkgs/development/python-modules/commonmark/default.nix +++ b/pkgs/development/python-modules/commonmark/default.nix @@ -1,36 +1,46 @@ { lib, buildPythonPackage, - fetchPypi, - isPy3k, - glibcLocales, - future, + fetchFromGitHub, + setuptools, + hypothesis, + python, }: buildPythonPackage rec { pname = "commonmark"; version = "0.9.1"; - format = "setuptools"; + pyproject = true; - src = fetchPypi { - inherit pname version; - sha256 = "452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60"; + src = fetchFromGitHub { + owner = "readthedocs"; + repo = "commonmark.py"; + rev = "refs/tags/${version}"; + hash = "sha256-Ui/G/VLdjWcm7YmVjZ5Q8h0DEEFqdDByre29g3zHUq4="; }; - preCheck = '' - export LC_ALL="en_US.UTF-8" + build-system = [ setuptools ]; + + nativeCheckInputs = [ hypothesis ]; + + checkPhase = '' + runHook preCheck + + ${python.interpreter} commonmark/tests/run_spec_tests.py + ${python.interpreter} commonmark/tests/unit_tests.py + + export PATH=$out/bin:$PATH + cmark commonmark/tests/test.md + cmark commonmark/tests/test.md -a + cmark commonmark/tests/test.md -aj + + runHook postCheck ''; - # UnicodeEncodeError on Python 2 - doCheck = isPy3k; - - nativeCheckInputs = [ glibcLocales ]; - propagatedBuildInputs = [ future ]; - meta = with lib; { - description = "Python parser for the CommonMark Markdown spec"; + description = "Python CommonMark parser "; mainProgram = "cmark"; - homepage = "https://github.com/rolandshoemaker/CommonMark-py"; + homepage = "https://github.com/readthedocs/commonmark.py"; license = licenses.bsd3; }; } From b162e84a5a39fa8a662246c415f673e328b7bb86 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 16:05:24 +0100 Subject: [PATCH 441/693] python313Packages.tree-sitter: 0.23.0 -> 0.23.2 https://github.com/tree-sitter/py-tree-sitter/releases/tag/v0.23.1 https://github.com/tree-sitter/py-tree-sitter/releases/tag/v0.23.2 --- pkgs/development/python-modules/tree-sitter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tree-sitter/default.nix b/pkgs/development/python-modules/tree-sitter/default.nix index 92a9c1f00a71..4ee037d37f84 100644 --- a/pkgs/development/python-modules/tree-sitter/default.nix +++ b/pkgs/development/python-modules/tree-sitter/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "tree-sitter"; - version = "0.23.0"; + version = "0.23.2"; pyproject = true; disabled = pythonOlder "3.7"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "tree-sitter"; repo = "py-tree-sitter"; rev = "refs/tags/v${version}"; - hash = "sha256-OMCiHX1ZK9MknUcscEMg1Oie0qFpPQ9lMn8m/D0QF7g="; + hash = "sha256-RWnt1g7WN5CDbgWY5YSTuPFZomoxtRgDaSLkG9y2B6w="; fetchSubmodules = true; }; From 8fd58ac81c6179153310bcbd1991d78bedfe403a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 16:27:19 +0100 Subject: [PATCH 442/693] python313Packages.flask-sqlalchemy: disable tests temporarily They regressed due to Python 3.13 changes, but that doesn't mean that the library itself isn't working. --- pkgs/development/python-modules/flask-sqlalchemy/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/flask-sqlalchemy/default.nix b/pkgs/development/python-modules/flask-sqlalchemy/default.nix index e48856056afb..8fe842c2b6a0 100644 --- a/pkgs/development/python-modules/flask-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/flask-sqlalchemy/default.nix @@ -36,6 +36,8 @@ buildPythonPackage rec { pytestCheckHook ]; + doCheck = pythonOlder "3.13"; # https://github.com/pallets-eco/flask-sqlalchemy/issues/1379 + disabledTests = [ # flaky "test_session_scoping_changing" From 87ba457fb6d11564fe99aa90c2651e855441814b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 15 Nov 2024 16:40:07 +0100 Subject: [PATCH 443/693] python313Packages.unify: disable --- pkgs/development/python-modules/unify/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/unify/default.nix b/pkgs/development/python-modules/unify/default.nix index 9f6f7d929c6e..061129e80725 100644 --- a/pkgs/development/python-modules/unify/default.nix +++ b/pkgs/development/python-modules/unify/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, pythonOlder, setuptools, pytestCheckHook, @@ -13,7 +14,8 @@ buildPythonPackage rec { version = "0.5"; pyproject = true; - disabled = pythonOlder "3.9"; + # lib2to3 usage and unmaintained since 2019 + disabled = pythonOlder "3.9" || pythonAtLeast "3.13"; src = fetchFromGitHub { owner = "myint"; From c51d53002c6dde0811364761b92f316c4c2a654e Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 18 Nov 2024 19:35:44 +0000 Subject: [PATCH 444/693] llvmPackages_{12,13,14,15}.compiler-rt: fix `preConfigure` Fixes: dde9606751a89abc4cd05014b2ecc25e20848f6d --- .../compilers/llvm/common/compiler-rt/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index 2e7bc41e0c6e..2c9c8d78b7da 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -54,13 +54,9 @@ let '' + '' cp -r ${monorepoSrc}/${baseName} "$out" '') else src; - - preConfigure = lib.optionalString (!haveLibc) '' - cmakeFlagsArray+=(-DCMAKE_C_FLAGS="-nodefaultlibs -ffreestanding") - ''; in -stdenv.mkDerivation ({ +stdenv.mkDerivation { inherit pname version patches; src = src'; @@ -183,7 +179,9 @@ stdenv.mkDerivation ({ --replace-fail 'find_program(CODESIGN codesign)' "" ''; - preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' + preConfigure = lib.optionalString (lib.versionOlder release_version "16" && !haveLibc) '' + cmakeFlagsArray+=(-DCMAKE_C_FLAGS="-nodefaultlibs -ffreestanding") + '' + lib.optionalString stdenv.hostPlatform.isDarwin '' cmakeFlagsArray+=( "-DDARWIN_macosx_CACHED_SYSROOT=$SDKROOT" "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=$(jq -r .Version "$SDKROOT/SDKSettings.json")" @@ -232,4 +230,4 @@ stdenv.mkDerivation ({ # `enable_execute_stack.c` Also doesn't sound like something WASM would support. || (stdenv.hostPlatform.isWasm && haveLibc); }; -} // (if lib.versionOlder release_version "16" then { inherit preConfigure; } else {})) +} From 66a80e64fc63f16c782f0916c56d38bac6373f35 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Mon, 30 Sep 2019 02:38:48 +0300 Subject: [PATCH 445/693] djvulibre: add {lib, man} outputs --- pkgs/by-name/dj/djvulibre/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/dj/djvulibre/package.nix b/pkgs/by-name/dj/djvulibre/package.nix index 584ede1831fb..5884c5ebecf9 100644 --- a/pkgs/by-name/dj/djvulibre/package.nix +++ b/pkgs/by-name/dj/djvulibre/package.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { sha256 = "1p1fiygq9ny8aimwc4vxwjc6k9ykgdsq1sq06slfbzalfvm0kl7w"; }; - outputs = [ "bin" "dev" "out" ]; + outputs = [ "bin" "out" "dev" "lib" "man" ]; strictDeps = true; nativeBuildInputs = [ From 82a00b78e4e5b17f163cb9d4587ddd0b12504820 Mon Sep 17 00:00:00 2001 From: midchildan Date: Tue, 19 Nov 2024 10:50:00 +0900 Subject: [PATCH 446/693] xcbuild: find system toolchain on macOS Sonoma and earlier --- .../Use-system-toolchain-for-usr-bin.patch | 52 +++++++++++-------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch b/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch index 9e8314235709..f1b5a38fbcf0 100644 --- a/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch +++ b/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch @@ -1,8 +1,7 @@ -diff --git a/Libraries/xcsdk/Tools/xcrun.cpp b/Libraries/xcsdk/Tools/xcrun.cpp -index 9d6d4576d7..73aabc3d42 100644 ---- a/Libraries/xcsdk/Tools/xcrun.cpp -+++ b/Libraries/xcsdk/Tools/xcrun.cpp -@@ -23,10 +23,14 @@ +diff -Naur a/Libraries/xcsdk/Tools/xcrun.cpp b/Libraries/xcsdk/Tools/xcrun.cpp +--- a/Libraries/xcsdk/Tools/xcrun.cpp 1970-01-01 09:00:01 ++++ b/Libraries/xcsdk/Tools/xcrun.cpp 2024-11-19 01:44:38 +@@ -23,10 +23,19 @@ #include #include @@ -12,12 +11,17 @@ index 9d6d4576d7..73aabc3d42 100644 using libutil::Filesystem; using libutil::FSUtil; -+#define SYSTEM_DEVELOPER_DIR "/private/var/select/developer_dir" ++namespace { ++ const std::vector kSystemDeveloperDirs = { ++ "/private/var/select/developer_dir", ++ "/private/var/db/xcode_select_link" ++ }; ++} + class Options { private: ext::optional _help; -@@ -398,6 +402,8 @@ +@@ -398,6 +407,8 @@ fprintf(stderr, "\n"); } @@ -26,7 +30,7 @@ index 9d6d4576d7..73aabc3d42 100644 /* * Collect search paths for the tool. * Can be in toolchains, target (if one is provided), developer root, -@@ -408,10 +414,42 @@ +@@ -408,10 +419,46 @@ executablePaths.insert(executablePaths.end(), defaultExecutablePaths.begin(), defaultExecutablePaths.end()); /* @@ -49,16 +53,20 @@ index 9d6d4576d7..73aabc3d42 100644 + * Fixes https://github.com/NixOS/nixpkgs/issues/353875. + */ + std::vector toolchainPaths = { }; -+ if (executablePaths.size() < originalSize && filesystem->exists(SYSTEM_DEVELOPER_DIR)) { -+ auto linkTarget = filesystem->readSymbolicLinkCanonical(SYSTEM_DEVELOPER_DIR); -+ if (linkTarget) { -+ auto usrBinPath = FSUtil::NormalizePath(*linkTarget + "/usr/bin"); -+ if (filesystem->exists(usrBinPath)) { -+ toolchainPaths.push_back(usrBinPath); -+ } -+ auto toolchainUsrBinPath = FSUtil::NormalizePath(*linkTarget + "/Toolchains/XcodeDefault.xctoolchain/usr/bin"); -+ if (filesystem->exists(toolchainUsrBinPath)) { -+ toolchainPaths.push_back(toolchainUsrBinPath); ++ if (executablePaths.size() < originalSize) { ++ for (const auto& dir : kSystemDeveloperDirs) { ++ if (filesystem->exists(dir)) { ++ auto linkTarget = filesystem->readSymbolicLinkCanonical(dir); ++ if (linkTarget) { ++ auto usrBinPath = FSUtil::NormalizePath(*linkTarget + "/usr/bin"); ++ if (filesystem->exists(usrBinPath)) { ++ toolchainPaths.push_back(usrBinPath); ++ } ++ auto toolchainUsrBinPath = FSUtil::NormalizePath(*linkTarget + "/Toolchains/XcodeDefault.xctoolchain/usr/bin"); ++ if (filesystem->exists(toolchainUsrBinPath)) { ++ toolchainPaths.push_back(toolchainUsrBinPath); ++ } ++ } + } + } + } @@ -69,12 +77,12 @@ index 9d6d4576d7..73aabc3d42 100644 fprintf(stderr, "error: tool '%s' not found\n", options.tool()->c_str()); return 1; } -@@ -428,8 +466,6 @@ +@@ -427,8 +474,6 @@ + return 0; } else { /* Run is the default. */ - -- std::unordered_map environment = processContext->environmentVariables(); - +- std::unordered_map environment = processContext->environmentVariables(); + if (target != nullptr) { /* - * Update effective environment to include the target path. From 505530e3de15f4b3599416b15cb08a12fe7671ae Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 19 Nov 2024 11:39:30 +0000 Subject: [PATCH 447/693] libarchive: add patch to fix `.pc` file --- .../li/libarchive/fix-pkg-config-iconv.patch | 18 ++++++++++++++++++ pkgs/by-name/li/libarchive/package.nix | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/by-name/li/libarchive/fix-pkg-config-iconv.patch diff --git a/pkgs/by-name/li/libarchive/fix-pkg-config-iconv.patch b/pkgs/by-name/li/libarchive/fix-pkg-config-iconv.patch new file mode 100644 index 000000000000..209a293b460b --- /dev/null +++ b/pkgs/by-name/li/libarchive/fix-pkg-config-iconv.patch @@ -0,0 +1,18 @@ +diff --git a/configure.ac b/configure.ac +index 0fdfaf06a5..d08611848c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -453,13 +453,8 @@ + AC_CHECK_HEADERS([iconv.h],[],[],[#include ]) + if test "x$am_cv_func_iconv" = "xyes"; then + AC_CHECK_HEADERS([localcharset.h]) +- am_save_LIBS="$LIBS" + LIBS="${LIBS} ${LIBICONV}" +- if test -n "$LIBICONV"; then +- LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv" +- fi + AC_CHECK_FUNCS([locale_charset]) +- LIBS="${am_save_LIBS}" + if test "x$ac_cv_func_locale_charset" != "xyes"; then + # If locale_charset() is not in libiconv, we have to find libcharset. + AC_CHECK_LIB(charset,locale_charset) diff --git a/pkgs/by-name/li/libarchive/package.nix b/pkgs/by-name/li/libarchive/package.nix index 8703c1a4faba..12f8c8292646 100644 --- a/pkgs/by-name/li/libarchive/package.nix +++ b/pkgs/by-name/li/libarchive/package.nix @@ -40,6 +40,22 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-maV2+Whi4aDG1VLAYpOTxluO9I0zNiZ8fA3w7epGlDg="; }; + patches = [ + # The `.pc` file lists `iconv` in `Requires.private` when `-liconv` + # is required, even though common platforms in that situation like + # Darwin don’t ship a `.pc` file for their `libiconv`. This isn’t + # upstreamed as there are a handful of closed or regressed PRs + # trying to fix it already and it seems upstream added this to deal + # with some non‐portable MSYS2 thing or something. + # + # See: + # + # * + # * + # * + ./fix-pkg-config-iconv.patch + ]; + outputs = [ "out" "lib" "dev" ]; postPatch = let From 36a7b78f7c30b1ef522bcb4899092d57c967055e Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 19 Nov 2024 14:20:58 +0000 Subject: [PATCH 448/693] Revert "nixStatic: mark as broken on darwin (#357185)" This is no longer necessary now that `libarchive` has been fixed. This reverts commit 0705964c881cea8896474610188905ba41b59b08. --- pkgs/tools/package-management/nix/common.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/tools/package-management/nix/common.nix b/pkgs/tools/package-management/nix/common.nix index 26192b4ea011..62b8e2dbcf3a 100644 --- a/pkgs/tools/package-management/nix/common.nix +++ b/pkgs/tools/package-management/nix/common.nix @@ -327,8 +327,6 @@ self = stdenv.mkDerivation { license = licenses.lgpl21Plus; inherit maintainers; platforms = platforms.unix; - # Requires refactorings in nixpkgs: https://github.com/NixOS/nixpkgs/pull/356983 - broken = stdenv.hostPlatform.isDarwin && enableStatic; outputsToInstall = [ "out" ] ++ optional enableDocumentation "man"; mainProgram = "nix"; knownVulnerabilities = lib.optional (!builtins.elem (lib.versions.majorMinor version) unaffectedByFodSandboxEscape && !atLeast221) "CVE-2024-27297"; From fdce27b86daa236d096c0c8e734911809e901a77 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 19 Nov 2024 14:44:48 +0000 Subject: [PATCH 449/693] libselinux: add upstream patch for SWIG 4.3.0 --- pkgs/by-name/li/libselinux/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libselinux/package.nix b/pkgs/by-name/li/libselinux/package.nix index e77c15e7c7ec..172b9959b704 100644 --- a/pkgs/by-name/li/libselinux/package.nix +++ b/pkgs/by-name/li/libselinux/package.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, buildPackages, pcre2, pkg-config, libsepol +{ lib, stdenv, fetchurl, fetchpatch, buildPackages, pcre2, pkg-config, libsepol , enablePython ? !stdenv.hostPlatform.isStatic , swig ? null, python3 ? null, python3Packages , fts @@ -42,6 +42,13 @@ stdenv.mkDerivation (rec { url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d"; sha256 = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU="; }) + + # libselinux: fix swig bindings for 4.3.0 + (fetchpatch { + url = "https://github.com/SELinuxProject/selinux/commit/8e0e718bae53fff30831b92cd784151d475a20da.patch"; + stripLen = 1; + hash = "sha256-8Nd6ketQ7/r5W0sRdheqyGWHJRZ1RfGC4ehTqnHau04="; + }) ]; nativeBuildInputs = [ pkg-config python3 ] ++ lib.optionals enablePython [ From 92086b19c63eed0789f83d997168943a1e10cb3b Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 19 Nov 2024 15:01:35 +0000 Subject: [PATCH 450/693] itk{,_5_2}: use SWIG 4.3.0 --- pkgs/development/libraries/itk/generic.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/pkgs/development/libraries/itk/generic.nix b/pkgs/development/libraries/itk/generic.nix index d4ece7d311ec..6fc32c0e4e20 100644 --- a/pkgs/development/libraries/itk/generic.nix +++ b/pkgs/development/libraries/itk/generic.nix @@ -58,19 +58,6 @@ let rev = "bb896868fc6480835495d0da4356d5db009592a6"; hash = "sha256-MfaIA0xxA/pzUBSwnAevr17iR23Bo5iQO2cSyknS3o4="; }; - - # remove after next swig update: - swigUnstable = swig.overrideAttrs ({ - version = "4.2.1-unstable-2024-08-19"; - - src = fetchFromGitHub { - owner = "swig"; - repo = "swig"; - rev = "5ac5d90f970759fbe705fae551d0743a7c63c67e"; - hash = "sha256-32EFLHpP4l04nqrc8dt4Qsr8deTBqLt8lUlhnNnaIGU="; - }; - - }); in stdenv.mkDerivation { @@ -137,7 +124,7 @@ stdenv.mkDerivation { ] ++ lib.optionals enablePython [ castxml - swigUnstable + swig which ]; From 0d933223a8b61265c6b3d05d90b2a3c523b58f1c Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 17 Nov 2024 12:28:53 +0000 Subject: [PATCH 451/693] gcc14: 14.2.0 -> 14-20241116 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stable release has too many AArch64 issues, but they seem to have been fixed upstream; Arch is shipping a Git snapshot. The next stable release should be out by the time 25.05 is finishing up, so this should be okay as a temporary solution. This is the GCC 14-20241116 snapshot. We use that identifier as our package version, diverging from our usual unstable version convention, because it identifies itself as “gcc (GCC) 14.2.1 20241116” and comes in `gcc-14-20241116.tar.xz`; 20241116 is therefore a useful version identifier to use verbatim, and 14.2.0-unstable-2024-11-16 would potentially be confusing for a version that calls itself 14.2.1. The next stable release from the GCC 14 branch will be 14.3.0, so there should be no ambiguity here. Getting this version is a little complicated; we need the precompiled `flex(1)` output that these Git snapshots don’t include. Thankfully, the source file hasn’t changed since 14.2.0, so we can simply download 14.2.0 too and extract the precompiled file. A little merging finesse is required for the `aarch64-darwin` patch, which we also upgrade. --- pkgs/development/compilers/gcc/default.nix | 31 ++- .../fixup-gcc-14-darwin-aarch64-support.patch | 181 ++++++++++++++++++ .../patches/14/libgcc-darwin-detection.patch | 19 +- .../compilers/gcc/patches/default.nix | 24 ++- pkgs/development/compilers/gcc/versions.nix | 4 +- 5 files changed, 240 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/compilers/gcc/patches/14/fixup-gcc-14-darwin-aarch64-support.patch diff --git a/pkgs/development/compilers/gcc/default.nix b/pkgs/development/compilers/gcc/default.nix index 40a0484d5c50..58538e85dc3f 100644 --- a/pkgs/development/compilers/gcc/default.nix +++ b/pkgs/development/compilers/gcc/default.nix @@ -184,7 +184,13 @@ pipe ((callFile ./common/builder.nix {}) ({ inherit version; src = fetchurl { - url = "mirror://gcc/releases/gcc-${version}/gcc-${version}.tar.xz"; + url = "mirror://gcc/${ + # TODO: Remove this before 25.05. + if version == "14-20241116" then + "snapshots/" + else + "releases/gcc-" + }${version}/gcc-${version}.tar.xz"; ${if is10 || is11 || is13 then "hash" else "sha256"} = gccVersions.srcHashForVersion version; }; @@ -206,6 +212,29 @@ pipe ((callFile ./common/builder.nix {}) ({ patchShebangs $configureScript done '' + # Copy the precompiled `gcc/gengtype-lex.cc` from the 14.2.0 tarball. + # Since the `gcc/gengtype-lex.l` file didn’t change between 14.2.0 + # and 14-2024116, this is safe. If it changes and we update the + # snapshot, we might need to vendor the compiled output in Nixpkgs. + # + # TODO: Remove this before 25.05. + + optionalString (version == "14-20241116") '' + cksum -c < +* + +and then taking the diff between the result and the upstream GCC +commit, and excerpting only the files that have conflicts when +naively applying the branch’s diff to the snapshot. (This is +more files than the two that actually needed manual merge work – +`gcc/config/aarch64/aarch64-tune.md` and `libgcc/config.host` – +because `patch(1)` can’t do a three‐way merge using ancestor +information.) + +diff --git a/gcc/config/aarch64/aarch64-tune.md b/gcc/config/aarch64/aarch64-tune.md +index 35b27ddb88..8ce2a93168 100644 +--- a/gcc/config/aarch64/aarch64-tune.md ++++ b/gcc/config/aarch64/aarch64-tune.md +@@ -1,5 +1,5 @@ + ;; -*- buffer-read-only: t -*- + ;; Generated automatically by gentune.sh from aarch64-cores.def + (define_attr "tune" +- "cortexa34,cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88p1,thunderxt88,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,ampere1,ampere1a,ampere1b,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,cortexa76ae,cortexa77,cortexa78,cortexa78ae,cortexa78c,cortexa65,cortexa65ae,cortexx1,cortexx1c,neoversen1,ares,neoversee1,octeontx2,octeontx2t98,octeontx2t96,octeontx2t93,octeontx2f95,octeontx2f95n,octeontx2f95mm,a64fx,fujitsu_monaka,tsv110,thunderx3t110,neoversev1,zeus,neoverse512tvb,saphira,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55,cortexr82,cortexa510,cortexa520,cortexa710,cortexa715,cortexa720,cortexa725,cortexx2,cortexx3,cortexx4,cortexx925,neoversen2,cobalt100,neoversen3,neoversev2,grace,neoversev3,neoversev3ae,demeter,generic,generic_armv8_a,generic_armv9_a" ++ "cortexa34,cortexa35,cortexa53,cortexa57,cortexa72,cortexa73,thunderx,thunderxt88p1,thunderxt88,octeontx,octeontxt81,octeontxt83,thunderxt81,thunderxt83,ampere1,ampere1a,ampere1b,emag,xgene1,falkor,qdf24xx,exynosm1,phecda,thunderx2t99p1,vulcan,thunderx2t99,cortexa55,cortexa75,cortexa76,cortexa76ae,cortexa77,cortexa78,cortexa78ae,cortexa78c,cortexa65,cortexa65ae,cortexx1,cortexx1c,neoversen1,ares,neoversee1,octeontx2,octeontx2t98,octeontx2t96,octeontx2t93,octeontx2f95,octeontx2f95n,octeontx2f95mm,a64fx,fujitsu_monaka,tsv110,thunderx3t110,neoversev1,zeus,neoverse512tvb,saphira,cortexa57cortexa53,cortexa72cortexa53,cortexa73cortexa35,cortexa73cortexa53,cortexa75cortexa55,cortexa76cortexa55,cortexr82,applea12,applem1,applem2,applem3,cortexa510,cortexa520,cortexa710,cortexa715,cortexa720,cortexa725,cortexx2,cortexx3,cortexx4,cortexx925,neoversen2,cobalt100,neoversen3,neoversev2,grace,neoversev3,neoversev3ae,demeter,generic,generic_armv8_a,generic_armv9_a" + (const (symbol_ref "((enum attr_tune) aarch64_tune)"))) +diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h +index 0d8886c026..5370511bec 100644 +--- a/gcc/config/darwin.h ++++ b/gcc/config/darwin.h +@@ -42,6 +42,7 @@ + + #define DARWIN_X86 0 + #define DARWIN_PPC 0 ++#define DARWIN_ARM64 0 + + #define OBJECT_FORMAT_MACHO 1 + +@@ -373,7 +374,8 @@ + */ + + #define DARWIN_NOCOMPACT_UNWIND \ +-" %:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) " ++"%{!fuse-ld=lld: \ ++ %:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind)}" + + /* In Darwin linker specs we can put -lcrt0.o and ld will search the library + path for crt0.o or -lcrtx.a and it will search for libcrtx.a. As for +@@ -397,7 +399,8 @@ + LINK_PLUGIN_SPEC \ + "%{flto*:%&2 + ;; + esac +@@ -277,7 +280,7 @@ + if test "x$enable_darwin_at_rpath" = "xyes"; then + tmake_file="$tmake_file t-darwin-rpath " + fi +- extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a" ++ extra_parts="crt3.o crttms.o crttme.o libemutls_w.a " + ;; + *-*-dragonfly*) + tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip" +@@ -421,6 +424,15 @@ + tmake_file="${tmake_file} t-dfprules" + md_unwind_header=aarch64/aarch64-unwind.h + ;; ++aarch64*-*-darwin*) ++ extra_parts="$extra_parts crtfastmath.o libheapt_w.a" ++ tmake_file="${tmake_file} ${cpu_type}/t-aarch64" ++ tmake_file="${tmake_file} ${cpu_type}/t-lse" ++ tmake_file="${tmake_file} t-crtfm t-dfprules" ++ tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp" ++ tmake_file="${tmake_file} ${cpu_type}/t-heap-trampoline" ++ md_unwind_header=aarch64/aarch64-unwind.h ++ ;; + aarch64*-*-freebsd*) + extra_parts="$extra_parts crtfastmath.o" + tmake_file="${tmake_file} ${cpu_type}/t-aarch64" +@@ -728,14 +740,14 @@ + tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi" + tm_file="$tm_file i386/darwin-lib.h" + extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o" +- extra_parts="$extra_parts crtfastmath.o libheapt_w.a" ++ extra_parts="$extra_parts crtfastmath.o libd10-uwfef.a libheapt_w.a" + tmake_file="${tmake_file} i386/t-heap-trampoline" + ;; + x86_64-*-darwin*) + tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi" + tm_file="$tm_file i386/darwin-lib.h" + extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o" +- extra_parts="$extra_parts crtfastmath.o libheapt_w.a" ++ extra_parts="$extra_parts crtfastmath.o libd10-uwfef.a libheapt_w.a" + tmake_file="${tmake_file} i386/t-heap-trampoline" + ;; + i[34567]86-*-elfiamcu) +@@ -1218,12 +1230,14 @@ + # We build the darwin10 EH shim for Rosetta (running on x86 machines). + tm_file="$tm_file i386/darwin-lib.h" + tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble" ++ extra_parts="$extra_parts libd10-uwfef.a " + extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o" + ;; + powerpc64-*-darwin*) + # We build the darwin10 EH shim for Rosetta (running on x86 machines). + tm_file="$tm_file i386/darwin-lib.h" + tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble" ++ extra_parts="$extra_parts libd10-uwfef.a " + extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o" + ;; + powerpc*-*-freebsd*) diff --git a/pkgs/development/compilers/gcc/patches/14/libgcc-darwin-detection.patch b/pkgs/development/compilers/gcc/patches/14/libgcc-darwin-detection.patch index 27d455aa58b6..c08706e8097f 100644 --- a/pkgs/development/compilers/gcc/patches/14/libgcc-darwin-detection.patch +++ b/pkgs/development/compilers/gcc/patches/14/libgcc-darwin-detection.patch @@ -1,12 +1,13 @@ -diff -u a/libgcc/config.host b/libgcc/config.host ---- a/libgcc/config.host 2023-11-05 11:01:55.778638446 -0500 -+++ b/libgcc/config.host 2023-11-05 11:07:29.405103979 -0500 -@@ -227,7 +227,7 @@ +diff --git a/libgcc/config.host b/libgcc/config.host +index 7332903704..27a8b5bedb 100644 +--- a/libgcc/config.host ++++ b/libgcc/config.host +@@ -236,7 +236,7 @@ + esac tmake_file="$tmake_file t-slibgcc-darwin" - # newer toolsets produce warnings when building for unsupported versions. case ${host} in -- *-*-darwin1[89]* | *-*-darwin2* ) -+ *-*-darwin1[89]* | *-*-darwin2* | *-*-darwin) - tmake_file="t-darwin-min-8 $tmake_file" +- *-*-darwin2*) ++ *-*-darwin2* | *-*-darwin) + tmake_file="t-darwin-min-11 $tmake_file" ;; - *-*-darwin9* | *-*-darwin1[0-7]*) + *-*-darwin1[89]*) diff --git a/pkgs/development/compilers/gcc/patches/default.nix b/pkgs/development/compilers/gcc/patches/default.nix index c25771a93723..4e2518baff9e 100644 --- a/pkgs/development/compilers/gcc/patches/default.nix +++ b/pkgs/development/compilers/gcc/patches/default.nix @@ -138,13 +138,23 @@ in # We only apply this patch when building a native toolchain for aarch64-darwin, as it breaks building # a foreign one: https://github.com/iains/gcc-12-branch/issues/18 ++ optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 && buildPlatform == hostPlatform && hostPlatform == targetPlatform) ({ - "14" = [ (fetchpatch { - # There are no upstream release tags in https://github.com/iains/gcc-14-branch. - # 04696df09633baf97cdbbdd6e9929b9d472161d3 is the commit from https://github.com/gcc-mirror/gcc/releases/tag/releases%2Fgcc-14.2.0 - name = "gcc-14-darwin-aarch64-support.patch"; - url = "https://github.com/iains/gcc-14-branch/compare/04696df09633baf97cdbbdd6e9929b9d472161d3..gcc-14.2-darwin-r0.diff"; - hash = "sha256-GEUz7KdGzd2WJ0gjX3Uddq2y9bWKdZpT3E9uZ09qLs4="; - }) ]; + "14" = [ + (fetchpatch { + name = "gcc-14-darwin-aarch64-support.patch"; + url = "https://raw.githubusercontent.com/Homebrew/formula-patches/41fdb9d5ec21fc8165cd4bee89bd23d0c90572ee/gcc/gcc-14.2.0-r2.diff"; + # The patch is based on 14.2.0, but we use a GCC snapshot. We + # exclude the files with conflicts and apply our own merged patch + # to avoid vendoring the entire huge patch in‐tree. + excludes = [ + "gcc/config/aarch64/aarch64-tune.md" + "gcc/config/darwin.h" + "libgcc/config.host" + "libgcc/config/t-darwin-min-11" + ]; + hash = "sha256-E4zEKm4tMhovOJKc1/FXZCLQvA+Jt5SC0O2C6SEvZjI="; + }) + ./14/fixup-gcc-14-darwin-aarch64-support.patch + ]; "13" = [ (fetchpatch { name = "gcc-13-darwin-aarch64-support.patch"; url = "https://raw.githubusercontent.com/Homebrew/formula-patches/bda0faddfbfb392e7b9c9101056b2c5ab2500508/gcc/gcc-13.3.0.diff"; diff --git a/pkgs/development/compilers/gcc/versions.nix b/pkgs/development/compilers/gcc/versions.nix index 7aa8b558f358..a75f2e2a3d4b 100644 --- a/pkgs/development/compilers/gcc/versions.nix +++ b/pkgs/development/compilers/gcc/versions.nix @@ -1,6 +1,6 @@ let majorMinorToVersionMap = { - "14" = "14.2.0"; + "14" = "14-20241116"; "13" = "13.3.0"; "12" = "12.4.0"; "11" = "11.5.0"; @@ -16,7 +16,7 @@ let # TODO(amjoseph): convert older hashes to SRI form srcHashForVersion = version: { - "14.2.0" = "sha256-p7Obxpy/niWCbFpgqyZHcAH3wI2FzsBLwOKcq+1vPMk="; + "14-20241116" = "sha256-aXSkle8Mzj/Q15cHOu0D9Os2PWQwMIboUZULhnsRSUo="; "13.3.0" = "sha256-CEXpYhyVQ6E/SE6UWEpJ/8ASmXDpkUYkI1/B0GGgwIM="; "12.4.0" = "sha256-cE9lJgTMvMsUvavzR4yVEciXiLEss7v/3tNzQZFqkXU="; "11.5.0" = "sha256-puIYaOrVRc+H8MAfhCduS1KB1nIJhZHByJYkHwk2NHg="; From 2113dc2020181400045527fac221a30d42100a64 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 17 Nov 2024 12:24:54 +0000 Subject: [PATCH 452/693] gcc: gcc13 -> gcc14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Here we go again… --- nixos/doc/manual/release-notes/rl-2505.section.md | 3 +++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index 23e252470e44..ec003bf52c73 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -10,6 +10,9 @@ Users on old macOS versions should consider upgrading to a supported version (potentially using [OpenCore Legacy Patcher](https://dortania.github.io/OpenCore-Legacy-Patcher/) for old hardware) or installing NixOS. If neither of those options are viable and you require new versions of software, [MacPorts](https://www.macports.org/) supports versions back to Mac OS X Snow Leopard 10.6. +- GCC has been updated from GCC 13 to GCC 14. + This introduces some backwards‐incompatible changes; see the [upstream porting guide](https://gcc.gnu.org/gcc-14/porting_to.html) for details. + ## New Modules {#sec-release-25.05-new-modules} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 42c47600e2f2..7003d9ed02f2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6155,7 +6155,7 @@ with pkgs; gerbilPackages-unstable = pkgs.gerbil-support.gerbilPackages-unstable; # NB: don't recurseIntoAttrs for (unstable!) libraries glow-lang = pkgs.gerbilPackages-unstable.glow-lang; - default-gcc-version = 13; + default-gcc-version = 14; gcc = pkgs.${"gcc${toString default-gcc-version}"}; gccFun = callPackage ../development/compilers/gcc; gcc-unwrapped = gcc.cc; From 4c81eb765194611cc142b392a53b2f4cf58445e7 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 19 Nov 2024 15:37:19 +0000 Subject: [PATCH 453/693] lib/systems: use a shell script for native `emulator` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids pulling in all of `execline`’s closure. Co-authored-by: sternenseemann --- lib/systems/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/systems/default.nix b/lib/systems/default.nix index a6ceef2cc3a1..bc6ea7dc8f14 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -283,7 +283,7 @@ let # to an emulator program. That is, if an emulator requires additional # arguments, a wrapper should be used. if pkgs.stdenv.hostPlatform.canExecute final - then "${pkgs.execline}/bin/exec" + then pkgs.writeShellScript "exec" ''exec "$@"'' else if final.isWindows then "${wine}/bin/wine${optionalString (final.parsed.cpu.bits == 64) "64"}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux && final.qemuArch != null From 302bcdf85da7ecf4c8174895e8e2f60227a9de84 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 19 Nov 2024 15:40:38 +0000 Subject: [PATCH 454/693] Revert "tests.cc-wrapper.default: reduce rebuild amount from `429` to `319`" Now that we use a trivial shell script, this only adds two trivial builds to the closure. This reverts commit 5f2d5d77da18a89fc1378defa4c2e066a8180bab. --- pkgs/test/cc-wrapper/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/test/cc-wrapper/default.nix b/pkgs/test/cc-wrapper/default.nix index 9f477ccdc3b3..22991e0dc07d 100644 --- a/pkgs/test/cc-wrapper/default.nix +++ b/pkgs/test/cc-wrapper/default.nix @@ -8,7 +8,7 @@ let || (stdenv.cc.isGNU && stdenv.hostPlatform.isLinux) ); staticLibc = lib.optionalString (stdenv.hostPlatform.libc == "glibc") "-L ${glibc.static}/lib"; - emulator = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) (stdenv.hostPlatform.emulator buildPackages); + emulator = stdenv.hostPlatform.emulator buildPackages; isCxx = stdenv.cc.libcxx != null; libcxxStdenvSuffix = lib.optionalString isCxx "-libcxx"; CC = "PATH= ${lib.getExe' stdenv.cc "${stdenv.cc.targetPrefix}cc"}"; From 94a4343fe4dfb353b17f36992233d55049d65e9a Mon Sep 17 00:00:00 2001 From: Arne Keller <2012gdwu+github@posteo.de> Date: Tue, 19 Nov 2024 16:46:20 +0100 Subject: [PATCH 455/693] python312Packages.eventlet: disable flaky test Fixes https://github.com/NixOS/nixpkgs/issues/356996 --- pkgs/development/python-modules/eventlet/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/eventlet/default.nix b/pkgs/development/python-modules/eventlet/default.nix index cf74130e4482..e3f3bb02ade2 100644 --- a/pkgs/development/python-modules/eventlet/default.nix +++ b/pkgs/development/python-modules/eventlet/default.nix @@ -68,6 +68,8 @@ buildPythonPackage rec { # Tests requires network access "test_getaddrinfo" "test_hosts_no_network" + # flaky test, depends on builder performance + "test_server_connection_timeout_exception" ]; pythonImportsCheck = [ "eventlet" ]; From 22f218c9b0aab17c94f9b5cc155dfd52f1fb1498 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 6 Jan 2024 18:12:52 +0100 Subject: [PATCH 456/693] gettext: 0.21.1 -> 0.22.4 --- pkgs/development/libraries/gettext/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gettext/default.nix b/pkgs/development/libraries/gettext/default.nix index 2a69b5702172..bd3070d82efe 100644 --- a/pkgs/development/libraries/gettext/default.nix +++ b/pkgs/development/libraries/gettext/default.nix @@ -8,11 +8,11 @@ stdenv.mkDerivation rec { pname = "gettext"; - version = "0.21.1"; + version = "0.22.4"; src = fetchurl { url = "mirror://gnu/gettext/${pname}-${version}.tar.gz"; - sha256 = "sha256-6MNlDh2M7odcTzVWQjgsHfgwWL1aEe6FVcDPJ21kbUU="; + hash = "sha256-weC7KkQnqQJDkMZizVMtZkxLNrj/RE7V5UsRX9t6Guo="; }; patches = [ ./absolute-paths.diff From 28f966f9e0a4fc025ffce96d37f00f5cf33f7a5d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 6 Jan 2024 21:03:44 +0100 Subject: [PATCH 457/693] stdenv: rebuild gettext with working iconv --- pkgs/stdenv/linux/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index b8111f34e30a..e5a225f15838 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -385,6 +385,9 @@ in configureFlags = (a.configureFlags or []) ++ [ "--with-native-system-header-dir=/include" "--with-build-sysroot=${lib.getDev self.stdenv.cc.libc}" + # Don't assume that `gettext` was built with iconv support, since we don't have + # our own `glibc` yet. + "--disable-nls" ]; # This is a separate phase because gcc assembles its phase scripts @@ -507,7 +510,7 @@ in overrides = self: super: rec { inherit (prevStage) ccWrapperStdenv - binutils coreutils gnugrep gettext + binutils coreutils gnugrep perl patchelf linuxHeaders gnum4 bison libidn2 libunistring libxcrypt; # We build a special copy of libgmp which doesn't use libstdc++, because # xgcc++'s libstdc++ references the bootstrap-files (which is what From 4631c517a387a767c2829af0f2ca7ee1bb161a1a Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 6 Oct 2024 18:33:01 +0100 Subject: [PATCH 458/693] wasilibc: 21 -> 22-unstable-2024-10-16 Contains fixes for LLVM 19. --- pkgs/development/libraries/wasilibc/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/wasilibc/default.nix b/pkgs/development/libraries/wasilibc/default.nix index c0714a78556a..82df25395f82 100644 --- a/pkgs/development/libraries/wasilibc/default.nix +++ b/pkgs/development/libraries/wasilibc/default.nix @@ -8,7 +8,7 @@ let pname = "wasilibc"; - version = "21"; + version = "22-unstable-2024-10-16"; in stdenv.mkDerivation { inherit pname version; @@ -16,8 +16,8 @@ stdenv.mkDerivation { src = buildPackages.fetchFromGitHub { owner = "WebAssembly"; repo = "wasi-libc"; - rev = "refs/tags/wasi-sdk-${version}"; - hash = "sha256-1LsMpO29y79twVrUsuM/JvC7hK8O6Yey4Ard/S3Mvvc="; + rev = "98897e29fcfc81e2b12e487e4154ac99188330c4"; + hash = "sha256-NFKhMJj/quvN3mR7lmxzA9w46KhX92iG0rQA9qDeS8I="; fetchSubmodules = true; }; From ec34370267929fe21c5ebb861a320bde811e4523 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 7 Nov 2024 01:27:51 +0000 Subject: [PATCH 459/693] rust: use LLVM 19 --- pkgs/development/compilers/rust/1_82.nix | 20 ++++++++++---------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/development/compilers/rust/1_82.nix b/pkgs/development/compilers/rust/1_82.nix index 9d1281352ee1..45734f893dca 100644 --- a/pkgs/development/compilers/rust/1_82.nix +++ b/pkgs/development/compilers/rust/1_82.nix @@ -24,8 +24,8 @@ pkgsTargetTarget, makeRustPlatform, wrapRustcWith, - llvmPackages_18, - llvm_18, + llvmPackages_19, + llvm_19, wrapCCWith, overrideCC, fetchpatch, @@ -33,7 +33,7 @@ let llvmSharedFor = pkgSet: - pkgSet.llvmPackages_18.libllvm.override ( + pkgSet.llvmPackages_19.libllvm.override ( { enableSharedLibraries = true; } @@ -41,7 +41,7 @@ let # Force LLVM to compile using clang + LLVM libs when targeting pkgsLLVM stdenv = pkgSet.stdenv.override { allowedRequisites = null; - cc = pkgSet.pkgsBuildHost.llvmPackages_18.clangUseLLVM; + cc = pkgSet.pkgsBuildHost.llvmPackages_19.clangUseLLVM; }; } ); @@ -68,14 +68,14 @@ import ./default.nix bootBintools ? if stdenv.targetPlatform.linker == "lld" then null else pkgs.bintools, }: let - llvmPackages = llvmPackages_18; + llvmPackages = llvmPackages_19; setStdenv = pkg: pkg.override { stdenv = stdenv.override { allowedRequisites = null; - cc = pkgsBuildHost.llvmPackages_18.clangUseLLVM; + cc = pkgsBuildHost.llvmPackages_19.clangUseLLVM; }; }; in @@ -88,7 +88,7 @@ import ./default.nix libcxx = llvmPackages.libcxx.override { stdenv = stdenv.override { allowedRequisites = null; - cc = pkgsBuildHost.llvmPackages_18.clangNoLibcxx; + cc = pkgsBuildHost.llvmPackages_19.clangNoLibcxx; hostPlatform = stdenv.hostPlatform // { useLLVM = !stdenv.hostPlatform.isDarwin; }; @@ -102,7 +102,7 @@ import ./default.nix } ) { } else - llvmPackages_18; + llvmPackages_19; # Note: the version MUST be the same version that we are building. Upstream # ensures that each released compiler can compile itself: @@ -139,8 +139,8 @@ import ./default.nix ( builtins.removeAttrs args [ - "llvmPackages_18" - "llvm_18" + "llvmPackages_19" + "llvm_19" "wrapCCWith" "overrideCC" "fetchpatch" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a374b8c86779..c4dbf3800cea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6912,7 +6912,7 @@ with pkgs; rust_1_82 = callPackage ../development/compilers/rust/1_82.nix { inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration; - llvm_18 = llvmPackages_18.libllvm; + llvm_19 = llvmPackages_19.libllvm; }; rust = rust_1_82; From 8c25817ccd14d84801c9eb073e33b713dbcbc277 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 31 Oct 2024 20:11:16 +0000 Subject: [PATCH 460/693] llvmPackages: llvmPackages_{16,18} -> llvmPackages_19 --- pkgs/top-level/all-packages.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dbb7879616fc..a374b8c86779 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6743,18 +6743,7 @@ with pkgs; libllvm = llvmPackages.libllvm; llvm-manpages = llvmPackages.llvm-manpages; - # Please remove all this logic when bumping to LLVM 19 and make this - # a simple alias. - llvmPackages = let - # This returns the minimum supported version for the platform. The - # assumption is that or any later version is good. - choose = platform: if platform.isDarwin then 16 else 18; - # We take the "max of the mins". Why? Since those are lower bounds of the - # supported version set, this is like intersecting those sets and then - # taking the min bound of that. - minSupported = toString (lib.trivial.max (choose stdenv.hostPlatform) (choose - stdenv.targetPlatform)); - in pkgs.${"llvmPackages_${minSupported}"}; + llvmPackages = llvmPackages_19; inherit (rec { llvmPackagesSet = recurseIntoAttrs (callPackages ../development/compilers/llvm { }); From 227075c83ec9bf3311f86da7c7c1b376c01fbccd Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 19 May 2024 17:36:09 -0400 Subject: [PATCH 461/693] gettext: implement clang 18 on Darwin workaround --- .../development/libraries/gettext/default.nix | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/gettext/default.nix b/pkgs/development/libraries/gettext/default.nix index bd3070d82efe..c5ca4a932fe6 100644 --- a/pkgs/development/libraries/gettext/default.nix +++ b/pkgs/development/libraries/gettext/default.nix @@ -47,10 +47,25 @@ stdenv.mkDerivation rec { ]; postPatch = '' - substituteAllInPlace gettext-runtime/src/gettext.sh.in - substituteInPlace gettext-tools/projects/KDE/trigger --replace "/bin/pwd" pwd - substituteInPlace gettext-tools/projects/GNOME/trigger --replace "/bin/pwd" pwd - substituteInPlace gettext-tools/src/project-id --replace "/bin/pwd" pwd + # Older versions of gettext come with a copy of `extern-inline.m4` that is not compatible with clang 18. + # When a project uses gettext + autoreconfPhase, autoreconfPhase will invoke `autopoint -f`, which will + # replace whatever (probably compatible) version of `extern-inline.m4` with one that probalby won’t work + # because `autopoint` will copy the autoconf macros from the project’s required version of gettext. + # Fixing this requires replacing all the older copies of the problematic file with a new one. + # + # This is ugly, but it avoids requiring workarounds in every package using gettext and autoreconfPhase. + declare -a oldFiles=($(tar tf gettext-tools/misc/archive.dir.tar | grep '^gettext-0\.[19].*/extern-inline.m4')) + oldFilesDir=$(mktemp -d) + for oldFile in "''${oldFiles[@]}"; do + mkdir -p "$oldFilesDir/$(dirname "$oldFile")" + cp gettext-tools/gnulib-m4/extern-inline.m4 "$oldFilesDir/$oldFile" + done + tar uf gettext-tools/misc/archive.dir.tar -C "$oldFilesDir" "''${oldFiles[@]}" + + substituteAllInPlace gettext-runtime/src/gettext.sh.in + substituteInPlace gettext-tools/projects/KDE/trigger --replace "/bin/pwd" pwd + substituteInPlace gettext-tools/projects/GNOME/trigger --replace "/bin/pwd" pwd + substituteInPlace gettext-tools/src/project-id --replace "/bin/pwd" pwd '' + lib.optionalString stdenv.hostPlatform.isCygwin '' sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in From 1e700c2bfaccef30ca0b7acb55e73ece823b84f9 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 7 Nov 2024 01:20:18 +0000 Subject: [PATCH 462/693] buildMozillaMach: apply upstream WASI SDK workaround for LLVM 19 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have no idea why this is necessary for us and why the upstream patch doesn’t work, but this gets the Mozilla packages building on LLVM 19 in the meantime while we try to figure that out. Closes: #352724 --- .../networking/browsers/firefox/common.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index dc52606f24b7..be1a1fbadb97 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -254,6 +254,25 @@ buildStdenv.mkDerivation { hash = "sha256-2IpdSyye3VT4VB95WurnyRFtdN1lfVtYpgEiUVhfNjw="; }) ] + ++ [ + # LLVM 19 turned on WASM reference types by default, exposing a bug + # that broke the Mozilla WASI build. Supposedly, it has been fixed + # upstream in LLVM, but the build fails in the same way for us even + # with LLVM 19 versions that contain the upstream patch. + # + # Apply the temporary patch Mozilla used to work around this bug + # for now until someone can investigate what’s going on here. + # + # TODO: Please someone figure out what’s up with this. + # + # See: + # See: + (fetchpatch { + name = "wasi-sdk-disable-reference-types.patch"; + url = "https://hg.mozilla.org/integration/autoland/raw-rev/23a9f6555c7c"; + hash = "sha256-CRywalJlRMFVLITEYXxpSq3jLPbUlWKNRHuKLwXqQfU="; + }) + ] ++ extraPatches; postPatch = '' From b39c998560ef3f1785ee0217c09094ad7dba9cb2 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 20 May 2024 19:51:30 -0400 Subject: [PATCH 463/693] fontforge: fix translations for compatibility with gettext 0.22 --- pkgs/tools/misc/fontforge/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/fontforge/default.nix b/pkgs/tools/misc/fontforge/default.nix index 495a3dad8330..1eca97e7d7c7 100644 --- a/pkgs/tools/misc/fontforge/default.nix +++ b/pkgs/tools/misc/fontforge/default.nix @@ -29,6 +29,11 @@ stdenv.mkDerivation rec { url = "https://github.com/fontforge/fontforge/commit/216eb14b558df344b206bf82e2bdaf03a1f2f429.patch"; hash = "sha256-aRnir09FSQMT50keoB7z6AyhWAVBxjSQsTRvBzeBuHU="; }) + # Fixes translation compatibility with gettext 0.22 + (fetchpatch { + url = "https://github.com/fontforge/fontforge/commit/55d58f87ab1440f628f2071a6f6cc7ef9626c641.patch"; + hash = "sha256-rkYnKPXA8Ztvh9g0zjG2yTUCPd3lE1uqwvBuEd8+Oyw="; + }) # https://github.com/fontforge/fontforge/pull/5423 ./replace-distutils.patch From b4ccd4a123ac7e8d252c819e88fa7c757f644471 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Tue, 5 Nov 2024 22:00:19 -0800 Subject: [PATCH 464/693] llvmPackages_{13,14,15,16,17}.compiler-rt: reorder cfi_startproc after label fixes building with llvm_18+ --- pkgs/development/compilers/llvm/common/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 33e4d3c998dd..fae0f963e905 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -974,6 +974,15 @@ let lib.versionAtLeast metadata.release_version "14" && lib.versionOlder metadata.release_version "18" ) ) (metadata.getVersionFile "compiler-rt/gnu-install-dirs.patch") + ++ + lib.optional + (lib.versionAtLeast metadata.release_version "13" && lib.versionOlder metadata.release_version "18") + (fetchpatch { + name = "cfi_startproc-after-label.patch"; + url = "https://github.com/llvm/llvm-project/commit/7939ce39dac0078fef7183d6198598b99c652c88.patch"; + stripLen = 1; + hash = "sha256-tGqXsYvUllFrPa/r/dsKVlwx5IrcJGccuR1WAtUg7/o="; + }) ++ [ # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the # extra `/`. From 425d5fbd0165d02d68d03e1bc6c3f1f5f2916173 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 9 Nov 2024 18:38:59 -0800 Subject: [PATCH 465/693] darwin.file_cmds: add libmd for install clang-19 defines `TARGET_OS_OSX` which results in the install build require various digests. Using libmd fixes the build. --- .../darwin/apple-source-releases/file_cmds/meson.build.in | 3 ++- .../darwin/apple-source-releases/file_cmds/package.nix | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in index 7fc7ed7d901f..638742f978c2 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in +++ b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/meson.build.in @@ -15,6 +15,7 @@ core_foundation = dependency('appleframeworks', modules : 'CoreFoundation') bzip2 = dependency('bzip2') xz = dependency('liblzma') +libmd = dependency('libmd') libxo = dependency('libxo') zlib = dependency('zlib') @@ -173,7 +174,7 @@ install_symlink( executable( 'install-bin', # Meson reserves the name “install”, so use a different name and rename in install phase. - dependencies : [ copyfile ], + dependencies : [ copyfile, libmd ], install : true, sources: [ 'install/xinstall.c', diff --git a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix index 93b578b1c008..584d2a312a60 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/file_cmds/package.nix @@ -4,6 +4,7 @@ bzip2, copyfile, less, + libmd, libutil, libxo, mkAppleDerivation, @@ -104,6 +105,7 @@ mkAppleDerivation { buildInputs = [ bzip2 copyfile + libmd libutil libxo removefile From a6ebc2e1f21ca0191a7cc36f124f5bd0e26cdfab Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 9 Nov 2024 19:46:41 -0800 Subject: [PATCH 466/693] xsimd: reduce precision to fix asin test `asin` test fails on darwin with clang-19. reduce the test precision epsilon to 1e-7 fixes the test --- pkgs/by-name/xs/xsimd/package.nix | 3 +++ pkgs/by-name/xs/xsimd/relax-asin-precision.diff | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 pkgs/by-name/xs/xsimd/relax-asin-precision.diff diff --git a/pkgs/by-name/xs/xsimd/package.nix b/pkgs/by-name/xs/xsimd/package.nix index 622f11f400bc..ad806a6a7d46 100644 --- a/pkgs/by-name/xs/xsimd/package.nix +++ b/pkgs/by-name/xs/xsimd/package.nix @@ -26,6 +26,9 @@ stdenv.mkDerivation (finalAttrs: { ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # https://github.com/xtensor-stack/xsimd/issues/1030 ./disable-test_error_gamma.patch + + # https://github.com/xtensor-stack/xsimd/issues/1063 + ./relax-asin-precision.diff ]; # strictDeps raises the chance that xsimd will be able to be cross compiled diff --git a/pkgs/by-name/xs/xsimd/relax-asin-precision.diff b/pkgs/by-name/xs/xsimd/relax-asin-precision.diff new file mode 100644 index 000000000000..7623f6e81e4a --- /dev/null +++ b/pkgs/by-name/xs/xsimd/relax-asin-precision.diff @@ -0,0 +1,14 @@ +diff --git a/test/test_xsimd_api.cpp b/test/test_xsimd_api.cpp +index f416ae9..1f8253e 100644 +--- a/test/test_xsimd_api.cpp ++++ b/test/test_xsimd_api.cpp +@@ -468,7 +468,8 @@ struct xsimd_api_float_types_functions + void test_asin() + { + value_type val(1); +- CHECK_EQ(extract(xsimd::asin(T(val))), std::asin(val)); ++ CHECK(extract(xsimd::asin(T(val))) ++ == doctest::Approx(std::asin(val)).epsilon(1e-7)); + } + void test_asinh() + { From 90805a436c4766be35c1fcf38bdde6206643e3a1 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 9 Nov 2024 15:03:14 -0800 Subject: [PATCH 467/693] gss: use autoreconfHook the provided configure script will break the build by using invalid c attributes on clang-19. using autoreconfHook fixes this. --- pkgs/by-name/gs/gss/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/gs/gss/package.nix b/pkgs/by-name/gs/gss/package.nix index 1271c52a4a8c..18020cf425f9 100644 --- a/pkgs/by-name/gs/gss/package.nix +++ b/pkgs/by-name/gs/gss/package.nix @@ -1,6 +1,8 @@ { lib , stdenv , fetchurl +, autoreconfHook +, gtk-doc , withShishi ? !stdenv.hostPlatform.isDarwin , shishi }: @@ -20,6 +22,8 @@ stdenv.mkDerivation rec { rm tests/krb5context.c ''; + nativeBuildInputs = [ autoreconfHook gtk-doc ]; + buildInputs = lib.optional withShishi shishi; # ./stdint.h:89:5: error: expected value in expression From 028069d767cca4ef0b8a469289e30f1aecacd945 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Thu, 7 Nov 2024 22:23:22 -0800 Subject: [PATCH 468/693] darwin: remove -arch from cc/ld wrapper `-arch` in the cc/ld wrapper causes problems when specifying different `--target` options, which would succeed except for the conflicting `-arch` specifier. Reverts fc0456bed1372ccff51fc6fd578e5d2a09d64534 and b26e0bac8dab068e54b0c8ee1bf8fd5fe5683b39 --- pkgs/build-support/bintools-wrapper/default.nix | 4 ---- pkgs/build-support/cc-wrapper/default.nix | 4 ---- 2 files changed, 8 deletions(-) diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index 736494b5ee55..1d907aa31f48 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -343,10 +343,6 @@ stdenvNoCC.mkDerivation { done '' - + optionalString targetPlatform.isDarwin '' - echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/libc-ldflags - '' - ## ## GNU specific extra strip flags ## diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 6caf5103325a..d9174df31a2a 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -696,10 +696,6 @@ stdenvNoCC.mkDerivation { done '' - + optionalString targetPlatform.isDarwin '' - echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/cc-cflags - '' - + optionalString targetPlatform.isAndroid '' echo "-D__ANDROID_API__=${targetPlatform.androidSdkVersion}" >> $out/nix-support/cc-cflags '' From 2bba9edd41ab5edd3093015b901ca39a48ec436b Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 10 Nov 2024 13:50:52 -0800 Subject: [PATCH 469/693] doxygen: 1.10.0 -> 1.12.0 https://github.com/doxygen/doxygen/releases/tag/Release_1_12_0 https://github.com/doxygen/doxygen/compare/Release_1_10_0...Release_1_12_0 --- .../tools/documentation/doxygen/default.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/development/tools/documentation/doxygen/default.nix b/pkgs/development/tools/documentation/doxygen/default.nix index 455f18ba0a3d..eccfd06e2889 100644 --- a/pkgs/development/tools/documentation/doxygen/default.nix +++ b/pkgs/development/tools/documentation/doxygen/default.nix @@ -15,23 +15,15 @@ stdenv.mkDerivation rec { pname = "doxygen"; - version = "1.10.0"; + version = "1.12.0"; src = fetchFromGitHub { owner = "doxygen"; repo = "doxygen"; rev = "Release_${lib.replaceStrings [ "." ] [ "_" ] version}"; - sha256 = "sha256-FPI5ICdn9Tne/g9SP6jAQS813AAyoDNooDR/Hyvq6R4="; + hash = "sha256-4zSaM49TjOaZvrUChM4dNJLondCsQPSArOXZnTHS4yI="; }; - patches = [ - (fetchpatch { - name = "sys-spdlog-fix.patch"; - url = "https://github.com/doxygen/doxygen/commit/0df6da616f01057d28b11c8bee28443c102dd424.patch"; - hash = "sha256-7efkCQFYGslwqhIuPsLYTEiA1rq+mO0DuyQBMt0O+m0="; - }) - ]; - nativeBuildInputs = [ cmake python3 @@ -49,9 +41,6 @@ stdenv.mkDerivation rec { "-Duse_sys_sqlite3=ON" ] ++ lib.optional (qt5 != null) "-Dbuild_wizard=YES"; - env.NIX_CFLAGS_COMPILE = - lib.optionalString stdenv.hostPlatform.isDarwin "-mmacosx-version-min=10.9"; - # put examples in an output so people/tools can test against them outputs = [ "out" "examples" ]; postInstall = '' From 99386b3957b8a5efbd780d8a1ed9ff8522222e9e Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 10 Nov 2024 16:17:22 -0800 Subject: [PATCH 470/693] poppler: fix clang-19 with upstream patch https://gitlab.freedesktop.org/poppler/poppler/-/commit/b4ac7d9af7cb5edfcfcbda035ed8b8c218ba8564 --- pkgs/development/libraries/poppler/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index 368c5a06a463..6ef6aca4b147 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -69,6 +69,14 @@ stdenv.mkDerivation (finalAttrs: rec { url = "https://gitlab.freedesktop.org/poppler/poppler/-/commit/0554731052d1a97745cb179ab0d45620589dd9c4.patch"; hash = "sha256-I78wJ4l1DSh+x/e00ZL8uvrGdBH+ufp+EDm0A1XWyCU="; }) + + (fetchpatch { + # fixes build on clang-19 + # https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1526 + name = "char16_t-not-short.patch"; + url = "https://gitlab.freedesktop.org/poppler/poppler/-/commit/b4ac7d9af7cb5edfcfcbda035ed8b8c218ba8564.patch"; + hash = "sha256-2aEq3VDITJabvB/+bcdULBXbqVbDdL0xJr2TWLiWqX8="; + }) ]; nativeBuildInputs = [ From f7fa39509bc283313337d02ed2869013dfb79273 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 10 Nov 2024 13:32:03 -0800 Subject: [PATCH 471/693] ctest_2_3: disable warn as error the development build is enabled for tests but also enables warn as error which creates an error when building the tests on clang-19. --- pkgs/development/libraries/catch2/3.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/catch2/3.nix b/pkgs/development/libraries/catch2/3.nix index b005dc3f8116..fe83ce36bf0b 100644 --- a/pkgs/development/libraries/catch2/3.nix +++ b/pkgs/development/libraries/catch2/3.nix @@ -25,6 +25,7 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DCATCH_DEVELOPMENT_BUILD=ON" "-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}" + "-DCATCH_ENABLE_WERROR=OFF" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && doCheck) [ # test has a faulty path normalization technique that won't work in # our darwin build environment https://github.com/catchorg/Catch2/issues/1691 From 68440b41d960f30d50d1ad769eb64be3b1eebdbf Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 10 Nov 2024 13:52:54 -0800 Subject: [PATCH 472/693] doxygen: fix build with clang-19 --- .../tools/documentation/doxygen/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/development/tools/documentation/doxygen/default.nix b/pkgs/development/tools/documentation/doxygen/default.nix index eccfd06e2889..e3a0f9609c0e 100644 --- a/pkgs/development/tools/documentation/doxygen/default.nix +++ b/pkgs/development/tools/documentation/doxygen/default.nix @@ -24,6 +24,24 @@ stdenv.mkDerivation rec { hash = "sha256-4zSaM49TjOaZvrUChM4dNJLondCsQPSArOXZnTHS4yI="; }; + patches = [ + # fix clang-19 build. can drop on next update + # https://github.com/doxygen/doxygen/pull/11064 + (fetchpatch { + name = "fix-clang-19-build.patch"; + url = "https://github.com/doxygen/doxygen/commit/cff64a87dea7596fd506a85521d4df4616dc845f.patch"; + hash = "sha256-TtkVfV9Ep8/+VGbTjP4NOP8K3p1+A78M+voAIQ+lzOk="; + }) + ]; + + # https://github.com/doxygen/doxygen/issues/10928#issuecomment-2179320509 + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail 'JAVACC_CHAR_TYPE=\"unsigned char\"' \ + 'JAVACC_CHAR_TYPE=\"char8_t\"' \ + --replace-fail "CMAKE_CXX_STANDARD 17" "CMAKE_CXX_STANDARD 20" + ''; + nativeBuildInputs = [ cmake python3 From 085b1bbd394fd4df8e2f587d33dbdbe2c79821ca Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Mon, 11 Nov 2024 12:13:06 -0800 Subject: [PATCH 473/693] rav1e: fix clang-19 using system libgit2 / zlib update the unnecessary `built` package so we can use the system libgit2 and zlib which fixes the clang-19 build --- pkgs/by-name/ra/rav1e/package.nix | 24 +++++++-------- pkgs/by-name/ra/rav1e/update-built.diff | 40 +++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 13 deletions(-) create mode 100644 pkgs/by-name/ra/rav1e/update-built.diff diff --git a/pkgs/by-name/ra/rav1e/package.nix b/pkgs/by-name/ra/rav1e/package.nix index e8834ac131e4..dccb2d01a6b9 100644 --- a/pkgs/by-name/ra/rav1e/package.nix +++ b/pkgs/by-name/ra/rav1e/package.nix @@ -6,13 +6,11 @@ fetchCrate, pkg-config, cargo-c, - darwin, - libgit2, - libiconv, nasm, + libgit2, + zlib, nix-update-script, testers, - zlib, rav1e, }: @@ -25,22 +23,22 @@ rustPlatform.buildRustPackage rec { hash = "sha256-Db7qb7HBAy6lniIiN07iEzURmbfNtuhmgJRv7OUagUM="; }; - cargoHash = "sha256-VyQ6n2kIJ7OjK6Xlf0T0GNsBvgESRETzKZDZzAn8ZuY="; + # update built to be able to use the system libgit2 + cargoPatches = [ ./update-built.diff ]; + cargoHash = "sha256-Ud9Vw31y8nLo0aC3j7XY1+mN/pRvH9gJ0uIq73hKy3Y="; - depsBuildBuild = [ pkg-config ]; + depsBuildBuild = [ + pkg-config + libgit2 + zlib + ]; nativeBuildInputs = [ cargo-c - libgit2 nasm ]; - buildInputs = - [ zlib ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - libiconv - darwin.apple_sdk.frameworks.Security - ]; + env.LIBGIT2_NO_VENDOR = 1; # Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library # and linking it with cctools ld64. diff --git a/pkgs/by-name/ra/rav1e/update-built.diff b/pkgs/by-name/ra/rav1e/update-built.diff new file mode 100644 index 000000000000..3b2a027545d9 --- /dev/null +++ b/pkgs/by-name/ra/rav1e/update-built.diff @@ -0,0 +1,40 @@ +diff --git a/Cargo.lock b/Cargo.lock +index 6825377..8512eba 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -242,9 +242,9 @@ dependencies = [ + + [[package]] + name = "built" +-version = "0.7.1" ++version = "0.7.5" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "38d17f4d6e4dc36d1a02fbedc2753a096848e7c1b0772f7654eab8e2c927dd53" ++checksum = "c360505aed52b7ec96a3636c3f039d99103c37d1d9b4f7a8c743d3ea9ffcd03b" + dependencies = [ + "git2", + ] +@@ -633,9 +633,9 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" + + [[package]] + name = "git2" +-version = "0.18.1" ++version = "0.19.0" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "fbf97ba92db08df386e10c8ede66a2a0369bd277090afd8710e19e38de9ec0cd" ++checksum = "b903b73e45dc0c6c596f2d37eccece7c1c8bb6e4407b001096387c63d0d93724" + dependencies = [ + "bitflags 2.4.1", + "libc", +@@ -845,9 +845,9 @@ dependencies = [ + + [[package]] + name = "libgit2-sys" +-version = "0.16.1+1.7.1" ++version = "0.17.0+1.8.1" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c" ++checksum = "10472326a8a6477c3c20a64547b0059e4b0d086869eee31e6d7da728a8eb7224" + dependencies = [ + "cc", + "libc", From 2115c501c47d545ec7570474b3259ef2cca87a2f Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 10 Nov 2024 18:12:47 -0800 Subject: [PATCH 474/693] fmt_11: add patch to fix clang build --- pkgs/development/libraries/fmt/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/fmt/default.nix b/pkgs/development/libraries/fmt/default.nix index e2dcaadf5206..01b2b6828611 100644 --- a/pkgs/development/libraries/fmt/default.nix +++ b/pkgs/development/libraries/fmt/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, enableShared ? !stdenv.hostPlatform.isStatic, @@ -39,7 +40,7 @@ let nativeBuildInputs = [ cmake ]; - cmakeFlags = [ "-DBUILD_SHARED_LIBS=${if enableShared then "ON" else "OFF"}" ]; + cmakeFlags = [ (lib.cmakeBool "BUILD_SHARED_LIBS" enableShared) ]; doCheck = true; @@ -86,5 +87,12 @@ in fmt_11 = generic { version = "11.0.2"; hash = "sha256-IKNt4xUoVi750zBti5iJJcCk3zivTt7nU12RIf8pM+0="; + patches = [ + (fetchpatch { + name = "get-rid-of-std-copy-fix-clang.patch"; + url = "https://github.com/fmtlib/fmt/commit/6e462b89aa22fd5f737ed162d0150e145ccb1914.patch"; + hash = "sha256-tRU1y1VCxtQ5J2yvFmwUx+YNcQs8izzLImD37KBiCFk="; + }) + ]; }; } From 9460529b21618f648bef184aede27cf89c63e8d7 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Tue, 12 Nov 2024 05:23:41 -0800 Subject: [PATCH 475/693] aspell: fix clang-19 with upstream patch https://github.com/GNUAspell/aspell/commit/ee6cbb12ff36a1e6618d7388a78dd4e0a2b44041 --- pkgs/development/libraries/aspell/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/aspell/default.nix b/pkgs/development/libraries/aspell/default.nix index 8c152d32ef6c..c5ac805f6be5 100644 --- a/pkgs/development/libraries/aspell/default.nix +++ b/pkgs/development/libraries/aspell/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchzip, perl, ncurses +{ lib, stdenv, fetchpatch, fetchurl, fetchzip, perl, ncurses # for tests , aspell, glibc, runCommand @@ -27,7 +27,14 @@ stdenv.mkDerivation rec { hash = "sha256-1toSs01C1Ff6YE5DWtSEp0su/80SD/QKzWuz+yiH0hs="; }; - patches = lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch; + patches = [ + # fix gcc-15 / clang-19 build. can remove on next update + (fetchpatch { + name = "fix-gcc-15-build.patch"; + url = "https://github.com/GNUAspell/aspell/commit/ee6cbb12ff36a1e6618d7388a78dd4e0a2b44041.patch"; + hash = "sha256-rW1FcfARdtT4wX+zGd2x/1K8zRp9JZhdR/zRd8RwPZA="; + }) + ] ++ lib.optional searchNixProfiles ./data-dirs-from-nix-profiles.patch; postPatch = '' patch interfaces/cc/aspell.h < ${./clang.patch} From 95dbbb4994a2cadce9addaf574a91ac939c54630 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Mon, 11 Nov 2024 09:20:47 -0800 Subject: [PATCH 476/693] qt6.qtquick3d: fix clang-19 with upstream patch https://github.com/qt/qtquick3d/commit/636a5558470ba0e0a4db1ca23dc72d96dfabeccf --- pkgs/development/libraries/qt-6/modules/qtquick3d.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/qt-6/modules/qtquick3d.nix b/pkgs/development/libraries/qt-6/modules/qtquick3d.nix index 1c84856c0c12..fc40a408f4cc 100644 --- a/pkgs/development/libraries/qt-6/modules/qtquick3d.nix +++ b/pkgs/development/libraries/qt-6/modules/qtquick3d.nix @@ -2,10 +2,19 @@ , qtbase , qtdeclarative , openssl +, fetchpatch }: qtModule { pname = "qtquick3d"; propagatedBuildInputs = [ qtbase qtdeclarative ]; buildInputs = [ openssl ]; + patches = [ + # should be able to remove on next update + (fetchpatch { + name = "fix-clang-19-build.patch"; + url = "https://github.com/qt/qtquick3d/commit/636a5558470ba0e0a4db1ca23dc72d96dfabeccf.patch"; + hash = "sha256-xBzOoVWDWvpxbSHKWeeWY1ZVldsjoUeJqFcfpvjEWAg="; + }) + ]; } From 3c76f37753a5c86e6af01047bfdd69453cec3bf8 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Wed, 13 Nov 2024 00:02:43 -0800 Subject: [PATCH 477/693] zxing-cpp: c++20 for char8_t build fails on clang-19 due to using c++ 17 and having char8_t typedefed to an uint8_t, which is not supported by std::char_traits. Using c++20 fixes this as the code will use a char8_t. Used a substituteInPlace so the override can be removed once c++20 is the default in the cmake file. --- pkgs/by-name/zx/zxing-cpp/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/zx/zxing-cpp/package.nix b/pkgs/by-name/zx/zxing-cpp/package.nix index affac873f2cd..e162d3c40673 100644 --- a/pkgs/by-name/zx/zxing-cpp/package.nix +++ b/pkgs/by-name/zx/zxing-cpp/package.nix @@ -18,6 +18,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-teFspdATn9M7Z1vSr/7PdJx/xAv+TVai8rIekxqpBZk="; }; + # c++ 20 needed for char8_t or clang-19 build fails + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "CMAKE_CXX_STANDARD 17" "CMAKE_CXX_STANDARD 20" + ''; + nativeBuildInputs = [ cmake pkg-config From 8169aae6986dd9dc71e7537892a7b7d54f7d5e4e Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 9 Nov 2024 15:02:34 -0800 Subject: [PATCH 478/693] nlohmann_json: fix tests to compile with clang-19 https://releases.llvm.org/19.1.0/projects/libcxx/docs/ReleaseNotes.html > The base template for std::char_traits has been removed in LLVM 19. If > you are using std::char_traits with types other than char, wchar_t, > char8_t, char16_t, char32_t or a custom character type for which you > specialized std::char_traits, your code will stop working. --- .../make-tests-build-clang-19.diff | 98 +++++++++++++++++++ pkgs/by-name/nl/nlohmann_json/package.nix | 6 ++ 2 files changed, 104 insertions(+) create mode 100644 pkgs/by-name/nl/nlohmann_json/make-tests-build-clang-19.diff diff --git a/pkgs/by-name/nl/nlohmann_json/make-tests-build-clang-19.diff b/pkgs/by-name/nl/nlohmann_json/make-tests-build-clang-19.diff new file mode 100644 index 000000000000..ceb869251469 --- /dev/null +++ b/pkgs/by-name/nl/nlohmann_json/make-tests-build-clang-19.diff @@ -0,0 +1,98 @@ +diff --git a/tests/src/unit-bson.cpp b/tests/src/unit-bson.cpp +index 13216f2..fdfc350 100644 +--- a/tests/src/unit-bson.cpp ++++ b/tests/src/unit-bson.cpp +@@ -621,7 +621,7 @@ TEST_CASE("BSON input/output_adapters") + { + SECTION("std::ostringstream") + { +- std::basic_ostringstream ss; ++ std::basic_ostringstream ss; + json::to_bson(json_representation, ss); + json j3 = json::from_bson(ss.str()); + CHECK(json_representation == j3); +diff --git a/tests/src/unit-cbor.cpp b/tests/src/unit-cbor.cpp +index be94d2f..2b396b7 100644 +--- a/tests/src/unit-cbor.cpp ++++ b/tests/src/unit-cbor.cpp +@@ -1881,7 +1881,7 @@ TEST_CASE("single CBOR roundtrip") + { + SECTION("std::ostringstream") + { +- std::basic_ostringstream ss; ++ std::basic_ostringstream ss; + json::to_cbor(j1, ss); + json j3 = json::from_cbor(ss.str()); + CHECK(j1 == j3); +diff --git a/tests/src/unit-deserialization.cpp b/tests/src/unit-deserialization.cpp +index 3bc161f..e4918b0 100644 +--- a/tests/src/unit-deserialization.cpp ++++ b/tests/src/unit-deserialization.cpp +@@ -1131,13 +1131,11 @@ TEST_CASE("deserialization") + } + } + ++ + TEST_CASE_TEMPLATE("deserialization of different character types (ASCII)", T, +- char, unsigned char, signed char, ++ char, + wchar_t, +- char16_t, char32_t, +- std::uint8_t, std::int8_t, +- std::int16_t, std::uint16_t, +- std::int32_t, std::uint32_t) ++ char16_t, char32_t) + { + std::vector const v = {'t', 'r', 'u', 'e'}; + CHECK(json::parse(v) == json(true)); +@@ -1163,7 +1161,7 @@ TEST_CASE_TEMPLATE("deserialization of different character types (UTF-8)", T, + } + + TEST_CASE_TEMPLATE("deserialization of different character types (UTF-16)", T, +- char16_t, std::uint16_t) ++ char16_t) + { + // a star emoji + std::vector const v = {static_cast('"'), static_cast(0x2b50), static_cast(0xfe0f), static_cast('"')}; +@@ -1176,7 +1174,7 @@ TEST_CASE_TEMPLATE("deserialization of different character types (UTF-16)", T, + } + + TEST_CASE_TEMPLATE("deserialization of different character types (UTF-32)", T, +- char32_t, std::uint32_t) ++ char32_t) + { + // a star emoji + std::vector const v = {static_cast('"'), static_cast(0x2b50), static_cast(0xfe0f), static_cast('"')}; +diff --git a/tests/src/unit-msgpack.cpp b/tests/src/unit-msgpack.cpp +index 61162af..cfbb1fa 100644 +--- a/tests/src/unit-msgpack.cpp ++++ b/tests/src/unit-msgpack.cpp +@@ -1604,7 +1604,7 @@ TEST_CASE("single MessagePack roundtrip") + { + SECTION("std::ostringstream") + { +- std::basic_ostringstream ss; ++ std::basic_ostringstream ss; + json::to_msgpack(j1, ss); + json j3 = json::from_msgpack(ss.str()); + CHECK(j1 == j3); +diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp +index fab9aae..98947c5 100644 +--- a/tests/src/unit-regression2.cpp ++++ b/tests/src/unit-regression2.cpp +@@ -674,6 +674,7 @@ TEST_CASE("regression tests 2") + CHECK(j.dump() == "{}"); + } + ++#if 0 + #ifdef JSON_HAS_CPP_20 + #if __has_include() + SECTION("issue #2546 - parsing containers of std::byte") +@@ -684,6 +685,7 @@ TEST_CASE("regression tests 2") + CHECK(j.dump() == "\"Hello, world!\""); + } + #endif ++#endif + #endif + + SECTION("issue #2574 - Deserialization to std::array, std::pair, and std::tuple with non-default constructable types fails") diff --git a/pkgs/by-name/nl/nlohmann_json/package.nix b/pkgs/by-name/nl/nlohmann_json/package.nix index d690cc45b2f9..8acc3d2d27ec 100644 --- a/pkgs/by-name/nl/nlohmann_json/package.nix +++ b/pkgs/by-name/nl/nlohmann_json/package.nix @@ -21,6 +21,12 @@ in stdenv.mkDerivation (finalAttrs: { hash = "sha256-7F0Jon+1oWL7uqet5i1IgHX0fUw/+z0QwEcA3zs5xHg="; }; + patches = lib.optionals stdenv.cc.isClang [ + # tests fail to compile on clang-19 + # https://github.com/nlohmann/json/issues/4490 + ./make-tests-build-clang-19.diff + ]; + nativeBuildInputs = [ cmake ]; cmakeFlags = [ From 71e3992d77c11199cd388c27b0806be93cbedd88 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 10 Nov 2024 18:13:19 -0800 Subject: [PATCH 479/693] mariadb: use fmt_11 for 10.11 & greater https://github.com/MariaDB/server/blob/mariadb-10.11.10/cmake/libfmt.cmake uses fmt 11.0.2 --- pkgs/servers/sql/mariadb/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index 76ce8d6b6dc9..a178e1fa28e4 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -14,7 +14,7 @@ let , bzip2, lz4, lzo, snappy, xz, zlib, zstd , cracklib, judy, libevent, libxml2 , linux-pam, numactl - , fmt_8 + , fmt_11 , withStorageMroonga ? true, kytea, libsodium, msgpack, zeromq , withStorageRocks ? true , withEmbedded ? false @@ -149,7 +149,7 @@ let ]; buildInputs = common.buildInputs - ++ lib.optionals (lib.versionAtLeast common.version "10.7") [ fmt_8 ]; + ++ lib.optionals (lib.versionAtLeast common.version "10.11") [ fmt_11 ]; cmakeFlags = common.cmakeFlags ++ [ "-DPLUGIN_AUTH_PAM=NO" @@ -179,7 +179,7 @@ let ++ lib.optionals stdenv.hostPlatform.isLinux [ linux-pam ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) mytopEnv ++ lib.optionals withStorageMroonga [ kytea libsodium msgpack zeromq ] - ++ lib.optionals (lib.versionAtLeast common.version "10.7") [ fmt_8 ]; + ++ lib.optionals (lib.versionAtLeast common.version "10.11") [ fmt_11 ]; propagatedBuildInputs = lib.optional withNuma numactl; From 8f5c55067c4e6477a05c98e22ae0d326075b375d Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Wed, 13 Nov 2024 01:08:35 -0800 Subject: [PATCH 480/693] rapidjson: disable tests which fail to compile disable two tests which fail to compile on clang-19 due to trying to use an unsigned type for which a std::char_traits does not exits. --- .../char_traits-clang-19-errors.diff | 22 +++++++++++++++++++ pkgs/by-name/ra/rapidjson/package.nix | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/by-name/ra/rapidjson/char_traits-clang-19-errors.diff diff --git a/pkgs/by-name/ra/rapidjson/char_traits-clang-19-errors.diff b/pkgs/by-name/ra/rapidjson/char_traits-clang-19-errors.diff new file mode 100644 index 000000000000..c057b3c1ec6a --- /dev/null +++ b/pkgs/by-name/ra/rapidjson/char_traits-clang-19-errors.diff @@ -0,0 +1,22 @@ +diff --git a/test/unittest/writertest.cpp b/test/unittest/writertest.cpp +index 4c24121..66c9087 100644 +--- a/test/unittest/writertest.cpp ++++ b/test/unittest/writertest.cpp +@@ -386,6 +386,9 @@ TEST(Writer, InvalidEncoding) { + writer.EndArray(); + } + ++ ++ // does not compile on clang-19 ++#if 0 + // Fail in encoding + { + StringBuffer buffer; +@@ -401,6 +404,7 @@ TEST(Writer, InvalidEncoding) { + static const UTF32<>::Ch s[] = { 0x110000, 0 }; // Out of U+0000 to U+10FFFF + EXPECT_FALSE(writer.String(s)); + } ++#endif + } + + TEST(Writer, ValidateEncoding) { diff --git a/pkgs/by-name/ra/rapidjson/package.nix b/pkgs/by-name/ra/rapidjson/package.nix index 09707dc75b9a..887beaa63051 100644 --- a/pkgs/by-name/ra/rapidjson/package.nix +++ b/pkgs/by-name/ra/rapidjson/package.nix @@ -29,6 +29,10 @@ stdenv.mkDerivation (finalAttrs: { ./use-nixpkgs-gtest.patch # https://github.com/Tencent/rapidjson/issues/2214 ./suppress-valgrind-failures.patch + + # disable tests which don't build on clang-19 + # https://github.com/Tencent/rapidjson/issues/2318 + ./char_traits-clang-19-errors.diff ]; postPatch = '' From 462534f9bf3479c7536f4497d15dfed4dbd12356 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Wed, 13 Nov 2024 00:19:20 -0800 Subject: [PATCH 481/693] mjpegtools: fix clang-19 by removing dead code clang-19 errors out due to some unused debugging functions which access undefined class members. Deleting the code fixes the build. --- pkgs/by-name/mj/mjpegtools/package.nix | 12 +- .../remove-subtract-and-union-debug.diff | 347 ++++++++++++++++++ 2 files changed, 356 insertions(+), 3 deletions(-) create mode 100644 pkgs/by-name/mj/mjpegtools/remove-subtract-and-union-debug.diff diff --git a/pkgs/by-name/mj/mjpegtools/package.nix b/pkgs/by-name/mj/mjpegtools/package.nix index 147c30fed4c5..ba500f04385c 100644 --- a/pkgs/by-name/mj/mjpegtools/package.nix +++ b/pkgs/by-name/mj/mjpegtools/package.nix @@ -16,9 +16,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-sYBTbX2ZYLBeACOhl7ANyxAJKaSaq3HRnVX0obIQ9Jo="; }; - # Clang 16 defaults to C++17. `std::auto_ptr` has been removed from C++17, and the - # `register` type class specifier is no longer allowed. - patches = [ ./c++-17-fixes.patch ]; + patches = [ + # Clang 16 defaults to C++17. `std::auto_ptr` has been removed from C++17, + # and the `register` type class specifier is no longer allowed. + ./c++-17-fixes.patch + + # Clang-19 errors out for dead code (in header) which accesses undefined + # class members + ./remove-subtract-and-union-debug.diff + ]; hardeningDisable = [ "format" ]; diff --git a/pkgs/by-name/mj/mjpegtools/remove-subtract-and-union-debug.diff b/pkgs/by-name/mj/mjpegtools/remove-subtract-and-union-debug.diff new file mode 100644 index 000000000000..1d1ff88afcae --- /dev/null +++ b/pkgs/by-name/mj/mjpegtools/remove-subtract-and-union-debug.diff @@ -0,0 +1,347 @@ +diff --git a/y4mdenoise/Region2D.hh b/y4mdenoise/Region2D.hh +index b44e93f..ebc2821 100644 +--- a/y4mdenoise/Region2D.hh ++++ b/y4mdenoise/Region2D.hh +@@ -97,35 +97,11 @@ public: + // Add the given horizontal extent to the region. Note that + // a_tnXEnd is technically one past the end of the extent. + +- template +- void UnionDebug (Status_t &a_reStatus, INDEX a_tnY, +- INDEX a_tnXStart, INDEX a_tnXEnd, REGION_TEMP &a_rTemp); +- // Add the given horizontal extent to the region. Note that +- // a_tnXEnd is technically one past the end of the extent. +- // Exhaustively (i.e. slowly) verifies the results, using a +- // much simpler algorithm. +- // Requires the use of a temporary region, usually of the +- // final subclass' type, in order to work. (Since that can't +- // be known at this level, a template parameter is included for +- // it.) +- + template + void Union (Status_t &a_reStatus, const REGION &a_rOther); + // Make the current region represent the union between itself + // and the other given region. + +- template +- void UnionDebug (Status_t &a_reStatus, +- REGION_O &a_rOther, REGION_TEMP &a_rTemp); +- // Make the current region represent the union between itself +- // and the other given region. +- // Exhaustively (i.e. slowly) verifies the results, using a +- // much simpler algorithm. +- // Requires the use of a temporary region, usually of the +- // final subclass' type, in order to work. (Since that can't +- // be known at this level, a template parameter is included for +- // it.) +- + //void Merge (Status_t &a_reStatus, INDEX a_tnY, INDEX a_tnXStart, + // INDEX a_tnXEnd); + // Merge this extent into the current region. +@@ -166,37 +142,12 @@ public: + // Subtract the given horizontal extent from the region. Note + // that a_tnXEnd is technically one past the end of the extent. + +- template +- void SubtractDebug (Status_t &a_reStatus, INDEX a_tnY, +- INDEX a_tnXStart, INDEX a_tnXEnd, REGION_TEMP &a_rTemp); +- // Subtract the given horizontal extent from the region. Note +- // that a_tnXEnd is technically one past the end of the extent. +- // Exhaustively (i.e. slowly) verifies the results, using a +- // much simpler algorithm. +- // Requires the use of a temporary region, usually of the +- // final subclass' type, in order to work. (Since that can't +- // be known at this level, a template parameter is included for +- // it.) +- + template + void Subtract (Status_t &a_reStatus, const REGION &a_rOther); + // Subtract the other region from the current region, i.e. + // remove from the current region any extents that exist in the + // other region. + +- template +- void SubtractDebug (Status_t &a_reStatus, REGION_O &a_rOther, +- REGION_TEMP &a_rTemp); +- // Subtract the other region from the current region, i.e. +- // remove from the current region any extents that exist in the +- // other region. +- // Exhaustively (i.e. slowly) verifies the results, using a +- // much simpler algorithm. +- // Requires the use of a temporary region, usually of the +- // final subclass' type, in order to work. (Since that can't +- // be known at this level, a template parameter is included for +- // it.) +- + //typedef ... ConstIterator; + //ConstIterator Begin (void) const { return m_setExtents.Begin(); } + //ConstIterator End (void) const { return m_setExtents.End(); } +@@ -404,85 +355,6 @@ Region2D::~Region2D() + + + +-// Add the given horizontal extent to the region. +-template +-template +-void +-Region2D::UnionDebug (Status_t &a_reStatus, INDEX a_tnY, +- INDEX a_tnXStart, INDEX a_tnXEnd, REGION_TEMP &a_rTemp) +-{ +- typename REGION::ConstIterator itHere; +- typename REGION_TEMP::ConstIterator itHereO; +- INDEX tnX; +- // Used to loop through points. +- +- // Make sure they didn't start us off with an error. +- assert (a_reStatus == g_kNoError); +- +- // Calculate the union. +- a_rTemp.Assign (a_reStatus, *this); +- if (a_reStatus != g_kNoError) +- return; +- a_rTemp.Union (a_reStatus, a_tnY, a_tnXStart, a_tnXEnd); +- if (a_reStatus != g_kNoError) +- return; +- +- // Loop through every point in the result, make sure it's in +- // one of the two input regions. +- for (itHereO = a_rTemp.Begin(); itHereO != a_rTemp.End(); ++itHereO) +- { +- const Extent &rHere = *itHereO; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (!((rHere.m_tnY == a_tnY +- && (tnX >= a_tnXStart && tnX < a_tnXEnd)) +- || this->DoesContainPoint (rHere.m_tnY, tnX))) +- goto error; +- } +- } +- +- // Loop through every point in the original region, make sure +- // it's in the result. +- for (itHere = this->Begin(); itHere != this->End(); ++itHere) +- { +- const Extent &rHere = *itHere; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX)) +- goto error; +- } +- } +- +- // Loop through every point in the added extent, make sure it's in +- // the result. +- for (tnX = a_tnXStart; tnX < a_tnXEnd; ++tnX) +- { +- if (!a_rTemp.DoesContainPoint (a_tnY, tnX)) +- goto error; +- } +- +- // The operation succeeded. Commit it. +- Assign (a_reStatus, a_rTemp); +- if (a_reStatus != g_kNoError) +- return; +- +- // All done. +- return; +- +-error: +- // Handle deviations. +- fprintf (stderr, "Region2D::Union() failed\n"); +- fprintf (stderr, "Input region:\n"); +- PrintRegion (*this); +- fprintf (stderr, "Input extent: [%d,%d-%d]\n", +- int (a_tnY), int (a_tnXStart), int (a_tnXEnd)); +- fprintf (stderr, "Result:\n"); +- PrintRegion (a_rTemp); +- assert (false); +-} +- +- +- + // Make the current region represent the union between itself + // and the other given region. + template +@@ -513,182 +385,6 @@ Region2D::Union (Status_t &a_reStatus, + + + +-// Make the current region represent the union between itself +-// and the other given region. +-template +-template +-void +-Region2D::UnionDebug (Status_t &a_reStatus, +- REGION_O &a_rOther, REGION_TEMP &a_rTemp) +-{ +- typename REGION::ConstIterator itHere; +- typename REGION_O::ConstIterator itHereO; +- typename REGION_TEMP::ConstIterator itHereT; +- INDEX tnX; +- // Used to loop through points. +- +- // Make sure they didn't start us off with an error. +- assert (a_reStatus == g_kNoError); +- +- // Calculate the union. +- a_rTemp.Assign (a_reStatus, *this); +- if (a_reStatus != g_kNoError) +- return; +- a_rTemp.Union (a_reStatus, a_rOther); +- if (a_reStatus != g_kNoError) +- return; +- +- // Loop through every point in the result, make sure it's in +- // one of the two input regions. +- for (itHereT = a_rTemp.Begin(); itHereT != a_rTemp.End(); ++itHereT) +- { +- const Extent &rHere = *itHereT; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (!a_rOther.DoesContainPoint (rHere.m_tnY, tnX) +- && !this->DoesContainPoint (rHere.m_tnY, tnX)) +- goto error; +- } +- } +- +- // Loop through every point in the first input region, make sure +- // it's in the result. +- for (itHere = this->Begin(); itHere != this->End(); ++itHere) +- { +- const Extent &rHere = *itHere; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX)) +- goto error; +- } +- } +- +- // Loop through every point in the second input region, make sure +- // it's in the result. +- for (itHereO = a_rOther.Begin(); +- itHereO != a_rOther.End(); +- ++itHereO) +- { +- const Extent &rHere = *itHereO; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX)) +- goto error; +- } +- } +- +- // The operation succeeded. Commit it. +- Assign (a_reStatus, a_rTemp); +- if (a_reStatus != g_kNoError) +- return; +- +- // All done. +- return; +- +-error: +- // Handle deviations. +- fprintf (stderr, "Region2D::Union() failed\n"); +- fprintf (stderr, "First input region:\n"); +- PrintRegion (*this); +- fprintf (stderr, "Second input region:\n"); +- PrintRegion (a_rOther); +- fprintf (stderr, "Result:\n"); +- PrintRegion (a_rTemp); +- assert (false); +-} +- +- +- +-// Subtract the other region from the current region, i.e. +-// remove from the current region any areas that exist in the +-// other region. +-template +-template +-void +-Region2D::SubtractDebug (Status_t &a_reStatus, +- REGION_O &a_rOther, REGION_TEMP &a_rTemp) +-{ +- typename REGION::ConstIterator itHere; +- typename REGION_O::ConstIterator itHereO; +- typename REGION_TEMP::ConstIterator itHereT; +- INDEX tnX; +- // Used to loop through points. +- +- // Make sure they didn't start us off with an error. +- assert (a_reStatus == g_kNoError); +- +- // Calculate the difference. +- a_rTemp.Assign (a_reStatus, *this); +- if (a_reStatus != g_kNoError) +- return; +- a_rTemp.Subtract (a_reStatus, a_rOther); +- if (a_reStatus != g_kNoError) +- return; +- +- // Loop through every point in the result, make sure it's in +- // the first input region but not the second. +- for (itHereT = a_rTemp.Begin(); itHereT != a_rTemp.End(); ++itHereT) +- { +- const Extent &rHere = *itHereT; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (!(this->DoesContainPoint (rHere.m_tnY, tnX) +- && !a_rOther.DoesContainPoint (rHere.m_tnY, tnX))) +- goto error; +- } +- } +- +- // Loop through every point in the first input region, and if it's +- // not in the second input region, make sure it's in the result. +- for (itHere = this->Begin(); itHere != this->End(); ++itHere) +- { +- const Extent &rHere = *itHere; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (!a_rOther.DoesContainPoint (rHere.m_tnY, tnX)) +- { +- if (!a_rTemp.DoesContainPoint (rHere.m_tnY, tnX)) +- goto error; +- } +- } +- } +- +- // Loop through every point in the second input region, make sure +- // it's not in the result. +- for (itHereO = a_rOther.Begin(); +- itHereO != a_rOther.End(); +- ++itHereO) +- { +- const Extent &rHere = *itHere; +- for (tnX = rHere.m_tnXStart; tnX < rHere.m_tnXEnd; ++tnX) +- { +- if (a_rTemp.DoesContainPoint (rHere.m_tnY, tnX)) +- goto error; +- } +- } +- +- // The operation succeeded. Commit it. +- Assign (a_reStatus, a_rTemp); +- if (a_reStatus != g_kNoError) +- return; +- +- // All done. +- return; +- +-error: +- // Handle deviations. +- fprintf (stderr, "Region2D::Subtract() failed\n"); +- fprintf (stderr, "First input region:\n"); +- PrintRegion (*this); +- fprintf (stderr, "Second input region:\n"); +- PrintRegion (a_rOther); +- fprintf (stderr, "Result:\n"); +- PrintRegion (a_rTemp); +- assert (false); +-} +- +- +- + // Flood-fill the current region. + template + template From 07029deebba96c9cdab1729375ae26bfbf496c7f Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Tue, 12 Nov 2024 13:43:17 -0800 Subject: [PATCH 482/693] haskellPackages.hermes-json: fix vendored simdjson with clang-19 --- .../haskell-modules/configuration-common.nix | 33 +++++++++++++++++-- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index bd174babd549..c7f935d4288a 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2578,9 +2578,36 @@ self: super: { testTarget = "tests"; }) super.conduit-aeson; - # Upper bounds are too strict: - # https://github.com/velveteer/hermes/pull/22 - hermes-json = doJailbreak super.hermes-json; + hermes-json = overrideCabal (drv: { + # Upper bounds are too strict: + # https://github.com/velveteer/hermes/pull/22 + jailbreak = true; + + # vendored simdjson breaks with clang-19. apply patches that work with + # a more recent simdjson so we can un-vendor it + patches = drv.patches or [] ++ [ + (fetchpatch { + url = "https://github.com/velveteer/hermes/commit/6fd9904d93a5c001aadb27c114345a6958904d71.patch"; + hash = "sha256-Pv09XP0/VjUiAFp237Adj06PIZU21mQRh7guTlKksvA="; + excludes = [ + ".github/*" + "hermes-bench/*" + ]; + }) + (fetchpatch { + url = "https://github.com/velveteer/hermes/commit/ca8dddbf52f9d7788460a056fefeb241bcd09190.patch"; + hash = "sha256-tDDGS0QZ3YWe7+SP09wnxx6lIWL986ce5Zhqr7F2sBk="; + excludes = [ + "README.md" + ".github/*" + "hermes-bench/*" + ]; + }) + ]; + postPatch = drv.postPatch or "" + '' + ln -fs ${pkgs.simdjson.src} simdjson + ''; + }) super.hermes-json; # Disabling doctests. regex-tdfa = overrideCabal { From da65c302a18a59c48111bdf219de09cd4b314ce9 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Mon, 11 Nov 2024 20:55:56 -0800 Subject: [PATCH 483/693] openjpeg: fix up tests tests were failing with clang-19 due to vendoring an old zlib. However, even with the compile error fixed the tests would report success even with the majority of them failing due to a missing data directory. download the data directory to run the tests and just run tests by cmake. 8% of the tests do fail and are excluded --- pkgs/by-name/op/openjpeg/exclude-tests | 52 +++++++++++++++++++++++++ pkgs/by-name/op/openjpeg/package.nix | 54 ++++++++++++++++---------- 2 files changed, 85 insertions(+), 21 deletions(-) create mode 100644 pkgs/by-name/op/openjpeg/exclude-tests diff --git a/pkgs/by-name/op/openjpeg/exclude-tests b/pkgs/by-name/op/openjpeg/exclude-tests new file mode 100644 index 000000000000..060c48e8fe85 --- /dev/null +++ b/pkgs/by-name/op/openjpeg/exclude-tests @@ -0,0 +1,52 @@ +NR-C1P0-p0_04.j2k-compare2base +NR-C1P0-p0_05.j2k-compare2base +NR-C1P0-p0_06.j2k-compare2base +NR-C1P1-p1_02.j2k-compare2base +NR-C1P1-p1_03.j2k-compare2base +NR-C1P1-p1_04.j2k-compare2base +NR-C1P1-p1_05.j2k-compare2base +NR-JP2-file2.jp2-compare2base +NR-RIC-subsampling_1.jp2-compare2base +NR-RIC-subsampling_2.jp2-compare2base +NR-RIC-zoo1.jp2-compare2base +NR-RIC-zoo2.jp2-compare2base +NR-DEC-_00042.j2k-2-decode-md5 +NR-DEC-buxI.j2k-9-decode-md5 +NR-DEC-CT_Phillips_JPEG2K_Decompr_Problem.j2k-13-decode-md5 +NR-DEC-Marrin.jp2-18-decode-md5 +NR-DEC-kodak_2layers_lrcp.j2c-31-decode-md5 +NR-DEC-kodak_2layers_lrcp.j2c-32-decode-md5 +NR-DEC-file409752.jp2-40-decode-md5 +NR-DEC-issue188_beach_64bitsbox.jp2-41-decode-md5 +NR-DEC-issue206_image-000.jp2-42-decode-md5 +NR-DEC-issue205.jp2-43-decode-md5 +NR-DEC-issue228.j2k-60-decode-md5 +NR-DEC-issue142.j2k-66-decode-md5 +NR-DEC-issue134.jp2-67-decode-md5 +NR-DEC-issue135.j2k-68-decode-md5 +NR-DEC-issue208.jp2-69-decode-md5 +NR-DEC-issue211.jp2-70-decode-md5 +NR-DEC-issue226.j2k-74-decode +NR-DEC-issue226.j2k-74-decode-md5 +NR-DEC-p1_04.j2k-124-decode-md5 +NR-DEC-p1_04.j2k-125-decode-md5 +NR-DEC-p1_04.j2k-126-decode-md5 +NR-DEC-p1_04.j2k-127-decode-md5 +NR-DEC-p1_04.j2k-128-decode-md5 +NR-DEC-p1_04.j2k-129-decode-md5 +NR-DEC-p1_04.j2k-131-decode-md5 +NR-DEC-p1_04.j2k-138-decode-md5 +NR-DEC-p1_04.j2k-140-decode-md5 +NR-DEC-p0_04.j2k-166-decode-md5 +NR-DEC-p0_04.j2k-167-decode-md5 +NR-DEC-p0_04.j2k-168-decode-md5 +NR-DEC-p0_04.j2k-172-decode-md5 +NR-DEC-issue205.jp2-253-decode-md5 +NR-DEC-issue236-ESYCC-CDEF.jp2-254-decode-md5 +NR-DEC-issue559-eci-090-CIELab.jp2-255-decode-md5 +NR-DEC-issue559-eci-091-CIELab.jp2-256-decode-md5 +NR-DEC-db11217111510058.jp2-306-decode-md5 +NR-DEC-tnsot_zero.jp2-307-decode-md5 +NR-DEC-Bretagne1_ht_lossy.j2k-311-decode-md5 +Found-But-No-Test-issue1472-bigloop.j2k +Found-But-No-Test-small_world_non_consecutive_tilepart_tlm.jp2 diff --git a/pkgs/by-name/op/openjpeg/package.nix b/pkgs/by-name/op/openjpeg/package.nix index 0bfa1067a7f7..618a251ce515 100644 --- a/pkgs/by-name/op/openjpeg/package.nix +++ b/pkgs/by-name/op/openjpeg/package.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchFromGitHub, cmake, pkg-config -, libpng, libtiff, zlib, lcms2, jpylyzer +, libpng, libtiff, zlib, lcms2 , jpipLibSupport ? false # JPIP library & executables , jpipServerSupport ? false, curl, fcgi # JPIP Server , jdk @@ -17,33 +17,42 @@ , vips }: -let - mkFlag = optSet: flag: "-D${flag}=${if optSet then "ON" else "OFF"}"; -in - stdenv.mkDerivation rec { pname = "openjpeg"; version = "2.5.2"; - src = fetchFromGitHub { - owner = "uclouvain"; - repo = "openjpeg"; - rev = "v${version}"; - hash = "sha256-mQ9B3MJY2/bg0yY/7jUJrAXM6ozAHT5fmwES5Q1SGxw="; - }; + srcs = [ + (fetchFromGitHub { + owner = "uclouvain"; + repo = "openjpeg"; + rev = "v${version}"; + hash = "sha256-mQ9B3MJY2/bg0yY/7jUJrAXM6ozAHT5fmwES5Q1SGxw="; + }) + # data for tests. may need to get updated with package + # https://github.com/uclouvain/openjpeg-data + (fetchFromGitHub { + name = "data"; + owner = "uclouvain"; + repo = "openjpeg-data"; + rev = "a428429db695fccfc6d698bd13b6937dffd9d005"; + hash = "sha256-udUi7sPNQJ5uCIAM8SqMGee6vRj1QbF9pLjdpNTQE5k="; + }) + ]; + + sourceRoot = "source"; outputs = [ "out" "dev" ]; cmakeFlags = [ - "-DCMAKE_INSTALL_NAME_DIR=\${CMAKE_INSTALL_PREFIX}/lib" - "-DBUILD_SHARED_LIBS=ON" + (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic)) "-DBUILD_CODEC=ON" "-DBUILD_THIRDPARTY=OFF" - (mkFlag jpipLibSupport "BUILD_JPIP") - (mkFlag jpipServerSupport "BUILD_JPIP_SERVER") + (lib.cmakeBool "BUILD_JPIP" jpipLibSupport) + (lib.cmakeBool "BUILD_JPIP_SERVER" jpipServerSupport) "-DBUILD_VIEWER=OFF" "-DBUILD_JAVA=OFF" - (mkFlag doCheck "BUILD_TESTING") + "-DOPJ_DATA_ROOT=../../data" + (lib.cmakeBool "BUILD_TESTING" doCheck) ]; nativeBuildInputs = [ cmake pkg-config ]; @@ -52,12 +61,15 @@ stdenv.mkDerivation rec { ++ lib.optionals jpipServerSupport [ curl fcgi ] ++ lib.optional (jpipLibSupport) jdk; - doCheck = (!stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isPower64); # tests fail on aarch64-linux and powerpc64 - nativeCheckInputs = [ jpylyzer ]; + # tests fail on aarch64-linux and powerpc64 + doCheck = !stdenv.hostPlatform.isPower64 + && stdenv.buildPlatform.canExecute stdenv.hostPlatform; + checkPhase = '' - substituteInPlace ../tools/ctest_scripts/travis-ci.cmake \ - --replace "JPYLYZER_EXECUTABLE=" "JPYLYZER_EXECUTABLE=\"$(command -v jpylyzer)\" # " - OPJ_SOURCE_DIR=.. ctest -S ../tools/ctest_scripts/travis-ci.cmake + runHook preCheck + ctest -j $NIX_BUILD_CORES \ + -E '.*jpylyser' --exclude-from-file ${./exclude-tests} + runHook postCheck ''; passthru = { From 2de1b4b14e17f42ba8b4bf43a29347c91511e008 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 9 Nov 2024 01:28:19 -0800 Subject: [PATCH 484/693] gcc{10,11,12,13,14}: reorder .cfi_startproc with label fixes llvm-18+ builds which require that an asm label precedes the .cfi_startproc pseudo instruction. --- .../cfi_startproc-reorder-label-09-1.diff | 16 +++++++++++++ .../cfi_startproc-reorder-label-14-1.diff | 16 +++++++++++++ .../cfi_startproc-reorder-label-2.diff | 16 +++++++++++++ .../compilers/gcc/patches/default.nix | 23 +++++++++++++------ 4 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-09-1.diff create mode 100644 pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-14-1.diff create mode 100644 pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-2.diff diff --git a/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-09-1.diff b/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-09-1.diff new file mode 100644 index 000000000000..ee27f402956e --- /dev/null +++ b/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-09-1.diff @@ -0,0 +1,16 @@ +this patch fixes build for clang-18+ + +diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S +index d3235bc33..1a56eb61c 100644 +--- a/libgcc/config/aarch64/lse.S ++++ b/libgcc/config/aarch64/lse.S +@@ -170,8 +170,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + .globl \name + .hidden \name + .type \name, %function +- .cfi_startproc + \name: ++ .cfi_startproc + BTI_C + .endm + diff --git a/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-14-1.diff b/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-14-1.diff new file mode 100644 index 000000000000..ea6dfe9c9b47 --- /dev/null +++ b/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-14-1.diff @@ -0,0 +1,16 @@ +this patch fixes build for clang-18+ + +diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S +index ecef47086..b478dd4d9 100644 +--- a/libgcc/config/aarch64/lse.S ++++ b/libgcc/config/aarch64/lse.S +@@ -174,8 +174,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + .globl \name + HIDDEN(\name) + SYMBOL_TYPE(\name, %function) +- .cfi_startproc + \name: ++ .cfi_startproc + .endm + + .macro ENDFN name diff --git a/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-2.diff b/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-2.diff new file mode 100644 index 000000000000..83aecff1a0df --- /dev/null +++ b/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-2.diff @@ -0,0 +1,16 @@ +this patch fixes build for clang-18+ + +diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S +index d3235bc33..1a56eb61c 100644 +--- a/libgcc/config/aarch64/lse.S ++++ b/libgcc/config/aarch64/lse.S +@@ -197,8 +197,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see + .text + .balign 16 + .private_extern _\name +- .cfi_startproc + _\name: ++ .cfi_startproc + BTI_C + .endm + diff --git a/pkgs/development/compilers/gcc/patches/default.nix b/pkgs/development/compilers/gcc/patches/default.nix index 4e2518baff9e..0f2e8369eaad 100644 --- a/pkgs/development/compilers/gcc/patches/default.nix +++ b/pkgs/development/compilers/gcc/patches/default.nix @@ -40,6 +40,15 @@ let is9 = majorVersion == "9"; is8 = majorVersion == "8"; is7 = majorVersion == "7"; + + # We only apply these patches when building a native toolchain for + # aarch64-darwin, as it breaks building a foreign one: + # https://github.com/iains/gcc-12-branch/issues/18 + canApplyIainsDarwinPatches = stdenv.hostPlatform.isDarwin + && stdenv.hostPlatform.isAarch64 + && buildPlatform == hostPlatform + && hostPlatform == targetPlatform; + inherit (lib) optionals optional; in @@ -71,6 +80,8 @@ in ++ optional langFortran (if atLeast12 then ./gcc-12-gfortran-driving.patch else ./gfortran-driving.patch) ++ [ ./ppc-musl.patch ] ++ optional (atLeast9 && langD) ./libphobos.patch +++ optional (atLeast9 && !atLeast14) ./cfi_startproc-reorder-label-09-1.diff +++ optional (atLeast14 && !canApplyIainsDarwinPatches) ./cfi_startproc-reorder-label-14-1.diff @@ -135,9 +146,7 @@ in "12" = [ ./gnat-darwin-dylib-install-name.patch ]; }.${majorVersion} or []) -# We only apply this patch when building a native toolchain for aarch64-darwin, as it breaks building -# a foreign one: https://github.com/iains/gcc-12-branch/issues/18 -++ optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 && buildPlatform == hostPlatform && hostPlatform == targetPlatform) ({ +++ optionals canApplyIainsDarwinPatches ({ "14" = [ (fetchpatch { name = "gcc-14-darwin-aarch64-support.patch"; @@ -159,24 +168,24 @@ in name = "gcc-13-darwin-aarch64-support.patch"; url = "https://raw.githubusercontent.com/Homebrew/formula-patches/bda0faddfbfb392e7b9c9101056b2c5ab2500508/gcc/gcc-13.3.0.diff"; sha256 = "sha256-RBTCBXIveGwuQGJLzMW/UexpUZdDgdXprp/G2NHkmQo="; - }) ]; + }) ./cfi_startproc-reorder-label-2.diff ]; "12" = [ (fetchurl { name = "gcc-12-darwin-aarch64-support.patch"; url = "https://raw.githubusercontent.com/Homebrew/formula-patches/1ed9eaea059f1677d27382c62f21462b476b37fe/gcc/gcc-12.4.0.diff"; sha256 = "sha256-wOjpT79lps4TKG5/E761odhLGCphBIkCbOPiQg/D1Fw="; - }) ]; + }) ./cfi_startproc-reorder-label-2.diff ]; "11" = [ (fetchpatch { # There are no upstream release tags in https://github.com/iains/gcc-11-branch. # 5cc4c42a0d4de08715c2eef8715ad5b2e92a23b6 is the commit from https://github.com/gcc-mirror/gcc/releases/tag/releases%2Fgcc-11.5.0 url = "https://github.com/iains/gcc-11-branch/compare/5cc4c42a0d4de08715c2eef8715ad5b2e92a23b6..gcc-11.5-darwin-r0.diff"; hash = "sha256-7lH+GkgkrE6nOp9PMdIoqlQNWK31s6oW+lDt1LIkadE="; - }) ]; + }) ./cfi_startproc-reorder-label-2.diff ]; "10" = [ (fetchpatch { # There are no upstream release tags in https://github.com/iains/gcc-10-branch. # d04fe55 is the commit from https://github.com/gcc-mirror/gcc/releases/tag/releases%2Fgcc-10.5.0 url = "https://github.com/iains/gcc-10-branch/compare/d04fe5541c53cb16d1ca5c80da044b4c7633dbc6...gcc-10-5Dr0-pre-0.diff"; hash = "sha256-kVUHZKtYqkWIcqxHG7yAOR2B60w4KWLoxzaiFD/FWYk="; - }) ]; + }) ./cfi_startproc-reorder-label-2.diff ]; }.${majorVersion} or []) # Work around newer AvailabilityInternal.h when building older versions of GCC. From 8e3554d3e3fbe6e286c77fbbc1a19b244a6d7c78 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 12 Nov 2024 03:44:30 +0000 Subject: [PATCH 485/693] termbench-pro: bump to `fmt_11` --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c4dbf3800cea..aa116a3908ae 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11081,7 +11081,7 @@ with pkgs; harfbuzz = harfbuzzFull; }; - termbench-pro = callPackage ../development/libraries/termbench-pro { fmt = fmt_8; }; + termbench-pro = callPackage ../development/libraries/termbench-pro { fmt = fmt_11; }; texpresso = callPackage ../tools/typesetting/tex/texpresso { texpresso-tectonic = callPackage ../tools/typesetting/tex/texpresso/tectonic.nix { }; From 693a0eaedefbe9361b53427dfcc0a3652153f074 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 12 Nov 2024 15:32:09 +0000 Subject: [PATCH 486/693] torrenttools: patch for `fmt_9` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’d take more work to get this working with the latest version, and this project seems abandoned, so I didn’t bother for now. --- pkgs/tools/misc/torrenttools/default.nix | 4 ++++ pkgs/tools/misc/torrenttools/fmt-9.patch | 29 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/misc/torrenttools/fmt-9.patch diff --git a/pkgs/tools/misc/torrenttools/default.nix b/pkgs/tools/misc/torrenttools/default.nix index 6daa39dd7e73..3a634ec17373 100644 --- a/pkgs/tools/misc/torrenttools/default.nix +++ b/pkgs/tools/misc/torrenttools/default.nix @@ -54,6 +54,10 @@ stdenv.mkDerivation rec { ]; sourceRoot = "torrenttools"; + patches = [ + ./fmt-9.patch + ]; + postUnpack = '' cp -pr cliprogress torrenttools/external/cliprogress cp -pr dottorrent torrenttools/external/dottorrent diff --git a/pkgs/tools/misc/torrenttools/fmt-9.patch b/pkgs/tools/misc/torrenttools/fmt-9.patch new file mode 100644 index 000000000000..5bdc666d4bd2 --- /dev/null +++ b/pkgs/tools/misc/torrenttools/fmt-9.patch @@ -0,0 +1,29 @@ +diff --git a/include/file_matcher.hpp b/include/file_matcher.hpp +index c10c7be405..b67baec0ef 100644 +--- a/include/file_matcher.hpp ++++ b/include/file_matcher.hpp +@@ -47,7 +47,7 @@ + } + + std::string error; +- std::string pattern = ".*.{}$"_format(extension); ++ std::string pattern = fmt::format(".*.{}$", extension); + file_include_list_.Add(pattern, &error); + file_include_list_empty_ = false; + Ensures(error.empty()); +@@ -62,7 +62,7 @@ + } + + std::string error; +- std::string pattern = ".*\\.{}$"_format(extension); ++ std::string pattern = fmt::format(".*\\.{}$", extension); + file_exclude_list_.Add(pattern, &error); + file_exclude_list_empty_ = false; + Ensures(error.empty()); +@@ -243,4 +243,4 @@ + }; + + +-} // namespace torrenttools +\ No newline at end of file ++} // namespace torrenttools diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index aa116a3908ae..2649ac69fdbe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16008,7 +16008,7 @@ with pkgs; }; torrenttools = callPackage ../tools/misc/torrenttools { - fmt = fmt_8; + fmt = fmt_9; }; tony = libsForQt5.callPackage ../applications/audio/tony { }; From 032868bd505b234ed2d19cd29c5ca49bf99a5dcc Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 12 Nov 2024 23:38:35 +0000 Subject: [PATCH 487/693] spdlog: `#define SPDLOG_FMT_EXTERNAL` This is required for the headers to work properly. --- pkgs/by-name/sp/spdlog/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/sp/spdlog/package.nix b/pkgs/by-name/sp/spdlog/package.nix index 6aa91db83549..0c9777b1ca88 100644 --- a/pkgs/by-name/sp/spdlog/package.nix +++ b/pkgs/by-name/sp/spdlog/package.nix @@ -41,6 +41,11 @@ stdenv.mkDerivation rec { postInstall = '' mkdir -p $out/share/doc/spdlog cp -rv ../example $out/share/doc/spdlog + + substituteInPlace $dev/include/spdlog/tweakme.h \ + --replace-fail \ + '// #define SPDLOG_FMT_EXTERNAL' \ + '#define SPDLOG_FMT_EXTERNAL' ''; doCheck = true; From e8db327d116e43c522a16c05a949cf3bdf00dcfb Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 12 Nov 2024 02:47:26 +0000 Subject: [PATCH 488/693] kompute: 0.8.1 -> 0.9.0 --- .../development/libraries/kompute/default.nix | 30 ++++++++----------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/pkgs/development/libraries/kompute/default.nix b/pkgs/development/libraries/kompute/default.nix index ced30a87dbfa..04b21d9ce026 100644 --- a/pkgs/development/libraries/kompute/default.nix +++ b/pkgs/development/libraries/kompute/default.nix @@ -6,41 +6,37 @@ , vulkan-headers , vulkan-loader , fmt +, spdlog , glslang , ninja }: stdenv.mkDerivation rec { pname = "kompute"; - version = "0.8.1"; + version = "0.9.0"; src = fetchFromGitHub { owner = "KomputeProject"; repo = "kompute"; rev = "v${version}"; - sha256 = "sha256-OkVGYh8QrD7JNqWFBLrDTYlk6IYHdvt4i7UtC4sQTzo="; + hash = "sha256-cf9Ef85R+VKao286+WHLgBWUqgwvuRocgeCzVJOGbdc="; }; - patches = [ - (fetchpatch { - url = "https://github.com/KomputeProject/kompute/commit/9a791b161dd58ca927fe090f65fa2b0e5e85e7ca.diff"; - sha256 = "OtFTN8sgPlyiMmVzUnqzCkVMKj6DWxbCXtYwkRdEprY="; - }) - (fetchpatch { - name = "enum-class-fix-for-fmt-8-x.patch"; - url = "https://github.com/KomputeProject/kompute/commit/f731f2e55c7aaaa804111106c3e469f9a642d4eb.patch"; - sha256 = "sha256-scTCYqkgKQnH27xzuY4FVbiwRuwBvChmLPPU7ZUrrL0="; - }) - ]; - cmakeFlags = [ + "-DKOMPUTE_OPT_USE_SPDLOG=ON" + # Doesn’t work without the vendored `spdlog`, and is redundant. + "-DKOMPUTE_OPT_LOG_LEVEL_DISABLED=ON" + "-DKOMPUTE_OPT_USE_BUILT_IN_SPDLOG=OFF" + "-DKOMPUTE_OPT_USE_BUILT_IN_FMT=OFF" + "-DKOMPUTE_OPT_USE_BUILT_IN_GOOGLE_TEST=OFF" + "-DKOMPUTE_OPT_USE_BUILT_IN_PYBIND11=OFF" + "-DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF" + "-DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON" "-DKOMPUTE_OPT_INSTALL=1" - "-DRELEASE=1" - "-DKOMPUTE_ENABLE_SPDLOG=1" ]; nativeBuildInputs = [ cmake ninja ]; - buildInputs = [ fmt ]; + buildInputs = [ fmt spdlog ]; propagatedBuildInputs = [ glslang vulkan-headers vulkan-loader ]; meta = with lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2649ac69fdbe..ea024cc7edca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18393,7 +18393,7 @@ with pkgs; kmonad = haskellPackages.kmonad.bin; kompute = callPackage ../development/libraries/kompute { - fmt = fmt_8; + fmt = fmt_10; }; # In general we only want keep the last three minor versions around that From cdb8260d7c88cc032e8faba42f7d7f99fd8d7bed Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 12 Nov 2024 03:08:20 +0000 Subject: [PATCH 489/693] irods{,-icommands}: bump to `fmt_9` --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ea024cc7edca..dd650846aab1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3895,7 +3895,7 @@ with pkgs; stdenv = llvmPackages_13.libcxxStdenv; libcxx = llvmPackages_13.libcxx; boost = boost178.override { inherit stdenv; }; - fmt = fmt_8.override { inherit stdenv; }; + fmt = fmt_9.override { inherit stdenv; }; nanodbc_llvm = nanodbc.override { inherit stdenv; }; avro-cpp_llvm = avro-cpp.override { inherit stdenv boost; }; spdlog_llvm = spdlog.override { inherit stdenv fmt; }; From e951807e2f7311fad126c54e3e3aa12a8cdfeda2 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 12 Nov 2024 03:31:01 +0000 Subject: [PATCH 490/693] fmt_8: drop --- pkgs/development/libraries/fmt/default.nix | 5 ----- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/fmt/default.nix b/pkgs/development/libraries/fmt/default.nix index 01b2b6828611..3edf0692e439 100644 --- a/pkgs/development/libraries/fmt/default.nix +++ b/pkgs/development/libraries/fmt/default.nix @@ -69,11 +69,6 @@ let }; in { - fmt_8 = generic { - version = "8.1.1"; - hash = "sha256-leb2800CwdZMJRWF5b1Y9ocK0jXpOX/nwo95icDf308="; - }; - fmt_9 = generic { version = "9.1.0"; hash = "sha256-rP6ymyRc7LnKxUXwPpzhHOQvpJkpnRFOt2ctvUNlYI0="; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 1446446b7d6c..dd2ad607389f 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -382,6 +382,7 @@ mapAliases { flutter316 = throw "flutter316 has been removed because it isn't updated anymore, and no packages in nixpkgs use it. If you still need it, use flutter.mkFlutter to get a custom version"; # Added 2024-10-05 flutter322 = throw "flutter322 has been removed because it isn't updated anymore, and no packages in nixpkgs use it. If you still need it, use flutter.mkFlutter to get a custom version"; # Added 2024-10-05 flutter323 = throw "flutter323 has been removed because it isn't updated anymore, and no packages in nixpkgs use it. If you still need it, use flutter.mkFlutter to get a custom version"; # Added 2024-10-05 + fmt_8 = throw "fmt_8 has been removed as it is obsolete and was no longer used in the tree"; # Added 2024-11-12 foldingathome = throw "'foldingathome' has been renamed to/replaced by 'fahclient'"; # Converted to throw 2024-10-17 forgejo-actions-runner = forgejo-runner; # Added 2024-04-04 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dd650846aab1..10b1e3a191c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9188,7 +9188,7 @@ with pkgs; fltk = fltk13; fltk-minimal = fltk13-minimal; - inherit (callPackages ../development/libraries/fmt { }) fmt_8 fmt_9 fmt_10 fmt_11; + inherit (callPackages ../development/libraries/fmt { }) fmt_9 fmt_10 fmt_11; fmt = fmt_10; From 164136c9f8157de6c87022cfc3048378df65fe08 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 12 Nov 2024 01:46:43 +0000 Subject: [PATCH 491/693] =?UTF-8?q?fmt=5F9:=20add=20patch=20for=20Clang=20?= =?UTF-8?q?=E2=89=A5=2018?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/libraries/fmt/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/fmt/default.nix b/pkgs/development/libraries/fmt/default.nix index 01b2b6828611..9977465a50d9 100644 --- a/pkgs/development/libraries/fmt/default.nix +++ b/pkgs/development/libraries/fmt/default.nix @@ -77,6 +77,13 @@ in fmt_9 = generic { version = "9.1.0"; hash = "sha256-rP6ymyRc7LnKxUXwPpzhHOQvpJkpnRFOt2ctvUNlYI0="; + patches = [ + # Fixes the build with Clang ≥ 18. + (fetchpatch { + url = "https://github.com/fmtlib/fmt/commit/c4283ec471bd3efdb114bc1ab30c7c7c5e5e0ee0.patch"; + hash = "sha256-YyB5GY/ZqJQIhhGy0ICMPzfP/OUuyLnciiyv8Nscsec="; + }) + ]; }; fmt_10 = generic { From 8d819b5b0f017a724d2d62a03d0e7d63fe04dbc9 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 12 May 2024 15:31:11 -0400 Subject: [PATCH 492/693] qt5.qtbase: use system freetype and libpng These work on Darwin, and using the system libpng avoids an issue trying to build the vendored version of libpng with clang 18. --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index c61ce503f4f5..1ed4bfc8b2c2 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: ({ libxml2 libxslt openssl sqlite zlib # Text rendering - harfbuzz icu + freetype harfbuzz icu # Image formats libjpeg libpng @@ -67,7 +67,7 @@ stdenv.mkDerivation (finalAttrs: ({ dbus glib udev # Text rendering - fontconfig freetype + fontconfig libdrm @@ -323,6 +323,7 @@ stdenv.mkDerivation (finalAttrs: ({ "-system-sqlite" ''-${if mysqlSupport then "plugin" else "no"}-sql-mysql'' ''-${if postgresql != null then "plugin" else "no"}-sql-psql'' + "-system-libpng" "-make libs" "-make tools" @@ -332,8 +333,6 @@ stdenv.mkDerivation (finalAttrs: ({ ++ ( if stdenv.hostPlatform.isDarwin then [ "-no-fontconfig" - "-qt-freetype" - "-qt-libpng" "-no-framework" "-no-rpath" ] else [ @@ -351,8 +350,6 @@ stdenv.mkDerivation (finalAttrs: ({ ''-${lib.optionalString (cups == null) "no-"}cups'' "-dbus-linked" "-glib" - ] ++ [ - "-system-libpng" ] ++ lib.optional withGtk3 "-gtk" ++ lib.optional withLibinput "-libinput" ++ [ From 0406f6c9a75fc1b14913111ad23be8879a7218c0 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Fri, 15 Nov 2024 09:48:21 +0000 Subject: [PATCH 493/693] openjpeg: fix eval python3Packages.pylibjpeg-openjpeg tries to access openjpeg.src which was changed to srcs in 1f9a1d01ba8ad00af4bff49c302f2071d35b1ac9. Change it back. --- pkgs/by-name/op/openjpeg/package.nix | 40 +++++++++++++--------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/op/openjpeg/package.nix b/pkgs/by-name/op/openjpeg/package.nix index 618a251ce515..15296d33b85d 100644 --- a/pkgs/by-name/op/openjpeg/package.nix +++ b/pkgs/by-name/op/openjpeg/package.nix @@ -17,29 +17,26 @@ , vips }: +let + # may need to get updated with package + # https://github.com/uclouvain/openjpeg-data + test-data = fetchFromGitHub { + owner = "uclouvain"; + repo = "openjpeg-data"; + rev = "a428429db695fccfc6d698bd13b6937dffd9d005"; + hash = "sha256-udUi7sPNQJ5uCIAM8SqMGee6vRj1QbF9pLjdpNTQE5k="; + }; +in stdenv.mkDerivation rec { pname = "openjpeg"; version = "2.5.2"; - srcs = [ - (fetchFromGitHub { - owner = "uclouvain"; - repo = "openjpeg"; - rev = "v${version}"; - hash = "sha256-mQ9B3MJY2/bg0yY/7jUJrAXM6ozAHT5fmwES5Q1SGxw="; - }) - # data for tests. may need to get updated with package - # https://github.com/uclouvain/openjpeg-data - (fetchFromGitHub { - name = "data"; - owner = "uclouvain"; - repo = "openjpeg-data"; - rev = "a428429db695fccfc6d698bd13b6937dffd9d005"; - hash = "sha256-udUi7sPNQJ5uCIAM8SqMGee6vRj1QbF9pLjdpNTQE5k="; - }) - ]; - - sourceRoot = "source"; + src = fetchFromGitHub { + owner = "uclouvain"; + repo = "openjpeg"; + rev = "v${version}"; + hash = "sha256-mQ9B3MJY2/bg0yY/7jUJrAXM6ozAHT5fmwES5Q1SGxw="; + }; outputs = [ "out" "dev" ]; @@ -51,9 +48,8 @@ stdenv.mkDerivation rec { (lib.cmakeBool "BUILD_JPIP_SERVER" jpipServerSupport) "-DBUILD_VIEWER=OFF" "-DBUILD_JAVA=OFF" - "-DOPJ_DATA_ROOT=../../data" (lib.cmakeBool "BUILD_TESTING" doCheck) - ]; + ] ++ lib.optional doCheck "-DOPJ_DATA_ROOT=${test-data}"; nativeBuildInputs = [ cmake pkg-config ]; @@ -61,7 +57,7 @@ stdenv.mkDerivation rec { ++ lib.optionals jpipServerSupport [ curl fcgi ] ++ lib.optional (jpipLibSupport) jdk; - # tests fail on aarch64-linux and powerpc64 + # tests did fail on powerpc64 doCheck = !stdenv.hostPlatform.isPower64 && stdenv.buildPlatform.canExecute stdenv.hostPlatform; From 94d28175ff761adc44d6f680b0070d36ba89b628 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 24 May 2024 01:41:01 -0400 Subject: [PATCH 494/693] nodejs_{18,20}: fix build with clang 18 on Darwin --- pkgs/development/web/nodejs/v18.nix | 7 +++++++ pkgs/development/web/nodejs/v20.nix | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/pkgs/development/web/nodejs/v18.nix b/pkgs/development/web/nodejs/v18.nix index 6099d100675a..1ab63eac7951 100644 --- a/pkgs/development/web/nodejs/v18.nix +++ b/pkgs/development/web/nodejs/v18.nix @@ -47,5 +47,12 @@ buildNodejs { url = "https://github.com/nodejs/node/commit/d0a6b605fba6cd69a82e6f12ff0363eef8fe1ee9.patch"; hash = "sha256-TfYal/PikRZHL6zpAlC3SmkYXCe+/8Gs83dLX/X/P/k="; }) + # Remove unused `fdopen` in vendored zlib, which causes compilation failures with clang 18 on Darwin. + (fetchpatch2 { + url = "https://github.com/madler/zlib/commit/4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9.patch?full_index=1"; + extraPrefix = "deps/v8/third_party/zlib/"; + stripLen = 1; + hash = "sha256-WVxsoEcJu0WBTyelNrVQFTZxJhnekQb1GrueeRBRdnY="; + }) ] ++ gypPatches; } diff --git a/pkgs/development/web/nodejs/v20.nix b/pkgs/development/web/nodejs/v20.nix index 4b0be19dad77..9f0e1cc38b88 100644 --- a/pkgs/development/web/nodejs/v20.nix +++ b/pkgs/development/web/nodejs/v20.nix @@ -48,5 +48,12 @@ buildNodejs { url = "https://github.com/nodejs/node/commit/0f7bdcc17fbc7098b89f238f4bd8ecad9367887b.patch?full_index=1"; hash = "sha256-lXx6QyD2anlY9qAwjNMFM2VcHckBshghUF1NaMoaNl4="; }) + # Remove unused `fdopen` in vendored zlib, which causes compilation failures with clang 18 on Darwin. + (fetchpatch2 { + url = "https://github.com/madler/zlib/commit/4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9.patch?full_index=1"; + extraPrefix = "deps/v8/third_party/zlib/"; + stripLen = 1; + hash = "sha256-WVxsoEcJu0WBTyelNrVQFTZxJhnekQb1GrueeRBRdnY="; + }) ] ++ gypPatches; } From 1d23e258fba5a89d164815e1829015fb4839c52f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 23 May 2024 20:33:37 -0400 Subject: [PATCH 495/693] qt5.qtlocation: fix build with clang 18 --- pkgs/development/libraries/qt-5/modules/qtlocation.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/qt-5/modules/qtlocation.nix b/pkgs/development/libraries/qt-5/modules/qtlocation.nix index 35627af0c685..617a735baaa3 100644 --- a/pkgs/development/libraries/qt-5/modules/qtlocation.nix +++ b/pkgs/development/libraries/qt-5/modules/qtlocation.nix @@ -4,6 +4,11 @@ qtModule { pname = "qtlocation"; propagatedBuildInputs = [ qtbase qtmultimedia ]; outputs = [ "bin" "out" "dev" ]; + # Clang 18 treats a non-const, narrowing conversion in an initializer list as an error, + # which results in a failure building a 3rd party dependency of qtlocation. Just suppress it. + env = lib.optionalAttrs (stdenv.cc.isClang && (lib.versionAtLeast (lib.getVersion stdenv.cc) "18")) { + NIX_CFLAGS_COMPILE = "-Wno-c++11-narrowing-const-reference"; + }; qmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ # boost uses std::auto_ptr which has been disabled in clang with libcxx # This flag re-enables this feature From 5cb1de1b5da8c47ca67ee3f0bebff4276f22e39a Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 16:16:24 +0000 Subject: [PATCH 496/693] nodejs_{18,20}: apply V8 patches for LLVM 19 --- pkgs/development/web/nodejs/v18.nix | 15 +++++++++++++++ pkgs/development/web/nodejs/v20.nix | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/pkgs/development/web/nodejs/v18.nix b/pkgs/development/web/nodejs/v18.nix index 1ab63eac7951..b9a50c718cb2 100644 --- a/pkgs/development/web/nodejs/v18.nix +++ b/pkgs/development/web/nodejs/v18.nix @@ -54,5 +54,20 @@ buildNodejs { stripLen = 1; hash = "sha256-WVxsoEcJu0WBTyelNrVQFTZxJhnekQb1GrueeRBRdnY="; }) + # Backport V8 fixes for LLVM 19. + (fetchpatch2 { + url = "https://chromium.googlesource.com/v8/v8/+/182d9c05e78b1ddb1cb8242cd3628a7855a0336f%5E%21/?format=TEXT"; + decode = "base64 -d"; + extraPrefix = "deps/v8/"; + stripLen = 1; + hash = "sha256-bDTwFbATPn5W4VifWz/SqaiigXYDWHq785C64VezuUE="; + }) + (fetchpatch2 { + url = "https://chromium.googlesource.com/v8/v8/+/1a3ecc2483b2dba6ab9f7e9f8f4b60dbfef504b7%5E%21/?format=TEXT"; + decode = "base64 -d"; + extraPrefix = "deps/v8/"; + stripLen = 1; + hash = "sha256-6y3aEqxNC4iTQEv1oewodJrhOHxjp5xZMq1P1QL94Rg="; + }) ] ++ gypPatches; } diff --git a/pkgs/development/web/nodejs/v20.nix b/pkgs/development/web/nodejs/v20.nix index 9f0e1cc38b88..b147771e6660 100644 --- a/pkgs/development/web/nodejs/v20.nix +++ b/pkgs/development/web/nodejs/v20.nix @@ -55,5 +55,20 @@ buildNodejs { stripLen = 1; hash = "sha256-WVxsoEcJu0WBTyelNrVQFTZxJhnekQb1GrueeRBRdnY="; }) + # Backport V8 fixes for LLVM 19. + (fetchpatch2 { + url = "https://chromium.googlesource.com/v8/v8/+/182d9c05e78b1ddb1cb8242cd3628a7855a0336f%5E%21/?format=TEXT"; + decode = "base64 -d"; + extraPrefix = "deps/v8/"; + stripLen = 1; + hash = "sha256-bDTwFbATPn5W4VifWz/SqaiigXYDWHq785C64VezuUE="; + }) + (fetchpatch2 { + url = "https://chromium.googlesource.com/v8/v8/+/1a3ecc2483b2dba6ab9f7e9f8f4b60dbfef504b7%5E%21/?format=TEXT"; + decode = "base64 -d"; + extraPrefix = "deps/v8/"; + stripLen = 1; + hash = "sha256-6y3aEqxNC4iTQEv1oewodJrhOHxjp5xZMq1P1QL94Rg="; + }) ] ++ gypPatches; } From f9a5549db27b332d5fffc7a475695f6c40d50848 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 16 Nov 2024 11:48:51 -0800 Subject: [PATCH 497/693] llvmPackages{12-git}.clang: don't swallow unsupported option errors when compiling + linking `https://github.com/llvm/llvm-project/issues/116278` make clang report unsupported option errors / warning when compiling + linking in the same command. this works ``` $ clang --target=aarch64 -mpopcnt hello.c clang: error: unsupported option '-mpopcnt' for target aarch64 ``` before change clang swallows the error ``` $ clang --target=aarch64 -mpopcnt hello.c -lc $ echo $? 0 ``` after change error is reported: ``` $ clang --target=aarch64 -mpopcnt hello.c -lc clang: error: unsupported option '-mpopcnt' for target aarch64 ``` --- .../clang/clang-unsupported-option.patch | 75 +++++++++++++++++++ .../compilers/llvm/common/default.nix | 6 ++ 2 files changed, 81 insertions(+) create mode 100644 pkgs/development/compilers/llvm/common/clang/clang-unsupported-option.patch diff --git a/pkgs/development/compilers/llvm/common/clang/clang-unsupported-option.patch b/pkgs/development/compilers/llvm/common/clang/clang-unsupported-option.patch new file mode 100644 index 000000000000..b265e7922c0d --- /dev/null +++ b/pkgs/development/compilers/llvm/common/clang/clang-unsupported-option.patch @@ -0,0 +1,75 @@ +From 7ef5ed98cc6666f64db2f155ded2077ce038e1e4 Mon Sep 17 00:00:00 2001 +From: Reno Dakota +Date: Sat, 16 Nov 2024 05:57:40 +0000 +Subject: [PATCH] [Clang][Driver] report unsupported option error regardless of + argument order + +This change updates clang to report unsupported option errors regardless +of the command line argument order. + +When clang with a source file and without `-c` it will both compile and +link. When an unsupported option is also part of the command line clang +should generated an error. However, if the source file name comes before +an object file, eg: `-lc`, the error is ignored. + +``` +$ clang --target=x86_64 -lc hello.c -mhtm +clang: error: unsupported option '-mhtm' for target 'x86_64' +$ echo $? +1 +``` + +but if `-lc` comes after `hello.c` the error is dropped + +``` +$ clang --target=x86_64 hello.c -mhtm -lc +$ echo $? +0 +``` + +after this change clang will report the error regardless of the command +line argument order. +--- + clang/lib/Driver/Driver.cpp | 13 ++++++------- + clang/test/Driver/unsupported-option.c | 10 ++++++++++ + 2 files changed, 16 insertions(+), 7 deletions(-) + +diff --git a/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp +index 93e85f7dffe35a..8e784a7b130ac3 100644 +--- a/lib/Driver/Driver.cpp ++++ b/lib/Driver/Driver.cpp +@@ -4064,17 +4064,18 @@ void Driver::handleArguments(Compilation &C, DerivedArgList &Args, + YcArg = YuArg = nullptr; + } + +- unsigned LastPLSize = 0; ++ bool LinkOnly = phases::Link == FinalPhase && Inputs.size() > 0; + for (auto &I : Inputs) { + types::ID InputType = I.first; + const Arg *InputArg = I.second; + + auto PL = types::getCompilationPhases(InputType); +- LastPLSize = PL.size(); ++ ++ phases::ID InitialPhase = PL[0]; ++ LinkOnly = LinkOnly && phases::Link == InitialPhase && PL.size() == 1; + + // If the first step comes after the final phase we are doing as part of + // this compilation, warn the user about it. +- phases::ID InitialPhase = PL[0]; + if (InitialPhase > FinalPhase) { + if (InputArg->isClaimed()) + continue; +@@ -4129,10 +4130,8 @@ void Driver::handleArguments(Compilation &C, DerivedArgList &Args, + } + } + +- // If we are linking, claim any options which are obviously only used for +- // compilation. +- // FIXME: Understand why the last Phase List length is used here. +- if (FinalPhase == phases::Link && LastPLSize == 1) { ++ // claim any options which are obviously only used for compilation. ++ if (LinkOnly) { + Args.ClaimAllArgs(options::OPT_CompileOnly_Group); + Args.ClaimAllArgs(options::OPT_cl_compile_Group); + } diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index fae0f963e905..b0d05c454a79 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -521,6 +521,12 @@ let (metadata.getVersionFile "clang/purity.patch") # https://reviews.llvm.org/D51899 (metadata.getVersionFile "clang/gnu-install-dirs.patch") + + # https://github.com/llvm/llvm-project/pull/116476 + # prevent clang ignoring warnings / errors for unsuppored + # options when building & linking a source file with trailing + # libraries. eg: `clang -munsupported hello.c -lc` + ./clang/clang-unsupported-option.patch ] ++ lib.optional (lib.versions.major metadata.release_version == "13") # Revert of https://reviews.llvm.org/D100879 From 42ef3589e685ba2ba10a67928341e5a40e225038 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 16 Nov 2024 16:36:42 +0000 Subject: [PATCH 498/693] Revert "nodejs_18: fix build with clang 16 mk2" libc++ 19 no longer supports Clang < 17. This reverts commit b034e4cbf12f7c0d749674c102e31e6a47fa2d7f. --- pkgs/development/web/nodejs/v18.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pkgs/development/web/nodejs/v18.nix b/pkgs/development/web/nodejs/v18.nix index b9a50c718cb2..e8783fc314cd 100644 --- a/pkgs/development/web/nodejs/v18.nix +++ b/pkgs/development/web/nodejs/v18.nix @@ -1,19 +1,8 @@ -{ callPackage, lib, overrideCC, pkgs, buildPackages, openssl, python311, fetchpatch2, enableNpm ? true }: +{ callPackage, lib, openssl, python311, fetchpatch2, enableNpm ? true }: let - # Clang 16+ cannot build Node v18 due to -Wenum-constexpr-conversion errors. - # Use an older version of clang with the current libc++ for compatibility (e.g., with icu). - ensureCompatibleCC = packages: - if packages.stdenv.cc.isClang && lib.versionAtLeast (lib.getVersion packages.stdenv.cc.cc) "16" - then overrideCC packages.llvmPackages_15.stdenv (packages.llvmPackages_15.stdenv.cc.override { - inherit (packages.llvmPackages) libcxx; - }) - else packages.stdenv; - buildNodejs = callPackage ./nodejs.nix { inherit openssl; - stdenv = ensureCompatibleCC pkgs; - buildPackages = buildPackages // { stdenv = ensureCompatibleCC buildPackages; }; python = python311; }; From b3797b6d48b59ca5d8e1c991278d33ad48bde9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 8 Nov 2024 12:16:16 -0800 Subject: [PATCH 499/693] gpgme: 1.23.2 -> 1.24.0 Changelog: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;f=NEWS;hb=gpgme-1.24.0 --- pkgs/development/libraries/gpgme/default.nix | 6 +- .../python-310-312-remove-distutils.patch | 647 ------------------ .../libraries/gpgme/python313-support.patch | 16 +- 3 files changed, 10 insertions(+), 659 deletions(-) delete mode 100644 pkgs/development/libraries/gpgme/python-310-312-remove-distutils.patch diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index d9b2f9cdb182..ee2003a393bc 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { pname = "gpgme"; - version = "1.23.2"; + version = "1.24.0"; pyproject = true; outputs = [ @@ -37,12 +37,10 @@ stdenv.mkDerivation rec { src = fetchurl { url = "mirror://gnupg/gpgme/gpgme-${version}.tar.bz2"; - hash = "sha256-lJnosfM8zLaBVSehvBYEnTWmGYpsX64BhfK9VhvOUiQ="; + hash = "sha256-YeOmrYkyP+z6/xdrwXKPuMMxLy+qg0JNnVB3uiD199o="; }; patches = [ - # Support Python 3.10-3.12, remove distutils, https://dev.gnupg.org/D545 - ./python-310-312-remove-distutils.patch # Support Python 3.13 ./python313-support.patch # Fix a test after disallowing compressed signatures in gpg (PR #180336) diff --git a/pkgs/development/libraries/gpgme/python-310-312-remove-distutils.patch b/pkgs/development/libraries/gpgme/python-310-312-remove-distutils.patch deleted file mode 100644 index 774188aee89c..000000000000 --- a/pkgs/development/libraries/gpgme/python-310-312-remove-distutils.patch +++ /dev/null @@ -1,647 +0,0 @@ -diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am ---- a/lang/python/Makefile.am -+++ b/lang/python/Makefile.am -@@ -34,8 +34,8 @@ - .PHONY: prepare - prepare: copystamp - --# For VPATH builds we need to copy some files because Python's --# distutils are not VPATH-aware. -+# For VPATH builds we need to copy some files because Python -+# is not VPATH-aware. - copystamp: - ln -sf "$(top_srcdir)/src/data.h" . - ln -sf "$(top_builddir)/conf/config.h" . -@@ -48,7 +48,7 @@ - CFLAGS="$(CFLAGS)" \ - srcdir="$(srcdir)" \ - top_builddir="$(top_builddir)" \ -- $$PYTHON setup.py build --verbose --build-base="$$(basename "$${PYTHON}")-gpg" ; \ -+ $$PYTHON -m pip --verbose install --no-index --no-build-isolation --root="$$(basename "$${PYTHON}")-gpg" ${srcdir} ; \ - done - - python$(PYTHON_VERSION)-gpg/dist/gpg-$(VERSION).tar.gz.asc: copystamp -@@ -57,8 +57,7 @@ - CFLAGS="$(CFLAGS)" \ - srcdir="$(srcdir)" \ - top_builddir="$(top_builddir)" \ -- $(PYTHON) setup.py sdist --verbose --dist-dir=python$(PYTHON_VERSION)-gpg-dist \ -- --manifest=python$(PYTHON_VERSION)-gpg-dist/MANIFEST -+ $(PYTHON) -m build --sdist --outdir=python$(PYTHON_VERSION)-gpg-dist - gpgbin=gpgconf --list-components | grep OpenPGP | sed -e 's/gpg:OpenPGP://g' - $(gpgbin) --detach-sign --armor python$(PYTHON_VERSION)-gpg-dist/gpg-$(VERSION).tar.gz - -@@ -92,17 +91,16 @@ - CFLAGS="$(CFLAGS)" \ - srcdir="$(srcdir)" \ - top_builddir="$(top_builddir)" \ -- $$PYTHON setup.py \ -- build \ -- --build-base="$$(basename "$${PYTHON}")-gpg" \ -+ $$PYTHON -m pip --verbose \ - install \ -+ --no-index --no-build-isolation \ - --prefix "$(DESTDIR)$(prefix)" \ -- --verbose ; \ -+ ${srcdir} ; \ - done - - uninstall-local: - set -x; GV=$$(echo $(VERSION) | tr - _); for PYTHON in $(PYTHONS); do \ - PLATLIB="$(prefix)/$$("$${PYTHON}" -c 'import sysconfig, os; print(os.path.relpath(sysconfig.get_path("platlib", scheme="posix_prefix"), sysconfig.get_config_var("prefix")))')" ; \ - rm -rf -- "$(DESTDIR)$${PLATLIB}/gpg" \ -- "$(DESTDIR)$${PLATLIB}"/gpg-$$GV-py*.egg-info ; \ -+ "$(DESTDIR)$${PLATLIB}"/gpg-$$GV.dist-info ; \ - done -diff --git a/lang/python/doc/src/gpgme-python-howto.org b/lang/python/doc/src/gpgme-python-howto.org ---- a/lang/python/doc/src/gpgme-python-howto.org -+++ b/lang/python/doc/src/gpgme-python-howto.org -@@ -2945,7 +2945,7 @@ - =setup.py= file which contains this: - - #+BEGIN_SRC python -i --from distutils.core import setup -+from setuptools import setup - from Cython.Build import cythonize - - setup( -diff --git a/lang/python/examples/howto/advanced/cython/setup.py b/lang/python/examples/howto/advanced/cython/setup.py ---- a/lang/python/examples/howto/advanced/cython/setup.py -+++ b/lang/python/examples/howto/advanced/cython/setup.py -@@ -1,4 +1,4 @@ --from distutils.core import setup -+from setuptools import setup - from Cython.Build import cythonize - - setup( -diff --git a/lang/python/setup.py.in b/lang/python/setup.py.in ---- a/lang/python/setup.py.in -+++ b/lang/python/setup.py.in -@@ -18,8 +18,8 @@ - # License along with this library; if not, write to the Free Software - # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - --from distutils.core import setup, Extension --from distutils.command.build import build -+from setuptools import setup, Extension -+from setuptools.command.build import build - - import glob - import os -@@ -225,9 +225,8 @@ - build.run(self) - - --py3 = [] if sys.version_info.major < 3 else ['-py3'] - swig_sources = [] --swig_opts = ['-threads'] + py3 + extra_swig_opts -+swig_opts = ['-threads'] + extra_swig_opts - swige = Extension( - 'gpg._gpgme', - sources=swig_sources, -diff --git a/m4/ax_python_devel.m4 b/m4/ax_python_devel.m4 ---- a/m4/ax_python_devel.m4 -+++ b/m4/ax_python_devel.m4 -@@ -1,10 +1,10 @@ - # =========================================================================== --# https://www.gnu.org/software/autoconf-archive/ax_python_devel.html -+# https://www.gnu.org/software/autoconf-archive/ax_python_devel.html - # =========================================================================== - # - # SYNOPSIS - # --# AX_PYTHON_DEVEL([version]) -+# AX_PYTHON_DEVEL([version[,optional]]) - # - # DESCRIPTION - # -@@ -12,8 +12,8 @@ - # in your configure.ac. - # - # This macro checks for Python and tries to get the include path to --# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LDFLAGS) --# output variables. It also exports $(PYTHON_EXTRA_LIBS) and -+# 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output -+# variables. It also exports $(PYTHON_EXTRA_LIBS) and - # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code. - # - # You can search for some particular version of Python by passing a -@@ -23,6 +23,11 @@ - # version number. Don't use "PYTHON_VERSION" for this: that environment - # variable is declared as precious and thus reserved for the end-user. - # -+# By default this will fail if it does not detect a development version of -+# python. If you want it to continue, set optional to true, like -+# AX_PYTHON_DEVEL([], [true]). The ax_python_devel_found variable will be -+# "no" if it fails. -+# - # This macro should work for all versions of Python >= 2.1.0. As an end - # user, you can disable the check for the python version by setting the - # PYTHON_NOVERSIONCHECK environment variable to something else than the -@@ -67,10 +72,18 @@ - # modified version of the Autoconf Macro, you may extend this special - # exception to the GPL to apply to your modified version as well. - --#serial 17 -+#serial 36 - - AU_ALIAS([AC_PYTHON_DEVEL], [AX_PYTHON_DEVEL]) - AC_DEFUN([AX_PYTHON_DEVEL],[ -+ # Get whether it's optional -+ if test -z "$2"; then -+ ax_python_devel_optional=false -+ else -+ ax_python_devel_optional=$2 -+ fi -+ ax_python_devel_found=yes -+ - # - # Allow the use of a (user set) custom python version - # -@@ -81,81 +94,147 @@ - - AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]]) - if test -z "$PYTHON"; then -- AC_MSG_ERROR([Cannot find python$PYTHON_VERSION in your system path]) -+ AC_MSG_WARN([Cannot find python$PYTHON_VERSION in your system path]) -+ if ! $ax_python_devel_optional; then -+ AC_MSG_ERROR([Giving up, python development not available]) -+ fi -+ ax_python_devel_found=no - PYTHON_VERSION="" - fi - -- # -- # Check for a version of Python >= 2.1.0 -- # -- AC_MSG_CHECKING([for a version of Python >= '2.1.0']) -- ac_supports_python_ver=`$PYTHON -c "import sys; \ -+ if test $ax_python_devel_found = yes; then -+ # -+ # Check for a version of Python >= 2.1.0 -+ # -+ AC_MSG_CHECKING([for a version of Python >= '2.1.0']) -+ ac_supports_python_ver=`$PYTHON -c "import sys; \ - ver = sys.version.split ()[[0]]; \ - print (ver >= '2.1.0')"` -- if test "$ac_supports_python_ver" != "True"; then -+ if test "$ac_supports_python_ver" != "True"; then - if test -z "$PYTHON_NOVERSIONCHECK"; then - AC_MSG_RESULT([no]) -- AC_MSG_FAILURE([ -+ AC_MSG_WARN([ - This version of the AC@&t@_PYTHON_DEVEL macro - doesn't work properly with versions of Python before - 2.1.0. You may need to re-run configure, setting the --variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG, -+variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG, - PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand. - Moreover, to disable this check, set PYTHON_NOVERSIONCHECK - to something else than an empty string. - ]) -+ if ! $ax_python_devel_optional; then -+ AC_MSG_FAILURE([Giving up]) -+ fi -+ ax_python_devel_found=no -+ PYTHON_VERSION="" - else - AC_MSG_RESULT([skip at user request]) - fi -- else -+ else - AC_MSG_RESULT([yes]) -+ fi - fi - -- # -- # if the macro parameter ``version'' is set, honour it -- # -- if test -n "$1"; then -+ if test $ax_python_devel_found = yes; then -+ # -+ # If the macro parameter ``version'' is set, honour it. -+ # A Python shim class, VPy, is used to implement correct version comparisons via -+ # string expressions, since e.g. a naive textual ">= 2.7.3" won't work for -+ # Python 2.7.10 (the ".1" being evaluated as less than ".3"). -+ # -+ if test -n "$1"; then - AC_MSG_CHECKING([for a version of Python $1]) -- ac_supports_python_ver=`$PYTHON -c "import sys; \ -- ver = sys.version.split ()[[0]]; \ -+ cat << EOF > ax_python_devel_vpy.py -+class VPy: -+ def vtup(self, s): -+ return tuple(map(int, s.strip().replace("rc", ".").split("."))) -+ def __init__(self): -+ import sys -+ self.vpy = tuple(sys.version_info)[[:3]] -+ def __eq__(self, s): -+ return self.vpy == self.vtup(s) -+ def __ne__(self, s): -+ return self.vpy != self.vtup(s) -+ def __lt__(self, s): -+ return self.vpy < self.vtup(s) -+ def __gt__(self, s): -+ return self.vpy > self.vtup(s) -+ def __le__(self, s): -+ return self.vpy <= self.vtup(s) -+ def __ge__(self, s): -+ return self.vpy >= self.vtup(s) -+EOF -+ ac_supports_python_ver=`$PYTHON -c "import ax_python_devel_vpy; \ -+ ver = ax_python_devel_vpy.VPy(); \ - print (ver $1)"` -+ rm -rf ax_python_devel_vpy*.py* __pycache__/ax_python_devel_vpy*.py* - if test "$ac_supports_python_ver" = "True"; then -- AC_MSG_RESULT([yes]) -+ AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) -- AC_MSG_ERROR([this package requires Python $1. -+ AC_MSG_WARN([this package requires Python $1. - If you have it installed, but it isn't the default Python - interpreter in your system path, please pass the PYTHON_VERSION - variable to configure. See ``configure --help'' for reference. - ]) -+ if ! $ax_python_devel_optional; then -+ AC_MSG_ERROR([Giving up]) -+ fi -+ ax_python_devel_found=no - PYTHON_VERSION="" - fi -+ fi - fi - -- # -- # Check if you have distutils, else fail -- # -- AC_MSG_CHECKING([for the distutils Python package]) -- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` -- if test -z "$ac_distutils_result"; then -+ if test $ax_python_devel_found = yes; then -+ # -+ # Check if you have distutils, else fail -+ # -+ AC_MSG_CHECKING([for the sysconfig Python package]) -+ ac_sysconfig_result=`$PYTHON -c "import sysconfig" 2>&1` -+ if test $? -eq 0; then - AC_MSG_RESULT([yes]) -- else -+ IMPORT_SYSCONFIG="import sysconfig" -+ else - AC_MSG_RESULT([no]) -- AC_MSG_ERROR([cannot import Python module "distutils". -+ -+ AC_MSG_CHECKING([for the distutils Python package]) -+ ac_sysconfig_result=`$PYTHON -c "from distutils import sysconfig" 2>&1` -+ if test $? -eq 0; then -+ AC_MSG_RESULT([yes]) -+ IMPORT_SYSCONFIG="from distutils import sysconfig" -+ else -+ AC_MSG_WARN([cannot import Python module "distutils". - Please check your Python installation. The error was: --$ac_distutils_result]) -- PYTHON_VERSION="" -+$ac_sysconfig_result]) -+ if ! $ax_python_devel_optional; then -+ AC_MSG_ERROR([Giving up]) -+ fi -+ ax_python_devel_found=no -+ PYTHON_VERSION="" -+ fi -+ fi - fi - -- # -- # Check for Python include path -- # -- AC_MSG_CHECKING([for Python include path]) -- if test -z "$PYTHON_CPPFLAGS"; then -- python_path=`$PYTHON -c "import distutils.sysconfig; \ -- print (distutils.sysconfig.get_python_inc ());"` -- plat_python_path=`$PYTHON -c "import distutils.sysconfig; \ -- print (distutils.sysconfig.get_python_inc (plat_specific=1));"` -+ if test $ax_python_devel_found = yes; then -+ # -+ # Check for Python include path -+ # -+ AC_MSG_CHECKING([for Python include path]) -+ if test -z "$PYTHON_CPPFLAGS"; then -+ if test "$IMPORT_SYSCONFIG" = "import sysconfig"; then -+ # sysconfig module has different functions -+ python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ -+ print (sysconfig.get_path ('include'));"` -+ plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ -+ print (sysconfig.get_path ('platinclude'));"` -+ else -+ # old distutils way -+ python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ -+ print (sysconfig.get_python_inc ());"` -+ plat_python_path=`$PYTHON -c "$IMPORT_SYSCONFIG; \ -+ print (sysconfig.get_python_inc (plat_specific=1));"` -+ fi - if test -n "${python_path}"; then - if test "${plat_python_path}" != "${python_path}"; then - python_path="-I$python_path -I$plat_python_path" -@@ -164,22 +243,22 @@ - fi - fi - PYTHON_CPPFLAGS=$python_path -- fi -- AC_MSG_RESULT([$PYTHON_CPPFLAGS]) -- AC_SUBST([PYTHON_CPPFLAGS]) -+ fi -+ AC_MSG_RESULT([$PYTHON_CPPFLAGS]) -+ AC_SUBST([PYTHON_CPPFLAGS]) - -- # -- # Check for Python library path -- # -- AC_MSG_CHECKING([for Python library path]) -- if test -z "$PYTHON_LDFLAGS"; then -+ # -+ # Check for Python library path -+ # -+ AC_MSG_CHECKING([for Python library path]) -+ if test -z "$PYTHON_LIBS"; then - # (makes two attempts to ensure we've got a version number - # from the interpreter) - ac_python_version=`cat<]], - [[Py_Initialize();]]) - ],[pythonexists=yes],[pythonexists=no]) -- AC_LANG_POP([C]) -- # turn back to default flags -- CPPFLAGS="$ac_save_CPPFLAGS" -- LIBS="$ac_save_LIBS" -+ AC_LANG_POP([C]) -+ # turn back to default flags -+ CPPFLAGS="$ac_save_CPPFLAGS" -+ LIBS="$ac_save_LIBS" -+ LDFLAGS="$ac_save_LDFLAGS" - -- AC_MSG_RESULT([$pythonexists]) -+ AC_MSG_RESULT([$pythonexists]) - -- if test ! "x$pythonexists" = "xyes"; then -- AC_MSG_WARN([ -+ if test ! "x$pythonexists" = "xyes"; then -+ AC_MSG_WARN([ - Could not link test program to Python. Maybe the main Python library has been - installed in some non-standard library path. If so, pass it to configure, -- via the LDFLAGS environment variable. -- Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" -+ via the LIBS environment variable. -+ Example: ./configure LIBS="-L/usr/non-standard-path/python/lib" - ============================================================================ -+ ERROR! - You probably have to install the development version of the Python package - for your distribution. The exact name of this package varies among them. - ============================================================================ -- ]) -- PYTHON_VERSION="" -+ ]) -+ if ! $ax_python_devel_optional; then -+ AC_MSG_ERROR([Giving up]) -+ fi -+ ax_python_devel_found=no -+ PYTHON_VERSION="" -+ fi - fi - - # - # all done! - # --]) -+]) -\ No newline at end of file -diff --git a/m4/python.m4 b/m4/python.m4 ---- a/m4/python.m4 -+++ b/m4/python.m4 -@@ -41,7 +41,7 @@ - m4_define_default([_AM_PYTHON_INTERPRETER_LIST], - [python2 python2.7 dnl - python dnl -- python3 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 -+ python3 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 - ]) - - AC_ARG_VAR([PYTHON], [the Python interpreter]) - diff --git a/pkgs/development/libraries/gpgme/python313-support.patch b/pkgs/development/libraries/gpgme/python313-support.patch index 0ddfca9a0ded..d314ad329d19 100644 --- a/pkgs/development/libraries/gpgme/python313-support.patch +++ b/pkgs/development/libraries/gpgme/python313-support.patch @@ -1,13 +1,13 @@ diff --git a/configure.ac b/configure.ac -index ae4c7da0..9a0401aa 100644 +index 7eef3523..b8e7d274 100644 --- a/configure.ac +++ b/configure.ac -@@ -591,7 +591,7 @@ if test "$found_py" = "1"; then - # Reset everything, so that we can look for another Python. +@@ -614,7 +614,7 @@ if test "$found_py" = "1"; then + if test "$found_py" = "1" -o "$found_py3" = "1"; then + # Reset everything, so that we can look for another Python. m4_foreach([mym4pythonver], - [[2.7],[3.4],[3.5],[3.6],[3.7],[3.8],[3.9],[3.10], -- [3.11],[3.12],[all]], -+ [3.11],[3.12],[3.13],[all]], +- [[2.7],[3.6],[3.8],[3.9],[3.10],[3.11],[3.12],[all]], ++ [[2.7],[3.6],[3.8],[3.9],[3.10],[3.11],[3.12],[3.13],[all]], [unset PYTHON - unset PYTHON_VERSION - unset PYTHON_CPPFLAGS + unset PYTHON_VERSION + unset PYTHON_CPPFLAGS From ab5898375927bd0b63403d35b41c76fb5c49f210 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Tue, 19 Nov 2024 21:14:40 -0800 Subject: [PATCH 500/693] xcbuild: const can't desctruct. fix build build failed on clang-19 fixes 82a00b78e4e5b17f163cb9d4587ddd0b12504820 --- .../xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch b/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch index f1b5a38fbcf0..d617b4206c1b 100644 --- a/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch +++ b/pkgs/by-name/xc/xcbuild/patches/Use-system-toolchain-for-usr-bin.patch @@ -12,7 +12,7 @@ diff -Naur a/Libraries/xcsdk/Tools/xcrun.cpp b/Libraries/xcsdk/Tools/xcrun.cpp using libutil::FSUtil; +namespace { -+ const std::vector kSystemDeveloperDirs = { ++ const std::vector kSystemDeveloperDirs = { + "/private/var/select/developer_dir", + "/private/var/db/xcode_select_link" + }; From e74ce644d04bda2fc239ade98f5b139655fda827 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 20 Nov 2024 06:42:36 +0000 Subject: [PATCH 501/693] iproute2: 6.11.0 -> 6.12.0 Changes: https://www.spinics.net/lists/netdev/msg1047599.html --- pkgs/by-name/ip/iproute2/package.nix | 29 +++------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/pkgs/by-name/ip/iproute2/package.nix b/pkgs/by-name/ip/iproute2/package.nix index 923a5cc8b309..6ca8651c9a4c 100644 --- a/pkgs/by-name/ip/iproute2/package.nix +++ b/pkgs/by-name/ip/iproute2/package.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch +{ lib, stdenv, fetchurl , buildPackages, bison, flex, pkg-config , db, iptables, elfutils, libmnl ,libbpf , gitUpdater, pkgsStatic @@ -6,36 +6,13 @@ stdenv.mkDerivation rec { pname = "iproute2"; - version = "6.11.0"; + version = "6.12.0"; src = fetchurl { url = "mirror://kernel/linux/utils/net/${pname}/${pname}-${version}.tar.xz"; - hash = "sha256-H3lTmKBK6qzQao9qziz9kTwz+llTypnaroO7XFNGEcM="; + hash = "sha256-u9FB73tdASfMIVKEO6YfJ03DKBT6Pg8T59B6CAvvU9k="; }; - patches = [ - (fetchurl { - name = "musl-endian.patch"; - url = "https://lore.kernel.org/netdev/20240712191209.31324-1-contact@hacktivis.me/raw"; - hash = "sha256-MX+P+PSEh6XlhoWgzZEBlOV9aXhJNd20Gi0fJCcSZ5E="; - }) - (fetchurl { - name = "musl-msghdr.patch"; - url = "https://lore.kernel.org/netdev/20240712191209.31324-2-contact@hacktivis.me/raw"; - hash = "sha256-X5BYSZBxcvdjtX1069a1GfcpdoVd0loSAe4xTpbCipA="; - }) - (fetchurl { - name = "musl-basename.patch"; - url = "https://lore.kernel.org/netdev/20240804161054.942439-1-dilfridge@gentoo.org/raw"; - hash = "sha256-47obv6mIn/HO47lt47slpTAFDxiQ3U/voHKzIiIGCTM="; - }) - (fetchpatch { - name = "musl-mst.patch"; - url = "https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/patch/?id=6a77abab92516e65f07f8657fc4e384c4541ce0e"; - hash = "sha256-19FzTDvgnmqVFBykVgXl4VIsHs8Cy9NWGOLpxifxVlI="; - }) - ]; - postPatch = '' substituteInPlace Makefile \ --replace "CC := gcc" "CC ?= $CC" From 65960056088e9407b051aa9c890349b882e99398 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 20 Nov 2024 13:18:54 -0500 Subject: [PATCH 502/693] darwin.stdenv: use native Clang as a cross-compiler In theory, Clang is a cross-compiler by default. After the following PRs, this is true on platforms other than Darwin. - https://github.com/NixOS/nixpkgs/pull/355532 - https://github.com/NixOS/nixpkgs/pull/356162 The reason Darwin needs additional changes is it only overlays Clang and LLVM in the native target case. When cross-compiling, it builds Clang and LLVM again. This is unnecessary as long as the Darwin stdenv avoids propagating the Clang wrappers, which are target-dependent. In theory, ld64 is also a cross-linker by default. Realizing that for nixpkgs requires additional work that will be done separately. --- pkgs/stdenv/darwin/default.nix | 38 ++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 46157f4385d3..d37a892ea996 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -1274,24 +1274,32 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check } ); } - (lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) ( - (bintoolsPackages prevStage) + # These have to be dropped from the overlay when cross-compiling. Wrappers are obviously target-specific. + # darwin.binutils is not yet ready to be target-independent. + ( + lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) (bintoolsPackages prevStage) // { inherit (prevStage.llvmPackages) clang; - # Need to get rid of these when cross-compiling. - "llvmPackages_${lib.versions.major prevStage.llvmPackages.release_version}" = - let - llvmVersion = lib.versions.major prevStage.llvmPackages.release_version; - tools = super."llvmPackages_${llvmVersion}".tools.extend ( - _: _: llvmToolsPackages prevStage // { inherit (prevStage.llvmPackages) clang; } - ); - libraries = super."llvmPackages_${llvmVersion}".libraries.extend ( - _: _: llvmLibrariesPackages prevStage - ); - in - super."llvmPackages_${llvmVersion}" // { inherit tools libraries; } // tools // libraries; } - )) + ) + # Since LLVM should be the same regardless of target platform, overlay it to avoid an unnecessary + # rebuild when cross-compiling from Darwin to another platform using clang. + { + + "llvmPackages_${lib.versions.major prevStage.llvmPackages.release_version}" = + let + llvmVersion = lib.versions.major prevStage.llvmPackages.release_version; + tools = super."llvmPackages_${llvmVersion}".tools.extend (_: _: llvmToolsPackages prevStage); + libraries = super."llvmPackages_${llvmVersion}".libraries.extend ( + _: _: + llvmLibrariesPackages prevStage + // lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) { + inherit (prevStage.llvmPackages) clang; + } + ); + in + super."llvmPackages_${llvmVersion}" // { inherit tools libraries; } // tools // libraries; + } ]; }; } From 5e162fe95501acc475cd6d866c4a589ffc4e1155 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 20 Nov 2024 20:37:28 +0100 Subject: [PATCH 503/693] zed-editor: unpin Node.js version --- pkgs/by-name/ze/zed-editor/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ze/zed-editor/package.nix b/pkgs/by-name/ze/zed-editor/package.nix index e9c97bf9b180..7bcb0d4070a5 100644 --- a/pkgs/by-name/ze/zed-editor/package.nix +++ b/pkgs/by-name/ze/zed-editor/package.nix @@ -35,7 +35,7 @@ apple-sdk_15, darwinMinVersionHook, makeWrapper, - nodejs_22, + nodejs, withGLES ? false, }: @@ -217,7 +217,7 @@ rustPlatform.buildRustPackage rec { postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' patchelf --add-rpath ${gpu-lib}/lib $out/libexec/* patchelf --add-rpath ${wayland}/lib $out/libexec/* - wrapProgram $out/libexec/zed-editor --suffix PATH : ${lib.makeBinPath [ nodejs_22 ]} + wrapProgram $out/libexec/zed-editor --suffix PATH : ${lib.makeBinPath [ nodejs ]} ''; preCheck = '' From 846d78b9b9d4bde9c8c98c4d12fef98a1aae5f31 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Wed, 20 Nov 2024 21:16:50 +0100 Subject: [PATCH 504/693] curl: backport other netrc regression fix Signed-off-by: Sefa Eyeoglu --- .../curlMinimal/fix-netrc-regression-2.patch | 31 +++++++++++++++++++ pkgs/by-name/cu/curlMinimal/package.nix | 4 +++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/by-name/cu/curlMinimal/fix-netrc-regression-2.patch diff --git a/pkgs/by-name/cu/curlMinimal/fix-netrc-regression-2.patch b/pkgs/by-name/cu/curlMinimal/fix-netrc-regression-2.patch new file mode 100644 index 000000000000..8cf36fea64b6 --- /dev/null +++ b/pkgs/by-name/cu/curlMinimal/fix-netrc-regression-2.patch @@ -0,0 +1,31 @@ +From 0cdde0fdfbeb8c35420f6d03fa4b77ed73497694 Mon Sep 17 00:00:00 2001 +From: Daniel Stenberg +Date: Thu, 7 Nov 2024 17:03:54 +0100 +Subject: [PATCH] netrc: support large file, longer lines, longer tokens + +Regression from 3b43a05e000aa8f6 (shipped in 8.11.0) + +Reported-by: Moritz +Fixes #15513 +Closes #15514 +--- + lib/netrc.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/lib/netrc.c b/lib/netrc.c +index c23f927cef32d35059360f04be3c7833589f5df5..034c0307a43e3b86c9c004387cedf273588370e1 100644 +--- a/lib/netrc.c ++++ b/lib/netrc.c +@@ -58,9 +58,9 @@ enum found_state { + #define NETRC_FAILED -1 + #define NETRC_SUCCESS 0 + +-#define MAX_NETRC_LINE 4096 +-#define MAX_NETRC_FILE (64*1024) +-#define MAX_NETRC_TOKEN 128 ++#define MAX_NETRC_LINE 16384 ++#define MAX_NETRC_FILE (128*1024) ++#define MAX_NETRC_TOKEN 4096 + + static CURLcode file2memory(const char *filename, struct dynbuf *filebuf) + { diff --git a/pkgs/by-name/cu/curlMinimal/package.nix b/pkgs/by-name/cu/curlMinimal/package.nix index 3e2c4fc8ed83..43962736bb85 100644 --- a/pkgs/by-name/cu/curlMinimal/package.nix +++ b/pkgs/by-name/cu/curlMinimal/package.nix @@ -65,6 +65,10 @@ stdenv.mkDerivation (finalAttrs: { # https://github.com/curl/curl/commit/f5c616930b5cf148b1b2632da4f5963ff48bdf88 # TODO: Remove this patch when 8.11.1/8.12.0 releases ./fix-netrc-regression.patch + + # https://github.com/curl/curl/issues/15513 + # https://github.com/curl/curl/commit/0cdde0fdfbeb8c35420f6d03fa4b77ed73497694 + ./fix-netrc-regression-2.patch ]; # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion From c91f75a39c419da555b55212d0c0a1053caf0cde Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 20 Nov 2024 18:37:03 +0100 Subject: [PATCH 505/693] nodejs_20: 20.18.0 -> 20.18.1 --- pkgs/development/web/nodejs/v20.nix | 30 ++--------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/pkgs/development/web/nodejs/v20.nix b/pkgs/development/web/nodejs/v20.nix index b147771e6660..a29c5385a4fc 100644 --- a/pkgs/development/web/nodejs/v20.nix +++ b/pkgs/development/web/nodejs/v20.nix @@ -12,8 +12,8 @@ let in buildNodejs { inherit enableNpm; - version = "20.18.0"; - sha256 = "7d9433e91fd88d82ba8de86e711ec41907638e227993d22e95126b02f6cd714a"; + version = "20.18.1"; + sha256 = "91df43f8ab6c3f7be81522d73313dbdd5634bbca228ef0e6d9369fe0ab8cccd0"; patches = [ ./configure-emulator.patch ./configure-armv6-vfpv2.patch @@ -22,32 +22,6 @@ buildNodejs { ./node-npm-build-npm-package-logic.patch ./use-correct-env-in-tests.patch - # Patches for OpenSSL 3.2 - # Patches not yet released - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/f8b7a171463e775da304bccf4cf165e634525c7e.patch?full_index=1"; - hash = "sha256-imptUwt2oG8pPGKD3V6m5NQXuahis71UpXiJm4C0E6o="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/6dfa3e46d3d2f8cfba7da636d48a5c41b0132cd7.patch?full_index=1"; - hash = "sha256-ITtGsvZI6fliirCKvbMH9N2Xoy3001bz+hS3NPoqvzg="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/29b9c72b05786061cde58a5ae11cfcb580ab6c28.patch?full_index=1"; - hash = "sha256-xaqtwsrOIyRV5zzccab+nDNG8kUgO6AjrVYJNmjeNP0="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/cfe58cfdc488da71e655d3da709292ce6d9ddb58.patch?full_index=1"; - hash = "sha256-9GblpbQcYfoiE5R7fETsdW7v1Mm2Xdr4+xRNgUpLO+8="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/2cec716c48cea816dcd5bf4997ae3cdf1fe4cd90.patch?full_index=1"; - hash = "sha256-ExIkAj8yRJEK39OfV6A53HiuZsfQOm82/Tvj0nCaI8A="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/0f7bdcc17fbc7098b89f238f4bd8ecad9367887b.patch?full_index=1"; - hash = "sha256-lXx6QyD2anlY9qAwjNMFM2VcHckBshghUF1NaMoaNl4="; - }) # Remove unused `fdopen` in vendored zlib, which causes compilation failures with clang 18 on Darwin. (fetchpatch2 { url = "https://github.com/madler/zlib/commit/4bd9a71f3539b5ce47f0c67ab5e01f3196dc8ef9.patch?full_index=1"; From 30384558d06ee7b66723d29d7e3b81683712c7bd Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Thu, 14 Nov 2024 17:42:28 +0100 Subject: [PATCH 506/693] python312Packages.jedi: 0.19.1-unstable-2024-10-17 -> 0.19.2 --- pkgs/development/python-modules/jedi/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/jedi/default.nix b/pkgs/development/python-modules/jedi/default.nix index b5202d560a3d..8e31fe41c780 100644 --- a/pkgs/development/python-modules/jedi/default.nix +++ b/pkgs/development/python-modules/jedi/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "jedi"; - version = "0.19.1-unstable-2024-10-17"; + version = "0.19.2"; pyproject = true; disabled = pythonOlder "3.6"; @@ -26,8 +26,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "davidhalter"; repo = "jedi"; - rev = "30adf43a8929ade8a9e0abee6921a5043c962215"; - hash = "sha256-ytpNKpbaisdd+BXsZBpJV09JRCrX1JcKAelDpIW0bR8="; + rev = "v${version}"; + hash = "sha256-2nDQJS6LIaq91PG3Av85OMFfs1ZwId00K/kvog3PGXE="; fetchSubmodules = true; }; From d79de22f67e8ffeead83197eafb9fc1060704ba0 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 03:00:12 +0000 Subject: [PATCH 507/693] nixos/doc/rl-2505: add highlight for the LLVM bump --- nixos/doc/manual/release-notes/rl-2505.section.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index f0c0abf05ccd..18e6cb7b5191 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -13,6 +13,9 @@ - GCC has been updated from GCC 13 to GCC 14. This introduces some backwards‐incompatible changes; see the [upstream porting guide](https://gcc.gnu.org/gcc-14/porting_to.html) for details. +- LLVM has been updated from LLVM 16 (on Darwin) and LLVM 18 (on other platforms) to LLVM 19. + This introduces some backwards‐incompatible changes; see the [upstream release notes](https://releases.llvm.org/) for details. + ## New Modules {#sec-release-25.05-new-modules} From ee823435730070492d0ae8c85b975e103e867aaa Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 03:04:15 +0000 Subject: [PATCH 508/693] p11-kit: remove `--timeout-multiplier` Unnecessary as of 54522e10d558fa88e032d24b426ec788d34a70ec. --- pkgs/by-name/p1/p11-kit/package.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/by-name/p1/p11-kit/package.nix b/pkgs/by-name/p1/p11-kit/package.nix index 316265e07bef..b520c7087ba7 100644 --- a/pkgs/by-name/p1/p11-kit/package.nix +++ b/pkgs/by-name/p1/p11-kit/package.nix @@ -60,11 +60,6 @@ stdenv.mkDerivation rec { ])) ]; - ${if stdenv.buildPlatform.isDarwin && stdenv.buildPlatform.isx86_64 then "mesonCheckFlags" else null} = [ - # Tests regularly exceed the default timeout on `x86_64-darwin`. - "--timeout-multiplier=0" - ]; - doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; postPatch = '' From b24cfd292f56c69b31673a3fe52d80c1efcb8c17 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 03:04:15 +0000 Subject: [PATCH 509/693] folks: remove `--timeout-multiplier` Unnecessary as of 54522e10d558fa88e032d24b426ec788d34a70ec. --- pkgs/by-name/fo/folks/package.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/by-name/fo/folks/package.nix b/pkgs/by-name/fo/folks/package.nix index 777bef924662..ee07c5fcbf0a 100644 --- a/pkgs/by-name/fo/folks/package.nix +++ b/pkgs/by-name/fo/folks/package.nix @@ -90,11 +90,6 @@ stdenv.mkDerivation (finalAttrs: { # occur inconsistently doCheck = false; - mesonCheckFlags = [ - # Prevents e-d-s add-contacts-stress-test from timing out - "--timeout-multiplier" "4" - ]; - postPatch = lib.optionalString telepathySupport '' patchShebangs tests/tools/manager-file.py ''; From e02872f2a0e397ca20a06889c00a6b47cdd71080 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 03:04:15 +0000 Subject: [PATCH 510/693] gst_all_1.gst-plugins-rs: remove `--timeout-multiplier` Unnecessary as of 54522e10d558fa88e032d24b426ec788d34a70ec. --- pkgs/development/libraries/gstreamer/rs/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/rs/default.nix b/pkgs/development/libraries/gstreamer/rs/default.nix index 187d1a048697..8c32204d9704 100644 --- a/pkgs/development/libraries/gstreamer/rs/default.nix +++ b/pkgs/development/libraries/gstreamer/rs/default.nix @@ -240,8 +240,7 @@ stdenv.mkDerivation (finalAttrs: { export CSOUND_LIB_DIR=${lib.getLib csound}/lib ''; - # give meson longer before timing out for tests - mesonCheckFlags = [ "--verbose" "--timeout-multiplier" "12" ]; + mesonCheckFlags = [ "--verbose" ]; doInstallCheck = (lib.elem "webp" selectedPlugins) && !stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isElf; From 9fe9c0e585bc2948c5572d2970d1402f613d943d Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 03:04:15 +0000 Subject: [PATCH 511/693] gupnp_1_6: remove `--timeout-multiplier` Unnecessary as of 54522e10d558fa88e032d24b426ec788d34a70ec. --- pkgs/development/libraries/gupnp/1.6.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/development/libraries/gupnp/1.6.nix b/pkgs/development/libraries/gupnp/1.6.nix index 46714e2e25bd..eb8abeb28953 100644 --- a/pkgs/development/libraries/gupnp/1.6.nix +++ b/pkgs/development/libraries/gupnp/1.6.nix @@ -51,11 +51,6 @@ stdenv.mkDerivation rec { doCheck = true; - mesonCheckFlags = [ - # The service-proxy test takes 28s on ofborg, which is too close to the time limit. - "--timeout-multiplier" "2" - ]; - postFixup = '' # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. moveToOutput "share/doc" "$devdoc" From 146765d861b66bc5b68527de6f391d92a0be3e69 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:38:17 +1000 Subject: [PATCH 512/693] nix: remove code for macOS < 11 follow up from: https://github.com/NixOS/nixpkgs/commit/c7a0002b0b64c54ea0c28a7f75a3da263d0452b4 https://github.com/NixOS/nixpkgs/commit/dd0e17573be7d8da13b168045f3b60fa2b4b580d --- pkgs/tools/package-management/nix/common.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkgs/tools/package-management/nix/common.nix b/pkgs/tools/package-management/nix/common.nix index 62b8e2dbcf3a..5c913f681275 100644 --- a/pkgs/tools/package-management/nix/common.nix +++ b/pkgs/tools/package-management/nix/common.nix @@ -44,7 +44,6 @@ in , coreutils , curl , darwin -, darwinMinVersionHook , docbook_xsl_ns , docbook5 , editline @@ -163,15 +162,6 @@ self = stdenv.mkDerivation { aws-sdk-cpp ] ++ lib.optional (atLeast218 && stdenv.hostPlatform.isDarwin) [ darwin.apple_sdk.libs.sandbox - ] ++ lib.optional (atLeast224 && stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - # Fix the following error with the default x86_64-darwin SDK: - # - # error: aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.13 or newer - # - # Despite the use of the 10.13 deployment target here, the aligned - # allocation function Clang uses with this setting actually works - # all the way back to 10.6. - (darwinMinVersionHook "10.13") ]; From f9d3fb7b932163d7efa6574d13a09ed3e5c042ea Mon Sep 17 00:00:00 2001 From: misilelaboratory Date: Fri, 22 Nov 2024 01:42:45 +0900 Subject: [PATCH 513/693] uv: 0.5.2 -> 0.5.4 --- pkgs/by-name/uv/uv/Cargo.lock | 396 +++++++++++++++++++-------------- pkgs/by-name/uv/uv/package.nix | 6 +- 2 files changed, 226 insertions(+), 176 deletions(-) diff --git a/pkgs/by-name/uv/uv/Cargo.lock b/pkgs/by-name/uv/uv/Cargo.lock index 417c40c83610..776b6ca36282 100644 --- a/pkgs/by-name/uv/uv/Cargo.lock +++ b/pkgs/by-name/uv/uv/Cargo.lock @@ -200,7 +200,7 @@ dependencies = [ "memmap2 0.9.5", "reqwest", "reqwest-middleware", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "tokio-util", @@ -216,7 +216,7 @@ dependencies = [ "crc32fast", "futures-lite", "pin-project", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-util", ] @@ -247,7 +247,7 @@ dependencies = [ "reqwest", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "url", "walkdir", ] @@ -259,7 +259,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4de46920588aef95658797996130bacd542436aee090084646521260a74bda7d" dependencies = [ "miette", - "thiserror", + "thiserror 1.0.69", "tracing", ] @@ -271,7 +271,7 @@ checksum = "d888fac0b73e64cbdf36a743fc5a25af5ae955c357535cb420b389bf1e1a6c54" dependencies = [ "miette", "semver", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -289,7 +289,7 @@ dependencies = [ "self-replace", "serde", "tempfile", - "thiserror", + "thiserror 1.0.69", "tokio", "url", ] @@ -370,12 +370,12 @@ checksum = "7f839cdf7e2d3198ac6ca003fd8ebc61715755f41c1cad15ff13df67531e00ed" [[package]] name = "bstr" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" +checksum = "1a68f1f47cdf0ec8ee4b941b2eee2a80cb796db73118c0dd09ac63fbe405be22" dependencies = [ "memchr", - "regex-automata 0.4.8", + "regex-automata 0.4.9", "serde", ] @@ -410,9 +410,9 @@ dependencies = [ [[package]] name = "bytemuck" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8334215b81e418a0a7bdb8ef0849474f40bb10c8b71f1c4ed315cff49f32494d" +checksum = "8b37c88a63ffd85d15b406896cc343916d7cf57838a847b3a6f2ca5d39a5695a" [[package]] name = "byteorder" @@ -502,9 +502,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cc" -version = "1.1.31" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e7962b54006dcfcc61cb72735f4d89bb97061dd6a7ed882ec6b8ee53714c6f" +checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" dependencies = [ "jobserver", "libc", @@ -562,9 +562,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.20" +version = "4.5.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8" +checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" dependencies = [ "clap_builder", "clap_derive", @@ -572,9 +572,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.20" +version = "4.5.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54" +checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" dependencies = [ "anstream", "anstyle", @@ -585,9 +585,9 @@ dependencies = [ [[package]] name = "clap_complete" -version = "4.5.36" +version = "4.5.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86bc73de94bc81e52f3bebec71bc4463e9748f7a59166663e32044669577b0e2" +checksum = "d9647a559c112175f17cf724dc72d3645680a883c58481332779192b0d8e7a01" dependencies = [ "clap", ] @@ -627,18 +627,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" - -[[package]] -name = "cmake" -version = "0.1.51" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb1e43aa7fd152b1f968787f7dbcdeb306d1867ff373c69955211876c053f91a" -dependencies = [ - "cc", -] +checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" [[package]] name = "codspeed" @@ -708,7 +699,7 @@ dependencies = [ "encode_unicode", "lazy_static", "libc", - "unicode-width", + "unicode-width 0.1.14", "windows-sys 0.52.0", ] @@ -730,9 +721,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "cpufeatures" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" +checksum = "0ca741a962e1b0bff6d724a1a0958b686406e853bb14061f218562e1896f95e6" dependencies = [ "libc", ] @@ -1066,9 +1057,9 @@ dependencies = [ [[package]] name = "fastrand" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6" +checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" [[package]] name = "fdeflate" @@ -1099,12 +1090,12 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.34" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" dependencies = [ "crc32fast", - "libz-ng-sys", + "libz-rs-sys", "miniz_oxide", ] @@ -1164,6 +1155,15 @@ name = "fs-err" version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" +dependencies = [ + "autocfg", +] + +[[package]] +name = "fs-err" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8bb60e7409f34ef959985bc9d9c5ee8f5db24ee46ed9775850548021710f807f" dependencies = [ "autocfg", "tokio", @@ -1229,9 +1229,9 @@ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-lite" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f1fa2f9765705486b33fd2acf1577f8ec449c2ba1f318ae5447697b7c08d210" +checksum = "cef40d21ae2c515b51041df9ed313ed21e572df340ea58a922a0aefe7e8891a1" dependencies = [ "fastrand", "futures-core", @@ -1335,7 +1335,7 @@ dependencies = [ "aho-corasick", "bstr", "log", - "regex-automata 0.4.8", + "regex-automata 0.4.9", "regex-syntax 0.8.5", ] @@ -1363,9 +1363,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524e8ac6999421f49a846c2d4411f337e53497d8ec55d67753beffa43c5d9205" +checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" dependencies = [ "atomic-waker", "bytes", @@ -1515,9 +1515,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.5.0" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbbff0a806a4728c99295b254c8838933b5b082d75e3cb70c8dab21fdfbcfa9a" +checksum = "97818827ef4f364230e16705d4706e2897df2bb60617d6ca15d598025a3c481f" dependencies = [ "bytes", "futures-channel", @@ -1721,7 +1721,7 @@ dependencies = [ "globset", "log", "memchr", - "regex-automata 0.4.8", + "regex-automata 0.4.9", "same-file", "walkdir", "winapi-util", @@ -1729,9 +1729,9 @@ dependencies = [ [[package]] name = "image" -version = "0.25.4" +version = "0.25.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc144d44a31d753b02ce64093d532f55ff8dc4ebf2ffb8a63c0dda691385acae" +checksum = "cd6f44aed642f18953a158afeb30206f4d50da59fbc66ecb53c66488de73563b" dependencies = [ "bytemuck", "byteorder-lite", @@ -1757,15 +1757,15 @@ dependencies = [ [[package]] name = "indicatif" -version = "0.17.8" +version = "0.17.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "763a5a8f45087d6bcea4222e7b72c291a054edf80e4ef6efd2a4979878c7bea3" +checksum = "cbf675b85ed934d3c67b5c5469701eec7db22689d0a2139d856e0925fa28b281" dependencies = [ "console", - "instant", "number_prefix", "portable-atomic", - "unicode-width", + "unicode-width 0.2.0", + "web-time", ] [[package]] @@ -1957,9 +1957,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.161" +version = "0.2.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "libmimalloc-sys" @@ -1983,13 +1983,12 @@ dependencies = [ ] [[package]] -name = "libz-ng-sys" -version = "1.1.16" +name = "libz-rs-sys" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4436751a01da56f1277f323c80d584ffad94a3d14aecd959dd0dff75aa73a438" +checksum = "39cc71ac688c22a9f5730a38171ac94795c071ac81d1a0ab5537f6ef164fff30" dependencies = [ - "cmake", - "libc", + "zlib-rs", ] [[package]] @@ -2116,8 +2115,8 @@ dependencies = [ "supports-unicode", "terminal_size 0.3.0", "textwrap", - "thiserror", - "unicode-width", + "thiserror 1.0.69", + "unicode-width 0.1.14", ] [[package]] @@ -2417,7 +2416,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879952a81a83930934cbf1786752d6dedc3b1f29e8f8fb2ad1d0a36f377cf442" dependencies = [ "memchr", - "thiserror", + "thiserror 1.0.69", "ucd-trie", ] @@ -2674,21 +2673,21 @@ dependencies = [ [[package]] name = "pubgrub" version = "0.2.1" -source = "git+https://github.com/astral-sh/pubgrub?rev=95e1390399cdddee986b658be19587eb1fdb2d79#95e1390399cdddee986b658be19587eb1fdb2d79" +source = "git+https://github.com/astral-sh/pubgrub?rev=57afc831bf2551f164617a10383cf288bf5d190d#57afc831bf2551f164617a10383cf288bf5d190d" dependencies = [ "indexmap", "log", "priority-queue", "rustc-hash", - "thiserror", + "thiserror 2.0.3", "version-ranges", ] [[package]] name = "quinn" -version = "0.11.5" +version = "0.11.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c7c5fdde3cdae7203427dc4f0a68fe0ed09833edc525a03456b153b79828684" +checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" dependencies = [ "bytes", "pin-project-lite", @@ -2697,33 +2696,36 @@ dependencies = [ "rustc-hash", "rustls", "socket2", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", ] [[package]] name = "quinn-proto" -version = "0.11.8" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fadfaed2cd7f389d0161bb73eeb07b7b78f8691047a6f3e73caaeae55310a4a6" +checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" dependencies = [ "bytes", + "getrandom", "rand", "ring", "rustc-hash", "rustls", + "rustls-pki-types", "slab", - "thiserror", + "thiserror 2.0.3", "tinyvec", "tracing", + "web-time", ] [[package]] name = "quinn-udp" -version = "0.5.6" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e346e016eacfff12233c243718197ca12f148c84e1e84268a896699b41c71780" +checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" dependencies = [ "cfg_aliases", "libc", @@ -2848,7 +2850,7 @@ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ "getrandom", "libredox", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -2870,7 +2872,7 @@ checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", - "regex-automata 0.4.8", + "regex-automata 0.4.9", "regex-syntax 0.8.5", ] @@ -2885,9 +2887,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.8" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368758f23274712b504848e9d5a6f010445cc8b87a7cdb4d7cbee666c1288da3" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" dependencies = [ "aho-corasick", "memchr", @@ -2976,7 +2978,7 @@ dependencies = [ "http", "reqwest", "serde", - "thiserror", + "thiserror 1.0.69", "tower-service", ] @@ -2996,7 +2998,7 @@ dependencies = [ "reqwest", "reqwest-middleware", "retry-policies", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "wasm-timer", @@ -3141,7 +3143,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e98097f62769f92dbf95fb51f71c0a68ec18a4ee2e70e0d3e4f47ac005d63e9" dependencies = [ "shellexpand", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3158,9 +3160,9 @@ checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" [[package]] name = "rustix" -version = "0.38.40" +version = "0.38.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99e4ea3e1cdc4b559b8e5650f9c8e5998e3e5c1343b4eaf034565f32318d63c0" +checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" dependencies = [ "bitflags 2.6.0", "errno", @@ -3171,9 +3173,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.16" +version = "0.23.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eee87ff5d9b36712a58574e12e9f0ea80f915a5b0ac518d322b24a465617925e" +checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e" dependencies = [ "once_cell", "ring", @@ -3210,6 +3212,9 @@ name = "rustls-pki-types" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" +dependencies = [ + "web-time", +] [[package]] name = "rustls-webpki" @@ -3255,9 +3260,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.26" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01227be5826fa0690321a2ba6c5cd57a19cf3f6a09e76973b58e61de6ab9d1c1" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" dependencies = [ "windows-sys 0.59.0", ] @@ -3334,9 +3339,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.12.0" +version = "2.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6" +checksum = "fa39c7303dc58b5543c94d22c1766b0d31f2ee58306363ea622b10bbc075eaa2" dependencies = [ "core-foundation-sys", "libc", @@ -3361,9 +3366,9 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.214" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] @@ -3381,9 +3386,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.214" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", @@ -3403,9 +3408,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.132" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", "memchr", @@ -3552,9 +3557,9 @@ dependencies = [ [[package]] name = "spdx" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47317bbaf63785b53861e1ae2d11b80d6b624211d42cb20efcd210ee6f8a14bc" +checksum = "bae30cc7bfe3656d60ee99bf6836f472b0c53dddcbf335e253329abb16e535a2" dependencies = [ "smallvec", ] @@ -3823,23 +3828,43 @@ checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" dependencies = [ "smawk", "unicode-linebreak", - "unicode-width", + "unicode-width 0.1.14", ] [[package]] name = "thiserror" -version = "1.0.67" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b3c6efbfc763e64eb85c11c25320f0737cb7364c4b6336db90aa9ebe27a0bbd" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +dependencies = [ + "thiserror-impl 2.0.3", ] [[package]] name = "thiserror-impl" -version = "1.0.67" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b607164372e89797d78b8e23a6d67d5d1038c1c65efd52e1389ef8b77caba2a6" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" dependencies = [ "proc-macro2", "quote", @@ -3939,7 +3964,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tl" version = "0.7.8" -source = "git+https://github.com/charliermarsh/tl.git?rev=6e25b2ee2513d75385101a8ff9f591ef51f314ec#6e25b2ee2513d75385101a8ff9f591ef51f314ec" +source = "git+https://github.com/astral-sh/tl.git?rev=6e25b2ee2513d75385101a8ff9f591ef51f314ec#6e25b2ee2513d75385101a8ff9f591ef51f314ec" [[package]] name = "tokio" @@ -3989,7 +4014,7 @@ checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f" dependencies = [ "either", "futures-util", - "thiserror", + "thiserror 1.0.69", "tokio", ] @@ -4098,7 +4123,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "382e025ef8e0db646343dd2cf56af9d7fe6f5eabce5f388f8e5ec7234f555a0f" dependencies = [ "anyhow", - "fs-err", + "fs-err 2.11.0", "itertools 0.13.0", "once_cell", "rustc-hash", @@ -4274,6 +4299,12 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + [[package]] name = "unscanny" version = "0.1.0" @@ -4369,7 +4400,7 @@ checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" [[package]] name = "uv" -version = "0.5.2" +version = "0.5.4" dependencies = [ "anstream", "anyhow", @@ -4385,7 +4416,7 @@ dependencies = [ "etcetera", "filetime", "flate2", - "fs-err", + "fs-err 3.0.0", "futures", "http", "ignore", @@ -4410,14 +4441,14 @@ dependencies = [ "tar", "tempfile", "textwrap", - "thiserror", + "thiserror 2.0.3", "tokio", "toml", "tracing", "tracing-durations-export", "tracing-subscriber", "tracing-tree", - "unicode-width", + "unicode-width 0.1.14", "url", "uv-auth", "uv-build-backend", @@ -4459,6 +4490,7 @@ dependencies = [ "uv-virtualenv", "uv-warnings", "uv-workspace", + "version-ranges", "walkdir", "which", "zip", @@ -4522,7 +4554,7 @@ version = "0.1.0" dependencies = [ "csv", "flate2", - "fs-err", + "fs-err 3.0.0", "globset", "indoc", "insta", @@ -4532,7 +4564,7 @@ dependencies = [ "spdx", "tar", "tempfile", - "thiserror", + "thiserror 2.0.3", "toml", "tracing", "uv-distribution-filename", @@ -4554,7 +4586,7 @@ version = "0.0.1" dependencies = [ "anstream", "anyhow", - "fs-err", + "fs-err 3.0.0", "indoc", "insta", "itertools 0.13.0", @@ -4564,7 +4596,7 @@ dependencies = [ "serde", "serde_json", "tempfile", - "thiserror", + "thiserror 2.0.3", "tokio", "toml_edit", "tracing", @@ -4586,7 +4618,7 @@ name = "uv-cache" version = "0.0.1" dependencies = [ "clap", - "fs-err", + "fs-err 3.0.0", "nanoid", "rmp-serde", "rustc-hash", @@ -4609,11 +4641,11 @@ dependencies = [ name = "uv-cache-info" version = "0.0.1" dependencies = [ - "fs-err", + "fs-err 3.0.0", "globwalk", "schemars", "serde", - "thiserror", + "thiserror 2.0.3", "toml", "tracing", ] @@ -4635,7 +4667,7 @@ dependencies = [ "anyhow", "clap", "clap_complete_command", - "fs-err", + "fs-err 3.0.0", "insta", "serde", "url", @@ -4663,7 +4695,7 @@ dependencies = [ "async_http_range_reader", "async_zip", "bytecheck", - "fs-err", + "fs-err 3.0.0", "futures", "html-escape", "http", @@ -4681,7 +4713,7 @@ dependencies = [ "serde", "serde_json", "sys-info", - "thiserror", + "thiserror 2.0.3", "tl", "tokio", "tokio-util", @@ -4713,13 +4745,13 @@ dependencies = [ "anyhow", "clap", "either", - "fs-err", + "fs-err 3.0.0", "rustc-hash", "schemars", "serde", "serde-untagged", "serde_json", - "thiserror", + "thiserror 2.0.3", "tracing", "url", "uv-auth", @@ -4749,7 +4781,7 @@ dependencies = [ "anstream", "anyhow", "clap", - "fs-err", + "fs-err 3.0.0", "itertools 0.13.0", "markdown", "owo-colors", @@ -4821,7 +4853,7 @@ version = "0.0.1" dependencies = [ "anyhow", "either", - "fs-err", + "fs-err 3.0.0", "futures", "indoc", "insta", @@ -4833,7 +4865,7 @@ dependencies = [ "rustc-hash", "serde", "tempfile", - "thiserror", + "thiserror 2.0.3", "tokio", "tokio-util", "tracing", @@ -4868,7 +4900,7 @@ dependencies = [ "insta", "rkyv", "serde", - "thiserror", + "thiserror 2.0.3", "url", "uv-normalize", "uv-pep440", @@ -4881,7 +4913,7 @@ version = "0.0.1" dependencies = [ "anyhow", "bitflags 2.6.0", - "fs-err", + "fs-err 3.0.0", "itertools 0.13.0", "jiff", "petgraph", @@ -4890,7 +4922,7 @@ dependencies = [ "schemars", "serde", "serde_json", - "thiserror", + "thiserror 2.0.3", "tracing", "url", "urlencoding", @@ -4905,6 +4937,7 @@ dependencies = [ "uv-pep508", "uv-platform-tags", "uv-pypi-types", + "version-ranges", ] [[package]] @@ -4913,7 +4946,7 @@ version = "0.0.1" dependencies = [ "async-compression", "async_zip", - "fs-err", + "fs-err 3.0.0", "futures", "krata-tokio-tar", "md-5", @@ -4921,7 +4954,7 @@ dependencies = [ "reqwest", "rustc-hash", "sha2", - "thiserror", + "thiserror 2.0.3", "tokio", "tokio-util", "tracing", @@ -4940,7 +4973,7 @@ dependencies = [ "dunce", "either", "encoding_rs_io", - "fs-err", + "fs-err 3.0.0", "fs2", "junction", "path-slash", @@ -4961,11 +4994,11 @@ dependencies = [ "anyhow", "cargo-util", "dashmap", - "fs-err", + "fs-err 3.0.0", "reqwest", "reqwest-middleware", "serde", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "url", @@ -4980,13 +5013,13 @@ dependencies = [ name = "uv-globfilter" version = "0.1.0" dependencies = [ - "fs-err", + "fs-err 3.0.0", "globset", "insta", "regex", - "regex-automata 0.4.8", + "regex-automata 0.4.9", "tempfile", - "thiserror", + "thiserror 2.0.3", "tracing", "walkdir", ] @@ -5001,7 +5034,7 @@ dependencies = [ "configparser", "csv", "data-encoding", - "fs-err", + "fs-err 3.0.0", "indoc", "mailparse", "pathdiff", @@ -5016,7 +5049,7 @@ dependencies = [ "serde_json", "sha2", "tempfile", - "thiserror", + "thiserror 2.0.3", "tracing", "uv-cache-info", "uv-distribution-filename", @@ -5025,6 +5058,7 @@ dependencies = [ "uv-pep440", "uv-platform-tags", "uv-pypi-types", + "uv-shell", "uv-trampoline-builder", "uv-warnings", "walkdir", @@ -5037,13 +5071,13 @@ version = "0.0.1" dependencies = [ "anyhow", "async-channel", - "fs-err", + "fs-err 3.0.0", "futures", "rayon", "rustc-hash", "same-file", "tempfile", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "url", @@ -5082,9 +5116,9 @@ name = "uv-metadata" version = "0.1.0" dependencies = [ "async_zip", - "fs-err", + "fs-err 3.0.0", "futures", - "thiserror", + "thiserror 2.0.3", "tokio", "tokio-util", "uv-distribution-filename", @@ -5126,7 +5160,7 @@ dependencies = [ "rkyv", "serde", "tracing", - "unicode-width", + "unicode-width 0.1.14", "unscanny", "version-ranges", ] @@ -5145,10 +5179,10 @@ dependencies = [ "serde", "serde_json", "smallvec", - "thiserror", + "thiserror 2.0.3", "tracing", "tracing-test", - "unicode-width", + "unicode-width 0.1.14", "url", "uv-fs", "uv-normalize", @@ -5161,7 +5195,6 @@ name = "uv-performance-flate2-backend" version = "0.1.0" dependencies = [ "flate2", - "libz-ng-sys", ] [[package]] @@ -5179,7 +5212,7 @@ dependencies = [ "insta", "rustc-hash", "serde", - "thiserror", + "thiserror 2.0.3", ] [[package]] @@ -5188,7 +5221,7 @@ version = "0.1.0" dependencies = [ "async-compression", "base64 0.22.1", - "fs-err", + "fs-err 3.0.0", "futures", "glob", "insta", @@ -5200,7 +5233,7 @@ dependencies = [ "rustc-hash", "serde", "serde_json", - "thiserror", + "thiserror 2.0.3", "tokio", "tokio-util", "tracing", @@ -5233,7 +5266,7 @@ dependencies = [ "schemars", "serde", "serde-untagged", - "thiserror", + "thiserror 2.0.3", "toml", "toml_edit", "tracing", @@ -5254,7 +5287,7 @@ dependencies = [ "assert_fs", "clap", "configparser", - "fs-err", + "fs-err 3.0.0", "futures", "goblin", "indoc", @@ -5264,6 +5297,7 @@ dependencies = [ "regex", "reqwest", "reqwest-middleware", + "reqwest-retry", "rmp-serde", "same-file", "schemars", @@ -5273,7 +5307,7 @@ dependencies = [ "temp-env", "tempfile", "test-log", - "thiserror", + "thiserror 2.0.3", "tokio", "tokio-util", "tracing", @@ -5308,11 +5342,11 @@ dependencies = [ "anyhow", "configparser", "console", - "fs-err", + "fs-err 3.0.0", "futures", "rustc-hash", "serde", - "thiserror", + "thiserror 2.0.3", "toml", "tracing", "url", @@ -5341,7 +5375,7 @@ version = "0.0.1" dependencies = [ "anyhow", "assert_fs", - "fs-err", + "fs-err 3.0.0", "indoc", "insta", "itertools 0.13.0", @@ -5350,7 +5384,7 @@ dependencies = [ "reqwest-middleware", "tempfile", "test-case", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "unscanny", @@ -5388,7 +5422,7 @@ dependencies = [ "schemars", "serde", "textwrap", - "thiserror", + "thiserror 2.0.3", "tokio", "tokio-stream", "toml", @@ -5422,13 +5456,12 @@ dependencies = [ name = "uv-scripts" version = "0.0.1" dependencies = [ - "fs-err", + "fs-err 3.0.0", "indoc", "memchr", "serde", - "thiserror", + "thiserror 2.0.3", "toml", - "uv-distribution-types", "uv-pep440", "uv-pep508", "uv-pypi-types", @@ -5443,12 +5476,12 @@ dependencies = [ "assert_fs", "clap", "etcetera", - "fs-err", + "fs-err 3.0.0", "indoc", "schemars", "serde", "textwrap", - "thiserror", + "thiserror 2.0.3", "toml", "tracing", "url", @@ -5485,7 +5518,7 @@ dependencies = [ name = "uv-state" version = "0.0.1" dependencies = [ - "fs-err", + "fs-err 3.0.0", "tempfile", "uv-dirs", ] @@ -5501,10 +5534,10 @@ dependencies = [ name = "uv-tool" version = "0.0.1" dependencies = [ - "fs-err", + "fs-err 3.0.0", "pathdiff", "serde", - "thiserror", + "thiserror 2.0.3", "toml", "toml_edit", "tracing", @@ -5530,8 +5563,8 @@ dependencies = [ "anyhow", "assert_cmd", "assert_fs", - "fs-err", - "thiserror", + "fs-err 3.0.0", + "thiserror 2.0.3", "uv-fs", "which", "zip", @@ -5543,7 +5576,7 @@ version = "0.0.1" dependencies = [ "anyhow", "rustc-hash", - "thiserror", + "thiserror 2.0.3", "url", "uv-cache", "uv-configuration", @@ -5559,21 +5592,22 @@ dependencies = [ [[package]] name = "uv-version" -version = "0.5.2" +version = "0.5.4" [[package]] name = "uv-virtualenv" version = "0.0.4" dependencies = [ - "fs-err", + "fs-err 3.0.0", "itertools 0.13.0", "pathdiff", - "thiserror", + "thiserror 2.0.3", "tracing", "uv-fs", "uv-platform-tags", "uv-pypi-types", "uv-python", + "uv-shell", "uv-version", ] @@ -5592,7 +5626,7 @@ version = "0.0.1" dependencies = [ "anyhow", "assert_fs", - "fs-err", + "fs-err 3.0.0", "glob", "insta", "itertools 0.13.0", @@ -5603,7 +5637,7 @@ dependencies = [ "schemars", "serde", "tempfile", - "thiserror", + "thiserror 2.0.3", "tokio", "toml", "toml_edit", @@ -5631,8 +5665,8 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "version-ranges" -version = "0.1.0" -source = "git+https://github.com/astral-sh/pubgrub?rev=95e1390399cdddee986b658be19587eb1fdb2d79#95e1390399cdddee986b658be19587eb1fdb2d79" +version = "0.1.1" +source = "git+https://github.com/astral-sh/pubgrub?rev=57afc831bf2551f164617a10383cf288bf5d190d#57afc831bf2551f164617a10383cf288bf5d190d" dependencies = [ "smallvec", ] @@ -5782,6 +5816,16 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + [[package]] name = "webpki-roots" version = "0.26.6" @@ -6348,6 +6392,12 @@ dependencies = [ "flate2", ] +[[package]] +name = "zlib-rs" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca4a9dc6566c9224cc161dedc5577bd81f4a9ee0f9fbe80592756d096b07ee5" + [[package]] name = "zstd" version = "0.13.2" diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index cb2083a4a050..4d73d6d1c378 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -12,21 +12,21 @@ python3Packages.buildPythonApplication rec { pname = "uv"; - version = "0.5.2"; + version = "0.5.4"; pyproject = true; src = fetchFromGitHub { owner = "astral-sh"; repo = "uv"; rev = "refs/tags/${version}"; - hash = "sha256-riR4VFv407/pLMdQlxTUvTeaErZoxjFFsEX9St+3cr8="; + hash = "sha256-Kieh76RUrDEwdL04mvCXOqbXHasMMpXRqp0LwMOIHdM="; }; cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; outputHashes = { "async_zip-0.0.17" = "sha256-VfQg2ZY5F2cFoYQZrtf2DHj0lWgivZtFaFJKZ4oyYdo="; - "pubgrub-0.2.1" = "sha256-8TrOQ6fYJrYgFNuqiqnGztnHOqFIEDi2MFZEBA+oks4="; + "pubgrub-0.2.1" = "sha256-OPJb5exbRuHPVE9BS3kq1iqGBWWklFDH6X30dMWmnlI="; "tl-0.7.8" = "sha256-F06zVeSZA4adT6AzLzz1i9uxpI1b8P1h+05fFfjm3GQ="; }; }; From d7ab2af3a604241eda775eeeef8325b14f9edf1a Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 19:52:01 +0000 Subject: [PATCH 514/693] linuxPackages.systemtap: 5.0a -> 5.2 Includes fixes for GCC 14. --- pkgs/development/tools/profiling/systemtap/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/profiling/systemtap/default.nix b/pkgs/development/tools/profiling/systemtap/default.nix index c6595db224ef..898b499e9268 100644 --- a/pkgs/development/tools/profiling/systemtap/default.nix +++ b/pkgs/development/tools/profiling/systemtap/default.nix @@ -8,8 +8,8 @@ let ## fetchgit info url = "git://sourceware.org/git/systemtap.git"; rev = "release-${version}"; - sha256 = "sha256-2L7+k/tgI6trkstDTY4xxfFzmNDlxbCHDRKAFaERQeM="; - version = "5.0a"; + hash = "sha256-SUPNarZW8vdK9hQaI2kU+rfKWIPiXB4BvJvRNC1T9tU="; + version = "5.2"; inherit (kernel) stdenv; @@ -17,11 +17,10 @@ let stapBuild = stdenv.mkDerivation { pname = "systemtap"; inherit version; - src = fetchgit { inherit url rev sha256; }; + src = fetchgit { inherit url rev hash; }; nativeBuildInputs = [ pkg-config cpio python3 python3.pkgs.setuptools ]; buildInputs = [ elfutils gettext python3 ]; enableParallelBuilding = true; - env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12 }; ## symlink farm for --sysroot flag From 5abe3441eb19d7783f41b3ad8a94ec52c912fbf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 5 Sep 2024 15:17:21 -0700 Subject: [PATCH 515/693] python312Packages.moderngl-window: support NumPy 2 --- .../python-modules/moderngl-window/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/moderngl-window/default.nix b/pkgs/development/python-modules/moderngl-window/default.nix index 073c99026b9a..635384684f74 100644 --- a/pkgs/development/python-modules/moderngl-window/default.nix +++ b/pkgs/development/python-modules/moderngl-window/default.nix @@ -34,13 +34,15 @@ buildPythonPackage rec { hash = "sha256-zTygSXU/vQZaFCuHbRBpO9/BYYA2UOid+wvhyc2bWMI="; }; - pythonRelaxDeps = [ "pillow" ]; + pythonRelaxDeps = [ + "numpy" # https://github.com/moderngl/moderngl-window/issues/193 + ]; - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ numpy moderngl pyglet From bef4ee7e648dc1565f92fc1993e264833fd8b1af Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 20:32:41 +0000 Subject: [PATCH 516/693] libsystemtap: 5.1 -> 5.2 --- pkgs/by-name/li/libsystemtap/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/li/libsystemtap/package.nix b/pkgs/by-name/li/libsystemtap/package.nix index c227f689074b..4f19cd1739bf 100644 --- a/pkgs/by-name/li/libsystemtap/package.nix +++ b/pkgs/by-name/li/libsystemtap/package.nix @@ -6,12 +6,12 @@ stdenv.mkDerivation { pname = "libsystemtap"; - version = "5.1"; + version = "5.2"; src = fetchgit { url = "git://sourceware.org/git/systemtap.git"; - rev = "release-5.1"; - hash = "sha256-3rhDllsgYGfh1gb5frUrlkzdz57A6lcvBELtgvb5Q7M="; + rev = "release-5.2"; + hash = "sha256-SUPNarZW8vdK9hQaI2kU+rfKWIPiXB4BvJvRNC1T9tU="; }; dontBuild = true; From 34887f20f659bf5cd3ab182179a739ba32ba048a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 21 Nov 2024 21:39:59 +0100 Subject: [PATCH 517/693] cacert: 3.104 -> 3.107 https://groups.google.com/a/mozilla.org/g/dev-tech-crypto/c/WH8hT2HA7RM --- pkgs/data/misc/cacert/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/misc/cacert/default.nix b/pkgs/data/misc/cacert/default.nix index d98a50f34fe4..2ae890496aff 100644 --- a/pkgs/data/misc/cacert/default.nix +++ b/pkgs/data/misc/cacert/default.nix @@ -20,7 +20,7 @@ let blocklist = writeText "cacert-blocklist.txt" (lib.concatStringsSep "\n" blacklist); extraCertificatesBundle = writeText "cacert-extra-certificates-bundle.crt" (lib.concatStringsSep "\n\n" extraCertificateStrings); - srcVersion = "3.104"; + srcVersion = "3.107"; version = if nssOverride != null then nssOverride.version else srcVersion; meta = with lib; { homepage = "https://curl.haxx.se/docs/caextract.html"; @@ -37,7 +37,7 @@ let owner = "nss-dev"; repo = "nss"; rev = "NSS_${lib.replaceStrings ["."] ["_"] version}_RTM"; - hash = "sha256-TEGEKocapU5OTqx69n8nrn/X3SZr49d1alHM73UnDJw="; + hash = "sha256-c6ks/pBvZHipNkmBy784s96zMYP+D9q3VlVrPVSohLw="; }; dontBuild = true; From fd98e31bec328b6b2d4b549b85f640ca20d7eef8 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 21 Nov 2024 23:01:14 +0000 Subject: [PATCH 518/693] vtk: disable function pointer warnings on GCC too I tried to devendor these libraries but it seemed hopeless. See for a more comprehensive attempt. This will have to do for now. --- pkgs/development/libraries/vtk/generic.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/vtk/generic.nix b/pkgs/development/libraries/vtk/generic.nix index 3f7f05678f15..1553f0fa1f8c 100644 --- a/pkgs/development/libraries/vtk/generic.nix +++ b/pkgs/development/libraries/vtk/generic.nix @@ -100,8 +100,13 @@ in stdenv.mkDerivation { "-DVTK_PYTHON_VERSION:STRING=${pythonMajor}" ]; - env = lib.optionalAttrs stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types"; + env = { + # Lots of warnings in vendored code… + NIX_CFLAGS_COMPILE = + if stdenv.cc.isClang then + "-Wno-error=incompatible-function-pointer-types" + else + "-Wno-error=incompatible-pointer-types"; }; postInstall = optionalString enablePython '' From ecf9fa6bc5d8a6d32f557485ecd4e26a6429eae6 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 22 Nov 2024 06:14:57 +0000 Subject: [PATCH 519/693] tinysparql: 3.8.0 -> 3.8.1 Changes: https://gitlab.gnome.org/GNOME/tinysparql/-/blob/3.8.1/NEWS --- pkgs/by-name/ti/tinysparql/package.nix | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/ti/tinysparql/package.nix b/pkgs/by-name/ti/tinysparql/package.nix index 240dbf789f57..b9b284dc27a9 100644 --- a/pkgs/by-name/ti/tinysparql/package.nix +++ b/pkgs/by-name/ti/tinysparql/package.nix @@ -1,6 +1,5 @@ { stdenv , lib -, fetchpatch2 , fetchurl , gettext , meson @@ -35,13 +34,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "tinysparql"; - version = "3.8.0"; + version = "3.8.1"; outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { url = with finalAttrs; "mirror://gnome/sources/tinysparql/${lib.versions.majorMinor version}/tinysparql-${version}.tar.xz"; - hash = "sha256-wPzad1IPUxVIsjlRN9zRk+6c3l4iLTydJz8DDRdipQQ="; + hash = "sha256-U+BK3R7LTQjKoTF/R3/fDnFI6qxUYoMfI3SIAJL/spU="; }; strictDeps = true; @@ -107,14 +106,6 @@ stdenv.mkDerivation (finalAttrs: { "-Dsystemd_user_services=false" ]; - patches = [ - # https://gitlab.gnome.org/GNOME/tinysparql/-/merge_requests/730 - (fetchpatch2 { - url = "https://gitlab.gnome.org/GNOME/tinysparql/commit/12ed969913cb579f638fa0aa0853aeb6c6c6f536.patch"; - hash = "sha256-jyx9hdWUUxfCSTGn7lZL4RUiQAF4pkf4gfCP8g9Ep3U="; - }) - ]; - doCheck = true; postPatch = '' From 7e426500d68aedca84361f74596cd4f4b3675065 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 22 Nov 2024 11:26:05 +0300 Subject: [PATCH 520/693] qt5: 5.15.15 -> 5.15.16, 5.15.17 -> 5.15.18 --- .../libraries/qt-5/5.15/srcs-generated.json | 160 +++++++++--------- pkgs/development/libraries/qt-5/5.15/srcs.nix | 10 +- 2 files changed, 85 insertions(+), 85 deletions(-) diff --git a/pkgs/development/libraries/qt-5/5.15/srcs-generated.json b/pkgs/development/libraries/qt-5/5.15/srcs-generated.json index 7949a05a61b8..b3284a654a8a 100644 --- a/pkgs/development/libraries/qt-5/5.15/srcs-generated.json +++ b/pkgs/development/libraries/qt-5/5.15/srcs-generated.json @@ -1,202 +1,202 @@ { "qt3d": { "url": "https://invent.kde.org/qt/qt/qt3d.git", - "rev": "84b2eae328fdff5d633af0a9563272c93f6ec074", - "sha256": "0h5jmm02xyfzq9pkba3xl3kw6710azj1plshm4v9brgjq524vkpj" + "rev": "1eecf07a4d5dadd1b5aaf785fc2a5ed03565599d", + "sha256": "0xhdw3hjas8z9qmd9l4zcfsnndyfhsmnry4nwzrbnk1kd2n5ik0s" }, "qtactiveqt": { "url": "https://invent.kde.org/qt/qt/qtactiveqt.git", - "rev": "8f8e9fcc03f506cf27b0bb090c5120eaa15c6e19", - "sha256": "10ihi1m6ysqd5mig4bmiv2hq9qs06j9xrc6sx0iy1w0ihnhclzyx" + "rev": "57ffe4b2b86854c60d85c263fde9a56a891b578e", + "sha256": "11q0nfwxlpj3n078mvhpihybyf90dfz8c24vks0x6vn0gs06rjda" }, "qtandroidextras": { "url": "https://invent.kde.org/qt/qt/qtandroidextras.git", - "rev": "305cce86cb62c0d2cac1209dd50f15caf2f21c2a", - "sha256": "1rdlxzr7ld6i0j3xwxwxhf467z46zaycynqhim4mfhi76fi309vz" + "rev": "abe5958ccfb1741daf37bb135aa6b90ef6c35b21", + "sha256": "0694mgaal3v4c8kd8spp5rw47dc1iydcydli2gsnx4rnypyf3pl2" }, "qtbase": { "url": "https://invent.kde.org/qt/qt/qtbase.git", - "rev": "ab13e81917207959785ad0185a3a9974e552a7f5", - "sha256": "0p6xymjvhwiqvyh7pn1zkglfjnmhb3c0xfb62xnsd0rbp0xaw7ws" + "rev": "2529f7f0c2333d437089c775c9c30f624d1fd5bc", + "sha256": "0sfhawlad2s24dwraha6snbdiaj8v774fxb8mq0l9ww3yjfh3kyz" }, "qtcharts": { "url": "https://invent.kde.org/qt/qt/qtcharts.git", - "rev": "0c97aae7dc242ac0710e09397672ad878761157a", - "sha256": "1zivl0gzbbfxa2hq4vwi2yc6k9hl9aln4aw96hd9jb7pw2n03crx" + "rev": "4e4fc559c61d1fc2542add48d2b3c490214e9936", + "sha256": "1fnrpj5w5ccix1p3v3kj4kdv17a7nh7hvxf8jr7c32yys3bq8igc" }, "qtconnectivity": { "url": "https://invent.kde.org/qt/qt/qtconnectivity.git", - "rev": "f2a9c5d1235d88cc26f2cfa348a037b65e31a5ae", - "sha256": "0r9c7f9g4l4dik1kvs239ahm8hx20kfj2lcd946fn71cz0fqri9z" + "rev": "c8a0f0b1f6dd4c63dbc015f63dc6856895e46ba3", + "sha256": "16c22q5ka6b3ghipl6jv51vw890zkfxrr1klldl4rwkad2m7liby" }, "qtdatavis3d": { "url": "https://invent.kde.org/qt/qt/qtdatavis3d.git", - "rev": "e5c03e4431eed6c4654c20fb2d2a20485cff522d", - "sha256": "0s6b3sclyyq6hmmn535ksdkckfw02yqbqzrd502p7fb2cakynhjc" + "rev": "db75c351cd0c2b93016ca489ffb9db806e6fd6e9", + "sha256": "14j577hs69b32b88nmy3bf3hw55rk7h3xyrlkr8l5d4rcp28xz75" }, "qtdeclarative": { "url": "https://invent.kde.org/qt/qt/qtdeclarative.git", - "rev": "310c124dac82d711ab15309a9cb0b9d95db9ea8f", - "sha256": "082hp6brizrfr90vla315kjri4ym9vkd1qnjlyx8f9p3sgdmplyn" + "rev": "e2b38659cb79104f157e1d0099c01e545d04d0db", + "sha256": "1zk8fkn9hiip458dgnj1zd7yiqy1pvshvd0wijh9hwin2zjlbiii" }, "qtdoc": { "url": "https://invent.kde.org/qt/qt/qtdoc.git", - "rev": "7c8712064b1aefcf880bbc82138e96bd4909b36e", - "sha256": "06n8mn0y0sjq2znd0k2m5slaf2rcj4p8pxwayp7pyfig3mj9qf34" + "rev": "47e2864f01bbaff05e97cb885ece55ccf083d8fd", + "sha256": "03yz37njpm1zyqjya6m3skikhynq1mlv37vf76f26ri6gq4r7sx7" }, "qtgamepad": { "url": "https://invent.kde.org/qt/qt/qtgamepad.git", - "rev": "e9109dadba5c8f2419af67139106b4c30f90332e", - "sha256": "1xk42wbpl83rywjscw0kriw4vap2xv41p17pcr8pagrhijnhhjpg" + "rev": "4a0bc8068728e18d0cb49cfb1c34c2931b2f05e5", + "sha256": "1w1n9iy5lhrakshgy7xixcw8hrwshx02b9b0x331rl56qq0yv5hi" }, "qtgraphicaleffects": { "url": "https://invent.kde.org/qt/qt/qtgraphicaleffects.git", - "rev": "4d3d395d14d4a956ac5b30afa859321c1e1934e4", - "sha256": "1xwq8n2h5079xm1zbyg7nk4ln53pmbjp0s35a6clhcx40mrw9b80" + "rev": "d6ef4931b295881becd2ff37b301a0115f14618e", + "sha256": "1x4g8hp82b0xwpsw0sv08w64mg77750wdjs7rlqr47a94ngjwpys" }, "qtimageformats": { "url": "https://invent.kde.org/qt/qt/qtimageformats.git", - "rev": "9f658c2093e81d1dc3333e594cc1aa4b0990e221", - "sha256": "13h43hc9yzskqi30yx1wi9ia4nbrgxlwk0zh4dprcwc7p8sgwz76" + "rev": "7b25a0435edc2602f8999bd216c4bec711ffe09e", + "sha256": "1s59sqg6grhmh85bnlnmhc0l90yqm50sfbwvamnrly57b6ca107j" }, "qtlocation": { "url": "https://invent.kde.org/qt/qt/qtlocation.git", - "rev": "e0a477d04f35495ba6eeda8578d1311dba623270", - "sha256": "104x4drmfxx2d599hzsigiy6m69y0b7n811wgm3wyhqmiay85jvl" + "rev": "6e89db9fcf76fa35c9275123c814e260610d355e", + "sha256": "0l909llb9p4dvckf9d7d9anz9q3h8k78blkqf0kpmja29wmzib7n" }, "qtlottie": { "url": "https://invent.kde.org/qt/qt/qtlottie.git", - "rev": "bdbd77ef5529b894699fe8d01642e75230e59f24", - "sha256": "13b4hfnvl9as1bwn2zaw3nlxkd8yg0phssnahc5hw07xm8z11vsm" + "rev": "f5984b138b8d1da6940d48fc1fe0e4cac068ff1c", + "sha256": "1d0ic5v4n5h5dymqy75fpialw9gpy0vf9arh69hayxcjcnc1ya8f" }, "qtmacextras": { "url": "https://invent.kde.org/qt/qt/qtmacextras.git", - "rev": "3ffd97b730fb635e0ada0b5b6f4894a128286cb1", - "sha256": "1fgpm2aa8wc65bq426xckkrwgb2h1c9hl9d454rgl5sl3xg4r61w" + "rev": "acf76f52fa9cc919303c41f763f158c94bcd5189", + "sha256": "1546f3nna5xlpgl9zg0r0nf36d62gbnlyj097pz46yv0g4sq4ywg" }, "qtmultimedia": { "url": "https://invent.kde.org/qt/qt/qtmultimedia.git", - "rev": "85fe63b98703ced6c5568c52af77b50e6ddf1edc", - "sha256": "129pdvhrahi2r30lfhqjvyird2pb9z58xc807wab779cqi5l2v5g" + "rev": "b7c7ff4ab8c0f43a03de51a76867aae691411410", + "sha256": "0l48ijl98cm7h28wxhncdlnj6x6zxwn37hbh45dakvh2nqihm7zh" }, "qtnetworkauth": { "url": "https://invent.kde.org/qt/qt/qtnetworkauth.git", - "rev": "17d6ed940cea4ead62f4055184d4fc69bf06b789", - "sha256": "0w5225fj5rhzz2jq8qpbaajg011j9xpxb3w83sn9zgnr39jgknl2" + "rev": "0ca0165f1fd036ab2d8ebee6e253cf4e05124cc9", + "sha256": "0ydmxw92l9gv5bbcyr4fg6cjl2yh2k72mj5p4jz5vwngvra7xxpz" }, "qtpurchasing": { "url": "https://invent.kde.org/qt/qt/qtpurchasing.git", - "rev": "6922c0e403e94ac9c2336706bc3df1e2da217a1f", - "sha256": "0jg6z309dj0lm4gdbvqiyprkrqiwr9cg9qhrni2q4dimg7ywci31" + "rev": "e15e0b0fd495bd708f740df754fa45917fcb3fb9", + "sha256": "1l9pn2d04xvlv9pa1c9gy1mgl7d295nagdjbx7yljw7kivbbz9qv" }, "qtquick3d": { "url": "https://invent.kde.org/qt/qt/qtquick3d.git", - "rev": "880d7aa04f3cc331c9bc7ba4ca71d7091480ea6d", - "sha256": "1gwsba3zkal7cjninridxvvilrh2iqc2qsrn9izha7m51li1kc7a" + "rev": "4db879b73a7b7546acab87bec50f9265dd1da8bd", + "sha256": "0xp63hjfdscys4dazc45xcw3scbxlvn39kmaxv8xglmkx7lhdsa8" }, "qtquickcontrols": { "url": "https://invent.kde.org/qt/qt/qtquickcontrols.git", - "rev": "fe98f874f89abe9b96edadb812cfa9b1488679f0", - "sha256": "1j843wfhm9xn0sd86faxg0aabdsxyjjvfrq9nfx00r7a0sb1giga" + "rev": "c0edbd157555ae4d87082f7e786787dabb1f9873", + "sha256": "034fjgjmw5qbjblihjvc2k8hzyf8ya50w6zvcbhh6mda9xmrmcrh" }, "qtquickcontrols2": { "url": "https://invent.kde.org/qt/qt/qtquickcontrols2.git", - "rev": "d0537c14e71d0959f96592b20103033b128f9c0b", - "sha256": "123njm1ph04l7842c1q01737xfk4hfwpcdlk7pipyfvyjgpyq7bb" + "rev": "8f244d09b22ed68b3aefaa8e521c8d68d18cada7", + "sha256": "163yfpbr6cvx094p1bckcrc3yg95aysfngy68dvd89iqpdq8vcvw" }, "qtquicktimeline": { "url": "https://invent.kde.org/qt/qt/qtquicktimeline.git", - "rev": "a0a95b50f2477823f9400b07e76e516555f16dc0", - "sha256": "0kcxjgcqs7l5yvxl53a7sr7sk959r3wcwyg6w5krbk0sf9sdf48b" + "rev": "a5bbd4ad3997e812a18ee89973317fd04d169b0a", + "sha256": "14yfgzfc1s22m76nmhg9znxlqi0y57d8wnyiha2py45fpwjxkiay" }, "qtremoteobjects": { "url": "https://invent.kde.org/qt/qt/qtremoteobjects.git", - "rev": "289bbabdff28b4362351f3d91abf75130c9cf666", - "sha256": "11x172lkajaqq2d7hyd30wny5mi6hw4p78nqhj0j2gh3kpw6x06c" + "rev": "aa61cc683979ea1413222e64a03aae9971392e3d", + "sha256": "0b98j2fvgbf8cvdz58p7brr8s9cv39mjc2r4ydhmjvlacbxgk6yc" }, "qtscxml": { "url": "https://invent.kde.org/qt/qt/qtscxml.git", - "rev": "02e1e963ec9492bb1620b3ac3fc6ffc2ff280778", - "sha256": "01m13rz3df05n2c44a16l532faj3516903p1zhp0b3hlgy2jw6k9" + "rev": "64398dfca74a6d4c37d51b56ecfcd1d7ccb6e533", + "sha256": "0fb5ff3ac9ps8dqzrmlp8bbv29fhybhnl1r2nj0c0lhssznk4fgf" }, "qtsensors": { "url": "https://invent.kde.org/qt/qt/qtsensors.git", - "rev": "b97c60bee7505eb3901579abc4751f35ba7b303e", - "sha256": "0i60av9ykbsgxizw9i31mnfr87fm4kygwdmcxk4829pmscvcv91s" + "rev": "55398471a3b46db2727b462776c137bced1dfdd6", + "sha256": "00shjmijlxkwhawijnssfrsgqwqv38nc9x5icdn7zzghqlvckr70" }, "qtserialbus": { "url": "https://invent.kde.org/qt/qt/qtserialbus.git", - "rev": "77dae896b13e36969fefdfa25d711e455d58597b", - "sha256": "08yr35mzzyqianhi66bd3iaw48yynrfv6izqsp23s5bggh5arh9r" + "rev": "9dfba421ded501fd0016728b381df3b7166280ec", + "sha256": "036gcxg5icvi8bxpm9ynajd4xvbfsmj3n9vmqj1xx4rfpjrn14rf" }, "qtserialport": { "url": "https://invent.kde.org/qt/qt/qtserialport.git", - "rev": "aa2ffdbd7295db9e5814070d1432a0b77c59cfce", - "sha256": "08lqzygmb40b060g47zqfxs87s1s0946xy18c7jsqy0i6cl6wl1k" + "rev": "875adfdf3ca8f1059fdd3c5fd20baaa00694a2e7", + "sha256": "1917l4gfgwcq8pzd5gwkwc32b114rp475lc839py5q3b0jaqrrfr" }, "qtspeech": { "url": "https://invent.kde.org/qt/qt/qtspeech.git", - "rev": "71574a57103f0da64ce5e4c0ac6d70141496d5e8", - "sha256": "1kjpx8v80r9hp2ispgz2gxrhs8l09zpq09ylwc69gxqr6y7xrjj8" + "rev": "fe7fc4f6295f644a93157707f940072b2676902d", + "sha256": "0yvb1ih90rhih50s43gq184ladaw3g3jpf0rwqfpibb20pzfm4ky" }, "qtsvg": { "url": "https://invent.kde.org/qt/qt/qtsvg.git", - "rev": "26fdcaff0d3d6bf6f5c847e833006577a6e8ba7d", - "sha256": "0n4m6a6v66fdx4cyiyzaqqgyryf4n350xzxmibr7rrbzz7z8afrz" + "rev": "9c3d40626ddfccc87886966a59e5cd6b1b5ce739", + "sha256": "1kqnrfjf93n16ns3gcf0fpxkyd20swiv5sqb7gpanxds15yyx77s" }, "qttools": { "url": "https://invent.kde.org/qt/qt/qttools.git", - "rev": "0378d3e541f40bc9c5433eac70d3949ddff9cfc4", - "sha256": "0jzncvjp07gwykfxp9nrp2nbcrfpjlpy6r2cgb8wqq1pkjy0nkg4" + "rev": "15deb8f202b838b4dd1b2ff84e852171e8587881", + "sha256": "1hw3qjgkmjl3dspphgmi8nw8mphb4rfbnlrbd4wmi93jndf16p8s" }, "qttranslations": { "url": "https://invent.kde.org/qt/qt/qttranslations.git", - "rev": "07ae7ea7c94225e73c8eddc9f3f89edc863e83e0", - "sha256": "177g0iavfk5kim8wibfa5d4h23cf0kfhx7hmaz20afwf5cwxb47z" + "rev": "56f5bf5a27db344e62d74bd5d2d54060e4b81fa2", + "sha256": "095n1j8wnsfgx3q7lsl5dfhvk2z73sj9hq7dmc7mmjsfz45m5mm1" }, "qtvirtualkeyboard": { "url": "https://invent.kde.org/qt/qt/qtvirtualkeyboard.git", - "rev": "e62c1219caef25182ba85383834be04eefce12bf", - "sha256": "09rhxkycz4w5k800sd88mzg8dd0gjbry4ylcj1pbhvnm6xrzw6fz" + "rev": "365f79ee89c6a57f205fe6c89817c51ff52ea059", + "sha256": "0r7lw1nhv3qhwfxmz7diyvwsszklh4z9lf52ibr7v13nyj3qp72j" }, "qtwayland": { "url": "https://invent.kde.org/qt/qt/qtwayland.git", - "rev": "6b1ba1cd0e1389d13e59b94e65da8f20a89ba03f", - "sha256": "127s7b76f7k1iha3crdv0z5gvm65g3lk97jzp7wl1afmv2vnfq7v" + "rev": "9340737a208b5dd4eda98eb74808951ddaef66c5", + "sha256": "1mai5xxnwhafn39rqbb10cc2ikj7nvqna007f5phlxvxwz7j7sdl" }, "qtwebchannel": { "url": "https://invent.kde.org/qt/qt/qtwebchannel.git", - "rev": "ad85920e02049bf7ba06366046498e8366a98e8e", - "sha256": "1z28ass00f7jm2wq5kb3rkx6q861092gvpb58ivnqn753jd95ban" + "rev": "b375bde968f7b9c273adfb8a89f9a6fb888f9af6", + "sha256": "0xi8vb8p6hdw46labni6s9j53bnmk4xayb3gq5my1n4cjaqcj0i1" }, "qtwebglplugin": { "url": "https://invent.kde.org/qt/qt/qtwebglplugin.git", - "rev": "0d29f1cd46331caf1b5169eb037d573680454348", - "sha256": "1ar4fs9c5av8zy19k05ygkzwcsv131c561z349wzxbj9j5qyzb6d" + "rev": "64efc679e520505be352f2b3ad662184ef265503", + "sha256": "1rba903s48y2f9hsqvdc2brlahqi4v50w5h799n9zkrm5p7lr21m" }, "qtwebsockets": { "url": "https://invent.kde.org/qt/qt/qtwebsockets.git", - "rev": "0231c7c3a17c0320601e7766e7e701db5b9eb0dc", - "sha256": "020lynaz4aw84y2dkc72nckhlpmv41nwfdssr1s8a27r4dk58p5a" + "rev": "a0c1c335b691ad5ecaddbec17a14dcb2a129a177", + "sha256": "08nvb7m6ckkbmc33cr4v4p07kbqilg9vdpjb4vgiyrikic5sfxcb" }, "qtwebview": { "url": "https://invent.kde.org/qt/qt/qtwebview.git", - "rev": "70030514bdaf993517556209503075db15bd1c61", - "sha256": "1cj0fqk41nb63as1br6zkwgpxxznc29hp5xlv2hnlcwc2mbfh2c4" + "rev": "e3de9fef1557d4a5bac4c9fe42b399df34502c9f", + "sha256": "1gg52n8hm06z2wrrq67n299ssf4h717f7xap4ng39yxzpzjyszm9" }, "qtwinextras": { "url": "https://invent.kde.org/qt/qt/qtwinextras.git", - "rev": "e1773a917239c5b548ebd9e2ab34a687ffb949e4", - "sha256": "1rvv9cpgfy62j1l15lz7p65g00jmy9k0gcmn5i0xlx9dgs35yw6b" + "rev": "56cbbfad338183d764868dd8c5a271d542280751", + "sha256": "1lcwl1a31kyg25ilyr5x1j39hyfkmvwjg4zbkc09lpjv1mrl730s" }, "qtx11extras": { "url": "https://invent.kde.org/qt/qt/qtx11extras.git", - "rev": "ff2cc0065a3504e6043b47b1b4601fcdce62eefb", - "sha256": "16m05j8iznjlsvp41pzm0yqfji42ryw5r6ypzy5avij0by0wdkir" + "rev": "0c61151bf14e5b4c74187608b6b47b9d0d6ca745", + "sha256": "09lkfs47b2c8ks5a1paa4gqxw0j8df1ih5z0173zvxhf4zqp53bh" }, "qtxmlpatterns": { "url": "https://invent.kde.org/qt/qt/qtxmlpatterns.git", - "rev": "330c47bab8333d6dc7d4ab838afb81f29b6a32d0", - "sha256": "10slr93nfc53pzv94xw2h7wzcvzbgbr72yj06jvjr9q6jfv3qgkk" + "rev": "43996a4e543fa22b345c03ba3a1a41b1aba4b454", + "sha256": "0yphf7j76q47f1llvpmf1lfy51nyhis1nmn0sj9afmq4wxjvhl3q" } } diff --git a/pkgs/development/libraries/qt-5/5.15/srcs.nix b/pkgs/development/libraries/qt-5/5.15/srcs.nix index 8de92625f8a5..715e0570fb85 100644 --- a/pkgs/development/libraries/qt-5/5.15/srcs.nix +++ b/pkgs/development/libraries/qt-5/5.15/srcs.nix @@ -1,7 +1,7 @@ { lib, fetchgit, fetchFromGitHub }: let - version = "5.15.15"; + version = "5.15.16"; mk = name: args: { @@ -64,24 +64,24 @@ lib.mapAttrs mk (lib.importJSON ./srcs-generated.json) }; qtscript = rec { - version = "5.15.17"; + version = "5.15.18"; src = fetchFromGitHub { owner = "qt"; repo = "qtscript"; rev = "v${version}-lts"; - hash = "sha256-wXEKdu2gdlkVsWr3nb/tCBwyo9H8GPHWTUele1cP0ks="; + hash = "sha256-tq9dH76ArLO4avFCl8h0vCWDOPyJuV+z4geikCZM7J8="; }; }; qtwebengine = rec { - version = "5.15.17"; + version = "5.15.18"; src = fetchFromGitHub { owner = "qt"; repo = "qtwebengine"; rev = "v${version}-lts"; - hash = "sha256-1be8Y96yHYBCxQsRC/PD2X0TVWpA2/r1hvi8sBKOais="; + hash = "sha256-l5sE+9I5H6XLJXUoPfrq2ImTtL8TZhtun5O97AhdLO4="; fetchSubmodules = true; }; }; From 523038d9f9d9278e4f639ffd1c7499054849f773 Mon Sep 17 00:00:00 2001 From: Atemu Date: Fri, 22 Nov 2024 09:51:45 +0100 Subject: [PATCH 521/693] ffmpeg-headless: enable cuda-llvm This pulls in clang as a build input but as it turns out this actually _reduces_ closure size slightly: /nix/store/0km9wmmxs4aasna3jvx6ksigbi5qlas8-ffmpeg-headless-7.1-bin 296508848 /nix/store/d0dl773klln23daxy1f24xcpbgch184a-ffmpeg-headless-7.1-bin 296402944 Fixes https://github.com/NixOS/nixpkgs/issues/344114 --- pkgs/development/libraries/ffmpeg/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 865dd20bb72c..b7862b9c36db 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -49,7 +49,7 @@ , withChromaprint ? withFullDeps # Audio fingerprinting , withCodec2 ? withFullDeps # codec2 en/decoding , withCuda ? withFullDeps && withNvcodec -, withCudaLLVM ? withFullDeps +, withCudaLLVM ? withHeadlessDeps , withCudaNVCC ? withFullDeps && withUnfree && config.cudaSupport , withCuvid ? withHeadlessDeps && withNvcodec , withDav1d ? withHeadlessDeps # AV1 decoder (focused on speed and correctness) From 4f9abde8dd9db61f84366e94564651d81154f506 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Fri, 22 Nov 2024 16:07:31 +0000 Subject: [PATCH 522/693] gettext: 0.22.4 -> 0.22.5 https://savannah.gnu.org/news/?id=10597 --- pkgs/development/libraries/gettext/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gettext/default.nix b/pkgs/development/libraries/gettext/default.nix index c5ca4a932fe6..a87804f345b5 100644 --- a/pkgs/development/libraries/gettext/default.nix +++ b/pkgs/development/libraries/gettext/default.nix @@ -8,11 +8,11 @@ stdenv.mkDerivation rec { pname = "gettext"; - version = "0.22.4"; + version = "0.22.5"; src = fetchurl { url = "mirror://gnu/gettext/${pname}-${version}.tar.gz"; - hash = "sha256-weC7KkQnqQJDkMZizVMtZkxLNrj/RE7V5UsRX9t6Guo="; + hash = "sha256-7BcFselpuDqfBzFE7IBhUduIEn9eQP5alMtsj6SJlqA="; }; patches = [ ./absolute-paths.diff From dd0746731b938a1362402819f29fa4713a722c2a Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Fri, 22 Nov 2024 16:10:49 +0000 Subject: [PATCH 523/693] gettext: enable format hardening --- pkgs/development/libraries/gettext/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/development/libraries/gettext/default.nix b/pkgs/development/libraries/gettext/default.nix index a87804f345b5..c29b2857c59f 100644 --- a/pkgs/development/libraries/gettext/default.nix +++ b/pkgs/development/libraries/gettext/default.nix @@ -32,8 +32,6 @@ stdenv.mkDerivation rec { outputs = [ "out" "man" "doc" "info" ]; - hardeningDisable = [ "format" ]; - LDFLAGS = lib.optionalString stdenv.hostPlatform.isSunOS "-lm -lmd -lmp -luutil -lnvpair -lnsl -lidmap -lavl -lsec"; configureFlags = [ From 41dcc3c9746d282181c08b7531ff486b5fbe13f2 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 18:45:24 +0100 Subject: [PATCH 524/693] postgresql_13: 13.17 -> 13.18 Release notes: https://www.postgresql.org/about/news/postgresql-172-166-1510-1415-1318-and-1222-released-2965/ --- pkgs/servers/sql/postgresql/13.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/13.nix b/pkgs/servers/sql/postgresql/13.nix index 56db6b090804..72a8dd8bb392 100644 --- a/pkgs/servers/sql/postgresql/13.nix +++ b/pkgs/servers/sql/postgresql/13.nix @@ -1,6 +1,6 @@ import ./generic.nix { - version = "13.17"; - hash = "sha256-AisKbnvDdKd37s4zcIiV17YMrgfUkrKGspaknXOV14s="; + version = "13.18"; + hash = "sha256-zuqSq+4qjBlAjSeLaN5qeLa9PbtPotZT+nynRdZmqrE="; muslPatches = { disable-test-collate-icu-utf8 = { url = "https://git.alpinelinux.org/aports/plain/main/postgresql13/disable-test-collate.icu.utf8.patch?id=69faa146ec9fff3b981511068f17f9e629d4688b"; From 3aa011583b3e362b63f468da2f54953fa289f8c7 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 18:45:41 +0100 Subject: [PATCH 525/693] postgresql_14: 14.14 -> 14.15 Release notes: https://www.postgresql.org/about/news/postgresql-172-166-1510-1415-1318-and-1222-released-2965/ --- pkgs/servers/sql/postgresql/14.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/14.nix b/pkgs/servers/sql/postgresql/14.nix index 02292b9a18fb..e5011f5314ca 100644 --- a/pkgs/servers/sql/postgresql/14.nix +++ b/pkgs/servers/sql/postgresql/14.nix @@ -1,6 +1,6 @@ import ./generic.nix { - version = "14.14"; - hash = "sha256-hHJ/vM29Hv4B2N5kvBszCV23c60kV8787cLYJY68CdY="; + version = "14.15"; + hash = "sha256-AuiR4xS06e4ky9eAKNq3xz+cG6PjCDW8vvcf4iBAH8U="; muslPatches = { disable-test-collate-icu-utf8 = { url = "https://git.alpinelinux.org/aports/plain/main/postgresql14/disable-test-collate.icu.utf8.patch?id=56999e6d0265ceff5c5239f85fdd33e146f06cb7"; From 256921e7d3f563376e3eaf44328a65a67181e988 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 18:45:58 +0100 Subject: [PATCH 526/693] postgresql_15: 15.9 -> 15.10 Release notes: https://www.postgresql.org/about/news/postgresql-172-166-1510-1415-1318-and-1222-released-2965/ --- pkgs/servers/sql/postgresql/15.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/15.nix b/pkgs/servers/sql/postgresql/15.nix index 85a128fbfb13..bf17a088f2bd 100644 --- a/pkgs/servers/sql/postgresql/15.nix +++ b/pkgs/servers/sql/postgresql/15.nix @@ -1,6 +1,6 @@ import ./generic.nix { - version = "15.9"; - hash = "sha256-dPLUVlA18M9ynssFmUn6rxECy9k3WbNZgi+Y+CGYx4M="; + version = "15.10"; + hash = "sha256-VavnONRB8OWGWLPsb4gJenE7XjtzE59iMNe1xMOJ5XM="; muslPatches = { dont-use-locale-a = { url = "https://git.alpinelinux.org/aports/plain/main/postgresql15/dont-use-locale-a-on-musl.patch?id=f424e934e6d076c4ae065ce45e734aa283eecb9c"; From f4ef8018ac170ca6dad34b354bfcd5ab91037a7d Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 18:46:26 +0100 Subject: [PATCH 527/693] postgresql_16: 16.5 -> 16.6 Release notes: https://www.postgresql.org/about/news/postgresql-172-166-1510-1415-1318-and-1222-released-2965/ --- pkgs/servers/sql/postgresql/16.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/16.nix b/pkgs/servers/sql/postgresql/16.nix index d8322f42d387..fd1957b89386 100644 --- a/pkgs/servers/sql/postgresql/16.nix +++ b/pkgs/servers/sql/postgresql/16.nix @@ -1,6 +1,6 @@ import ./generic.nix { - version = "16.5"; - hash = "sha256-psu7cDf5jLivp9OXC3xIBAzwKxFeOSU6DAN6i7jnePA="; + version = "16.6"; + hash = "sha256-Izac2szUUnCsXcww+p2iBdW+M/pQXh8XoEGNLK7KR3s="; muslPatches = { dont-use-locale-a = { url = "https://git.alpinelinux.org/aports/plain/main/postgresql16/dont-use-locale-a-on-musl.patch?id=08a24be262339fd093e641860680944c3590238e"; From 6aa3d742421e9ea74a91965e14a4eb760e789e58 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 18:46:40 +0100 Subject: [PATCH 528/693] postgresql_17: 17.1 -> 17.2 Release notes: https://www.postgresql.org/about/news/postgresql-172-166-1510-1415-1318-and-1222-released-2965/ --- pkgs/servers/sql/postgresql/17.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/17.nix b/pkgs/servers/sql/postgresql/17.nix index 07335b44570b..34d2ddeccb27 100644 --- a/pkgs/servers/sql/postgresql/17.nix +++ b/pkgs/servers/sql/postgresql/17.nix @@ -1,6 +1,6 @@ import ./generic.nix { - version = "17.1"; - hash = "sha256-eEnbdO9qhVXQcj+H6BU5MBQi+pyOnyHM5h/cFOkZnc0="; + version = "17.2"; + hash = "sha256-gu8nwK83UWldf2Ti2WNYMAX7tqDD32PQ5LQiEdcCEWQ="; muslPatches = { dont-use-locale-a = { url = "https://git.alpinelinux.org/aports/plain/main/postgresql17/dont-use-locale-a-on-musl.patch?id=d69ead2c87230118ae7f72cef7d761e761e1f37e"; From cee2a287768d70a57aa448faf34e81bae838baf6 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 22 Nov 2024 22:41:52 +0100 Subject: [PATCH 529/693] uv: switch to fetchCargoVendor --- pkgs/by-name/uv/uv/Cargo.lock | 6427 -------------------------------- pkgs/by-name/uv/uv/package.nix | 10 +- 2 files changed, 3 insertions(+), 6434 deletions(-) delete mode 100644 pkgs/by-name/uv/uv/Cargo.lock diff --git a/pkgs/by-name/uv/uv/Cargo.lock b/pkgs/by-name/uv/uv/Cargo.lock deleted file mode 100644 index 776b6ca36282..000000000000 --- a/pkgs/by-name/uv/uv/Cargo.lock +++ /dev/null @@ -1,6427 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "addr2line" -version = "0.24.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" -dependencies = [ - "gimli", -] - -[[package]] -name = "adler2" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" - -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - -[[package]] -name = "allocator-api2" -version = "0.2.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" - -[[package]] -name = "anes" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" - -[[package]] -name = "anstream" -version = "0.6.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "is_terminal_polyfill", - "utf8parse", -] - -[[package]] -name = "anstyle" -version = "1.0.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" - -[[package]] -name = "anstyle-parse" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c" -dependencies = [ - "windows-sys 0.59.0", -] - -[[package]] -name = "anstyle-wincon" -version = "3.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2109dbce0e72be3ec00bed26e6a7479ca384ad226efdd66db8fa2e3a38c83125" -dependencies = [ - "anstyle", - "windows-sys 0.59.0", -] - -[[package]] -name = "anyhow" -version = "1.0.93" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" - -[[package]] -name = "arrayref" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" - -[[package]] -name = "arrayvec" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" - -[[package]] -name = "assert-json-diff" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" -dependencies = [ - "serde", - "serde_json", -] - -[[package]] -name = "assert_cmd" -version = "2.0.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1835b7f27878de8525dc71410b5a31cdcc5f230aed5ba5df968e09c201b23d" -dependencies = [ - "anstyle", - "bstr", - "doc-comment", - "libc", - "predicates", - "predicates-core", - "predicates-tree", - "wait-timeout", -] - -[[package]] -name = "assert_fs" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7efdb1fdb47602827a342857666feb372712cbc64b414172bd6b167a02927674" -dependencies = [ - "anstyle", - "doc-comment", - "globwalk", - "predicates", - "predicates-core", - "predicates-tree", - "tempfile", -] - -[[package]] -name = "async-channel" -version = "2.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a" -dependencies = [ - "concurrent-queue", - "event-listener-strategy", - "futures-core", - "pin-project-lite", -] - -[[package]] -name = "async-compression" -version = "0.4.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cb8f1d480b0ea3783ab015936d2a55c87e219676f0c0b7dec61494043f21857" -dependencies = [ - "bzip2", - "flate2", - "futures-core", - "futures-io", - "memchr", - "pin-project-lite", - "tokio", - "xz2", - "zstd", - "zstd-safe", -] - -[[package]] -name = "async-trait" -version = "0.1.83" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "async_http_range_reader" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b537c00269e3f943e06f5d7cabf8ccd281b800fd0c7f111dd82f77154334197" -dependencies = [ - "bisection", - "futures", - "http-content-range", - "itertools 0.13.0", - "memmap2 0.9.5", - "reqwest", - "reqwest-middleware", - "thiserror 1.0.69", - "tokio", - "tokio-stream", - "tokio-util", - "tracing", -] - -[[package]] -name = "async_zip" -version = "0.0.17" -source = "git+https://github.com/charliermarsh/rs-async-zip?rev=c909fda63fcafe4af496a07bfda28a5aae97e58d#c909fda63fcafe4af496a07bfda28a5aae97e58d" -dependencies = [ - "async-compression", - "crc32fast", - "futures-lite", - "pin-project", - "thiserror 1.0.69", - "tokio", - "tokio-util", -] - -[[package]] -name = "atomic-waker" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" - -[[package]] -name = "autocfg" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" - -[[package]] -name = "axoasset" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90f16d4ba2365a6f9b4394b369597b9bc00a1651db758edbe6d63a34879b9024" -dependencies = [ - "camino", - "image", - "lazy_static", - "miette", - "mime", - "reqwest", - "serde", - "serde_json", - "thiserror 1.0.69", - "url", - "walkdir", -] - -[[package]] -name = "axoprocess" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4de46920588aef95658797996130bacd542436aee090084646521260a74bda7d" -dependencies = [ - "miette", - "thiserror 1.0.69", - "tracing", -] - -[[package]] -name = "axotag" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d888fac0b73e64cbdf36a743fc5a25af5ae955c357535cb420b389bf1e1a6c54" -dependencies = [ - "miette", - "semver", - "thiserror 1.0.69", -] - -[[package]] -name = "axoupdater" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fb8d8889305a413a040f281197bb2f8982a1d25c9696707cab350e3cc780ba5" -dependencies = [ - "axoasset", - "axoprocess", - "axotag", - "camino", - "homedir", - "miette", - "self-replace", - "serde", - "tempfile", - "thiserror 1.0.69", - "tokio", - "url", -] - -[[package]] -name = "backoff" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1" -dependencies = [ - "futures-core", - "getrandom", - "instant", - "pin-project-lite", - "rand", - "tokio", -] - -[[package]] -name = "backtrace" -version = "0.3.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" -dependencies = [ - "addr2line", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", - "windows-targets 0.52.6", -] - -[[package]] -name = "base64" -version = "0.21.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" - -[[package]] -name = "base64" -version = "0.22.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" - -[[package]] -name = "bisection" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "021e079a1bab0ecce6cf4b4b74c0c37afa4a697136eb3b127875c84a8f04a8c3" - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - -[[package]] -name = "bitflags" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" - -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "boxcar" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f839cdf7e2d3198ac6ca003fd8ebc61715755f41c1cad15ff13df67531e00ed" - -[[package]] -name = "bstr" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a68f1f47cdf0ec8ee4b941b2eee2a80cb796db73118c0dd09ac63fbe405be22" -dependencies = [ - "memchr", - "regex-automata 0.4.9", - "serde", -] - -[[package]] -name = "bumpalo" -version = "3.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" - -[[package]] -name = "bytecheck" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c8f430744b23b54ad15161fcbc22d82a29b73eacbe425fea23ec822600bc6f" -dependencies = [ - "bytecheck_derive", - "ptr_meta", - "rancor", - "simdutf8", -] - -[[package]] -name = "bytecheck_derive" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "523363cbe1df49b68215efdf500b103ac3b0fb4836aed6d15689a076eadb8fff" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "bytemuck" -version = "1.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b37c88a63ffd85d15b406896cc343916d7cf57838a847b3a6f2ca5d39a5695a" - -[[package]] -name = "byteorder" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" - -[[package]] -name = "byteorder-lite" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" - -[[package]] -name = "bytes" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" - -[[package]] -name = "bzip2" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" -dependencies = [ - "bzip2-sys", - "libc", -] - -[[package]] -name = "bzip2-sys" -version = "0.1.11+1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - -[[package]] -name = "cachedir" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4703f3937077db8fa35bee3c8789343c1aec2585f0146f09d658d4ccc0e8d873" -dependencies = [ - "tempfile", -] - -[[package]] -name = "camino" -version = "1.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo-util" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6dd67a24439ca5260a08128b6cbf4b0f4453497a2f60508163ab9d5b534b122" -dependencies = [ - "anyhow", - "core-foundation", - "filetime", - "hex", - "ignore", - "jobserver", - "libc", - "miow", - "same-file", - "sha2", - "shell-escape", - "tempfile", - "tracing", - "walkdir", - "windows-sys 0.59.0", -] - -[[package]] -name = "cast" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" - -[[package]] -name = "cc" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" -dependencies = [ - "jobserver", - "libc", - "shlex", -] - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "cfg_aliases" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" - -[[package]] -name = "charset" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1f927b07c74ba84c7e5fe4db2baeb3e996ab2688992e39ac68ce3220a677c7e" -dependencies = [ - "base64 0.22.1", - "encoding_rs", -] - -[[package]] -name = "ciborium" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e" -dependencies = [ - "ciborium-io", - "ciborium-ll", - "serde", -] - -[[package]] -name = "ciborium-io" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757" - -[[package]] -name = "ciborium-ll" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" -dependencies = [ - "ciborium-io", - "half", -] - -[[package]] -name = "clap" -version = "4.5.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb3b4b9e5a7c7514dfa52869339ee98b3156b0bfb4e8a77c4ff4babb64b1604f" -dependencies = [ - "clap_builder", - "clap_derive", -] - -[[package]] -name = "clap_builder" -version = "4.5.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b17a95aa67cc7b5ebd32aa5370189aa0d79069ef1c64ce893bd30fb24bff20ec" -dependencies = [ - "anstream", - "anstyle", - "clap_lex", - "strsim", - "terminal_size 0.4.0", -] - -[[package]] -name = "clap_complete" -version = "4.5.38" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9647a559c112175f17cf724dc72d3645680a883c58481332779192b0d8e7a01" -dependencies = [ - "clap", -] - -[[package]] -name = "clap_complete_command" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da8e198c052315686d36371e8a3c5778b7852fc75cc313e4e11eeb7a644a1b62" -dependencies = [ - "clap", - "clap_complete", - "clap_complete_nushell", -] - -[[package]] -name = "clap_complete_nushell" -version = "4.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "315902e790cc6e5ddd20cbd313c1d0d49db77f191e149f96397230fb82a17677" -dependencies = [ - "clap", - "clap_complete", -] - -[[package]] -name = "clap_derive" -version = "4.5.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ac6a0c7b1a9e9a5186361f67dfa1b88213572f427fb9ab038efb2bd8c582dab" -dependencies = [ - "heck", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "clap_lex" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" - -[[package]] -name = "codspeed" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "450a0e9df9df1c154156f4344f99d8f6f6e69d0fc4de96ef6e2e68b2ec3bce97" -dependencies = [ - "colored", - "libc", - "serde_json", -] - -[[package]] -name = "codspeed-criterion-compat" -version = "2.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eb1a6cb9c20e177fde58cdef97c1c7c9264eb1424fe45c4fccedc2fb078a569" -dependencies = [ - "codspeed", - "colored", - "criterion", -] - -[[package]] -name = "color_quant" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" - -[[package]] -name = "colorchoice" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990" - -[[package]] -name = "colored" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8" -dependencies = [ - "lazy_static", - "windows-sys 0.48.0", -] - -[[package]] -name = "concurrent-queue" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "configparser" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e57e3272f0190c3f1584272d613719ba5fc7df7f4942fe542e63d949cf3a649b" - -[[package]] -name = "console" -version = "0.15.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" -dependencies = [ - "encode_unicode", - "lazy_static", - "libc", - "unicode-width 0.1.14", - "windows-sys 0.52.0", -] - -[[package]] -name = "core-foundation" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "core-foundation-sys" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" - -[[package]] -name = "cpufeatures" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ca741a962e1b0bff6d724a1a0958b686406e853bb14061f218562e1896f95e6" -dependencies = [ - "libc", -] - -[[package]] -name = "crc32fast" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "criterion" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f" -dependencies = [ - "anes", - "cast", - "ciborium", - "clap", - "criterion-plot", - "futures", - "is-terminal", - "itertools 0.10.5", - "num-traits", - "once_cell", - "oorandom", - "regex", - "serde", - "serde_derive", - "serde_json", - "tinytemplate", - "tokio", - "walkdir", -] - -[[package]] -name = "criterion-plot" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1" -dependencies = [ - "cast", - "itertools 0.10.5", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" -dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" -dependencies = [ - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80" - -[[package]] -name = "crunchy" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" - -[[package]] -name = "crypto-common" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "csv" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acdc4883a9c96732e4733212c01447ebd805833b7275a73ca3ee080fd77afdaf" -dependencies = [ - "csv-core", - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "csv-core" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70" -dependencies = [ - "memchr", -] - -[[package]] -name = "ctrlc" -version = "3.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90eeab0aa92f3f9b4e87f258c72b139c207d251f9cbc1080a0086b86a8870dd3" -dependencies = [ - "nix", - "windows-sys 0.59.0", -] - -[[package]] -name = "dashmap" -version = "6.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" -dependencies = [ - "cfg-if", - "crossbeam-utils", - "hashbrown 0.14.5", - "lock_api", - "once_cell", - "parking_lot_core 0.9.10", -] - -[[package]] -name = "data-encoding" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" - -[[package]] -name = "data-url" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d7439c3735f405729d52c3fbbe4de140eaf938a1fe47d227c27f8254d4302a5" - -[[package]] -name = "deadpool" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb84100978c1c7b37f09ed3ce3e5f843af02c2a2c431bae5b19230dad2c1b490" -dependencies = [ - "async-trait", - "deadpool-runtime", - "num_cpus", - "tokio", -] - -[[package]] -name = "deadpool-runtime" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "092966b41edc516079bdf31ec78a2e0588d1d0c08f78b91d8307215928642b2b" - -[[package]] -name = "diff" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" - -[[package]] -name = "difflib" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "crypto-common", -] - -[[package]] -name = "dirs" -version = "5.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" -dependencies = [ - "dirs-sys", -] - -[[package]] -name = "dirs-sys" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" -dependencies = [ - "libc", - "option-ext", - "redox_users", - "windows-sys 0.48.0", -] - -[[package]] -name = "displaydoc" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "doc-comment" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" - -[[package]] -name = "dotenvy" -version = "0.15.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" - -[[package]] -name = "dunce" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" - -[[package]] -name = "dyn-clone" -version = "1.0.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" - -[[package]] -name = "either" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" - -[[package]] -name = "encode_unicode" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" - -[[package]] -name = "encoding_rs" -version = "0.8.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" -dependencies = [ - "cfg-if", -] - -[[package]] -name = "encoding_rs_io" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cc3c5651fb62ab8aa3103998dade57efdd028544bd300516baa31840c252a83" -dependencies = [ - "encoding_rs", -] - -[[package]] -name = "equivalent" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" - -[[package]] -name = "erased-serde" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24e2389d65ab4fab27dc2a5de7b191e1f6617d1f1c8855c0dc569c94a4cbb18d" -dependencies = [ - "serde", - "typeid", -] - -[[package]] -name = "errno" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "etcetera" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "136d1b5283a1ab77bd9257427ffd09d8667ced0570b6f938942bc7568ed5b943" -dependencies = [ - "cfg-if", - "home", - "windows-sys 0.48.0", -] - -[[package]] -name = "event-listener" -version = "5.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba" -dependencies = [ - "concurrent-queue", - "parking", - "pin-project-lite", -] - -[[package]] -name = "event-listener-strategy" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" -dependencies = [ - "event-listener", - "pin-project-lite", -] - -[[package]] -name = "fastrand" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" - -[[package]] -name = "fdeflate" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07c6f4c64c1d33a3111c4466f7365ebdcc37c5bd1ea0d62aae2e3d722aacbedb" -dependencies = [ - "simd-adler32", -] - -[[package]] -name = "filetime" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" -dependencies = [ - "cfg-if", - "libc", - "libredox", - "windows-sys 0.59.0", -] - -[[package]] -name = "fixedbitset" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" - -[[package]] -name = "flate2" -version = "1.0.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" -dependencies = [ - "crc32fast", - "libz-rs-sys", - "miniz_oxide", -] - -[[package]] -name = "float-cmp" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" -dependencies = [ - "num-traits", -] - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "foldhash" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f81ec6369c545a7d40e4589b5597581fa1c441fe1cce96dd1de43159910a36a2" - -[[package]] -name = "fontconfig-parser" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1fcfcd44ca6e90c921fee9fa665d530b21ef1327a4c1a6c5250ea44b776ada7" -dependencies = [ - "roxmltree 0.20.0", -] - -[[package]] -name = "fontdb" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff20bef7942a72af07104346154a70a70b089c572e454b41bef6eb6cb10e9c06" -dependencies = [ - "fontconfig-parser", - "log", - "memmap2 0.5.10", - "ttf-parser", -] - -[[package]] -name = "form_urlencoded" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" -dependencies = [ - "percent-encoding", -] - -[[package]] -name = "fs-err" -version = "2.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41" -dependencies = [ - "autocfg", -] - -[[package]] -name = "fs-err" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bb60e7409f34ef959985bc9d9c5ee8f5db24ee46ed9775850548021710f807f" -dependencies = [ - "autocfg", - "tokio", -] - -[[package]] -name = "fs2" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "futures" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] -name = "futures-core" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" - -[[package]] -name = "futures-executor" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" - -[[package]] -name = "futures-lite" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cef40d21ae2c515b51041df9ed313ed21e572df340ea58a922a0aefe7e8891a1" -dependencies = [ - "fastrand", - "futures-core", - "futures-io", - "parking", - "pin-project-lite", -] - -[[package]] -name = "futures-macro" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "futures-sink" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" - -[[package]] -name = "futures-task" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" - -[[package]] -name = "futures-util" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" -dependencies = [ - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite", - "pin-utils", - "slab", -] - -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" -dependencies = [ - "cfg-if", - "js-sys", - "libc", - "wasi", - "wasm-bindgen", -] - -[[package]] -name = "gif" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80792593675e051cf94a4b111980da2ba60d4a83e43e0048c5693baab3977045" -dependencies = [ - "color_quant", - "weezl", -] - -[[package]] -name = "gimli" -version = "0.31.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" - -[[package]] -name = "glob" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" - -[[package]] -name = "globset" -version = "0.4.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15f1ce686646e7f1e19bf7d5533fe443a45dbfb990e00629110797578b42fb19" -dependencies = [ - "aho-corasick", - "bstr", - "log", - "regex-automata 0.4.9", - "regex-syntax 0.8.5", -] - -[[package]] -name = "globwalk" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757" -dependencies = [ - "bitflags 2.6.0", - "ignore", - "walkdir", -] - -[[package]] -name = "goblin" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53ab3f32d1d77146981dea5d6b1e8fe31eedcb7013e5e00d6ccd1259a4b4d923" -dependencies = [ - "log", - "plain", - "scroll", -] - -[[package]] -name = "h2" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" -dependencies = [ - "atomic-waker", - "bytes", - "fnv", - "futures-core", - "futures-sink", - "http", - "indexmap", - "slab", - "tokio", - "tokio-util", - "tracing", -] - -[[package]] -name = "half" -version = "2.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888" -dependencies = [ - "cfg-if", - "crunchy", -] - -[[package]] -name = "hashbrown" -version = "0.14.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" - -[[package]] -name = "hashbrown" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" -dependencies = [ - "allocator-api2", - "equivalent", - "foldhash", -] - -[[package]] -name = "heck" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" - -[[package]] -name = "hermit-abi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" - -[[package]] -name = "hermit-abi" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc" - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "home" -version = "0.5.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5" -dependencies = [ - "windows-sys 0.52.0", -] - -[[package]] -name = "homedir" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bdbbd5bc8c5749697ccaa352fa45aff8730cf21c68029c0eef1ffed7c3d6ba2" -dependencies = [ - "cfg-if", - "nix", - "widestring", - "windows 0.57.0", -] - -[[package]] -name = "html-escape" -version = "0.2.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d1ad449764d627e22bfd7cd5e8868264fc9236e07c752972b4080cd351cb476" -dependencies = [ - "utf8-width", -] - -[[package]] -name = "http" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" -dependencies = [ - "bytes", - "fnv", - "itoa", -] - -[[package]] -name = "http-body" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" -dependencies = [ - "bytes", - "http", -] - -[[package]] -name = "http-body-util" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" -dependencies = [ - "bytes", - "futures-util", - "http", - "http-body", - "pin-project-lite", -] - -[[package]] -name = "http-content-range" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91314cc9d86f625097a3365cab4e4b6f190eac231650f8f41c1edd8080cea1d0" - -[[package]] -name = "httparse" -version = "1.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" - -[[package]] -name = "httpdate" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" - -[[package]] -name = "hyper" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97818827ef4f364230e16705d4706e2897df2bb60617d6ca15d598025a3c481f" -dependencies = [ - "bytes", - "futures-channel", - "futures-util", - "h2", - "http", - "http-body", - "httparse", - "httpdate", - "itoa", - "pin-project-lite", - "smallvec", - "tokio", - "want", -] - -[[package]] -name = "hyper-rustls" -version = "0.27.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" -dependencies = [ - "futures-util", - "http", - "hyper", - "hyper-util", - "rustls", - "rustls-native-certs", - "rustls-pki-types", - "tokio", - "tokio-rustls", - "tower-service", - "webpki-roots", -] - -[[package]] -name = "hyper-util" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4" -dependencies = [ - "bytes", - "futures-channel", - "futures-util", - "http", - "http-body", - "hyper", - "pin-project-lite", - "socket2", - "tokio", - "tower-service", - "tracing", -] - -[[package]] -name = "icu_collections" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" -dependencies = [ - "displaydoc", - "yoke", - "zerofrom", - "zerovec", -] - -[[package]] -name = "icu_locid" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" -dependencies = [ - "displaydoc", - "litemap", - "tinystr", - "writeable", - "zerovec", -] - -[[package]] -name = "icu_locid_transform" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" -dependencies = [ - "displaydoc", - "icu_locid", - "icu_locid_transform_data", - "icu_provider", - "tinystr", - "zerovec", -] - -[[package]] -name = "icu_locid_transform_data" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" - -[[package]] -name = "icu_normalizer" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" -dependencies = [ - "displaydoc", - "icu_collections", - "icu_normalizer_data", - "icu_properties", - "icu_provider", - "smallvec", - "utf16_iter", - "utf8_iter", - "write16", - "zerovec", -] - -[[package]] -name = "icu_normalizer_data" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" - -[[package]] -name = "icu_properties" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" -dependencies = [ - "displaydoc", - "icu_collections", - "icu_locid_transform", - "icu_properties_data", - "icu_provider", - "tinystr", - "zerovec", -] - -[[package]] -name = "icu_properties_data" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" - -[[package]] -name = "icu_provider" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" -dependencies = [ - "displaydoc", - "icu_locid", - "icu_provider_macros", - "stable_deref_trait", - "tinystr", - "writeable", - "yoke", - "zerofrom", - "zerovec", -] - -[[package]] -name = "icu_provider_macros" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "idna" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" -dependencies = [ - "idna_adapter", - "smallvec", - "utf8_iter", -] - -[[package]] -name = "idna_adapter" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" -dependencies = [ - "icu_normalizer", - "icu_properties", -] - -[[package]] -name = "ignore" -version = "0.4.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" -dependencies = [ - "crossbeam-deque", - "globset", - "log", - "memchr", - "regex-automata 0.4.9", - "same-file", - "walkdir", - "winapi-util", -] - -[[package]] -name = "image" -version = "0.25.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd6f44aed642f18953a158afeb30206f4d50da59fbc66ecb53c66488de73563b" -dependencies = [ - "bytemuck", - "byteorder-lite", - "num-traits", -] - -[[package]] -name = "imagesize" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b72ad49b554c1728b1e83254a1b1565aea4161e28dabbfa171fc15fe62299caf" - -[[package]] -name = "indexmap" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" -dependencies = [ - "equivalent", - "hashbrown 0.15.1", - "serde", -] - -[[package]] -name = "indicatif" -version = "0.17.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbf675b85ed934d3c67b5c5469701eec7db22689d0a2139d856e0925fa28b281" -dependencies = [ - "console", - "number_prefix", - "portable-atomic", - "unicode-width 0.2.0", - "web-time", -] - -[[package]] -name = "indoc" -version = "2.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" - -[[package]] -name = "insta" -version = "1.41.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e9ffc4d4892617c50a928c52b2961cb5174b6fc6ebf252b2fac9d21955c48b8" -dependencies = [ - "console", - "lazy_static", - "linked-hash-map", - "pest", - "pest_derive", - "regex", - "serde", - "similar", -] - -[[package]] -name = "instant" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" -dependencies = [ - "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "ipnet" -version = "2.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" - -[[package]] -name = "is-terminal" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b" -dependencies = [ - "hermit-abi 0.4.0", - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "is_ci" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45" - -[[package]] -name = "is_terminal_polyfill" -version = "1.70.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" - -[[package]] -name = "itertools" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" -dependencies = [ - "either", -] - -[[package]] -name = "itertools" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" - -[[package]] -name = "jiff" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9d9d414fc817d3e3d62b2598616733f76c4cc74fbac96069674739b881295c8" -dependencies = [ - "jiff-tzdb-platform", - "serde", - "windows-sys 0.59.0", -] - -[[package]] -name = "jiff-tzdb" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91335e575850c5c4c673b9bd467b0e025f164ca59d0564f69d0c2ee0ffad4653" - -[[package]] -name = "jiff-tzdb-platform" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9835f0060a626fe59f160437bc725491a6af23133ea906500027d1bd2f8f4329" -dependencies = [ - "jiff-tzdb", -] - -[[package]] -name = "jobserver" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" -dependencies = [ - "libc", -] - -[[package]] -name = "jpeg-decoder" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5d4a7da358eff58addd2877a45865158f0d78c911d43a5784ceb7bbf52833b0" - -[[package]] -name = "js-sys" -version = "0.3.72" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" -dependencies = [ - "wasm-bindgen", -] - -[[package]] -name = "junction" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72bbdfd737a243da3dfc1f99ee8d6e166480f17ab4ac84d7c34aacd73fc7bd16" -dependencies = [ - "scopeguard", - "windows-sys 0.52.0", -] - -[[package]] -name = "krata-tokio-tar" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8bd5fee9b96acb5fc36b401896d601e6fdcce52b0e651ce24a3b21fb524e79f" -dependencies = [ - "filetime", - "futures-core", - "libc", - "portable-atomic", - "redox_syscall 0.3.5", - "tokio", - "tokio-stream", - "xattr", -] - -[[package]] -name = "kurbo" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a53776d271cfb873b17c618af0298445c88afc52837f3e948fa3fafd131f449" -dependencies = [ - "arrayvec", -] - -[[package]] -name = "kurbo" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd85a5776cd9500c2e2059c8c76c3b01528566b7fcbaf8098b55a33fc298849b" -dependencies = [ - "arrayvec", -] - -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" - -[[package]] -name = "libc" -version = "0.2.164" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" - -[[package]] -name = "libmimalloc-sys" -version = "0.1.39" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23aa6811d3bd4deb8a84dde645f943476d13b248d818edcf8ce0b2f37f036b44" -dependencies = [ - "cc", - "libc", -] - -[[package]] -name = "libredox" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" -dependencies = [ - "bitflags 2.6.0", - "libc", - "redox_syscall 0.5.7", -] - -[[package]] -name = "libz-rs-sys" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cc71ac688c22a9f5730a38171ac94795c071ac81d1a0ab5537f6ef164fff30" -dependencies = [ - "zlib-rs", -] - -[[package]] -name = "linked-hash-map" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" - -[[package]] -name = "linux-raw-sys" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" - -[[package]] -name = "litemap" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" - -[[package]] -name = "lock_api" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" -dependencies = [ - "autocfg", - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" - -[[package]] -name = "lzma-sys" -version = "0.1.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - -[[package]] -name = "mailparse" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3da03d5980411a724e8aaf7b61a7b5e386ec55a7fb49ee3d0ff79efc7e5e7c7e" -dependencies = [ - "charset", - "data-encoding", - "quoted_printable", -] - -[[package]] -name = "markdown" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef3aab6a1d529b112695f72beec5ee80e729cb45af58663ec902c8fac764ecdd" -dependencies = [ - "lazy_static", - "pipeline", - "regex", -] - -[[package]] -name = "matchers" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" -dependencies = [ - "regex-automata 0.1.10", -] - -[[package]] -name = "md-5" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" -dependencies = [ - "cfg-if", - "digest", -] - -[[package]] -name = "memchr" -version = "2.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" - -[[package]] -name = "memmap2" -version = "0.5.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" -dependencies = [ - "libc", -] - -[[package]] -name = "memmap2" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f" -dependencies = [ - "libc", -] - -[[package]] -name = "miette" -version = "7.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4edc8853320c2a0dab800fbda86253c8938f6ea88510dc92c5f1ed20e794afc1" -dependencies = [ - "cfg-if", - "miette-derive", - "owo-colors", - "supports-color", - "supports-hyperlinks", - "supports-unicode", - "terminal_size 0.3.0", - "textwrap", - "thiserror 1.0.69", - "unicode-width 0.1.14", -] - -[[package]] -name = "miette-derive" -version = "7.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "mimalloc" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68914350ae34959d83f732418d51e2427a794055d0b9529f48259ac07af65633" -dependencies = [ - "libmimalloc-sys", -] - -[[package]] -name = "mime" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" - -[[package]] -name = "mime_guess" -version = "2.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" -dependencies = [ - "mime", - "unicase", -] - -[[package]] -name = "miniz_oxide" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" -dependencies = [ - "adler2", - "simd-adler32", -] - -[[package]] -name = "mio" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" -dependencies = [ - "hermit-abi 0.3.9", - "libc", - "wasi", - "windows-sys 0.52.0", -] - -[[package]] -name = "miow" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "359f76430b20a79f9e20e115b3428614e654f04fab314482fc0fda0ebd3c6044" -dependencies = [ - "windows-sys 0.48.0", -] - -[[package]] -name = "munge" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64142d38c84badf60abf06ff9bd80ad2174306a5b11bd4706535090a30a419df" -dependencies = [ - "munge_macro", -] - -[[package]] -name = "munge_macro" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bb5c1d8184f13f7d0ccbeeca0def2f9a181bce2624302793005f5ca8aa62e5e" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "nanoid" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ffa00dec017b5b1a8b7cf5e2c008bfda1aa7e0697ac1508b491fdf2622fb4d8" -dependencies = [ - "rand", -] - -[[package]] -name = "nix" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" -dependencies = [ - "bitflags 2.6.0", - "cfg-if", - "cfg_aliases", - "libc", -] - -[[package]] -name = "normalize-line-endings" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" - -[[package]] -name = "nu-ansi-term" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" -dependencies = [ - "overload", - "winapi", -] - -[[package]] -name = "nu-ansi-term" -version = "0.50.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4a28e057d01f97e61255210fcff094d74ed0466038633e95017f5beb68e4399" -dependencies = [ - "windows-sys 0.52.0", -] - -[[package]] -name = "num-traits" -version = "0.2.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" -dependencies = [ - "autocfg", -] - -[[package]] -name = "num_cpus" -version = "1.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" -dependencies = [ - "hermit-abi 0.3.9", - "libc", -] - -[[package]] -name = "number_prefix" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" - -[[package]] -name = "object" -version = "0.36.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" -dependencies = [ - "memchr", -] - -[[package]] -name = "once_cell" -version = "1.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" - -[[package]] -name = "oorandom" -version = "11.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b410bbe7e14ab526a0e86877eb47c6996a2bd7746f027ba551028c925390e4e9" - -[[package]] -name = "openssl-probe" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" - -[[package]] -name = "option-ext" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" - -[[package]] -name = "os_str_bytes" -version = "6.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2355d85b9a3786f481747ced0e0ff2ba35213a1f9bd406ed906554d7af805a1" -dependencies = [ - "memchr", -] - -[[package]] -name = "overload" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" - -[[package]] -name = "owo-colors" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" - -[[package]] -name = "parking" -version = "2.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" - -[[package]] -name = "parking_lot" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99" -dependencies = [ - "instant", - "lock_api", - "parking_lot_core 0.8.6", -] - -[[package]] -name = "parking_lot" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" -dependencies = [ - "lock_api", - "parking_lot_core 0.9.10", -] - -[[package]] -name = "parking_lot_core" -version = "0.8.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc" -dependencies = [ - "cfg-if", - "instant", - "libc", - "redox_syscall 0.2.16", - "smallvec", - "winapi", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.5.7", - "smallvec", - "windows-targets 0.52.6", -] - -[[package]] -name = "paste" -version = "1.0.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" - -[[package]] -name = "path-slash" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e91099d4268b0e11973f036e885d652fb0b21fedcf69738c627f94db6a44f42" - -[[package]] -name = "pathdiff" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c5ce1153ab5b689d0c074c4e7fc613e942dfb7dd9eea5ab202d2ad91fe361" - -[[package]] -name = "percent-encoding" -version = "2.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" - -[[package]] -name = "pest" -version = "2.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879952a81a83930934cbf1786752d6dedc3b1f29e8f8fb2ad1d0a36f377cf442" -dependencies = [ - "memchr", - "thiserror 1.0.69", - "ucd-trie", -] - -[[package]] -name = "pest_derive" -version = "2.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d214365f632b123a47fd913301e14c946c61d1c183ee245fa76eb752e59a02dd" -dependencies = [ - "pest", - "pest_generator", -] - -[[package]] -name = "pest_generator" -version = "2.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb55586734301717aea2ac313f50b2eb8f60d2fc3dc01d190eefa2e625f60c4e" -dependencies = [ - "pest", - "pest_meta", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "pest_meta" -version = "2.7.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b75da2a70cf4d9cb76833c990ac9cd3923c9a8905a8929789ce347c84564d03d" -dependencies = [ - "once_cell", - "pest", - "sha2", -] - -[[package]] -name = "petgraph" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" -dependencies = [ - "fixedbitset", - "indexmap", -] - -[[package]] -name = "pico-args" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" - -[[package]] -name = "pin-project" -version = "1.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" -dependencies = [ - "pin-project-internal", -] - -[[package]] -name = "pin-project-internal" -version = "1.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "pin-project-lite" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" - -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - -[[package]] -name = "pipeline" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d15b6607fa632996eb8a17c9041cb6071cb75ac057abd45dece578723ea8c7c0" - -[[package]] -name = "pkg-config" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" - -[[package]] -name = "plain" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" - -[[package]] -name = "platform-info" -version = "2.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91077ffd05d058d70d79eefcd7d7f6aac34980860a7519960f7913b6563a8c3a" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "png" -version = "0.17.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52f9d46a34a05a6a57566bc2bfae066ef07585a6e3fa30fbbdff5936380623f0" -dependencies = [ - "bitflags 1.3.2", - "crc32fast", - "fdeflate", - "flate2", - "miniz_oxide", -] - -[[package]] -name = "poloto" -version = "19.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "164dbd541c9832e92fa34452e9c2e98b515a548a3f8549fb2402fe1cd5e46b96" -dependencies = [ - "tagu", -] - -[[package]] -name = "portable-atomic" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2" - -[[package]] -name = "ppv-lite86" -version = "0.2.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" -dependencies = [ - "zerocopy", -] - -[[package]] -name = "predicates" -version = "3.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e9086cc7640c29a356d1a29fd134380bee9d8f79a17410aa76e7ad295f42c97" -dependencies = [ - "anstyle", - "difflib", - "float-cmp", - "normalize-line-endings", - "predicates-core", - "regex", -] - -[[package]] -name = "predicates-core" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae8177bee8e75d6846599c6b9ff679ed51e882816914eec639944d7c9aa11931" - -[[package]] -name = "predicates-tree" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41b740d195ed3166cd147c8047ec98db0e22ec019eb8eeb76d343b795304fb13" -dependencies = [ - "predicates-core", - "termtree", -] - -[[package]] -name = "pretty_assertions" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d" -dependencies = [ - "diff", - "yansi", -] - -[[package]] -name = "priority-queue" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "714c75db297bc88a63783ffc6ab9f830698a6705aa0201416931759ef4c8183d" -dependencies = [ - "autocfg", - "equivalent", - "indexmap", -] - -[[package]] -name = "proc-macro2" -version = "1.0.89" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "procfs" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc5b72d8145275d844d4b5f6d4e1eef00c8cd889edb6035c21675d1bb1f45c9f" -dependencies = [ - "bitflags 2.6.0", - "flate2", - "hex", - "procfs-core", - "rustix", -] - -[[package]] -name = "procfs-core" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "239df02d8349b06fc07398a3a1697b06418223b1c7725085e801e7c0fc6a12ec" -dependencies = [ - "bitflags 2.6.0", - "hex", -] - -[[package]] -name = "ptr_meta" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe9e76f66d3f9606f44e45598d155cb13ecf09f4a28199e48daf8c8fc937ea90" -dependencies = [ - "ptr_meta_derive", -] - -[[package]] -name = "ptr_meta_derive" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca414edb151b4c8d125c12566ab0d74dc9cdba36fb80eb7b848c15f495fd32d1" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "pubgrub" -version = "0.2.1" -source = "git+https://github.com/astral-sh/pubgrub?rev=57afc831bf2551f164617a10383cf288bf5d190d#57afc831bf2551f164617a10383cf288bf5d190d" -dependencies = [ - "indexmap", - "log", - "priority-queue", - "rustc-hash", - "thiserror 2.0.3", - "version-ranges", -] - -[[package]] -name = "quinn" -version = "0.11.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" -dependencies = [ - "bytes", - "pin-project-lite", - "quinn-proto", - "quinn-udp", - "rustc-hash", - "rustls", - "socket2", - "thiserror 2.0.3", - "tokio", - "tracing", -] - -[[package]] -name = "quinn-proto" -version = "0.11.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" -dependencies = [ - "bytes", - "getrandom", - "rand", - "ring", - "rustc-hash", - "rustls", - "rustls-pki-types", - "slab", - "thiserror 2.0.3", - "tinyvec", - "tracing", - "web-time", -] - -[[package]] -name = "quinn-udp" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" -dependencies = [ - "cfg_aliases", - "libc", - "once_cell", - "socket2", - "tracing", - "windows-sys 0.59.0", -] - -[[package]] -name = "quote" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "quoted_printable" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "640c9bd8497b02465aeef5375144c26062e0dcd5939dfcbb0f5db76cb8c17c73" - -[[package]] -name = "rancor" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf5f7161924b9d1cea0e4cabc97c372cea92b5f927fc13c6bca67157a0ad947" -dependencies = [ - "ptr_meta", -] - -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom", -] - -[[package]] -name = "rayon" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" -dependencies = [ - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" -dependencies = [ - "crossbeam-deque", - "crossbeam-utils", -] - -[[package]] -name = "rctree" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b42e27ef78c35d3998403c1d26f3efd9e135d3e5121b0a4845cc5cc27547f4f" - -[[package]] -name = "redox_syscall" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" -dependencies = [ - "bitflags 1.3.2", -] - -[[package]] -name = "redox_syscall" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" -dependencies = [ - "bitflags 1.3.2", -] - -[[package]] -name = "redox_syscall" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" -dependencies = [ - "bitflags 2.6.0", -] - -[[package]] -name = "redox_users" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" -dependencies = [ - "getrandom", - "libredox", - "thiserror 1.0.69", -] - -[[package]] -name = "reflink-copy" -version = "0.1.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17400ed684c3a0615932f00c271ae3eea13e47056a1455821995122348ab6438" -dependencies = [ - "cfg-if", - "rustix", - "windows 0.58.0", -] - -[[package]] -name = "regex" -version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata 0.4.9", - "regex-syntax 0.8.5", -] - -[[package]] -name = "regex-automata" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" -dependencies = [ - "regex-syntax 0.6.29", -] - -[[package]] -name = "regex-automata" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax 0.8.5", -] - -[[package]] -name = "regex-syntax" -version = "0.6.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" - -[[package]] -name = "regex-syntax" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" - -[[package]] -name = "rend" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a35e8a6bf28cd121053a66aa2e6a2e3eaffad4a60012179f0e864aa5ffeff215" -dependencies = [ - "bytecheck", -] - -[[package]] -name = "reqwest" -version = "0.12.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f" -dependencies = [ - "async-compression", - "base64 0.22.1", - "bytes", - "futures-channel", - "futures-core", - "futures-util", - "h2", - "http", - "http-body", - "http-body-util", - "hyper", - "hyper-rustls", - "hyper-util", - "ipnet", - "js-sys", - "log", - "mime", - "mime_guess", - "once_cell", - "percent-encoding", - "pin-project-lite", - "quinn", - "rustls", - "rustls-native-certs", - "rustls-pemfile", - "rustls-pki-types", - "serde", - "serde_json", - "serde_urlencoded", - "sync_wrapper", - "tokio", - "tokio-rustls", - "tokio-socks", - "tokio-util", - "tower-service", - "url", - "wasm-bindgen", - "wasm-bindgen-futures", - "wasm-streams", - "web-sys", - "webpki-roots", - "windows-registry 0.2.0", -] - -[[package]] -name = "reqwest-middleware" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1ccd3b55e711f91a9885a2fa6fbbb2e39db1776420b062efc058c6410f7e5e3" -dependencies = [ - "anyhow", - "async-trait", - "http", - "reqwest", - "serde", - "thiserror 1.0.69", - "tower-service", -] - -[[package]] -name = "reqwest-retry" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c73e4195a6bfbcb174b790d9b3407ab90646976c55de58a6515da25d851178" -dependencies = [ - "anyhow", - "async-trait", - "futures", - "getrandom", - "http", - "hyper", - "parking_lot 0.11.2", - "reqwest", - "reqwest-middleware", - "retry-policies", - "thiserror 1.0.69", - "tokio", - "tracing", - "wasm-timer", -] - -[[package]] -name = "resvg" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76888219c0881e22b0ceab06fddcfe83163cd81642bd60c7842387f9c968a72e" -dependencies = [ - "gif", - "jpeg-decoder", - "log", - "pico-args", - "png", - "rgb", - "svgfilters", - "svgtypes 0.10.0", - "tiny-skia", - "usvg", - "usvg-text-layout", -] - -[[package]] -name = "retry-policies" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5875471e6cab2871bc150ecb8c727db5113c9338cc3354dc5ee3425b6aa40a1c" -dependencies = [ - "rand", -] - -[[package]] -name = "rgb" -version = "0.8.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57397d16646700483b67d2dd6511d79318f9d057fdbd21a4066aeac8b41d310a" -dependencies = [ - "bytemuck", -] - -[[package]] -name = "ring" -version = "0.17.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" -dependencies = [ - "cc", - "cfg-if", - "getrandom", - "libc", - "spin", - "untrusted", - "windows-sys 0.52.0", -] - -[[package]] -name = "rkyv" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "395027076c569819ea6035ee62e664f5e03d74e281744f55261dd1afd939212b" -dependencies = [ - "bytecheck", - "bytes", - "hashbrown 0.14.5", - "indexmap", - "munge", - "ptr_meta", - "rancor", - "rend", - "rkyv_derive", - "tinyvec", - "uuid", -] - -[[package]] -name = "rkyv_derive" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09cb82b74b4810f07e460852c32f522e979787691b0b7b7439fe473e49d49b2f" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "rmp" -version = "0.8.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "228ed7c16fa39782c3b3468e974aec2795e9089153cd08ee2e9aefb3613334c4" -dependencies = [ - "byteorder", - "num-traits", - "paste", -] - -[[package]] -name = "rmp-serde" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52e599a477cf9840e92f2cde9a7189e67b42c57532749bf90aea6ec10facd4db" -dependencies = [ - "byteorder", - "rmp", - "serde", -] - -[[package]] -name = "rosvgtree" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdc23d1ace03d6b8153c7d16f0708cd80b61ee8e80304954803354e67e40d150" -dependencies = [ - "log", - "roxmltree 0.18.1", - "simplecss", - "siphasher", - "svgtypes 0.9.0", -] - -[[package]] -name = "roxmltree" -version = "0.18.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "862340e351ce1b271a378ec53f304a5558f7db87f3769dc655a8f6ecbb68b302" -dependencies = [ - "xmlparser", -] - -[[package]] -name = "roxmltree" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97" - -[[package]] -name = "rust-netrc" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e98097f62769f92dbf95fb51f71c0a68ec18a4ee2e70e0d3e4f47ac005d63e9" -dependencies = [ - "shellexpand", - "thiserror 1.0.69", -] - -[[package]] -name = "rustc-demangle" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" - -[[package]] -name = "rustc-hash" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" - -[[package]] -name = "rustix" -version = "0.38.41" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" -dependencies = [ - "bitflags 2.6.0", - "errno", - "libc", - "linux-raw-sys", - "windows-sys 0.52.0", -] - -[[package]] -name = "rustls" -version = "0.23.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f1a745511c54ba6d4465e8d5dfbd81b45791756de28d4981af70d6dca128f1e" -dependencies = [ - "once_cell", - "ring", - "rustls-pki-types", - "rustls-webpki", - "subtle", - "zeroize", -] - -[[package]] -name = "rustls-native-certs" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcaf18a4f2be7326cd874a5fa579fae794320a0f388d365dca7e480e55f83f8a" -dependencies = [ - "openssl-probe", - "rustls-pemfile", - "rustls-pki-types", - "schannel", - "security-framework", -] - -[[package]] -name = "rustls-pemfile" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" -dependencies = [ - "rustls-pki-types", -] - -[[package]] -name = "rustls-pki-types" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" -dependencies = [ - "web-time", -] - -[[package]] -name = "rustls-webpki" -version = "0.102.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" -dependencies = [ - "ring", - "rustls-pki-types", - "untrusted", -] - -[[package]] -name = "rustybuzz" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "162bdf42e261bee271b3957691018634488084ef577dddeb6420a9684cab2a6a" -dependencies = [ - "bitflags 1.3.2", - "bytemuck", - "smallvec", - "ttf-parser", - "unicode-bidi-mirroring", - "unicode-ccc", - "unicode-general-category", - "unicode-script", -] - -[[package]] -name = "ryu" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" - -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "schannel" -version = "0.1.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" -dependencies = [ - "windows-sys 0.59.0", -] - -[[package]] -name = "schemars" -version = "0.8.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09c024468a378b7e36765cd36702b7a90cc3cba11654f6685c8f233408e89e92" -dependencies = [ - "dyn-clone", - "schemars_derive", - "serde", - "serde_json", - "url", -] - -[[package]] -name = "schemars_derive" -version = "0.8.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1eee588578aff73f856ab961cd2f79e36bc45d7ded33a7562adba4667aecc0e" -dependencies = [ - "proc-macro2", - "quote", - "serde_derive_internals", - "syn", -] - -[[package]] -name = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - -[[package]] -name = "scroll" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6" -dependencies = [ - "scroll_derive", -] - -[[package]] -name = "scroll_derive" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f81c2fde025af7e69b1d1420531c8a8811ca898919db177141a85313b1cb932" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "seahash" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" - -[[package]] -name = "security-framework" -version = "2.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" -dependencies = [ - "bitflags 2.6.0", - "core-foundation", - "core-foundation-sys", - "libc", - "security-framework-sys", -] - -[[package]] -name = "security-framework-sys" -version = "2.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa39c7303dc58b5543c94d22c1766b0d31f2ee58306363ea622b10bbc075eaa2" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "self-replace" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03ec815b5eab420ab893f63393878d89c90fdd94c0bcc44c07abb8ad95552fb7" -dependencies = [ - "fastrand", - "tempfile", - "windows-sys 0.52.0", -] - -[[package]] -name = "semver" -version = "1.0.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" - -[[package]] -name = "serde" -version = "1.0.215" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde-untagged" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2676ba99bd82f75cae5cbd2c8eda6fa0b8760f18978ea840e980dd5567b5c5b6" -dependencies = [ - "erased-serde", - "serde", - "typeid", -] - -[[package]] -name = "serde_derive" -version = "1.0.215" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_derive_internals" -version = "0.29.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "serde_json" -version = "1.0.133" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" -dependencies = [ - "itoa", - "memchr", - "ryu", - "serde", -] - -[[package]] -name = "serde_spanned" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" -dependencies = [ - "serde", -] - -[[package]] -name = "serde_urlencoded" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" -dependencies = [ - "form_urlencoded", - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "sha2" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - -[[package]] -name = "shell-escape" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45bb67a18fa91266cc7807181f62f9178a6873bfad7dc788c42e6430db40184f" - -[[package]] -name = "shellexpand" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da03fa3b94cc19e3ebfc88c4229c49d8f08cdbd1228870a45f0ffdf84988e14b" -dependencies = [ - "bstr", - "dirs", - "os_str_bytes", -] - -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - -[[package]] -name = "signal-hook-registry" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" -dependencies = [ - "libc", -] - -[[package]] -name = "simd-adler32" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" - -[[package]] -name = "simdutf8" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" - -[[package]] -name = "similar" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e" - -[[package]] -name = "simplecss" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a11be7c62927d9427e9f40f3444d5499d868648e2edbc4e2116de69e7ec0e89d" -dependencies = [ - "log", -] - -[[package]] -name = "siphasher" -version = "0.3.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" - -[[package]] -name = "slab" -version = "0.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" -dependencies = [ - "autocfg", -] - -[[package]] -name = "smallvec" -version = "1.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" - -[[package]] -name = "smawk" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" - -[[package]] -name = "socket2" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c" -dependencies = [ - "libc", - "windows-sys 0.52.0", -] - -[[package]] -name = "spdx" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bae30cc7bfe3656d60ee99bf6836f472b0c53dddcbf335e253329abb16e535a2" -dependencies = [ - "smallvec", -] - -[[package]] -name = "spin" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" - -[[package]] -name = "stable_deref_trait" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" - -[[package]] -name = "strict-num" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" -dependencies = [ - "float-cmp", -] - -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "subtle" -version = "2.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" - -[[package]] -name = "supports-color" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8775305acf21c96926c900ad056abeef436701108518cf890020387236ac5a77" -dependencies = [ - "is_ci", -] - -[[package]] -name = "supports-hyperlinks" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c0a1e5168041f5f3ff68ff7d95dcb9c8749df29f6e7e89ada40dd4c9de404ee" - -[[package]] -name = "supports-unicode" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2" - -[[package]] -name = "svg" -version = "0.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "700efb40f3f559c23c18b446e8ed62b08b56b2bb3197b36d57e0470b4102779e" - -[[package]] -name = "svgfilters" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639abcebc15fdc2df179f37d6f5463d660c1c79cd552c12343a4600827a04bce" -dependencies = [ - "float-cmp", - "rgb", -] - -[[package]] -name = "svgtypes" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9ee29c1407a5b18ccfe5f6ac82ac11bab3b14407e09c209a6c1a32098b19734" -dependencies = [ - "kurbo 0.8.3", - "siphasher", -] - -[[package]] -name = "svgtypes" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98ffacedcdcf1da6579c907279b4f3c5492fbce99fbbf227f5ed270a589c2765" -dependencies = [ - "kurbo 0.9.5", - "siphasher", -] - -[[package]] -name = "syn" -version = "2.0.87" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "sync_wrapper" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" -dependencies = [ - "futures-core", -] - -[[package]] -name = "synstructure" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "sys-info" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b3a0d0aba8bf96a0e1ddfdc352fc53b3df7f39318c71854910c3c4b024ae52c" -dependencies = [ - "cc", - "libc", -] - -[[package]] -name = "tagu" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eddb6b06d20fba9ed21fca3d696ee1b6e870bca0bcf9fa2971f6ae2436de576a" - -[[package]] -name = "tar" -version = "0.4.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6" -dependencies = [ - "filetime", - "libc", - "xattr", -] - -[[package]] -name = "target-lexicon" -version = "0.12.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" - -[[package]] -name = "temp-env" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96374855068f47402c3121c6eed88d29cb1de8f3ab27090e273e420bdabcf050" -dependencies = [ - "parking_lot 0.12.3", -] - -[[package]] -name = "tempfile" -version = "3.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" -dependencies = [ - "cfg-if", - "fastrand", - "once_cell", - "rustix", - "windows-sys 0.59.0", -] - -[[package]] -name = "terminal_size" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" -dependencies = [ - "rustix", - "windows-sys 0.48.0", -] - -[[package]] -name = "terminal_size" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f599bd7ca042cfdf8f4512b277c02ba102247820f9d9d4a9f521f496751a6ef" -dependencies = [ - "rustix", - "windows-sys 0.59.0", -] - -[[package]] -name = "termtree" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" - -[[package]] -name = "test-case" -version = "3.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb2550dd13afcd286853192af8601920d959b14c401fcece38071d53bf0768a8" -dependencies = [ - "test-case-macros", -] - -[[package]] -name = "test-case-core" -version = "3.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adcb7fd841cd518e279be3d5a3eb0636409487998a4aff22f3de87b81e88384f" -dependencies = [ - "cfg-if", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "test-case-macros" -version = "3.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c89e72a01ed4c579669add59014b9a524d609c0c88c6a585ce37485879f6ffb" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "test-case-core", -] - -[[package]] -name = "test-log" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dffced63c2b5c7be278154d76b479f9f9920ed34e7574201407f0b14e2bbb93" -dependencies = [ - "test-log-macros", - "tracing-subscriber", -] - -[[package]] -name = "test-log-macros" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5999e24eaa32083191ba4e425deb75cdf25efefabe5aaccb7446dd0d4122a3f5" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "textwrap" -version = "0.16.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" -dependencies = [ - "smawk", - "unicode-linebreak", - "unicode-width 0.1.14", -] - -[[package]] -name = "thiserror" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" -dependencies = [ - "thiserror-impl 1.0.69", -] - -[[package]] -name = "thiserror" -version = "2.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" -dependencies = [ - "thiserror-impl 2.0.3", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.69" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "thiserror-impl" -version = "2.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "thread_local" -version = "1.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" -dependencies = [ - "cfg-if", - "once_cell", -] - -[[package]] -name = "tikv-jemalloc-sys" -version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d" -dependencies = [ - "cc", - "libc", -] - -[[package]] -name = "tikv-jemallocator" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cec5ff18518d81584f477e9bfdf957f5bb0979b0bac3af4ca30b5b3ae2d2865" -dependencies = [ - "libc", - "tikv-jemalloc-sys", -] - -[[package]] -name = "tiny-skia" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df8493a203431061e901613751931f047d1971337153f96d0e5e363d6dbf6a67" -dependencies = [ - "arrayref", - "arrayvec", - "bytemuck", - "cfg-if", - "png", - "tiny-skia-path", -] - -[[package]] -name = "tiny-skia-path" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adbfb5d3f3dd57a0e11d12f4f13d4ebbbc1b5c15b7ab0a156d030b21da5f677c" -dependencies = [ - "arrayref", - "bytemuck", - "strict-num", -] - -[[package]] -name = "tinystr" -version = "0.7.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" -dependencies = [ - "displaydoc", - "zerovec", -] - -[[package]] -name = "tinytemplate" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be4d6b5f19ff7664e8c98d03e2139cb510db9b0a60b55f8e8709b689d939b6bc" -dependencies = [ - "serde", - "serde_json", -] - -[[package]] -name = "tinyvec" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - -[[package]] -name = "tl" -version = "0.7.8" -source = "git+https://github.com/astral-sh/tl.git?rev=6e25b2ee2513d75385101a8ff9f591ef51f314ec#6e25b2ee2513d75385101a8ff9f591ef51f314ec" - -[[package]] -name = "tokio" -version = "1.41.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" -dependencies = [ - "backtrace", - "bytes", - "libc", - "mio", - "parking_lot 0.12.3", - "pin-project-lite", - "signal-hook-registry", - "socket2", - "tokio-macros", - "windows-sys 0.52.0", -] - -[[package]] -name = "tokio-macros" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "tokio-rustls" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" -dependencies = [ - "rustls", - "rustls-pki-types", - "tokio", -] - -[[package]] -name = "tokio-socks" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d4770b8024672c1101b3f6733eab95b18007dbe0847a8afe341fcf79e06043f" -dependencies = [ - "either", - "futures-util", - "thiserror 1.0.69", - "tokio", -] - -[[package]] -name = "tokio-stream" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f4e6ce100d0eb49a2734f8c0812bcd324cf357d21810932c5df6b96ef2b86f1" -dependencies = [ - "futures-core", - "pin-project-lite", - "tokio", - "tokio-util", -] - -[[package]] -name = "tokio-util" -version = "0.7.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a" -dependencies = [ - "bytes", - "futures-core", - "futures-io", - "futures-sink", - "pin-project-lite", - "tokio", -] - -[[package]] -name = "toml" -version = "0.8.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" -dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit", -] - -[[package]] -name = "toml_datetime" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" -dependencies = [ - "serde", -] - -[[package]] -name = "toml_edit" -version = "0.22.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" -dependencies = [ - "indexmap", - "serde", - "serde_spanned", - "toml_datetime", - "winnow", -] - -[[package]] -name = "tower-service" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" - -[[package]] -name = "tracing" -version = "0.1.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" -dependencies = [ - "pin-project-lite", - "tracing-attributes", - "tracing-core", -] - -[[package]] -name = "tracing-attributes" -version = "0.1.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "tracing-core" -version = "0.1.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" -dependencies = [ - "once_cell", - "valuable", -] - -[[package]] -name = "tracing-durations-export" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382e025ef8e0db646343dd2cf56af9d7fe6f5eabce5f388f8e5ec7234f555a0f" -dependencies = [ - "anyhow", - "fs-err 2.11.0", - "itertools 0.13.0", - "once_cell", - "rustc-hash", - "serde", - "serde_json", - "svg", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-serde" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc6b213177105856957181934e4920de57730fc69bf42c37ee5bb664d406d9e1" -dependencies = [ - "serde", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" -dependencies = [ - "matchers", - "nu-ansi-term 0.46.0", - "once_cell", - "regex", - "serde", - "serde_json", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", - "tracing-serde", -] - -[[package]] -name = "tracing-test" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "557b891436fe0d5e0e363427fc7f217abf9ccd510d5136549847bdcbcd011d68" -dependencies = [ - "tracing-core", - "tracing-subscriber", - "tracing-test-macro", -] - -[[package]] -name = "tracing-test-macro" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04659ddb06c87d233c566112c1c9c5b9e98256d9af50ec3bc9c8327f873a7568" -dependencies = [ - "quote", - "syn", -] - -[[package]] -name = "tracing-tree" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f459ca79f1b0d5f71c54ddfde6debfc59c8b6eeb46808ae492077f739dc7b49c" -dependencies = [ - "nu-ansi-term 0.50.1", - "tracing-core", - "tracing-log", - "tracing-subscriber", -] - -[[package]] -name = "try-lock" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" - -[[package]] -name = "ttf-parser" -version = "0.18.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0609f771ad9c6155384897e1df4d948e692667cc0588548b68eb44d052b27633" - -[[package]] -name = "typeid" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e13db2e0ccd5e14a544e8a246ba2312cd25223f616442d7f2cb0e3db614236e" - -[[package]] -name = "typenum" -version = "1.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" - -[[package]] -name = "ucd-trie" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2896d95c02a80c6d6a5d6e953d479f5ddf2dfdb6a244441010e373ac0fb88971" - -[[package]] -name = "unicase" -version = "2.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e51b68083f157f853b6379db119d1c1be0e6e4dec98101079dec41f6f5cf6df" - -[[package]] -name = "unicode-bidi" -version = "0.3.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ab17db44d7388991a428b2ee655ce0c212e862eff1768a455c58f9aad6e7893" - -[[package]] -name = "unicode-bidi-mirroring" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56d12260fb92d52f9008be7e4bca09f584780eb2266dc8fecc6a192bec561694" - -[[package]] -name = "unicode-ccc" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc2520efa644f8268dce4dcd3050eaa7fc044fca03961e9998ac7e2e92b77cf1" - -[[package]] -name = "unicode-general-category" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2281c8c1d221438e373249e065ca4989c4c36952c211ff21a0ee91c44a3869e7" - -[[package]] -name = "unicode-ident" -version = "1.0.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" - -[[package]] -name = "unicode-linebreak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" - -[[package]] -name = "unicode-script" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb421b350c9aff471779e262955939f565ec18b86c15364e6bdf0d662ca7c1f" - -[[package]] -name = "unicode-vo" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d386ff53b415b7fe27b50bb44679e2cc4660272694b7b6f3326d8480823a94" - -[[package]] -name = "unicode-width" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" - -[[package]] -name = "unicode-width" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" - -[[package]] -name = "unscanny" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9df2af067a7953e9c3831320f35c1cc0600c30d44d9f7a12b01db1cd88d6b47" - -[[package]] -name = "untrusted" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" - -[[package]] -name = "url" -version = "2.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d157f1b96d14500ffdc1f10ba712e780825526c03d9a49b4d0324b0d9113ada" -dependencies = [ - "form_urlencoded", - "idna", - "percent-encoding", - "serde", -] - -[[package]] -name = "urlencoding" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" - -[[package]] -name = "usvg" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63b6bb4e62619d9f68aa2d8a823fea2bff302340a1f2d45c264d5b0be170832e" -dependencies = [ - "base64 0.21.7", - "data-url", - "flate2", - "imagesize", - "kurbo 0.9.5", - "log", - "rctree", - "rosvgtree", - "strict-num", -] - -[[package]] -name = "usvg-text-layout" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "195386e01bc35f860db024de275a76e7a31afdf975d18beb6d0e44764118b4db" -dependencies = [ - "fontdb", - "kurbo 0.9.5", - "log", - "rustybuzz", - "unicode-bidi", - "unicode-script", - "unicode-vo", - "usvg", -] - -[[package]] -name = "utf16_iter" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" - -[[package]] -name = "utf8-width" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86bd8d4e895da8537e5315b8254664e6b769c4ff3db18321b297a1e7004392e3" - -[[package]] -name = "utf8_iter" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" - -[[package]] -name = "utf8parse" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" - -[[package]] -name = "uuid" -version = "1.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" - -[[package]] -name = "uv" -version = "0.5.4" -dependencies = [ - "anstream", - "anyhow", - "assert_cmd", - "assert_fs", - "axoupdater", - "base64 0.22.1", - "byteorder", - "clap", - "console", - "ctrlc", - "dotenvy", - "etcetera", - "filetime", - "flate2", - "fs-err 3.0.0", - "futures", - "http", - "ignore", - "indicatif", - "indoc", - "insta", - "itertools 0.13.0", - "jiff", - "miette", - "nix", - "owo-colors", - "petgraph", - "predicates", - "rayon", - "regex", - "reqwest", - "rkyv", - "rustc-hash", - "serde", - "serde_json", - "similar", - "tar", - "tempfile", - "textwrap", - "thiserror 2.0.3", - "tokio", - "toml", - "tracing", - "tracing-durations-export", - "tracing-subscriber", - "tracing-tree", - "unicode-width 0.1.14", - "url", - "uv-auth", - "uv-build-backend", - "uv-cache", - "uv-cache-info", - "uv-cache-key", - "uv-cli", - "uv-client", - "uv-configuration", - "uv-console", - "uv-dispatch", - "uv-distribution", - "uv-distribution-filename", - "uv-distribution-types", - "uv-extract", - "uv-fs", - "uv-git", - "uv-install-wheel", - "uv-installer", - "uv-normalize", - "uv-pep440", - "uv-pep508", - "uv-performance-flate2-backend", - "uv-performance-memory-allocator", - "uv-platform-tags", - "uv-publish", - "uv-pypi-types", - "uv-python", - "uv-requirements", - "uv-resolver", - "uv-scripts", - "uv-settings", - "uv-shell", - "uv-static", - "uv-tool", - "uv-trampoline-builder", - "uv-types", - "uv-version", - "uv-virtualenv", - "uv-warnings", - "uv-workspace", - "version-ranges", - "walkdir", - "which", - "zip", -] - -[[package]] -name = "uv-auth" -version = "0.0.1" -dependencies = [ - "anyhow", - "async-trait", - "base64 0.22.1", - "futures", - "http", - "insta", - "reqwest", - "reqwest-middleware", - "rust-netrc", - "rustc-hash", - "tempfile", - "test-log", - "tokio", - "tracing", - "url", - "urlencoding", - "uv-once-map", - "uv-static", - "wiremock", -] - -[[package]] -name = "uv-bench" -version = "0.0.0" -dependencies = [ - "anyhow", - "codspeed-criterion-compat", - "criterion", - "jiff", - "tokio", - "uv-cache", - "uv-client", - "uv-configuration", - "uv-dispatch", - "uv-distribution", - "uv-distribution-filename", - "uv-distribution-types", - "uv-git", - "uv-install-wheel", - "uv-pep440", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "uv-python", - "uv-resolver", - "uv-types", -] - -[[package]] -name = "uv-build-backend" -version = "0.1.0" -dependencies = [ - "csv", - "flate2", - "fs-err 3.0.0", - "globset", - "indoc", - "insta", - "itertools 0.13.0", - "serde", - "sha2", - "spdx", - "tar", - "tempfile", - "thiserror 2.0.3", - "toml", - "tracing", - "uv-distribution-filename", - "uv-fs", - "uv-globfilter", - "uv-normalize", - "uv-pep440", - "uv-pep508", - "uv-pypi-types", - "uv-warnings", - "version-ranges", - "walkdir", - "zip", -] - -[[package]] -name = "uv-build-frontend" -version = "0.0.1" -dependencies = [ - "anstream", - "anyhow", - "fs-err 3.0.0", - "indoc", - "insta", - "itertools 0.13.0", - "owo-colors", - "regex", - "rustc-hash", - "serde", - "serde_json", - "tempfile", - "thiserror 2.0.3", - "tokio", - "toml_edit", - "tracing", - "uv-configuration", - "uv-distribution", - "uv-distribution-types", - "uv-fs", - "uv-pep440", - "uv-pep508", - "uv-pypi-types", - "uv-python", - "uv-static", - "uv-types", - "uv-virtualenv", -] - -[[package]] -name = "uv-cache" -version = "0.0.1" -dependencies = [ - "clap", - "fs-err 3.0.0", - "nanoid", - "rmp-serde", - "rustc-hash", - "serde", - "tempfile", - "tracing", - "url", - "uv-cache-info", - "uv-cache-key", - "uv-dirs", - "uv-distribution-types", - "uv-fs", - "uv-normalize", - "uv-pypi-types", - "uv-static", - "walkdir", -] - -[[package]] -name = "uv-cache-info" -version = "0.0.1" -dependencies = [ - "fs-err 3.0.0", - "globwalk", - "schemars", - "serde", - "thiserror 2.0.3", - "toml", - "tracing", -] - -[[package]] -name = "uv-cache-key" -version = "0.0.1" -dependencies = [ - "hex", - "seahash", - "url", -] - -[[package]] -name = "uv-cli" -version = "0.0.1" -dependencies = [ - "anstream", - "anyhow", - "clap", - "clap_complete_command", - "fs-err 3.0.0", - "insta", - "serde", - "url", - "uv-cache", - "uv-configuration", - "uv-distribution-types", - "uv-install-wheel", - "uv-normalize", - "uv-pep508", - "uv-pypi-types", - "uv-python", - "uv-resolver", - "uv-settings", - "uv-static", - "uv-version", - "uv-warnings", -] - -[[package]] -name = "uv-client" -version = "0.0.1" -dependencies = [ - "anyhow", - "async-trait", - "async_http_range_reader", - "async_zip", - "bytecheck", - "fs-err 3.0.0", - "futures", - "html-escape", - "http", - "http-body-util", - "hyper", - "hyper-util", - "insta", - "itertools 0.13.0", - "jiff", - "reqwest", - "reqwest-middleware", - "reqwest-retry", - "rkyv", - "rmp-serde", - "serde", - "serde_json", - "sys-info", - "thiserror 2.0.3", - "tl", - "tokio", - "tokio-util", - "tracing", - "url", - "urlencoding", - "uv-auth", - "uv-cache", - "uv-cache-key", - "uv-configuration", - "uv-distribution-filename", - "uv-distribution-types", - "uv-fs", - "uv-metadata", - "uv-normalize", - "uv-pep440", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "uv-static", - "uv-version", - "uv-warnings", -] - -[[package]] -name = "uv-configuration" -version = "0.0.1" -dependencies = [ - "anyhow", - "clap", - "either", - "fs-err 3.0.0", - "rustc-hash", - "schemars", - "serde", - "serde-untagged", - "serde_json", - "thiserror 2.0.3", - "tracing", - "url", - "uv-auth", - "uv-cache", - "uv-cache-info", - "uv-cache-key", - "uv-normalize", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "uv-static", - "which", -] - -[[package]] -name = "uv-console" -version = "0.0.1" -dependencies = [ - "console", - "ctrlc", -] - -[[package]] -name = "uv-dev" -version = "0.0.1" -dependencies = [ - "anstream", - "anyhow", - "clap", - "fs-err 3.0.0", - "itertools 0.13.0", - "markdown", - "owo-colors", - "poloto", - "pretty_assertions", - "resvg", - "schemars", - "serde", - "serde_json", - "tagu", - "textwrap", - "tokio", - "tracing", - "tracing-durations-export", - "tracing-subscriber", - "uv-cache", - "uv-cli", - "uv-client", - "uv-distribution-filename", - "uv-distribution-types", - "uv-installer", - "uv-macros", - "uv-options-metadata", - "uv-pep508", - "uv-performance-memory-allocator", - "uv-pypi-types", - "uv-python", - "uv-settings", - "uv-static", - "uv-workspace", - "walkdir", -] - -[[package]] -name = "uv-dirs" -version = "0.0.1" -dependencies = [ - "etcetera", - "uv-static", -] - -[[package]] -name = "uv-dispatch" -version = "0.0.1" -dependencies = [ - "anyhow", - "futures", - "itertools 0.13.0", - "rustc-hash", - "tracing", - "uv-build-frontend", - "uv-cache", - "uv-client", - "uv-configuration", - "uv-distribution", - "uv-distribution-types", - "uv-git", - "uv-install-wheel", - "uv-installer", - "uv-pypi-types", - "uv-python", - "uv-resolver", - "uv-types", -] - -[[package]] -name = "uv-distribution" -version = "0.0.1" -dependencies = [ - "anyhow", - "either", - "fs-err 3.0.0", - "futures", - "indoc", - "insta", - "nanoid", - "owo-colors", - "reqwest", - "reqwest-middleware", - "rmp-serde", - "rustc-hash", - "serde", - "tempfile", - "thiserror 2.0.3", - "tokio", - "tokio-util", - "tracing", - "url", - "uv-cache", - "uv-cache-info", - "uv-cache-key", - "uv-client", - "uv-configuration", - "uv-distribution-filename", - "uv-distribution-types", - "uv-extract", - "uv-fs", - "uv-git", - "uv-metadata", - "uv-normalize", - "uv-pep440", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "uv-types", - "uv-warnings", - "uv-workspace", - "walkdir", - "zip", -] - -[[package]] -name = "uv-distribution-filename" -version = "0.0.1" -dependencies = [ - "insta", - "rkyv", - "serde", - "thiserror 2.0.3", - "url", - "uv-normalize", - "uv-pep440", - "uv-platform-tags", -] - -[[package]] -name = "uv-distribution-types" -version = "0.0.1" -dependencies = [ - "anyhow", - "bitflags 2.6.0", - "fs-err 3.0.0", - "itertools 0.13.0", - "jiff", - "petgraph", - "rkyv", - "rustc-hash", - "schemars", - "serde", - "serde_json", - "thiserror 2.0.3", - "tracing", - "url", - "urlencoding", - "uv-auth", - "uv-cache-info", - "uv-cache-key", - "uv-distribution-filename", - "uv-fs", - "uv-git", - "uv-normalize", - "uv-pep440", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "version-ranges", -] - -[[package]] -name = "uv-extract" -version = "0.0.1" -dependencies = [ - "async-compression", - "async_zip", - "fs-err 3.0.0", - "futures", - "krata-tokio-tar", - "md-5", - "rayon", - "reqwest", - "rustc-hash", - "sha2", - "thiserror 2.0.3", - "tokio", - "tokio-util", - "tracing", - "uv-distribution-filename", - "uv-pypi-types", - "xz2", - "zip", -] - -[[package]] -name = "uv-fs" -version = "0.0.1" -dependencies = [ - "backoff", - "cachedir", - "dunce", - "either", - "encoding_rs_io", - "fs-err 3.0.0", - "fs2", - "junction", - "path-slash", - "rustix", - "schemars", - "serde", - "tempfile", - "tokio", - "tracing", - "urlencoding", - "winsafe 0.0.22", -] - -[[package]] -name = "uv-git" -version = "0.0.1" -dependencies = [ - "anyhow", - "cargo-util", - "dashmap", - "fs-err 3.0.0", - "reqwest", - "reqwest-middleware", - "serde", - "thiserror 2.0.3", - "tokio", - "tracing", - "url", - "uv-auth", - "uv-cache-key", - "uv-fs", - "uv-static", - "which", -] - -[[package]] -name = "uv-globfilter" -version = "0.1.0" -dependencies = [ - "fs-err 3.0.0", - "globset", - "insta", - "regex", - "regex-automata 0.4.9", - "tempfile", - "thiserror 2.0.3", - "tracing", - "walkdir", -] - -[[package]] -name = "uv-install-wheel" -version = "0.0.1" -dependencies = [ - "anyhow", - "assert_fs", - "clap", - "configparser", - "csv", - "data-encoding", - "fs-err 3.0.0", - "indoc", - "mailparse", - "pathdiff", - "platform-info", - "reflink-copy", - "regex", - "rustc-hash", - "same-file", - "schemars", - "self-replace", - "serde", - "serde_json", - "sha2", - "tempfile", - "thiserror 2.0.3", - "tracing", - "uv-cache-info", - "uv-distribution-filename", - "uv-fs", - "uv-normalize", - "uv-pep440", - "uv-platform-tags", - "uv-pypi-types", - "uv-shell", - "uv-trampoline-builder", - "uv-warnings", - "walkdir", - "zip", -] - -[[package]] -name = "uv-installer" -version = "0.0.1" -dependencies = [ - "anyhow", - "async-channel", - "fs-err 3.0.0", - "futures", - "rayon", - "rustc-hash", - "same-file", - "tempfile", - "thiserror 2.0.3", - "tokio", - "tracing", - "url", - "uv-cache", - "uv-cache-info", - "uv-cache-key", - "uv-configuration", - "uv-distribution", - "uv-distribution-types", - "uv-fs", - "uv-install-wheel", - "uv-normalize", - "uv-pep440", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "uv-python", - "uv-static", - "uv-types", - "uv-warnings", - "walkdir", -] - -[[package]] -name = "uv-macros" -version = "0.0.1" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "textwrap", -] - -[[package]] -name = "uv-metadata" -version = "0.1.0" -dependencies = [ - "async_zip", - "fs-err 3.0.0", - "futures", - "thiserror 2.0.3", - "tokio", - "tokio-util", - "uv-distribution-filename", - "uv-normalize", - "uv-pypi-types", - "zip", -] - -[[package]] -name = "uv-normalize" -version = "0.0.1" -dependencies = [ - "rkyv", - "schemars", - "serde", -] - -[[package]] -name = "uv-once-map" -version = "0.0.1" -dependencies = [ - "dashmap", - "futures", - "tokio", -] - -[[package]] -name = "uv-options-metadata" -version = "0.0.1" -dependencies = [ - "serde", -] - -[[package]] -name = "uv-pep440" -version = "0.7.0" -dependencies = [ - "indoc", - "rkyv", - "serde", - "tracing", - "unicode-width 0.1.14", - "unscanny", - "version-ranges", -] - -[[package]] -name = "uv-pep508" -version = "0.6.0" -dependencies = [ - "boxcar", - "indexmap", - "insta", - "itertools 0.13.0", - "regex", - "rustc-hash", - "schemars", - "serde", - "serde_json", - "smallvec", - "thiserror 2.0.3", - "tracing", - "tracing-test", - "unicode-width 0.1.14", - "url", - "uv-fs", - "uv-normalize", - "uv-pep440", - "version-ranges", -] - -[[package]] -name = "uv-performance-flate2-backend" -version = "0.1.0" -dependencies = [ - "flate2", -] - -[[package]] -name = "uv-performance-memory-allocator" -version = "0.1.0" -dependencies = [ - "mimalloc", - "tikv-jemallocator", -] - -[[package]] -name = "uv-platform-tags" -version = "0.0.1" -dependencies = [ - "insta", - "rustc-hash", - "serde", - "thiserror 2.0.3", -] - -[[package]] -name = "uv-publish" -version = "0.1.0" -dependencies = [ - "async-compression", - "base64 0.22.1", - "fs-err 3.0.0", - "futures", - "glob", - "insta", - "itertools 0.13.0", - "krata-tokio-tar", - "reqwest", - "reqwest-middleware", - "reqwest-retry", - "rustc-hash", - "serde", - "serde_json", - "thiserror 2.0.3", - "tokio", - "tokio-util", - "tracing", - "url", - "uv-cache", - "uv-client", - "uv-configuration", - "uv-distribution-filename", - "uv-distribution-types", - "uv-extract", - "uv-fs", - "uv-metadata", - "uv-pypi-types", - "uv-static", - "uv-warnings", -] - -[[package]] -name = "uv-pypi-types" -version = "0.0.1" -dependencies = [ - "anyhow", - "hashbrown 0.15.1", - "indexmap", - "itertools 0.13.0", - "jiff", - "mailparse", - "regex", - "rkyv", - "schemars", - "serde", - "serde-untagged", - "thiserror 2.0.3", - "toml", - "toml_edit", - "tracing", - "url", - "uv-distribution-filename", - "uv-fs", - "uv-git", - "uv-normalize", - "uv-pep440", - "uv-pep508", -] - -[[package]] -name = "uv-python" -version = "0.0.1" -dependencies = [ - "anyhow", - "assert_fs", - "clap", - "configparser", - "fs-err 3.0.0", - "futures", - "goblin", - "indoc", - "itertools 0.13.0", - "owo-colors", - "procfs", - "regex", - "reqwest", - "reqwest-middleware", - "reqwest-retry", - "rmp-serde", - "same-file", - "schemars", - "serde", - "serde_json", - "target-lexicon", - "temp-env", - "tempfile", - "test-log", - "thiserror 2.0.3", - "tokio", - "tokio-util", - "tracing", - "url", - "uv-cache", - "uv-cache-info", - "uv-cache-key", - "uv-client", - "uv-dirs", - "uv-distribution-filename", - "uv-extract", - "uv-fs", - "uv-install-wheel", - "uv-pep440", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "uv-state", - "uv-static", - "uv-trampoline-builder", - "uv-warnings", - "which", - "windows-registry 0.3.0", - "windows-result 0.2.0", - "windows-sys 0.59.0", -] - -[[package]] -name = "uv-requirements" -version = "0.1.0" -dependencies = [ - "anyhow", - "configparser", - "console", - "fs-err 3.0.0", - "futures", - "rustc-hash", - "serde", - "thiserror 2.0.3", - "toml", - "tracing", - "url", - "uv-cache-key", - "uv-client", - "uv-configuration", - "uv-console", - "uv-distribution", - "uv-distribution-filename", - "uv-distribution-types", - "uv-fs", - "uv-git", - "uv-normalize", - "uv-pep508", - "uv-pypi-types", - "uv-requirements-txt", - "uv-resolver", - "uv-types", - "uv-warnings", - "uv-workspace", -] - -[[package]] -name = "uv-requirements-txt" -version = "0.0.1" -dependencies = [ - "anyhow", - "assert_fs", - "fs-err 3.0.0", - "indoc", - "insta", - "itertools 0.13.0", - "regex", - "reqwest", - "reqwest-middleware", - "tempfile", - "test-case", - "thiserror 2.0.3", - "tokio", - "tracing", - "unscanny", - "url", - "uv-client", - "uv-configuration", - "uv-distribution-types", - "uv-fs", - "uv-normalize", - "uv-pep508", - "uv-pypi-types", - "uv-warnings", -] - -[[package]] -name = "uv-resolver" -version = "0.0.1" -dependencies = [ - "anyhow", - "clap", - "dashmap", - "either", - "futures", - "hashbrown 0.15.1", - "indexmap", - "insta", - "itertools 0.13.0", - "jiff", - "owo-colors", - "petgraph", - "pubgrub", - "rkyv", - "rustc-hash", - "same-file", - "schemars", - "serde", - "textwrap", - "thiserror 2.0.3", - "tokio", - "tokio-stream", - "toml", - "toml_edit", - "tracing", - "url", - "uv-cache-key", - "uv-client", - "uv-configuration", - "uv-distribution", - "uv-distribution-filename", - "uv-distribution-types", - "uv-fs", - "uv-git", - "uv-metadata", - "uv-normalize", - "uv-once-map", - "uv-pep440", - "uv-pep508", - "uv-platform-tags", - "uv-pypi-types", - "uv-python", - "uv-requirements-txt", - "uv-static", - "uv-types", - "uv-warnings", - "uv-workspace", -] - -[[package]] -name = "uv-scripts" -version = "0.0.1" -dependencies = [ - "fs-err 3.0.0", - "indoc", - "memchr", - "serde", - "thiserror 2.0.3", - "toml", - "uv-pep440", - "uv-pep508", - "uv-pypi-types", - "uv-settings", - "uv-workspace", -] - -[[package]] -name = "uv-settings" -version = "0.0.1" -dependencies = [ - "assert_fs", - "clap", - "etcetera", - "fs-err 3.0.0", - "indoc", - "schemars", - "serde", - "textwrap", - "thiserror 2.0.3", - "toml", - "tracing", - "url", - "uv-cache-info", - "uv-configuration", - "uv-distribution-types", - "uv-fs", - "uv-install-wheel", - "uv-macros", - "uv-normalize", - "uv-options-metadata", - "uv-pep508", - "uv-pypi-types", - "uv-python", - "uv-resolver", - "uv-static", - "uv-warnings", -] - -[[package]] -name = "uv-shell" -version = "0.0.1" -dependencies = [ - "anyhow", - "home", - "same-file", - "tracing", - "uv-fs", - "uv-static", - "winreg", -] - -[[package]] -name = "uv-state" -version = "0.0.1" -dependencies = [ - "fs-err 3.0.0", - "tempfile", - "uv-dirs", -] - -[[package]] -name = "uv-static" -version = "0.0.1" -dependencies = [ - "uv-macros", -] - -[[package]] -name = "uv-tool" -version = "0.0.1" -dependencies = [ - "fs-err 3.0.0", - "pathdiff", - "serde", - "thiserror 2.0.3", - "toml", - "toml_edit", - "tracing", - "uv-cache", - "uv-dirs", - "uv-fs", - "uv-install-wheel", - "uv-installer", - "uv-pep440", - "uv-pep508", - "uv-pypi-types", - "uv-python", - "uv-settings", - "uv-state", - "uv-static", - "uv-virtualenv", -] - -[[package]] -name = "uv-trampoline-builder" -version = "0.0.1" -dependencies = [ - "anyhow", - "assert_cmd", - "assert_fs", - "fs-err 3.0.0", - "thiserror 2.0.3", - "uv-fs", - "which", - "zip", -] - -[[package]] -name = "uv-types" -version = "0.0.1" -dependencies = [ - "anyhow", - "rustc-hash", - "thiserror 2.0.3", - "url", - "uv-cache", - "uv-configuration", - "uv-distribution-types", - "uv-git", - "uv-normalize", - "uv-once-map", - "uv-pep440", - "uv-pep508", - "uv-pypi-types", - "uv-python", -] - -[[package]] -name = "uv-version" -version = "0.5.4" - -[[package]] -name = "uv-virtualenv" -version = "0.0.4" -dependencies = [ - "fs-err 3.0.0", - "itertools 0.13.0", - "pathdiff", - "thiserror 2.0.3", - "tracing", - "uv-fs", - "uv-platform-tags", - "uv-pypi-types", - "uv-python", - "uv-shell", - "uv-version", -] - -[[package]] -name = "uv-warnings" -version = "0.0.1" -dependencies = [ - "anstream", - "owo-colors", - "rustc-hash", -] - -[[package]] -name = "uv-workspace" -version = "0.0.1" -dependencies = [ - "anyhow", - "assert_fs", - "fs-err 3.0.0", - "glob", - "insta", - "itertools 0.13.0", - "owo-colors", - "regex", - "rustc-hash", - "same-file", - "schemars", - "serde", - "tempfile", - "thiserror 2.0.3", - "tokio", - "toml", - "toml_edit", - "tracing", - "url", - "uv-cache-key", - "uv-distribution-types", - "uv-fs", - "uv-git", - "uv-macros", - "uv-normalize", - "uv-options-metadata", - "uv-pep440", - "uv-pep508", - "uv-pypi-types", - "uv-static", - "uv-warnings", -] - -[[package]] -name = "valuable" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" - -[[package]] -name = "version-ranges" -version = "0.1.1" -source = "git+https://github.com/astral-sh/pubgrub?rev=57afc831bf2551f164617a10383cf288bf5d190d#57afc831bf2551f164617a10383cf288bf5d190d" -dependencies = [ - "smallvec", -] - -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - -[[package]] -name = "wait-timeout" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6" -dependencies = [ - "libc", -] - -[[package]] -name = "walkdir" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" -dependencies = [ - "same-file", - "winapi-util", -] - -[[package]] -name = "want" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" -dependencies = [ - "try-lock", -] - -[[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" - -[[package]] -name = "wasm-bindgen" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" -dependencies = [ - "cfg-if", - "once_cell", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" -dependencies = [ - "bumpalo", - "log", - "once_cell", - "proc-macro2", - "quote", - "syn", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" -dependencies = [ - "cfg-if", - "js-sys", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.95" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" - -[[package]] -name = "wasm-streams" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" -dependencies = [ - "futures-util", - "js-sys", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - -[[package]] -name = "wasm-timer" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" -dependencies = [ - "futures", - "js-sys", - "parking_lot 0.11.2", - "pin-utils", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - -[[package]] -name = "web-sys" -version = "0.3.72" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "web-time" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "webpki-roots" -version = "0.26.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841c67bff177718f1d4dfefde8d8f0e78f9b6589319ba88312f567fc5841a958" -dependencies = [ - "rustls-pki-types", -] - -[[package]] -name = "weezl" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082" - -[[package]] -name = "which" -version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9cad3279ade7346b96e38731a641d7343dd6a53d55083dd54eadfa5a1b38c6b" -dependencies = [ - "either", - "home", - "regex", - "rustix", - "winsafe 0.0.19", -] - -[[package]] -name = "widestring" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7219d36b6eac893fa81e84ebe06485e7dcbb616177469b142df14f1f4deb1311" - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" -dependencies = [ - "windows-sys 0.59.0", -] - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows" -version = "0.57.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143" -dependencies = [ - "windows-core 0.57.0", - "windows-targets 0.52.6", -] - -[[package]] -name = "windows" -version = "0.58.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" -dependencies = [ - "windows-core 0.58.0", - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-core" -version = "0.57.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d" -dependencies = [ - "windows-implement 0.57.0", - "windows-interface 0.57.0", - "windows-result 0.1.2", - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-core" -version = "0.58.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" -dependencies = [ - "windows-implement 0.58.0", - "windows-interface 0.58.0", - "windows-result 0.2.0", - "windows-strings 0.1.0", - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-implement" -version = "0.57.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-implement" -version = "0.58.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-interface" -version = "0.57.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-interface" -version = "0.58.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-registry" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" -dependencies = [ - "windows-result 0.2.0", - "windows-strings 0.1.0", - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-registry" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bafa604f2104cf5ae2cc2db1dee84b7e6a5d11b05f737b60def0ffdc398cbc0a" -dependencies = [ - "windows-result 0.2.0", - "windows-strings 0.2.0", - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-result" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8" -dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-result" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" -dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-strings" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" -dependencies = [ - "windows-result 0.2.0", - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-strings" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978d65aedf914c664c510d9de43c8fd85ca745eaff1ed53edf409b479e441663" -dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-sys" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" -dependencies = [ - "windows-targets 0.48.5", -] - -[[package]] -name = "windows-sys" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" -dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-sys" -version = "0.59.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" -dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-targets" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" -dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", -] - -[[package]] -name = "windows-targets" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" -dependencies = [ - "windows_aarch64_gnullvm 0.52.6", - "windows_aarch64_msvc 0.52.6", - "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm", - "windows_i686_msvc 0.52.6", - "windows_x86_64_gnu 0.52.6", - "windows_x86_64_gnullvm 0.52.6", - "windows_x86_64_msvc 0.52.6", -] - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" - -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" - -[[package]] -name = "windows_aarch64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" - -[[package]] -name = "windows_i686_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" - -[[package]] -name = "windows_i686_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" - -[[package]] -name = "windows_i686_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" - -[[package]] -name = "windows_i686_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" - -[[package]] -name = "windows_i686_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" - -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" - -[[package]] -name = "winnow" -version = "0.6.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" -dependencies = [ - "memchr", -] - -[[package]] -name = "winreg" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" -dependencies = [ - "cfg-if", - "windows-sys 0.48.0", -] - -[[package]] -name = "winsafe" -version = "0.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904" - -[[package]] -name = "winsafe" -version = "0.0.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d6ad6cbd9c6e5144971e326303f0e453b61d82e4f72067fccf23106bccd8437" - -[[package]] -name = "wiremock" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fff469918e7ca034884c7fd8f93fe27bacb7fcb599fd879df6c7b429a29b646" -dependencies = [ - "assert-json-diff", - "async-trait", - "base64 0.22.1", - "deadpool", - "futures", - "http", - "http-body-util", - "hyper", - "hyper-util", - "log", - "once_cell", - "regex", - "serde", - "serde_json", - "tokio", - "url", -] - -[[package]] -name = "write16" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" - -[[package]] -name = "writeable" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" - -[[package]] -name = "xattr" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" -dependencies = [ - "libc", - "linux-raw-sys", - "rustix", -] - -[[package]] -name = "xmlparser" -version = "0.13.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4" - -[[package]] -name = "xz2" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2" -dependencies = [ - "lzma-sys", -] - -[[package]] -name = "yansi" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" - -[[package]] -name = "yoke" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" -dependencies = [ - "serde", - "stable_deref_trait", - "yoke-derive", - "zerofrom", -] - -[[package]] -name = "yoke-derive" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "synstructure", -] - -[[package]] -name = "zerocopy" -version = "0.7.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" -dependencies = [ - "byteorder", - "zerocopy-derive", -] - -[[package]] -name = "zerocopy-derive" -version = "0.7.35" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "zerofrom" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" -dependencies = [ - "zerofrom-derive", -] - -[[package]] -name = "zerofrom-derive" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" -dependencies = [ - "proc-macro2", - "quote", - "syn", - "synstructure", -] - -[[package]] -name = "zeroize" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" - -[[package]] -name = "zerovec" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" -dependencies = [ - "yoke", - "zerofrom", - "zerovec-derive", -] - -[[package]] -name = "zerovec-derive" -version = "0.10.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "zip" -version = "0.6.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261" -dependencies = [ - "byteorder", - "crc32fast", - "crossbeam-utils", - "flate2", -] - -[[package]] -name = "zlib-rs" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ca4a9dc6566c9224cc161dedc5577bd81f4a9ee0f9fbe80592756d096b07ee5" - -[[package]] -name = "zstd" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" -dependencies = [ - "zstd-safe", -] - -[[package]] -name = "zstd-safe" -version = "7.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" -dependencies = [ - "zstd-sys", -] - -[[package]] -name = "zstd-sys" -version = "2.0.13+zstd.1.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" -dependencies = [ - "cc", - "pkg-config", -] diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index 4d73d6d1c378..d8e53eb32fba 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -22,13 +22,9 @@ python3Packages.buildPythonApplication rec { hash = "sha256-Kieh76RUrDEwdL04mvCXOqbXHasMMpXRqp0LwMOIHdM="; }; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - outputHashes = { - "async_zip-0.0.17" = "sha256-VfQg2ZY5F2cFoYQZrtf2DHj0lWgivZtFaFJKZ4oyYdo="; - "pubgrub-0.2.1" = "sha256-OPJb5exbRuHPVE9BS3kq1iqGBWWklFDH6X30dMWmnlI="; - "tl-0.7.8" = "sha256-F06zVeSZA4adT6AzLzz1i9uxpI1b8P1h+05fFfjm3GQ="; - }; + cargoDeps = rustPlatform.fetchCargoVendor { + inherit pname version src; + hash = "sha256-ZhHUKotXVDdwJs2kqIxME5I1FitWetx7FrQtluuIUWo="; }; nativeBuildInputs = [ From 9ff0e609fe7a6bd61e9f289b3f5c0bed3f55e751 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 01:12:57 +0000 Subject: [PATCH 530/693] mbedtls: add OpenWrt patch for GCC 14 --- pkgs/development/libraries/mbedtls/3.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/mbedtls/3.nix b/pkgs/development/libraries/mbedtls/3.nix index 9655393615b9..0722638c274b 100644 --- a/pkgs/development/libraries/mbedtls/3.nix +++ b/pkgs/development/libraries/mbedtls/3.nix @@ -1,6 +1,17 @@ -{ callPackage }: +{ callPackage, fetchurl }: callPackage ./generic.nix { version = "3.6.2"; hash = "sha256-tSWhF8i0Tx9QSFmyDEHdd2xveZvpyd+HXR+8xYj2Syo="; + patches = [ + # Fixes the build with GCC 14. + # + # See: + # * + # * + (fetchurl { + url = "https://raw.githubusercontent.com/openwrt/openwrt/52b6c9247997e51a97f13bb9e94749bc34e2d52e/package/libs/mbedtls/patches/100-fix-gcc14-build.patch"; + hash = "sha256-20bxGoUHkrOEungN3SamYKNgj95pM8IjbisNRh68Wlw="; + }) + ]; } From 30ebe557e44b2775ab9686e70ec4583c7424f1d9 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 01:15:05 +0000 Subject: [PATCH 531/693] mbedtls: remove obsolete GCC 14 warning flag This was fixed upstream by . --- pkgs/development/libraries/mbedtls/generic.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/libraries/mbedtls/generic.nix b/pkgs/development/libraries/mbedtls/generic.nix index 14545a2710fc..e87a133eb2a1 100644 --- a/pkgs/development/libraries/mbedtls/generic.nix +++ b/pkgs/development/libraries/mbedtls/generic.nix @@ -47,10 +47,6 @@ stdenv.mkDerivation rec { "-DGEN_FILES=off" ]; - env = lib.optionalAttrs (stdenv.cc.isGNU && (lib.versionAtLeast (lib.getVersion stdenv.cc.cc) "14")) { - NIX_CFLAGS_COMPILE = "-Wno-error=calloc-transposed-args"; - }; - doCheck = true; # Parallel checking causes test failures From 1d92bd7ae3c0be442038ca4ba5123c9837bf9f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 22 Nov 2024 20:36:08 -0800 Subject: [PATCH 532/693] python312Packages.pikepdf: 9.3.0 -> 9.4.2 Diff: https://github.com/pikepdf/pikepdf/compare/refs/tags/v9.3.0...v9.4.2 Changelog: https://github.com/pikepdf/pikepdf/blob/refs/tags/v9.4.2/docs/releasenotes/version9.rst --- pkgs/development/python-modules/pikepdf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pikepdf/default.nix b/pkgs/development/python-modules/pikepdf/default.nix index 6557869053e6..6c1cea184fd7 100644 --- a/pkgs/development/python-modules/pikepdf/default.nix +++ b/pkgs/development/python-modules/pikepdf/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { pname = "pikepdf"; - version = "9.3.0"; + version = "9.4.2"; pyproject = true; disabled = pythonOlder "3.9"; @@ -40,7 +40,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/.git_archival.txt" ''; - hash = "sha256-0V+6QR9q+SwLuzymifW8vmKkvaXvut/U0n6bj3H2sAo="; + hash = "sha256-J/ipkKqZifkWtgv7z/MJPwRK+yB7MP/19PDdjV1NMpY="; }; patches = [ From c190a9c8080a21a8a9c4fe8516fb248dd2316df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 22 Nov 2024 20:43:46 -0800 Subject: [PATCH 533/693] python312Packages.pytest-benchmark: clean up --- .../python-modules/pytest-benchmark/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pytest-benchmark/default.nix b/pkgs/development/python-modules/pytest-benchmark/default.nix index 28b427f208f1..e66926d4c5cd 100644 --- a/pkgs/development/python-modules/pytest-benchmark/default.nix +++ b/pkgs/development/python-modules/pytest-benchmark/default.nix @@ -3,7 +3,6 @@ aspectlib, buildPythonPackage, elasticsearch, - elastic-transport, fetchFromGitHub, freezegun, git, @@ -26,8 +25,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "ionelmc"; - repo = pname; - rev = "v${version}"; + repo = "pytest-benchmark"; + rev = "refs/tags/v${version}"; hash = "sha256-4fD9UfZ6jtY7Gx/PVzd1JNWeQNz+DJ2kQmCku2TgxzI="; }; @@ -41,6 +40,7 @@ buildPythonPackage rec { aspect = [ aspectlib ]; histogram = [ pygal + # FIXME package pygaljs setuptools ]; elasticsearch = [ elasticsearch ]; @@ -49,7 +49,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytest_benchmark" ]; nativeCheckInputs = [ - elastic-transport freezegun git mercurial @@ -77,11 +76,11 @@ buildPythonPackage rec { "test_help" ]; - meta = with lib; { + meta = { changelog = "https://github.com/ionelmc/pytest-benchmark/blob/${src.rev}/CHANGELOG.rst"; description = "Pytest fixture for benchmarking code"; homepage = "https://github.com/ionelmc/pytest-benchmark"; - license = licenses.bsd2; - maintainers = with maintainers; [ dotlambda ]; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ dotlambda ]; }; } From f3fd73aab79c6fc5a200c5feb4bb4ba7494d7671 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 6 Nov 2024 13:52:11 +0100 Subject: [PATCH 534/693] wayland-protocols: fix build with strictDeps = true --- pkgs/development/libraries/wayland/protocols.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/wayland/protocols.nix b/pkgs/development/libraries/wayland/protocols.nix index 76976be200b5..24a57957a131 100644 --- a/pkgs/development/libraries/wayland/protocols.nix +++ b/pkgs/development/libraries/wayland/protocols.nix @@ -24,8 +24,9 @@ stdenv.mkDerivation (finalAttrs: { depsBuildBuild = [ pkg-config ]; nativeBuildInputs = [ meson ninja wayland-scanner ]; - nativeCheckInputs = [ python3 ]; + nativeCheckInputs = [ python3 wayland ]; checkInputs = [ wayland ]; + strictDeps = true; mesonFlags = [ "-Dtests=${lib.boolToString finalAttrs.doCheck}" ]; From 7819d5e37acfe670ace9cfdddb9eeeadbacb7803 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 6 Nov 2024 17:04:11 +0100 Subject: [PATCH 535/693] libsForQt5.qtbase: fix build with strictDeps = true --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 1ed4bfc8b2c2..1ca065e94ce9 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -90,6 +90,7 @@ stdenv.mkDerivation (finalAttrs: ({ ++ lib.optional (postgresql != null) postgresql; nativeBuildInputs = [ bison flex gperf lndir perl pkg-config which ] + ++ lib.optionals (mysqlSupport) [ libmysqlclient ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ]; } // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) { @@ -101,6 +102,8 @@ stdenv.mkDerivation (finalAttrs: ({ propagatedNativeBuildInputs = [ lndir ]; + strictDeps = true; + # libQt5Core links calls CoreFoundation APIs that call into the system ICU. Binaries linked # against it will crash during build unless they can access `/usr/share/icu/icudtXXl.dat`. propagatedSandboxProfile = lib.optionalString stdenv.hostPlatform.isDarwin '' From 5f107ee86d9cf2c103549b6e4833ea10d1aac535 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 6 Nov 2024 18:28:40 +0100 Subject: [PATCH 536/693] flutter: fix build with strictDeps = true --- pkgs/development/compilers/flutter/flutter.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/flutter/flutter.nix b/pkgs/development/compilers/flutter/flutter.nix index 0db577decce3..e6db5ef8e35b 100644 --- a/pkgs/development/compilers/flutter/flutter.nix +++ b/pkgs/development/compilers/flutter/flutter.nix @@ -55,9 +55,9 @@ let name = "flutter-${version}-unwrapped"; inherit src patches version; - buildInputs = [ git ]; - nativeBuildInputs = [ makeWrapper jq ] + nativeBuildInputs = [ makeWrapper jq git ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.DarwinTools ]; + strictDeps = true; preConfigure = '' if [ "$(< bin/internal/engine.version)" != '${engineVersion}' ]; then From 5d5ea9bbde04572af937fe04682bf918eb66bffc Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 6 Nov 2024 20:38:38 +0100 Subject: [PATCH 537/693] appimageTools.extract: fix build with strictDeps = true --- pkgs/build-support/appimage/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/appimage/default.nix b/pkgs/build-support/appimage/default.nix index a6b08042db99..c65327ffbad0 100644 --- a/pkgs/build-support/appimage/default.nix +++ b/pkgs/build-support/appimage/default.nix @@ -27,7 +27,8 @@ rec { }; extract = args@{ name ? "${args.pname}-${args.version}", postExtract ? "", src, ... }: pkgs.runCommand "${name}-extracted" { - buildInputs = [ appimage-exec ]; + nativeBuildInputs = [ appimage-exec ]; + strictDeps = true; } '' appimage-exec.sh -x $out ${src} ${postExtract} From 12836c78ba011e974c596bea0e433e0eb2073ce9 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 7 Nov 2024 07:49:25 +0100 Subject: [PATCH 538/693] python312Packages.dbus-python: increase test timeout --- pkgs/development/python-modules/dbus-python/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/dbus-python/default.nix b/pkgs/development/python-modules/dbus-python/default.nix index b6664daa2576..756cd75ed6ad 100644 --- a/pkgs/development/python-modules/dbus-python/default.nix +++ b/pkgs/development/python-modules/dbus-python/default.nix @@ -90,7 +90,7 @@ lib.fix ( checkPhase = '' runHook preCheck - meson test -C _meson-build --no-rebuild --print-errorlogs + meson test -C _meson-build --no-rebuild --print-errorlogs --timeout-multiplier 0 runHook postCheck ''; From 9b7702a00fd4a9a54f5e2387fdfbcabfabfd1177 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Sat, 9 Nov 2024 19:01:57 +0100 Subject: [PATCH 539/693] multipath-tools: fix strictDeps = true --- pkgs/by-name/mu/multipath-tools/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/mu/multipath-tools/package.nix b/pkgs/by-name/mu/multipath-tools/package.nix index 9fe8630e2275..d1c5edb7b1bb 100644 --- a/pkgs/by-name/mu/multipath-tools/package.nix +++ b/pkgs/by-name/mu/multipath-tools/package.nix @@ -61,6 +61,7 @@ stdenv.mkDerivation rec { systemd util-linuxMinimal # for libmount ]; + strictDeps = true; makeFlags = [ "LIB=lib" @@ -77,7 +78,7 @@ stdenv.mkDerivation rec { # skip test attempting to access /sys/dev/block substituteInPlace tests/Makefile --replace-fail ' devt ' ' ' ''; - nativeCheckInputs = [ cmocka ]; + checkInputs = [ cmocka ]; passthru.tests = { inherit (nixosTests) iscsi-multipath-root; }; From 9aabeccb8c4931a46d2949d1861f427f868ca3aa Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Sat, 9 Nov 2024 19:01:35 +0100 Subject: [PATCH 540/693] mysql8: fix strictDeps = true --- pkgs/servers/sql/mysql/8.0.x.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/sql/mysql/8.0.x.nix b/pkgs/servers/sql/mysql/8.0.x.nix index e4427a495680..de8036a55bcc 100644 --- a/pkgs/servers/sql/mysql/8.0.x.nix +++ b/pkgs/servers/sql/mysql/8.0.x.nix @@ -12,7 +12,7 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-At/ZQ/lnQvf5zXiFWzJwjqTfVIycFK+Sc4F/O72dIrI="; }; - nativeBuildInputs = [ bison cmake pkg-config ] + nativeBuildInputs = [ bison cmake pkg-config protobuf ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ rpcsvc-proto ]; patches = [ @@ -34,6 +34,8 @@ stdenv.mkDerivation (finalAttrs: { cctools CoreServices developer_cmds DarwinTools ]; + strictDeps = true; + outputs = [ "out" "static" ]; cmakeFlags = [ From 06dbae6df3b5fe46d8a926d8757906f3f17b1a35 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Sat, 9 Nov 2024 19:01:23 +0100 Subject: [PATCH 541/693] thrift: fix strictDeps = true --- pkgs/by-name/th/thrift/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/th/thrift/package.nix b/pkgs/by-name/th/thrift/package.nix index 589f03c68858..cbb7e5967f40 100644 --- a/pkgs/by-name/th/thrift/package.nix +++ b/pkgs/by-name/th/thrift/package.nix @@ -34,14 +34,16 @@ stdenv.mkDerivation rec { pkg-config python3 python3.pkgs.setuptools + ] ++ lib.optionals (!static) [ + python3.pkgs.twisted ]; buildInputs = [ boost - ] ++ lib.optionals (!static) [ - (python3.withPackages (ps: [ps.twisted])) ]; + strictDeps = true; + propagatedBuildInputs = [ libevent openssl From cea8f996a5085cd11f35cc6c3d2e9042463d98a2 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 14 Nov 2024 08:40:25 +0100 Subject: [PATCH 542/693] encfs: fix strictDeps = true --- pkgs/tools/filesystems/encfs/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/filesystems/encfs/default.nix b/pkgs/tools/filesystems/encfs/default.nix index 4f546932c733..739caa5402b0 100644 --- a/pkgs/tools/filesystems/encfs/default.nix +++ b/pkgs/tools/filesystems/encfs/default.nix @@ -23,8 +23,9 @@ stdenv.mkDerivation rec { }) ]; - buildInputs = [ gettext fuse openssl tinyxml2 ]; - nativeBuildInputs = [ cmake pkg-config perl ]; + buildInputs = [ fuse openssl tinyxml2 ]; + nativeBuildInputs = [ cmake pkg-config perl gettext ]; + strictDeps = true; cmakeFlags = [ "-DUSE_INTERNAL_TINYXML=OFF" From 80b53fa2ce431b16890ebd385b4786a05e747bd9 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Mon, 18 Nov 2024 20:55:45 +0100 Subject: [PATCH 543/693] vlc: fix with strictDeps = true --- pkgs/by-name/vl/vlc/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/vl/vlc/package.nix b/pkgs/by-name/vl/vlc/package.nix index 2c005cbfa434..f93efd316cb5 100644 --- a/pkgs/by-name/vl/vlc/package.nix +++ b/pkgs/by-name/vl/vlc/package.nix @@ -189,6 +189,7 @@ stdenv.mkDerivation (finalAttrs: { systemd taglib xcbutilkeysyms + wayland-scanner # only required for configure script zlib ] ++ optionals (!stdenv.hostPlatform.isAarch && !onlyLibVLC) [ live555 ] @@ -207,6 +208,7 @@ stdenv.mkDerivation (finalAttrs: { qtx11extras ]) ++ optionals (waylandSupport && withQt5) [ libsForQt5.qtwayland ]; + strictDeps = true; env = { # vlc depends on a c11-gcc wrapper script which we don't have so we need to From 498ca4d86f891a425ffbea6a2c905966532ab84a Mon Sep 17 00:00:00 2001 From: Atemu Date: Sat, 23 Nov 2024 13:43:38 +0100 Subject: [PATCH 544/693] Revert "nixos/frigate: provide ffmpeg-full for nvidia hw accel" With https://github.com/NixOS/nixpkgs/pull/354952, the regular ffmpeg-headless should now have all the deps required for frigate to make use of hardware acceleration on all hardware. This is progress towards https://github.com/NixOS/nixpkgs/issues/271863 This reverts commit 7e33e470df5dcbb9c84d6a08a1128953c4281e17. This may be surprising as it's quite soon after 7e33e470df5dcbb9c84d6a08a1128953c4281e17 was merged but we decided in https://github.com/NixOS/nixpkgs/pull/357717#discussion_r1853840512 to merge it quickly to unbreak master and backport to 24.11. Non-full ffmpeg can be pursued in master using a simple revert which is where we are now. --- nixos/modules/services/video/frigate.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nixos/modules/services/video/frigate.nix b/nixos/modules/services/video/frigate.nix index bc0f5d496afb..84cbdc8cf5f9 100644 --- a/nixos/modules/services/video/frigate.nix +++ b/nixos/modules/services/video/frigate.nix @@ -13,7 +13,6 @@ let filterAttrsRecursive hasPrefix makeLibraryPath - match mkDefault mkEnableOption mkPackageOption @@ -108,10 +107,6 @@ let withCoralUSB = any (d: d.type == "edgetpu" && hasPrefix "usb" d.device or "") detectors; withCoralPCI = any (d: d.type == "edgetpu" && hasPrefix "pci" d.device or "") detectors; withCoral = withCoralPCI || withCoralUSB; - - # Provide ffmpeg-full for NVIDIA hardware acceleration - ffmpegArgs = cfg.settings.ffmpeg.hwaccel_args or ""; - ffmpeg' = if match "/nvidia/" ffmpegArgs != null then pkgs.ffmpeg-full else pkgs.ffmpeg-headless; in { @@ -571,7 +566,7 @@ in path = with pkgs; [ # unfree: # config.boot.kernelPackages.nvidiaPackages.latest.bin - ffmpeg' + ffmpeg-headless libva-utils procps radeontop From a6069343b404aa3be884555253ab1b63e47d61e8 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 23 Nov 2024 05:32:05 -0800 Subject: [PATCH 545/693] openjpeg: sort exculded tests --- pkgs/by-name/op/openjpeg/exclude-tests | 52 +++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/pkgs/by-name/op/openjpeg/exclude-tests b/pkgs/by-name/op/openjpeg/exclude-tests index 060c48e8fe85..5649e988a97e 100644 --- a/pkgs/by-name/op/openjpeg/exclude-tests +++ b/pkgs/by-name/op/openjpeg/exclude-tests @@ -1,3 +1,5 @@ +Found-But-No-Test-issue1472-bigloop.j2k +Found-But-No-Test-small_world_non_consecutive_tilepart_tlm.jp2 NR-C1P0-p0_04.j2k-compare2base NR-C1P0-p0_05.j2k-compare2base NR-C1P0-p0_06.j2k-compare2base @@ -5,29 +7,34 @@ NR-C1P1-p1_02.j2k-compare2base NR-C1P1-p1_03.j2k-compare2base NR-C1P1-p1_04.j2k-compare2base NR-C1P1-p1_05.j2k-compare2base -NR-JP2-file2.jp2-compare2base -NR-RIC-subsampling_1.jp2-compare2base -NR-RIC-subsampling_2.jp2-compare2base -NR-RIC-zoo1.jp2-compare2base -NR-RIC-zoo2.jp2-compare2base -NR-DEC-_00042.j2k-2-decode-md5 -NR-DEC-buxI.j2k-9-decode-md5 +NR-DEC-Bretagne1_ht_lossy.j2k-311-decode-md5 NR-DEC-CT_Phillips_JPEG2K_Decompr_Problem.j2k-13-decode-md5 NR-DEC-Marrin.jp2-18-decode-md5 -NR-DEC-kodak_2layers_lrcp.j2c-31-decode-md5 -NR-DEC-kodak_2layers_lrcp.j2c-32-decode-md5 +NR-DEC-_00042.j2k-2-decode-md5 +NR-DEC-buxI.j2k-9-decode-md5 +NR-DEC-db11217111510058.jp2-306-decode-md5 NR-DEC-file409752.jp2-40-decode-md5 -NR-DEC-issue188_beach_64bitsbox.jp2-41-decode-md5 -NR-DEC-issue206_image-000.jp2-42-decode-md5 -NR-DEC-issue205.jp2-43-decode-md5 -NR-DEC-issue228.j2k-60-decode-md5 -NR-DEC-issue142.j2k-66-decode-md5 NR-DEC-issue134.jp2-67-decode-md5 NR-DEC-issue135.j2k-68-decode-md5 +NR-DEC-issue142.j2k-66-decode-md5 +NR-DEC-issue188_beach_64bitsbox.jp2-41-decode-md5 +NR-DEC-issue205.jp2-253-decode-md5 +NR-DEC-issue205.jp2-43-decode-md5 +NR-DEC-issue206_image-000.jp2-42-decode-md5 NR-DEC-issue208.jp2-69-decode-md5 NR-DEC-issue211.jp2-70-decode-md5 NR-DEC-issue226.j2k-74-decode NR-DEC-issue226.j2k-74-decode-md5 +NR-DEC-issue228.j2k-60-decode-md5 +NR-DEC-issue236-ESYCC-CDEF.jp2-254-decode-md5 +NR-DEC-issue559-eci-090-CIELab.jp2-255-decode-md5 +NR-DEC-issue559-eci-091-CIELab.jp2-256-decode-md5 +NR-DEC-kodak_2layers_lrcp.j2c-31-decode-md5 +NR-DEC-kodak_2layers_lrcp.j2c-32-decode-md5 +NR-DEC-p0_04.j2k-166-decode-md5 +NR-DEC-p0_04.j2k-167-decode-md5 +NR-DEC-p0_04.j2k-168-decode-md5 +NR-DEC-p0_04.j2k-172-decode-md5 NR-DEC-p1_04.j2k-124-decode-md5 NR-DEC-p1_04.j2k-125-decode-md5 NR-DEC-p1_04.j2k-126-decode-md5 @@ -37,16 +44,9 @@ NR-DEC-p1_04.j2k-129-decode-md5 NR-DEC-p1_04.j2k-131-decode-md5 NR-DEC-p1_04.j2k-138-decode-md5 NR-DEC-p1_04.j2k-140-decode-md5 -NR-DEC-p0_04.j2k-166-decode-md5 -NR-DEC-p0_04.j2k-167-decode-md5 -NR-DEC-p0_04.j2k-168-decode-md5 -NR-DEC-p0_04.j2k-172-decode-md5 -NR-DEC-issue205.jp2-253-decode-md5 -NR-DEC-issue236-ESYCC-CDEF.jp2-254-decode-md5 -NR-DEC-issue559-eci-090-CIELab.jp2-255-decode-md5 -NR-DEC-issue559-eci-091-CIELab.jp2-256-decode-md5 -NR-DEC-db11217111510058.jp2-306-decode-md5 NR-DEC-tnsot_zero.jp2-307-decode-md5 -NR-DEC-Bretagne1_ht_lossy.j2k-311-decode-md5 -Found-But-No-Test-issue1472-bigloop.j2k -Found-But-No-Test-small_world_non_consecutive_tilepart_tlm.jp2 +NR-JP2-file2.jp2-compare2base +NR-RIC-subsampling_1.jp2-compare2base +NR-RIC-subsampling_2.jp2-compare2base +NR-RIC-zoo1.jp2-compare2base +NR-RIC-zoo2.jp2-compare2base From 8dc067b88f1010a012a7fca01d54307fe5831ca9 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sat, 23 Nov 2024 05:32:59 -0800 Subject: [PATCH 546/693] openjpeg: exclude tests failing on ia32 --- pkgs/by-name/op/openjpeg/exclude-tests | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/op/openjpeg/exclude-tests b/pkgs/by-name/op/openjpeg/exclude-tests index 5649e988a97e..3006eda409f4 100644 --- a/pkgs/by-name/op/openjpeg/exclude-tests +++ b/pkgs/by-name/op/openjpeg/exclude-tests @@ -27,6 +27,7 @@ NR-DEC-issue226.j2k-74-decode NR-DEC-issue226.j2k-74-decode-md5 NR-DEC-issue228.j2k-60-decode-md5 NR-DEC-issue236-ESYCC-CDEF.jp2-254-decode-md5 +NR-DEC-issue414.jp2-110-decode-md5 NR-DEC-issue559-eci-090-CIELab.jp2-255-decode-md5 NR-DEC-issue559-eci-091-CIELab.jp2-256-decode-md5 NR-DEC-kodak_2layers_lrcp.j2c-31-decode-md5 @@ -42,10 +43,12 @@ NR-DEC-p1_04.j2k-127-decode-md5 NR-DEC-p1_04.j2k-128-decode-md5 NR-DEC-p1_04.j2k-129-decode-md5 NR-DEC-p1_04.j2k-131-decode-md5 +NR-DEC-p1_04.j2k-134-decode-md5 NR-DEC-p1_04.j2k-138-decode-md5 NR-DEC-p1_04.j2k-140-decode-md5 NR-DEC-tnsot_zero.jp2-307-decode-md5 NR-JP2-file2.jp2-compare2base +NR-JP2-file3.jp2-compare2base NR-RIC-subsampling_1.jp2-compare2base NR-RIC-subsampling_2.jp2-compare2base NR-RIC-zoo1.jp2-compare2base From 9347b536d69d6e6865bc7b50e2bcce2ceb51d665 Mon Sep 17 00:00:00 2001 From: K900 Date: Sat, 23 Nov 2024 16:44:37 +0300 Subject: [PATCH 547/693] termbench-pro: fix mismerge --- pkgs/top-level/all-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e30ace399f6b..7a68cfa48bcd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11040,9 +11040,9 @@ with pkgs; harfbuzz = harfbuzzFull; }; - termbench-pro = callPackage ../development/libraries/termbench-pro { + termbench-pro = callPackage ../by-name/te/termbench-pro/package.nix { stdenv = if stdenv.hostPlatform.isDarwin then llvmPackages_17.stdenv else stdenv; - fmt = fmt_8; + fmt = fmt_11; }; texpresso = callPackage ../tools/typesetting/tex/texpresso { From 7b67d15f0eed6551490afbdf80a37a0034d8fb1b Mon Sep 17 00:00:00 2001 From: adisbladis Date: Mon, 18 Nov 2024 22:42:33 +0000 Subject: [PATCH 548/693] uv: Build as a standalone without Python Using `buildPythonPackage` triggers dependency propagation, meaning that using `uv` with `nix-shell` results in a a shell with the `uv` Python input in it. This is problematic for development usage where you only want the one specified version. Often this design bug in the Python package builders is worked around by deleting `$out/nix-support/propagated-build-inputs`, but since `uv` is written in Rust and can be built without a Python interpreter so it's better to just build without a Python interpreter. --- pkgs/by-name/uv/uv/package.nix | 16 +++------- .../development/python-modules/uv/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 +-- 3 files changed, 38 insertions(+), 14 deletions(-) create mode 100644 pkgs/development/python-modules/uv/default.nix diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index d8e53eb32fba..027dc511fb9b 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -4,16 +4,14 @@ fetchFromGitHub, installShellFiles, pkg-config, - python3Packages, rustPlatform, versionCheckHook, nix-update-script, }: -python3Packages.buildPythonApplication rec { +rustPlatform.buildRustPackage rec { pname = "uv"; version = "0.5.4"; - pyproject = true; src = fetchFromGitHub { owner = "astral-sh"; @@ -22,17 +20,13 @@ python3Packages.buildPythonApplication rec { hash = "sha256-Kieh76RUrDEwdL04mvCXOqbXHasMMpXRqp0LwMOIHdM="; }; - cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname version src; - hash = "sha256-ZhHUKotXVDdwJs2kqIxME5I1FitWetx7FrQtluuIUWo="; - }; + useFetchCargoVendor = true; + cargoHash = "sha256-ZhHUKotXVDdwJs2kqIxME5I1FitWetx7FrQtluuIUWo="; nativeBuildInputs = [ cmake installShellFiles pkg-config - rustPlatform.cargoSetupHook - rustPlatform.maturinBuildHook ]; dontUseCmakeConfigure = true; @@ -42,6 +36,8 @@ python3Packages.buildPythonApplication rec { "uv" ]; + doCheck = false; + postInstall = '' export HOME=$TMPDIR installShellCompletion --cmd uv \ @@ -50,8 +46,6 @@ python3Packages.buildPythonApplication rec { --zsh <($out/bin/uv --generate-shell-completion zsh) ''; - pythonImportsCheck = [ "uv" ]; - nativeCheckInputs = [ versionCheckHook ]; diff --git a/pkgs/development/python-modules/uv/default.nix b/pkgs/development/python-modules/uv/default.nix new file mode 100644 index 000000000000..529b3b782bc9 --- /dev/null +++ b/pkgs/development/python-modules/uv/default.nix @@ -0,0 +1,32 @@ +{ + buildPythonPackage, + installShellFiles, + pkg-config, + rustPlatform, + pkgs, +}: + +buildPythonPackage { + inherit (pkgs.uv) + pname + version + src + cargoDeps + dontUseCmakeConfigure + meta + cargoBuildFlags + postInstall + versionCheckProgramArg + ; + + nativeBuildInputs = [ + pkgs.cmake + installShellFiles + pkg-config + rustPlatform.cargoSetupHook + rustPlatform.maturinBuildHook + ]; + + pyproject = true; + pythonImportsCheck = [ "uv" ]; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 86f156f8cffb..679f9e689e6b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17395,9 +17395,7 @@ self: super: with self; { uuid6 = callPackage ../development/python-modules/uuid6 { }; - uv = toPythonModule (pkgs.uv.override { - python3Packages = self; - }); + uv = callPackage ../development/python-modules/uv { }; uvcclient = callPackage ../development/python-modules/uvcclient { }; From a2128516a703f832455e8b22f37e8b66379ff04c Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:17:32 +0100 Subject: [PATCH 549/693] postgresql: sort and group dependencies A bit of structure and much more diff-friendly. --- pkgs/servers/sql/postgresql/generic.nix | 74 ++++++++++++++++++------- 1 file changed, 55 insertions(+), 19 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 5adb3db67db6..4941ac4c2991 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -1,34 +1,70 @@ let generic = - # dependencies - { stdenv, lib, fetchurl, fetchpatch, makeWrapper - , glibc, zlib, readline, openssl, icu, lz4, zstd, systemdLibs, libuuid - , pkg-config, libxml2, tzdata, libkrb5, substituteAll, darwin - , linux-pam, bison, flex, perl, docbook_xml_dtd_45, docbook-xsl-nons, libxslt - - , removeReferencesTo, writeShellScriptBin - - , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs - , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic - - # for postgresql.pkgs - , self, newScope, buildEnv - , stdenvNoCC, postgresqlTestHook + # utils + { stdenv + , fetchpatch + , fetchurl + , lib + , substituteAll + , writeShellScriptBin # source specification - , version, hash, muslPatches ? {} + , hash + , muslPatches ? {} + , version - # for tests - , testers, nixosTests + # runtime dependencies + , darwin + , glibc + , icu + , libuuid + , libxml2 + , linux-pam + , lz4 + , openssl + , readline + , tzdata + , zlib + , zstd + + # build dependencies + , bison + , docbook-xsl-nons + , docbook_xml_dtd_45 + , flex + , libxslt + , makeWrapper + , perl + , pkg-config + , removeReferencesTo + + # passthru + , buildEnv + , newScope + , nixosTests + , postgresqlTestHook + , self + , stdenvNoCC + , testers + + # GSSAPI + , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic + , libkrb5 # JIT - , jitSupport - , nukeReferences, llvmPackages, overrideCC + , jitSupport # not default on purpose, this is set via "_jit or not" attributes + , llvmPackages + , nukeReferences + , overrideCC # PL/Python , pythonSupport ? false , python3 + + # Systemd + , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs + , systemdLibs } @args: let atLeast = lib.versionAtLeast version; From 6bafc8f578c900d5cb168193e8f0bb9fa68121cb Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:19:43 +0100 Subject: [PATCH 550/693] postgresql: make PAM optional --- pkgs/servers/sql/postgresql/generic.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 4941ac4c2991..c5018c5a9259 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -20,7 +20,6 @@ let , icu , libuuid , libxml2 - , linux-pam , lz4 , openssl , readline @@ -58,6 +57,10 @@ let , nukeReferences , overrideCC + # PAM + , pamSupport ? stdenv.hostPlatform.isLinux + , linux-pam + # PL/Python , pythonSupport ? false , python3 @@ -135,7 +138,7 @@ let ++ lib.optionals systemdSupport [ systemdLibs ] ++ lib.optionals pythonSupport [ python3 ] ++ lib.optionals gssSupport [ libkrb5 ] - ++ lib.optionals stdenv'.hostPlatform.isLinux [ linux-pam ]; + ++ lib.optionals pamSupport [ linux-pam ]; nativeBuildInputs = [ makeWrapper @@ -173,7 +176,7 @@ let ++ lib.optionals gssSupport [ "--with-gssapi" ] ++ lib.optionals pythonSupport [ "--with-python" ] ++ lib.optionals jitSupport [ "--with-llvm" ] - ++ lib.optionals stdenv'.hostPlatform.isLinux [ "--with-pam" ] + ++ lib.optionals pamSupport [ "--with-pam" ] # This could be removed once the upstream issue is resolved: # https://postgr.es/m/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b%40technowledgy.de ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ] From 5f7a1e814c233c4aced75f51725509e87b11970a Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:24:25 +0100 Subject: [PATCH 551/693] postgresql: make icu optional --- pkgs/servers/sql/postgresql/generic.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index c5018c5a9259..c831bff49b2f 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -17,7 +17,6 @@ let # runtime dependencies , darwin , glibc - , icu , libuuid , libxml2 , lz4 @@ -51,6 +50,10 @@ let , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic , libkrb5 + # icu + , icuSupport ? true + , icu + # JIT , jitSupport # not default on purpose, this is set via "_jit or not" attributes , llvmPackages @@ -129,9 +132,9 @@ let readline openssl (libxml2.override {enableHttp = true;}) - icu libuuid ] + ++ lib.optionals icuSupport [ icu ] ++ lib.optionals jitSupport [ llvmPackages.llvm ] ++ lib.optionals lz4Enabled [ lz4 ] ++ lib.optionals zstdEnabled [ zstd ] @@ -162,10 +165,10 @@ let env.CFLAGS = "-fdata-sections -ffunction-sections" + (if stdenv'.cc.isClang then " -flto" else " -fmerge-constants -Wl,--gc-sections"); - configureFlags = [ + configureFlags = let inherit (lib) withFeature; in [ "--with-openssl" "--with-libxml" - "--with-icu" + (withFeature icuSupport "icu") "--sysconfdir=/etc" "--with-system-tzdata=${tzdata}/share/zoneinfo" "--enable-debug" From 53c64f04a73de74d8ac79624f5059998dd6275b3 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:33:00 +0100 Subject: [PATCH 552/693] postgresql: add perlSupport option --- pkgs/servers/sql/postgresql/generic.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index c831bff49b2f..bb2a32a32bbe 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -33,7 +33,6 @@ let , flex , libxslt , makeWrapper - , perl , pkg-config , removeReferencesTo @@ -64,6 +63,10 @@ let , pamSupport ? stdenv.hostPlatform.isLinux , linux-pam + # PL/Perl + , perlSupport ? false + , perl + # PL/Python , pythonSupport ? false , python3 @@ -141,7 +144,8 @@ let ++ lib.optionals systemdSupport [ systemdLibs ] ++ lib.optionals pythonSupport [ python3 ] ++ lib.optionals gssSupport [ libkrb5 ] - ++ lib.optionals pamSupport [ linux-pam ]; + ++ lib.optionals pamSupport [ linux-pam ] + ++ lib.optionals perlSupport [ perl ]; nativeBuildInputs = [ makeWrapper @@ -183,7 +187,7 @@ let # This could be removed once the upstream issue is resolved: # https://postgr.es/m/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b%40technowledgy.de ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ] - ++ lib.optionals (atLeast "17") [ "--without-perl" ]; + ++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ]; patches = [ (if atLeast "16" then ./patches/relative-to-symlinks-16+.patch else ./patches/relative-to-symlinks.patch) From 1d6870f81e420bd7e54c73ecee22164236bd799a Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:33:46 +0100 Subject: [PATCH 553/693] postgresql: add ldapSupport option --- pkgs/servers/sql/postgresql/generic.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index bb2a32a32bbe..a8d211285156 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -59,6 +59,10 @@ let , nukeReferences , overrideCC + # LDAP + , ldapSupport ? false + , openldap + # PAM , pamSupport ? stdenv.hostPlatform.isLinux , linux-pam @@ -145,7 +149,8 @@ let ++ lib.optionals pythonSupport [ python3 ] ++ lib.optionals gssSupport [ libkrb5 ] ++ lib.optionals pamSupport [ linux-pam ] - ++ lib.optionals perlSupport [ perl ]; + ++ lib.optionals perlSupport [ perl ] + ++ lib.optionals ldapSupport [ openldap ]; nativeBuildInputs = [ makeWrapper @@ -187,7 +192,8 @@ let # This could be removed once the upstream issue is resolved: # https://postgr.es/m/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b%40technowledgy.de ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ] - ++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ]; + ++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ] + ++ lib.optionals ldapSupport [ "--with-ldap" ]; patches = [ (if atLeast "16" then ./patches/relative-to-symlinks-16+.patch else ./patches/relative-to-symlinks.patch) From ac3961828b4f557ae80febaae0c976b1e2b00ff6 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:40:20 +0100 Subject: [PATCH 554/693] postgresql: add tclSupport option --- pkgs/servers/sql/postgresql/generic.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index a8d211285156..a632b1ae8c7c 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -75,6 +75,10 @@ let , pythonSupport ? false , python3 + # PL/Tcl + , tclSupport ? false + , tcl + # Systemd , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs , systemdLibs @@ -150,7 +154,8 @@ let ++ lib.optionals gssSupport [ libkrb5 ] ++ lib.optionals pamSupport [ linux-pam ] ++ lib.optionals perlSupport [ perl ] - ++ lib.optionals ldapSupport [ openldap ]; + ++ lib.optionals ldapSupport [ openldap ] + ++ lib.optionals tclSupport [ tcl ]; nativeBuildInputs = [ makeWrapper @@ -193,7 +198,8 @@ let # https://postgr.es/m/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b%40technowledgy.de ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ] ++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ] - ++ lib.optionals ldapSupport [ "--with-ldap" ]; + ++ lib.optionals ldapSupport [ "--with-ldap" ] + ++ lib.optionals tclSupport [ "--with-tcl" ]; patches = [ (if atLeast "16" then ./patches/relative-to-symlinks-16+.patch else ./patches/relative-to-symlinks.patch) From cb8a1c74f37765ab728d13a69a113d8b55651237 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:45:01 +0100 Subject: [PATCH 555/693] postgresql: add selinuxSupport option --- pkgs/servers/sql/postgresql/generic.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index a632b1ae8c7c..7af3df9fe03c 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -79,6 +79,10 @@ let , tclSupport ? false , tcl + # SELinux + , selinuxSupport ? false + , libselinux + # Systemd , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs , systemdLibs @@ -155,7 +159,8 @@ let ++ lib.optionals pamSupport [ linux-pam ] ++ lib.optionals perlSupport [ perl ] ++ lib.optionals ldapSupport [ openldap ] - ++ lib.optionals tclSupport [ tcl ]; + ++ lib.optionals tclSupport [ tcl ] + ++ lib.optionals selinuxSupport [ libselinux ]; nativeBuildInputs = [ makeWrapper @@ -199,7 +204,8 @@ let ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ] ++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ] ++ lib.optionals ldapSupport [ "--with-ldap" ] - ++ lib.optionals tclSupport [ "--with-tcl" ]; + ++ lib.optionals tclSupport [ "--with-tcl" ] + ++ lib.optionals selinuxSupport [ "--with-selinux" ]; patches = [ (if atLeast "16" then ./patches/relative-to-symlinks-16+.patch else ./patches/relative-to-symlinks.patch) From b492340e98b8db95ec56f47ff15eba82078315d2 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 19:49:22 +0100 Subject: [PATCH 556/693] postgresql: add nlsSupport option --- pkgs/servers/sql/postgresql/generic.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 7af3df9fe03c..5b90c2206327 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -63,6 +63,10 @@ let , ldapSupport ? false , openldap + # NLS + , nlsSupport ? false + , gettext + # PAM , pamSupport ? stdenv.hostPlatform.isLinux , linux-pam @@ -160,7 +164,8 @@ let ++ lib.optionals perlSupport [ perl ] ++ lib.optionals ldapSupport [ openldap ] ++ lib.optionals tclSupport [ tcl ] - ++ lib.optionals selinuxSupport [ libselinux ]; + ++ lib.optionals selinuxSupport [ libselinux ] + ++ lib.optionals nlsSupport [ gettext ]; nativeBuildInputs = [ makeWrapper @@ -205,7 +210,8 @@ let ++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ] ++ lib.optionals ldapSupport [ "--with-ldap" ] ++ lib.optionals tclSupport [ "--with-tcl" ] - ++ lib.optionals selinuxSupport [ "--with-selinux" ]; + ++ lib.optionals selinuxSupport [ "--with-selinux" ] + ++ lib.optionals nlsSupport [ "--enable-nls" ]; patches = [ (if atLeast "16" then ./patches/relative-to-symlinks-16+.patch else ./patches/relative-to-symlinks.patch) From 4aa1cda21f5a82e96f4a18d9c8c423b13ad3a3d6 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Nov 2024 20:39:31 +0100 Subject: [PATCH 557/693] postgresql: add bonjourSupport option --- pkgs/servers/sql/postgresql/generic.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 5b90c2206327..5904cd93fc75 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -45,6 +45,9 @@ let , stdenvNoCC , testers + # bonjour + , bonjourSupport ? false + # GSSAPI , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic , libkrb5 @@ -211,7 +214,8 @@ let ++ lib.optionals ldapSupport [ "--with-ldap" ] ++ lib.optionals tclSupport [ "--with-tcl" ] ++ lib.optionals selinuxSupport [ "--with-selinux" ] - ++ lib.optionals nlsSupport [ "--enable-nls" ]; + ++ lib.optionals nlsSupport [ "--enable-nls" ] + ++ lib.optionals bonjourSupport [ "--with-bonjour" ]; patches = [ (if atLeast "16" then ./patches/relative-to-symlinks-16+.patch else ./patches/relative-to-symlinks.patch) From 2b1f3bb3426204135e750d7967cf04859e1d4383 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 17:23:52 +0000 Subject: [PATCH 558/693] lib/systems: ensure native `emulator` is a string Fixes eval of `mesonEmulatorHook.crossFile`. --- lib/systems/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 8c48f507bbad..edd728dcee29 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -283,7 +283,7 @@ let # to an emulator program. That is, if an emulator requires additional # arguments, a wrapper should be used. if pkgs.stdenv.hostPlatform.canExecute final - then pkgs.writeShellScript "exec" ''exec "$@"'' + then lib.getExe (pkgs.writeShellScriptBin "exec" ''exec "$@"'') else if final.isWindows then "${wine}/bin/wine${optionalString (final.parsed.cpu.bits == 64) "64"}" else if final.isLinux && pkgs.stdenv.hostPlatform.isLinux && final.qemuArch != null From 034c27ee9dbd56d5c795c3c772b431ed22314a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 23 Nov 2024 09:42:13 -0800 Subject: [PATCH 559/693] python312Packages.pydantic-core: 2.23.4 -> 2.27.1 Diff: https://github.com/pydantic/pydantic-core/compare/refs/tags/v2.23.4...v2.27.1 Changelog: https://github.com/pydantic/pydantic-core/releases/tag/v2.27.1 --- pkgs/development/python-modules/pydantic-core/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pydantic-core/default.nix b/pkgs/development/python-modules/pydantic-core/default.nix index 716d9584b0d6..9e71bbec8a87 100644 --- a/pkgs/development/python-modules/pydantic-core/default.nix +++ b/pkgs/development/python-modules/pydantic-core/default.nix @@ -18,14 +18,14 @@ let pydantic-core = buildPythonPackage rec { pname = "pydantic-core"; - version = "2.23.4"; + version = "2.27.1"; pyproject = true; src = fetchFromGitHub { owner = "pydantic"; repo = "pydantic-core"; rev = "refs/tags/v${version}"; - hash = "sha256-WSSwiqmdQN4zB7fqaniHyh4SHmrGeDHdCGpiSJZT7Mg="; + hash = "sha256-ikdQAT1y0g+V2gPU0Ohn+UktJrEObnixCW56/J1UsSk="; }; patches = [ ./01-remove-benchmark-flags.patch ]; @@ -33,7 +33,7 @@ let cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; - hash = "sha256-dX3wDnKQLmC+FabC0van3czkQLRcrBbtp9b90PgepZs="; + hash = "sha256-kY+XSiwfh1ao0vvqz1M23CONeh/T8uN8YpHf/GOphTk="; }; nativeBuildInputs = [ From bb803f62eac433c81ff1f17e412815f7a0f8c51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 23 Nov 2024 09:36:03 -0800 Subject: [PATCH 560/693] python312Packages.uvicorn: 0.32.0 -> 0.32.1 Diff: https://github.com/encode/uvicorn/compare/refs/tags/0.32.0...0.32.1 Changelog: https://github.com/encode/uvicorn/blob/refs/tags/0.32.1/CHANGELOG.md --- pkgs/development/python-modules/uvicorn/default.nix | 4 ++-- pkgs/development/python-modules/uvicorn/tests.nix | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/uvicorn/default.nix b/pkgs/development/python-modules/uvicorn/default.nix index ab72df02971f..aded817044b3 100644 --- a/pkgs/development/python-modules/uvicorn/default.nix +++ b/pkgs/development/python-modules/uvicorn/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "uvicorn"; - version = "0.32.0"; + version = "0.32.1"; disabled = pythonOlder "3.8"; pyproject = true; @@ -27,7 +27,7 @@ buildPythonPackage rec { owner = "encode"; repo = "uvicorn"; rev = "refs/tags/${version}"; - hash = "sha256-LTioJNDq1zsy/FO6lBgRW8Ow5qyxUD8NjNCj4nIrVDM="; + hash = "sha256-Kx5OwIMqstiFCkqE2wunKSkttd9C8gM+a2KWJuhBN1c="; }; outputs = [ diff --git a/pkgs/development/python-modules/uvicorn/tests.nix b/pkgs/development/python-modules/uvicorn/tests.nix index b5d7cee2f7c5..62fc83d21fb1 100644 --- a/pkgs/development/python-modules/uvicorn/tests.nix +++ b/pkgs/development/python-modules/uvicorn/tests.nix @@ -7,6 +7,7 @@ pytestCheckHook, pytest-mock, trustme, + typing-extensions, watchgod, wsproto, }: @@ -27,6 +28,7 @@ buildPythonPackage { pytestCheckHook pytest-mock trustme + typing-extensions # strictly optional dependencies a2wsgi From 04c719766afc1053ba84f4fe55b5355952b6df6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 23 Nov 2024 09:51:26 -0800 Subject: [PATCH 561/693] python312Packages.rich: 13.8.1 -> 13.9.4 Diff: https://github.com/Textualize/rich/compare/refs/tags/v13.8.1...v13.9.4 Changelog: https://github.com/Textualize/rich/blob/v13.9.4/CHANGELOG.md --- .../python-modules/rich/default.nix | 32 +++++-------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/pkgs/development/python-modules/rich/default.nix b/pkgs/development/python-modules/rich/default.nix index 34913e526d78..7ba12b6311d9 100644 --- a/pkgs/development/python-modules/rich/default.nix +++ b/pkgs/development/python-modules/rich/default.nix @@ -18,7 +18,6 @@ # tests attrs, pytestCheckHook, - setuptools, which, # for passthru.tests @@ -30,24 +29,24 @@ buildPythonPackage rec { pname = "rich"; - version = "13.8.1"; - format = "pyproject"; + version = "13.9.4"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Textualize"; - repo = pname; + repo = "rich"; rev = "refs/tags/v${version}"; - hash = "sha256-k+a64GDGzRDprvJz7s9Sm4z8jDV5TZ+CZLMgXKXXonM="; + hash = "sha256-Zaop9zR+Sz9lMQjQP1ddJSid5jEmf0tQYuTeLuWNGA8="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ markdown-it-py pygments - ] ++ lib.optionals (pythonOlder "3.9") [ typing-extensions ]; + ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]; optional-dependencies = { jupyter = [ ipywidgets ]; @@ -56,24 +55,9 @@ buildPythonPackage rec { nativeCheckInputs = [ attrs pytestCheckHook - setuptools which ]; - disabledTests = [ - # pygments 2.16 compat - # https://github.com/Textualize/rich/issues/3088 - "test_card_render" - "test_markdown_render" - "test_markdown_render" - "test_python_render" - "test_python_render_simple" - "test_python_render_simple_passing_lexer_instance" - "test_python_render_indent_guides" - "test_option_no_wrap" - "test_syntax_highlight_ranges" - ]; - pythonImportsCheck = [ "rich" ]; passthru.tests = { From 9869d7f7466d3d4e4c5bca289f6c0e6df74bd0c1 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 2 Jun 2024 16:00:02 +0200 Subject: [PATCH 562/693] postgresql: enable tests on darwin The tests were disabled in #62752. The problem is System Integrity Protection on macOS, which resets DYDL_LIBRARY_PATH and thus breaks the temporary installation of PostgreSQL. By running the checks *after* the installPhase, the libraries will already be available in the default locations. --- pkgs/servers/sql/postgresql/generic.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 5adb3db67db6..69edb08d49e4 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -218,9 +218,13 @@ let wrapProgram $out/bin/initdb --prefix PATH ":" ${glibc.bin}/bin ''; - doCheck = !stdenv'.hostPlatform.isDarwin; - # autodetection doesn't seem to able to find this, but it's there. - checkTarget = "check-world"; + # Running tests as "install check" to work around SIP issue on macOS: + # https://www.postgresql.org/message-id/flat/4D8E1BC5-BBCF-4B19-8226-359201EA8305%40gmail.com + # Also see /doc/stdenv/platform-notes.chapter.md + doCheck = false; + # Tests just get stuck on macOS 14.x for v13 and v14 + doInstallCheck = !(stdenv'.hostPlatform.isDarwin && olderThan "15"); + installCheckTarget = "check-world"; passthru = let this = self.callPackage generic args; From a196ca60d887e2039d9fe3eb107f67f3c1f023cf Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 23 Nov 2024 11:11:46 +0100 Subject: [PATCH 563/693] webkitgtk: remove CMAKE_PREFIX_PATH hack This had been resolved in #318226. --- pkgs/development/libraries/webkitgtk/default.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix index 5a47eda36425..83038cfb7438 100644 --- a/pkgs/development/libraries/webkitgtk/default.nix +++ b/pkgs/development/libraries/webkitgtk/default.nix @@ -101,14 +101,6 @@ clangStdenv.mkDerivation (finalAttrs: { }) ]; - preConfigure = lib.optionalString (clangStdenv.hostPlatform != clangStdenv.buildPlatform) '' - # Ignore gettext in cmake_prefix_path so that find_program doesn't - # pick up the wrong gettext. TODO: Find a better solution for - # this, maybe make cmake not look up executables in - # CMAKE_PREFIX_PATH. - cmakeFlags+=" -DCMAKE_IGNORE_PATH=${lib.getBin gettext}/bin" - ''; - nativeBuildInputs = [ bison cmake From 29c88a0ce64fed33d93d02605c8420ff42d570ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 8 Nov 2024 15:06:50 -0800 Subject: [PATCH 564/693] python312Packages.gpgme: build out of tree --- pkgs/development/libraries/gpgme/default.nix | 37 +++----------- .../python-modules/gpgme/default.nix | 51 +++++++++++++++++++ .../gpgme/python313-support.patch | 0 pkgs/top-level/python-packages.nix | 7 ++- 4 files changed, 60 insertions(+), 35 deletions(-) create mode 100644 pkgs/development/python-modules/gpgme/default.nix rename pkgs/development/{libraries => python-modules}/gpgme/python313-support.patch (100%) diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index ee2003a393bc..58dccbfa2375 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -10,12 +10,9 @@ pth, libassuan, which, - ncurses, texinfo, buildPackages, qtbase ? null, - pythonSupport ? false, - swig ? null, # only for passthru.tests libsForQt5, qt6Packages, @@ -41,8 +38,6 @@ stdenv.mkDerivation rec { }; patches = [ - # Support Python 3.13 - ./python313-support.patch # Fix a test after disallowing compressed signatures in gpg (PR #180336) ./test_t-verify_double-plaintext.patch # Don't use deprecated LFS64 APIs (removed in musl 1.2.4) @@ -50,31 +45,12 @@ stdenv.mkDerivation rec { ./LFS64.patch ]; - postPatch = '' - # autoconf's beta detection requires a git repo to work - # and otherwise appends -unknown to the version number used in the python package which pip stumbles upon - substituteInPlace autogen.sh \ - --replace-fail 'tmp="-unknown"' 'tmp=""' - ''; - - nativeBuildInputs = - [ - autoreconfHook - gnupg - pkg-config - texinfo - ] - ++ lib.optionals pythonSupport [ - python3.pythonOnBuildForHost - python3.pkgs.pip - python3.pkgs.setuptools - python3.pkgs.wheel - ncurses - swig - which - ]; - - buildInputs = lib.optionals pythonSupport [ python3 ]; + nativeBuildInputs = [ + autoreconfHook + gnupg + pkg-config + texinfo + ]; propagatedBuildInputs = [ glib @@ -95,7 +71,6 @@ stdenv.mkDerivation rec { "--with-libgpg-error-prefix=${libgpg-error.dev}" "--with-libassuan-prefix=${libassuan.dev}" ] - ++ lib.optional pythonSupport "--enable-languages=python" # Tests will try to communicate with gpg-agent instance via a UNIX socket # which has a path length limit. Nix on darwin is using a build directory # that already has quite a long path and the resulting socket path doesn't diff --git a/pkgs/development/python-modules/gpgme/default.nix b/pkgs/development/python-modules/gpgme/default.nix new file mode 100644 index 000000000000..18604bf1d535 --- /dev/null +++ b/pkgs/development/python-modules/gpgme/default.nix @@ -0,0 +1,51 @@ +{ + buildPythonPackage, + gpgme, + lib, + setuptools, + swig, +}: + +buildPythonPackage { + pname = "gpgme"; + inherit (gpgme) version src; + pyproject = true; + + patches = gpgme.patches or [ ] ++ [ + ./python313-support.patch + ]; + + postPatch = '' + substituteInPlace lang/python/setup.py.in \ + --replace-fail "gpgme_h = '''" "gpgme_h = '${lib.getDev gpgme}/include/gpgme.h'" + ''; + + configureFlags = gpgme.configureFlags ++ [ + "--enable-languages=python" + ]; + + postConfigure = " + cd lang/python + "; + + preBuild = '' + make copystamp + ''; + + build-system = [ setuptools ]; + + nativeBuildInputs = [ + swig + ]; + + buildInputs = [ + gpgme + ]; + + pythonImportsCheck = [ "gpg" ]; + + meta = gpgme.meta // { + description = "Python bindings to the GPGME API of the GnuPG cryptography library"; + homepage = "https://dev.gnupg.org/source/gpgme/browse/master/lang/python/"; + }; +} diff --git a/pkgs/development/libraries/gpgme/python313-support.patch b/pkgs/development/python-modules/gpgme/python313-support.patch similarity index 100% rename from pkgs/development/libraries/gpgme/python313-support.patch rename to pkgs/development/python-modules/gpgme/python313-support.patch diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 594b9a9197e1..c2087fdd2234 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5421,10 +5421,9 @@ self: super: with self; { gplaycli = callPackage ../development/python-modules/gplaycli { }; - gpgme = toPythonModule (pkgs.gpgme.override { - pythonSupport = true; - python3 = python; - }); + gpgme = callPackage ../development/python-modules/gpgme { + inherit (pkgs) gpgme; + }; gphoto2 = callPackage ../development/python-modules/gphoto2 { }; From b924334c41be96907f1fb6019a729227e4efd165 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 23 Sep 2024 22:00:29 +0200 Subject: [PATCH 565/693] postgresql: fix pgxs Makefile for darwin The darwin specific Makefile contains a reference to the postgres binary. Some extensions are able to set bindir to their own output correctly for installation and will then fail to find the postgres binaryin their own output during linking. PostGIS worked around this by faking a postgres binary in their own output, but we can do better by hardcoding the proper path in the Makefile when PostgreSQL is built. --- pkgs/servers/sql/postgresql/ext/postgis.nix | 11 ----------- pkgs/servers/sql/postgresql/generic.nix | 6 ++++++ 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/postgis.nix b/pkgs/servers/sql/postgresql/ext/postgis.nix index 673ddf4b9eac..1611fe05600e 100644 --- a/pkgs/servers/sql/postgresql/ext/postgis.nix +++ b/pkgs/servers/sql/postgresql/ext/postgis.nix @@ -89,14 +89,6 @@ buildPostgresqlExtension (finalAttrs: { "--disable-extension-upgrades-install" ]; - postConfigure = '' - mkdir -p $out/bin - - # postgis' build system assumes it is being installed to the same place as postgresql, and looks - # for the postgres binary relative to $PREFIX. We gently support this system using an illusion. - ln -s ${postgresql}/bin/postgres $out/bin/postgres - ''; - makeFlags = [ "PERL=${perl}/bin/perl" ]; @@ -111,9 +103,6 @@ buildPostgresqlExtension (finalAttrs: { # create aliases for all commands adding version information postInstall = '' - # Teardown the illusory postgres used for building; see postConfigure. - rm $out/bin/postgres - for prog in $out/bin/*; do # */ ln -s $prog $prog-${finalAttrs.version} done diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index e8cc44240835..01fa8e647f9a 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -284,6 +284,12 @@ let # Stop lib depending on the -dev output of llvm remove-references-to -t ${llvmPackages.llvm.dev} "$out/lib/llvmjit${dlSuffix}" + '' + lib.optionalString stdenv'.hostPlatform.isDarwin '' + # The darwin specific Makefile for PGXS contains a reference to the postgres + # binary. Some extensions (here: postgis), which are able to set bindir correctly + # to their own output for installation, will then fail to find "postgres" during linking. + substituteInPlace "$dev/lib/pgxs/src/Makefile.port" \ + --replace-fail '-bundle_loader $(bindir)/postgres' "-bundle_loader $out/bin/postgres" ''; postFixup = lib.optionalString stdenv'.hostPlatform.isGnu From 8eee989a14deb3efaf9a32dc1d0240077669d6e5 Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Tue, 19 Nov 2024 11:41:31 -0600 Subject: [PATCH 566/693] poppler: format --- .../development/libraries/poppler/default.nix | 175 ++++++++++-------- 1 file changed, 97 insertions(+), 78 deletions(-) diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index 6ef6aca4b147..1f47d3724117 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -1,39 +1,46 @@ -{ lib -, stdenv -, fetchurl -, fetchFromGitLab -, fetchpatch -, cairo -, cmake -, boost -, curl -, fontconfig -, freetype -, lcms -, libiconv -, libintl -, libjpeg -, ninja -, openjpeg -, pkg-config -, python3 -, zlib -, withData ? true, poppler_data -, qt5Support ? false, qt6Support ? false, qtbase ? null -, introspectionSupport ? false, gobject-introspection ? null -, gpgmeSupport ? false, gpgme ? null -, utils ? false, nss ? null -, minimal ? false -, suffix ? "glib" +{ + lib, + stdenv, + fetchurl, + fetchFromGitLab, + fetchpatch, + cairo, + cmake, + boost, + curl, + fontconfig, + freetype, + lcms, + libiconv, + libintl, + libjpeg, + ninja, + openjpeg, + pkg-config, + python3, + zlib, + withData ? true, + poppler_data, + qt5Support ? false, + qt6Support ? false, + qtbase ? null, + introspectionSupport ? false, + gobject-introspection ? null, + gpgmeSupport ? false, + gpgme ? null, + utils ? false, + nss ? null, + minimal ? false, + suffix ? "glib", -# for passthru.tests -, cups-filters -, gdal -, gegl -, inkscape -, pdfslicer -, scribus -, vips + # for passthru.tests + cups-filters, + gdal, + gegl, + inkscape, + pdfslicer, + scribus, + vips, }: let @@ -55,7 +62,10 @@ stdenv.mkDerivation (finalAttrs: rec { pname = "poppler-${suffix}"; version = "24.02.0"; # beware: updates often break cups-filters build, check scribus too! - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; src = fetchurl { url = "https://poppler.freedesktop.org/poppler-${version}.tar.xz"; @@ -86,49 +96,58 @@ stdenv.mkDerivation (finalAttrs: rec { python3 ]; - buildInputs = [ - boost - libiconv - libintl - ] ++ lib.optionals withData [ - poppler_data - ]; + buildInputs = + [ + boost + libiconv + libintl + ] + ++ lib.optionals withData [ + poppler_data + ]; # TODO: reduce propagation to necessary libs - propagatedBuildInputs = [ - zlib - freetype - fontconfig - libjpeg - openjpeg - ] ++ lib.optionals (!minimal) [ - cairo - lcms - curl - nss - ] ++ lib.optionals (qt5Support || qt6Support) [ - qtbase - ] ++ lib.optionals introspectionSupport [ - gobject-introspection - ] ++ lib.optionals gpgmeSupport [ - gpgme - ]; + propagatedBuildInputs = + [ + zlib + freetype + fontconfig + libjpeg + openjpeg + ] + ++ lib.optionals (!minimal) [ + cairo + lcms + curl + nss + ] + ++ lib.optionals (qt5Support || qt6Support) [ + qtbase + ] + ++ lib.optionals introspectionSupport [ + gobject-introspection + ] + ++ lib.optionals gpgmeSupport [ + gpgme + ]; - cmakeFlags = [ - (mkFlag true "UNSTABLE_API_ABI_HEADERS") # previously "XPDF_HEADERS" - (mkFlag (!minimal) "GLIB") - (mkFlag (!minimal) "CPP") - (mkFlag (!minimal) "LIBCURL") - (mkFlag (!minimal) "LCMS") - (mkFlag (!minimal) "LIBTIFF") - (mkFlag (!minimal) "NSS3") - (mkFlag utils "UTILS") - (mkFlag qt5Support "QT5") - (mkFlag qt6Support "QT6") - (mkFlag gpgmeSupport "GPGME") - ] ++ lib.optionals finalAttrs.finalPackage.doCheck [ - "-DTESTDATADIR=${testData}" - ]; + cmakeFlags = + [ + (mkFlag true "UNSTABLE_API_ABI_HEADERS") # previously "XPDF_HEADERS" + (mkFlag (!minimal) "GLIB") + (mkFlag (!minimal) "CPP") + (mkFlag (!minimal) "LIBCURL") + (mkFlag (!minimal) "LCMS") + (mkFlag (!minimal) "LIBTIFF") + (mkFlag (!minimal) "NSS3") + (mkFlag utils "UTILS") + (mkFlag qt5Support "QT5") + (mkFlag qt6Support "QT6") + (mkFlag gpgmeSupport "GPGME") + ] + ++ lib.optionals finalAttrs.finalPackage.doCheck [ + "-DTESTDATADIR=${testData}" + ]; disallowedReferences = lib.optional finalAttrs.finalPackage.doCheck testData; dontWrapQtApps = true; @@ -159,13 +178,13 @@ stdenv.mkDerivation (finalAttrs: rec { cups-filters inkscape scribus - ; + ; inherit gegl pdfslicer vips - ; + ; gdal = gdal.override { usePoppler = true; }; python-poppler-qt5 = python3.pkgs.poppler-qt5; }; From c972c7432f8d18c9f1e5f6b52d2724c99e6d05a9 Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Tue, 19 Nov 2024 11:44:40 -0600 Subject: [PATCH 567/693] poppler: add dependency for glib-mkenums to fix cross building --- pkgs/development/libraries/poppler/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index 1f47d3724117..160206196d64 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -10,6 +10,7 @@ curl, fontconfig, freetype, + glib, lcms, libiconv, libintl, @@ -94,6 +95,8 @@ stdenv.mkDerivation (finalAttrs: rec { ninja pkg-config python3 + ] ++ lib.optionals (!minimal) [ + glib # for glib-mkenums ]; buildInputs = @@ -190,7 +193,7 @@ stdenv.mkDerivation (finalAttrs: rec { }; }; - meta = with lib; { + meta = { homepage = "https://poppler.freedesktop.org/"; changelog = "https://gitlab.freedesktop.org/poppler/poppler/-/blob/poppler-${version}/NEWS"; description = "PDF rendering library"; @@ -198,8 +201,8 @@ stdenv.mkDerivation (finalAttrs: rec { Poppler is a PDF rendering library based on the xpdf-3.0 code base. In addition it provides a number of tools that can be installed separately. ''; - license = licenses.gpl2Plus; - platforms = platforms.all; - maintainers = with maintainers; [ ttuegel ] ++ teams.freedesktop.members; + license = with lib.licenses; [ gpl2Plus ]; + platforms = lib.platforms.all; + maintainers = with lib.maintainers; [ ttuegel ] ++ lib.teams.freedesktop.members; }; }) From 3e2ceab20157c37566df2f2ea35d4a6dac95732c Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Sun, 24 Nov 2024 00:40:56 +0100 Subject: [PATCH 568/693] boost: fix build for non x86_64 hostPlatforms --- pkgs/development/libraries/boost/generic.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 94ee8c236423..eca05e4fcf7a 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -64,6 +64,16 @@ let "link=${link}" "-sEXPAT_INCLUDE=${expat.dev}/include" "-sEXPAT_LIBPATH=${expat.out}/lib" + ( + # The stacktrace from exception feature causes memory leaks when built + # with libc++. For all other standard library implementations, i.e. + # libstdc++, we must aknowledge this or stacktrace refuses to compile. + # Issue upstream: https://github.com/boostorg/stacktrace/issues/163 + if (stdenv.cc.libcxx != null) then + "boost.stacktrace.from_exception=off" + else + "define=BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK" + ) # TODO: make this unconditional ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform || From 2d64877f636944facc0b12e6bc07fabd860cf8aa Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 19 Nov 2024 22:16:10 +0100 Subject: [PATCH 569/693] replaceVars: allow exemptions replaceVars has a checkPhase to confirm that no left-over @...@ patterns remain. Since it's not possible to use "placeholder" with replaceVars, the substitution of some patterns must be delayed to a later step. By passing "null" for those keys explicitly, replaceVars can make an exemption *just for this case*, but keep checking all other references. --- pkgs/build-support/replace-vars/default.nix | 31 +++++++++------ pkgs/test/replace-vars/default.nix | 43 +++++++++++++++++++++ pkgs/tools/virtualization/mkosi/default.nix | 4 +- 3 files changed, 65 insertions(+), 13 deletions(-) diff --git a/pkgs/build-support/replace-vars/default.nix b/pkgs/build-support/replace-vars/default.nix index a6fc94f4f376..0088279ad939 100644 --- a/pkgs/build-support/replace-vars/default.nix +++ b/pkgs/build-support/replace-vars/default.nix @@ -11,8 +11,8 @@ Any unmatched variable names in the file at the provided path will cause a build failure. - Any remaining text that matches `@[A-Za-z_][0-9A-Za-z_'-]@` in the output after replacement - has occurred will cause a build failure. + By default, any remaining text that matches `@[A-Za-z_][0-9A-Za-z_'-]@` in the output after replacement + has occurred will cause a build failure. Variables can be excluded from this check by passing "null" for them. # Inputs @@ -20,7 +20,8 @@ : The file in which to replace variables. `attrs` (AttrsOf String) - : Each entry in this set corresponds to a `--subst-var-by` entry in [`substitute`](https://nixos.org/manual/nixpkgs/stable/#fun-substitute). + : Each entry in this set corresponds to a `--subst-var-by` entry in [`substitute`](https://nixos.org/manual/nixpkgs/stable/#fun-substitute) or + null to keep it unchanged. # Example @@ -36,13 +37,19 @@ path: attrs: let # We use `--replace-fail` instead of `--subst-var-by` so that if the thing isn't there, we fail. - subst-var-by = name: value: [ - "--replace-fail" - (lib.escapeShellArg "@${name}@") - (lib.escapeShellArg value) - ]; + subst-var-by = + name: value: + lib.optionals (value != null) [ + "--replace-fail" + (lib.escapeShellArg "@${name}@") + (lib.escapeShellArg value) + ]; replacements = lib.concatLists (lib.mapAttrsToList subst-var-by attrs); + + left-overs = map ({ name, ... }: name) ( + builtins.filter ({ value, ... }: value == null) (lib.attrsToList attrs) + ); in stdenvNoCC.mkDerivation { @@ -62,13 +69,15 @@ stdenvNoCC.mkDerivation { # Look for Nix identifiers surrounded by `@` that aren't substituted. checkPhase = let - regex = lib.escapeShellArg "@[a-zA-Z_][0-9A-Za-z_'-]*@"; + lookahead = + if builtins.length left-overs == 0 then "" else "(?!${builtins.concatStringsSep "|" left-overs}@)"; + regex = lib.escapeShellArg "@${lookahead}[a-zA-Z_][0-9A-Za-z_'-]*@"; in '' runHook preCheck - if grep -qe ${regex} "$out"; then + if grep -Pqe ${regex} "$out"; then echo The following look like unsubstituted Nix identifiers that remain in "$out": - grep -oe ${regex} "$out" + grep -Poe ${regex} "$out" echo Use the more precise '`substitute`' function if this check is in error. exit 1 fi diff --git a/pkgs/test/replace-vars/default.nix b/pkgs/test/replace-vars/default.nix index 76dc81de49c8..115836ba22ed 100644 --- a/pkgs/test/replace-vars/default.nix +++ b/pkgs/test/replace-vars/default.nix @@ -69,6 +69,49 @@ in # Shouldn't see the "cannot detect" version. ! grep -q -F "cannot detect due to space" $failed/testBuildFailure.log + touch $out + ''; + + replaceVars-succeeds-with-exemption = testEqualContents { + assertion = "replaceVars-succeeds-with-exemption"; + actual = replaceVars ./source.txt { + free = "free"; + "equal in" = "are the same in"; + brotherhood = null; + }; + + expected = builtins.toFile "expected" '' + All human beings are born free and are the same in dignity and rights. + They are endowed with reason and conscience and should act towards + one another in a spirit of @brotherhood@. + + -- eroosevelt@humanrights.un.org + ''; + }; + + replaceVars-fails-in-check-phase-with-exemption = + runCommand "replaceVars-fails-with-exemption" + { + failed = + let + src = builtins.toFile "source.txt" '' + @a@ + @b@ + @c@ + ''; + in + testBuildFailure ( + replaceVars src { + a = "a"; + b = null; + } + ); + } + '' + grep -e "unsubstituted Nix identifiers.*source.txt" $failed/testBuildFailure.log + grep -F "@c@" $failed/testBuildFailure.log + ! grep -F "@b@" $failed/testBuildFailure.log + touch $out ''; } diff --git a/pkgs/tools/virtualization/mkosi/default.nix b/pkgs/tools/virtualization/mkosi/default.nix index 2f5dea5481fb..a39bec7ae876 100644 --- a/pkgs/tools/virtualization/mkosi/default.nix +++ b/pkgs/tools/virtualization/mkosi/default.nix @@ -68,7 +68,7 @@ buildPythonApplication rec { (replaceVars ./0001-Use-wrapped-binaries-instead-of-Python-interpreter.patch { UKIFY = "${systemdForMkosi}/lib/systemd/ukify"; PYTHON_PEFILE = "${python3pefile}/bin/python3.12"; - MKOSI_SANDBOX = "~MKOSI_SANDBOX~"; # to satisfy replaceVars, will be replaced in postPatch + MKOSI_SANDBOX = null; # will be replaced in postPatch }) (replaceVars ./0002-Fix-library-resolving.patch { LIBC = "${stdenv.cc.libc}/lib/libc.so.6"; @@ -84,7 +84,7 @@ buildPythonApplication rec { postPatch = '' # As we need the $out reference, we can't use `replaceVars` here. substituteInPlace mkosi/run.py \ - --replace-fail '~MKOSI_SANDBOX~' "\"$out/bin/mkosi-sandbox\"" + --replace-fail '@MKOSI_SANDBOX@' "\"$out/bin/mkosi-sandbox\"" ''; nativeBuildInputs = [ From 54601fdd58cc3f60da574378af06ea28de59c58c Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 21 Nov 2024 08:09:51 +0100 Subject: [PATCH 570/693] python312Packages.shapely: fix build with GCC 14 --- pkgs/development/python-modules/shapely/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/shapely/default.nix b/pkgs/development/python-modules/shapely/default.nix index 0959a8e3e0c9..914b6deccb6c 100644 --- a/pkgs/development/python-modules/shapely/default.nix +++ b/pkgs/development/python-modules/shapely/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchPypi, + fetchpatch, pytestCheckHook, pythonOlder, @@ -26,6 +27,14 @@ buildPythonPackage rec { hash = "sha256-mX9hWbFIQFnsI5ysqlNGf9i1Vk2r4YbNhKwpRGY7C/Y="; }; + patches = [ + # fixes build error with GCC 14 + (fetchpatch { + url = "https://github.com/shapely/shapely/commit/05455886750680728dc751dc5888cd02086d908e.patch"; + hash = "sha256-YnmiWFfjHHFZCxrmabBINM4phqfLQ+6xEc30EoV5d98="; + }) + ]; + nativeBuildInputs = [ cython_0 geos # for geos-config From 57f6fd617558799b60bc418adec4edd767ac10c2 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 21 Nov 2024 08:22:45 +0100 Subject: [PATCH 571/693] python312Packages.xmlsec: fix build with GCC 14 --- pkgs/development/python-modules/xmlsec/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/xmlsec/default.nix b/pkgs/development/python-modules/xmlsec/default.nix index 229fa8171371..3d6d6bc50acd 100644 --- a/pkgs/development/python-modules/xmlsec/default.nix +++ b/pkgs/development/python-modules/xmlsec/default.nix @@ -1,6 +1,7 @@ { lib, fetchPypi, + fetchpatch, buildPythonPackage, pytestCheckHook, libxslt, @@ -24,6 +25,14 @@ buildPythonPackage rec { hash = "sha256-k0+ATy+JW824bx6u4ja2YQE1YO5p7BCNKc3W5fKSotk="; }; + patches = [ + # fixes build error with GCC 14 + (fetchpatch { + url = "https://github.com/xmlsec/python-xmlsec/commit/67cd4ac73e4fceac4b4eb6a320067cad33f79213.patch"; + hash = "sha256-zU34a2x3S48Hwvo/oDe5mfkZ3jBwdajIrKwKhTRSsko="; + }) + ]; + nativeBuildInputs = [ pkg-config pkgconfig From c4f27b6a33c4db2283fc4199b805ef9d24bed48d Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 21 Nov 2024 09:40:29 +0100 Subject: [PATCH 572/693] cdrtools: fix build with GCC 14 --- pkgs/tools/cd-dvd/cdrtools/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/cd-dvd/cdrtools/default.nix b/pkgs/tools/cd-dvd/cdrtools/default.nix index d264a0f8bdb3..0d90b7c5cc2e 100644 --- a/pkgs/tools/cd-dvd/cdrtools/default.nix +++ b/pkgs/tools/cd-dvd/cdrtools/default.nix @@ -12,6 +12,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ m4 ]; buildInputs = if stdenv.hostPlatform.isDarwin then [ Carbon IOKit ] else [ acl libcap ]; + env.CFLAGS = toString [ + "-Wno-error=implicit-int" + "-Wno-error=implicit-function-declaration" + ]; + postPatch = '' sed "/\.mk3/d" -i libschily/Targets.man substituteInPlace man/Makefile --replace "man4" "" From 11787cb5bd08a19ad50216dc59701e492bab29fa Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 21 Nov 2024 09:53:49 +0100 Subject: [PATCH 573/693] cdrkit: move to debian source, apply debian patches --- .../cd/cdrkit/cdrkit-1.1.11-fno-common.patch | 11 - .../cd/cdrkit/cdrkit-1.1.9-efi-boot.patch | 204 ------------------ pkgs/by-name/cd/cdrkit/include-path.patch | 9 - pkgs/by-name/cd/cdrkit/package.nix | 28 +-- 4 files changed, 14 insertions(+), 238 deletions(-) delete mode 100644 pkgs/by-name/cd/cdrkit/cdrkit-1.1.11-fno-common.patch delete mode 100644 pkgs/by-name/cd/cdrkit/cdrkit-1.1.9-efi-boot.patch delete mode 100644 pkgs/by-name/cd/cdrkit/include-path.patch diff --git a/pkgs/by-name/cd/cdrkit/cdrkit-1.1.11-fno-common.patch b/pkgs/by-name/cd/cdrkit/cdrkit-1.1.11-fno-common.patch deleted file mode 100644 index c7db796cfcfc..000000000000 --- a/pkgs/by-name/cd/cdrkit/cdrkit-1.1.11-fno-common.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/genisoimage/genisoimage.h -+++ b/genisoimage/genisoimage.h -@@ -377,7 +377,7 @@ extern int use_fileversion; - extern int split_SL_component; - extern int split_SL_field; - extern char *trans_tbl; --char *outfile; -+extern char *outfile; - - #define JMAX 64 /* maximum Joliet file name length (spec) */ - #define JLONGMAX 103 /* out of spec Joliet file name length */ diff --git a/pkgs/by-name/cd/cdrkit/cdrkit-1.1.9-efi-boot.patch b/pkgs/by-name/cd/cdrkit/cdrkit-1.1.9-efi-boot.patch deleted file mode 100644 index 45f910b03e66..000000000000 --- a/pkgs/by-name/cd/cdrkit/cdrkit-1.1.9-efi-boot.patch +++ /dev/null @@ -1,204 +0,0 @@ -diff --git a/doc/icedax/tracknames.pl b/doc/icedax/tracknames.pl -old mode 100755 -new mode 100644 -index 09f0fcf..801b89e ---- a/doc/icedax/tracknames.pl -+++ b/doc/icedax/tracknames.pl -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -+#!/usr/bin/perl - # A quick perl hack to get rename files pulled in with icedax. - # by billo@billo.com - # -diff --git a/genisoimage/eltorito.c b/genisoimage/eltorito.c -index b97bdf1..5d7c2d1 100644 ---- a/genisoimage/eltorito.c -+++ b/genisoimage/eltorito.c -@@ -59,7 +59,7 @@ static void get_torito_desc(struct eltorito_boot_descriptor *boot_desc); - static void fill_boot_desc(struct eltorito_defaultboot_entry *boot_desc_entry, - struct eltorito_boot_entry_info *boot_entry); - void get_boot_entry(void); --void new_boot_entry(void); -+void new_boot_entry(); - static int tvd_write(FILE *outfile); - - -@@ -283,6 +283,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) - int i; - int offset; - struct eltorito_defaultboot_entry boot_desc_record; -+ struct eltorito_sectionheader_entry section_header; - - memset(boot_desc, 0, sizeof (*boot_desc)); - boot_desc->type[0] = 0; -@@ -317,7 +318,7 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) - */ - memset(&valid_desc, 0, sizeof (valid_desc)); - valid_desc.headerid[0] = 1; -- valid_desc.arch[0] = EL_TORITO_ARCH_x86; -+ valid_desc.arch[0] = first_boot_entry->arch; - - /* - * we'll shove start of publisher id into id field, -@@ -347,10 +348,53 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) - /* now write it to the virtual boot catalog */ - memcpy(de2->table, &valid_desc, 32); - -- for (current_boot_entry = first_boot_entry, offset = sizeof (valid_desc); -- current_boot_entry != NULL; -- current_boot_entry = current_boot_entry->next, -- offset += sizeof (boot_desc_record)) { -+ /* Fill the first entry, since it's special and already has the -+ * matching header via the validation header... */ -+ offset = sizeof (valid_desc); -+ current_boot_entry = first_boot_entry; -+ -+ if (offset >= SECTOR_SIZE) { -+#ifdef USE_LIBSCHILY -+ comerrno(EX_BAD, "Too many El Torito boot entries\n"); -+#else -+ fprintf(stderr, "Too many El Torito boot entries\n"); -+ exit(1); -+#endif -+ } -+ fill_boot_desc(&boot_desc_record, current_boot_entry); -+ memcpy(de2->table + offset, &boot_desc_record, -+ sizeof (boot_desc_record)); -+ -+ offset += sizeof(boot_desc_record); -+ -+ for (current_boot_entry = current_boot_entry->next; -+ current_boot_entry != NULL; -+ current_boot_entry = current_boot_entry->next) { -+ struct eltorito_sectionheader_entry section_header; -+ -+ if (offset >= SECTOR_SIZE) { -+#ifdef USE_LIBSCHILY -+ comerrno(EX_BAD, -+ "Too many El Torito boot entries\n"); -+#else -+ fprintf(stderr, -+ "Too many El Torito boot entries\n"); -+ exit(1); -+#endif -+ } -+ -+ memset(§ion_header, '\0', sizeof(section_header)); -+ if (current_boot_entry->next) -+ section_header.headerid[0] = EL_TORITO_SECTION_HEADER; -+ else -+ section_header.headerid[0] = EL_TORITO_LAST_SECTION_HEADER; -+ -+ section_header.arch[0] = current_boot_entry->arch; -+ set_721(section_header.num_entries, 1); -+ -+ memcpy(de2->table + offset, §ion_header, -+ sizeof(section_header)); -+ offset += sizeof(section_header); - - if (offset >= SECTOR_SIZE) { - #ifdef USE_LIBSCHILY -@@ -365,6 +409,8 @@ get_torito_desc(struct eltorito_boot_descriptor *boot_desc) - fill_boot_desc(&boot_desc_record, current_boot_entry); - memcpy(de2->table + offset, &boot_desc_record, - sizeof (boot_desc_record)); -+ offset += sizeof (boot_desc_record); -+ - } - }/* get_torito_desc(... */ - -diff --git a/genisoimage/genisoimage.c b/genisoimage/genisoimage.c -index a5b0b46..8add1ac 100644 ---- a/genisoimage/genisoimage.c -+++ b/genisoimage/genisoimage.c -@@ -47,6 +47,7 @@ - - #include - #include "genisoimage.h" -+#include "iso9660.h" - #include - #include - #include -@@ -523,6 +524,8 @@ static const struct ld_option ld_options[] = - '\0', NULL, "Set debug flag", ONE_DASH}, - {{"eltorito-boot", required_argument, NULL, 'b'}, - 'b', "FILE", "Set El Torito boot image name", ONE_DASH}, -+ {{"efi-boot", required_argument, NULL, 'e'}, -+ 'e', "FILE", "Set EFI boot image name", ONE_DASH}, - {{"eltorito-alt-boot", no_argument, NULL, OPTION_ALT_BOOT}, - '\0', NULL, "Start specifying alternative El Torito boot parameters", ONE_DASH}, - {{"sparc-boot", required_argument, NULL, 'B'}, -@@ -1502,6 +1505,7 @@ int main(int argc, char *argv[]) - all_files = 0; - break; - case 'b': -+ case 'e': - do_sort++; /* We sort bootcat/botimage */ - use_eltorito++; - boot_image = optarg; /* pathname of the boot image */ -@@ -1517,6 +1521,10 @@ int main(int argc, char *argv[]) - #endif - } - get_boot_entry(); -+ if (c == 'e') -+ current_boot_entry->arch = EL_TORITO_ARCH_EFI; -+ else -+ current_boot_entry->arch = EL_TORITO_ARCH_x86; - current_boot_entry->boot_image = boot_image; - break; - case OPTION_ALT_BOOT: -diff --git a/genisoimage/genisoimage.h b/genisoimage/genisoimage.h -index bbedfb0..76e5e21 100644 ---- a/genisoimage/genisoimage.h -+++ b/genisoimage/genisoimage.h -@@ -293,6 +293,7 @@ struct deferred_write { - struct eltorito_boot_entry_info { - struct eltorito_boot_entry_info *next; - char *boot_image; -+ char arch; - int not_bootable; - int no_emul_boot; - int hard_disk_boot; -diff --git a/genisoimage/iso9660.h b/genisoimage/iso9660.h -index c74c2a9..c8b7a05 100644 ---- a/genisoimage/iso9660.h -+++ b/genisoimage/iso9660.h -@@ -62,10 +62,14 @@ struct iso_volume_descriptor { - #define EL_TORITO_ARCH_x86 0 - #define EL_TORITO_ARCH_PPC 1 - #define EL_TORITO_ARCH_MAC 2 -+#define EL_TORITO_ARCH_EFI 0xef - - #define EL_TORITO_BOOTABLE 0x88 - #define EL_TORITO_NOT_BOOTABLE 0 - -+#define EL_TORITO_SECTION_HEADER 0x90 -+#define EL_TORITO_LAST_SECTION_HEADER 0x91 -+ - #define EL_TORITO_MEDIA_NOEMUL 0 - #define EL_TORITO_MEDIA_12FLOP 1 - #define EL_TORITO_MEDIA_144FLOP 2 -@@ -173,7 +177,7 @@ struct eltorito_validation_entry { - struct eltorito_defaultboot_entry { - char boot_id [ISODCL(1, 1)]; /* 711 */ - char boot_media [ISODCL(2, 2)]; -- char loadseg [ISODCL(3, 4)]; /* 711 */ -+ char loadseg [ISODCL(3, 4)]; /* 712 */ - char sys_type [ISODCL(5, 5)]; - char pad1 [ISODCL(6, 6)]; - char nsect [ISODCL(7, 8)]; -@@ -181,6 +185,14 @@ struct eltorito_defaultboot_entry { - char pad2 [ISODCL(13, 32)]; - }; - -+/* El Torito Section Header Entry in boot catalog */ -+struct eltorito_sectionheader_entry { -+ char headerid [ISODCL(1, 1)]; /* 711 */ -+ char arch [ISODCL(2, 2)]; -+ char num_entries [ISODCL(3, 4)]; /* 711 */ -+ char id [ISODCL(5, 32)]; -+}; -+ - /* - * XXX JS: The next two structures have odd lengths! - * Some compilers (e.g. on Sun3/mc68020) padd the structures to even length. diff --git a/pkgs/by-name/cd/cdrkit/include-path.patch b/pkgs/by-name/cd/cdrkit/include-path.patch deleted file mode 100644 index c071e182d7f5..000000000000 --- a/pkgs/by-name/cd/cdrkit/include-path.patch +++ /dev/null @@ -1,9 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 57edba6..d06b6d9 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -1,3 +1,4 @@ - PROJECT (cdrkit C) -+INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/include) - SUBDIRS(include genisoimage wodim libedc libhfs_iso libparanoia icedax libusal librols libunls readom netscsid 3rd-party/dirsplit) - diff --git a/pkgs/by-name/cd/cdrkit/package.nix b/pkgs/by-name/cd/cdrkit/package.nix index 7aa400e51f07..14b51fcb9457 100644 --- a/pkgs/by-name/cd/cdrkit/package.nix +++ b/pkgs/by-name/cd/cdrkit/package.nix @@ -1,30 +1,30 @@ -{lib, stdenv, fetchurl, cmake, libcap, zlib, bzip2, perl}: +{lib, stdenv, fetchFromGitLab, cmake, libcap, zlib, bzip2, perl, quilt}: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "cdrkit"; - version = "1.1.11"; + version = "1.1.11-3.5"; - src = fetchurl { - url = "http://cdrkit.org/releases/cdrkit-${version}.tar.gz"; - sha256 = "1nj7iv3xrq600i37na9a5idd718piiiqbs4zxvpjs66cdrsk1h6i"; + src = fetchFromGitLab { + domain = "salsa.debian.org"; + owner = "debian"; + repo = "cdrkit"; + rev = "debian/9%${finalAttrs.version}"; + hash = "sha256-T7WhztbpVvGegF6rTHGTkEALq+mcAtTerzDQ3f6Cq78="; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake quilt ]; buildInputs = [ zlib bzip2 perl ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libcap ]; - hardeningDisable = [ "format" ]; env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isMusl [ "-D__THROW=" ] ++ lib.optionals stdenv.cc.isClang [ "-Wno-error=int-conversion" - "-Wno-error=implicit-function-declaration" ]); - # efi-boot-patch extracted from http://arm.koji.fedoraproject.org/koji/rpminfo?rpmID=174244 - patches = [ ./include-path.patch ./cdrkit-1.1.9-efi-boot.patch ./cdrkit-1.1.11-fno-common.patch ]; - - postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + postPatch = '' + QUILT_PATCHES=debian/patches quilt push -a + '' + lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace libusal/scsi-mac-iokit.c \ --replace "IOKit/scsi-commands/SCSITaskLib.h" "IOKit/scsi/SCSITaskLib.h" substituteInPlace genisoimage/sha256.c \ @@ -75,4 +75,4 @@ stdenv.mkDerivation rec { license = lib.licenses.gpl2Plus; platforms = lib.platforms.unix; }; -} +}) From f75b34cbfaf2ba3fd9c0e3365787534c8c570063 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Thu, 21 Nov 2024 13:51:46 +0100 Subject: [PATCH 574/693] freerdp: fix build with GCC 14 --- .../networking/remote/freerdp/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/applications/networking/remote/freerdp/default.nix b/pkgs/applications/networking/remote/freerdp/default.nix index 7490066c7327..633e0d219f60 100644 --- a/pkgs/applications/networking/remote/freerdp/default.nix +++ b/pkgs/applications/networking/remote/freerdp/default.nix @@ -8,6 +8,7 @@ , alsa-lib , faac , faad2 +, fetchpatch , ffmpeg , glib , openh264 @@ -85,6 +86,22 @@ stdenv.mkDerivation rec { hash = "sha256-w+xyMNFmKylSheK0yAGl8J6MXly/HUjjAfR9Qq3s/kA="; }; + patches = [ + # GCC 14 compatibility + (fetchpatch { + url = "https://github.com/FreeRDP/FreeRDP/commit/5b14b7cbdd36414f1838047f21502654bd32ebb1.patch"; + hash = "sha256-EWLfmjGJGWA/sY2E2DnFKhPbzhOVbXZPCrV8i1XuSeY="; + }) + (fetchpatch { + url = "https://github.com/FreeRDP/FreeRDP/commit/efa899d3deb8595a29fabb2a2251722f9d7e0d7f.patch"; + hash = "sha256-hjqNexYq+3iO2L2L9wT2tWbHz0BEtl/y7jgQT4kpNIM="; + }) + (fetchpatch { + url = "https://github.com/FreeRDP/FreeRDP/commit/0c20fac8f1deeeca3df93a6619542e5d9176f0f0.patch"; + hash = "sha256-cEzNPteucoI5KoGEM3C6mg2kW9uWImPebZEV6nssexY="; + }) + ]; + postPatch = '' export HOME=$TMP From 6dcdf8a0fe45795342dfea9cfe6215de781149d8 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Sun, 24 Nov 2024 18:25:13 +0100 Subject: [PATCH 575/693] perlPackages.DBDmysql: 4.050 -> 5.010 --- pkgs/top-level/perl-packages.nix | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index ea5b2e8d78b1..810978657440 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -7194,17 +7194,29 @@ with self; { DBDmysql = buildPerlPackage { pname = "DBD-mysql"; - version = "4.050"; + version = "5.010"; src = fetchurl { - url = "mirror://cpan/authors/id/D/DV/DVEEDEN/DBD-mysql-4.050.tar.gz"; - hash = "sha256-T0hUH/FaCnQF92rcEPgWJ8M5lvv1bJXCbAlERMCSjXg="; + url = "mirror://cpan/authors/id/D/DV/DVEEDEN/DBD-mysql-5.010.tar.gz"; + hash = "sha256-LKL/Odk+idT3RG5fD68DgF6RZ+6bigS6fLJG4stG7uc="; }; - buildInputs = [ pkgs.libmysqlclient DevelChecklib TestDeep TestDistManifest TestPod ]; + nativeBuildInputs = [ + pkgs.mysql80 # for mysql_config + ]; + buildInputs = [ + DevelChecklib + TestDeep + TestDistManifest + TestPod + pkgs.libmysqlconnectorcpp + pkgs.libxcrypt + pkgs.openssl + pkgs.zstd + ]; propagatedBuildInputs = [ DBI ]; - doCheck = false; + doCheck = false; # require running database # makeMakerFlags = "MYSQL_HOME=${mysql}"; meta = { From 65edc93a868149e65d16c10369b882a98eaa1766 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Sun, 24 Nov 2024 18:27:45 +0100 Subject: [PATCH 576/693] libmysqlconnectorcpp: fix strictDeps = true --- pkgs/by-name/li/libmysqlconnectorcpp/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/li/libmysqlconnectorcpp/package.nix b/pkgs/by-name/li/libmysqlconnectorcpp/package.nix index 6eb9ff06f206..7668c9576f0d 100644 --- a/pkgs/by-name/li/libmysqlconnectorcpp/package.nix +++ b/pkgs/by-name/li/libmysqlconnectorcpp/package.nix @@ -17,6 +17,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake + mysql80 ]; buildInputs = [ @@ -25,6 +26,8 @@ stdenv.mkDerivation rec { mysql80 ]; + strictDeps = true; + cmakeFlags = [ # libmysqlclient is shared library "-DMYSQLCLIENT_STATIC_LINKING=false" From d3ddcd3f6f211d98a21da3bbd4e97b3e6c9645f5 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 24 Nov 2024 22:30:56 +0100 Subject: [PATCH 577/693] uv: fix versionCheckHook --- pkgs/by-name/uv/uv/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index 027dc511fb9b..bbaa205a05a6 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -6,6 +6,7 @@ pkg-config, rustPlatform, versionCheckHook, + python3Packages, nix-update-script, }: @@ -36,6 +37,7 @@ rustPlatform.buildRustPackage rec { "uv" ]; + # Tests require python3 doCheck = false; postInstall = '' @@ -46,12 +48,14 @@ rustPlatform.buildRustPackage rec { --zsh <($out/bin/uv --generate-shell-completion zsh) ''; - nativeCheckInputs = [ + nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; passthru = { + tests.uv-python = python3Packages.uv; updateScript = nix-update-script { }; }; From 1e3da684a3667770677982b1c911cc823197bfe0 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Sun, 24 Nov 2024 22:32:46 +0000 Subject: [PATCH 578/693] llvmPackages.libclang{12,13,14,15,16}: ignore -nostd* flag when linking apply https://github.com/llvm/llvm-project/commit/5b77e752dcd073846b89559d6c0e1a7699e58615 to clang 14-16 and backport the patch to apply to clang 12-13 backported patch just drops the final change in Hunk 2 of Options.td as it doesn't exist until clang-14 --- .../common/clang/ignore-nostd-link-13.diff | 57 +++++++++++++++++++ .../compilers/llvm/common/default.nix | 11 ++++ 2 files changed, 68 insertions(+) create mode 100644 pkgs/development/compilers/llvm/common/clang/ignore-nostd-link-13.diff diff --git a/pkgs/development/compilers/llvm/common/clang/ignore-nostd-link-13.diff b/pkgs/development/compilers/llvm/common/clang/ignore-nostd-link-13.diff new file mode 100644 index 000000000000..9a7a18a4c5ad --- /dev/null +++ b/pkgs/development/compilers/llvm/common/clang/ignore-nostd-link-13.diff @@ -0,0 +1,57 @@ +backported to clang-12 & clang-13 from https://github.com/llvm/llvm-project/commit/5b77e752dcd073846b89559d6c0e1a7699e58615 +diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td +index a0cbcae..8797646 100644 +--- a/include/clang/Driver/Options.td ++++ b/include/clang/Driver/Options.td +@@ -2931,7 +2931,7 @@ def headerpad__max__install__names : Joined<["-"], "headerpad_max_install_names" + def help : Flag<["-", "--"], "help">, Flags<[CC1Option,CC1AsOption, FC1Option, + FlangOption]>, HelpText<"Display available options">, + MarshallingInfoFlag>; +-def ibuiltininc : Flag<["-"], "ibuiltininc">, ++def ibuiltininc : Flag<["-"], "ibuiltininc">, Group, + HelpText<"Enable builtin #include directories even when -nostdinc is used " + "before or after -ibuiltininc. " + "Using -nobuiltininc after the option disables it">; +@@ -3641,10 +3641,11 @@ def no_cpp_precomp : Flag<["-"], "no-cpp-precomp">, Group + def no_integrated_cpp : Flag<["-", "--"], "no-integrated-cpp">, Flags<[NoXarchOption]>; + def no_pedantic : Flag<["-", "--"], "no-pedantic">, Group; + def no__dead__strip__inits__and__terms : Flag<["-"], "no_dead_strip_inits_and_terms">; +-def nobuiltininc : Flag<["-"], "nobuiltininc">, Flags<[CC1Option, CoreOption]>, ++def nobuiltininc : Flag<["-"], "nobuiltininc">, Flags<[CC1Option, CoreOption]>, Group, + HelpText<"Disable builtin #include directories">, + MarshallingInfoNegativeFlag>; +-def nogpuinc : Flag<["-"], "nogpuinc">, HelpText<"Do not add include paths for CUDA/HIP and" ++def nogpuinc : Flag<["-"], "nogpuinc">, Group, ++ HelpText<"Do not add include paths for CUDA/HIP and" + " do not include the default CUDA/HIP wrapper headers">; + def : Flag<["-"], "nocudainc">, Alias; + def nogpulib : Flag<["-"], "nogpulib">, +@@ -3660,9 +3661,9 @@ def noprebind : Flag<["-"], "noprebind">; + def noprofilelib : Flag<["-"], "noprofilelib">; + def noseglinkedit : Flag<["-"], "noseglinkedit">; + def nostartfiles : Flag<["-"], "nostartfiles">, Group; +-def nostdinc : Flag<["-"], "nostdinc">, Flags<[CoreOption]>; +-def nostdlibinc : Flag<["-"], "nostdlibinc">; +-def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>, ++def nostdinc : Flag<["-"], "nostdinc">, Flags<[CoreOption]>, Group; ++def nostdlibinc : Flag<["-"], "nostdlibinc">, Group; ++def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>, Group, + HelpText<"Disable standard #include directories for the C++ standard library">, + MarshallingInfoNegativeFlag>; + def nostdlib : Flag<["-"], "nostdlib">, Group; +diff --git a/test/Driver/linker-opts.c b/test/Driver/linker-opts.c +index e1673f7..b9beb91 100644 +--- a/test/Driver/linker-opts.c ++++ b/test/Driver/linker-opts.c +@@ -16,9 +16,8 @@ + // + // Make sure that we don't warn on unused compiler arguments. + // RUN: %clang -Xclang -I. -x c %s -c -o %t/tmp.o +-// RUN: %clang -Xclang -I. %t/tmp.o -o %t/tmp -### 2>&1 | FileCheck %s --check-prefix=NO-UNUSED +-// NO-UNUSED-NOT: warning:{{.*}}unused +-// ++// RUN: %clang -### -I. -ibuiltininc -nobuiltininc -nostdinc -nostdinc++ -nostdlibinc -nogpuinc %t/tmp.o -o /dev/null 2>&1 | FileCheck /dev/null --implicit-check-not=warning: ++ + // Make sure that we do warn in other cases. + // RUN: %clang %s -lfoo -c -o %t/tmp2.o -### 2>&1 | FileCheck %s --check-prefix=UNUSED + // UNUSED: warning:{{.*}}unused diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index b0d05c454a79..d8d1ffddc80e 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -534,6 +534,17 @@ let # mis-compilation in firefox. # See: https://bugzilla.mozilla.org/show_bug.cgi?id=1741454 (metadata.getVersionFile "clang/revert-malloc-alignment-assumption.patch") + ++ lib.optional (lib.versionOlder metadata.release_version "17") ( + if lib.versionAtLeast metadata.release_version "14" then + fetchpatch { + name = "ignore-nostd-link.patch"; + url = "https://github.com/llvm/llvm-project/commit/5b77e752dcd073846b89559d6c0e1a7699e58615.patch"; + relative = "clang"; + hash = "sha256-qzSAmoGY+7POkDhcGgQRPaNQ3+7PIcIc9cZuiE/eLkc="; + } + else + ./clang/ignore-nostd-link-13.diff + ) ++ [ (substituteAll { src = From 8cbb18adf81a68e1d1c142033b22a2e12c0b9936 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 25 Nov 2024 01:35:52 +0000 Subject: [PATCH 579/693] bash-completion: 2.14.0 -> 2.15.0 --- pkgs/by-name/ba/bash-completion/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ba/bash-completion/package.nix b/pkgs/by-name/ba/bash-completion/package.nix index 6408f0610ff6..0bd7356ea7d6 100644 --- a/pkgs/by-name/ba/bash-completion/package.nix +++ b/pkgs/by-name/ba/bash-completion/package.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { pname = "bash-completion"; - version = "2.14.0"; + version = "2.15.0"; # Using fetchurl because fetchGithub or fetchzip will have trouble on # e.g. APFS filesystems (macOS) because of non UTF-8 characters in some of the @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { # See discussion in https://github.com/NixOS/nixpkgs/issues/107768 src = fetchurl { url = "https://github.com/scop/bash-completion/releases/download/${version}/bash-completion-${version}.tar.xz"; - sha256 = "sha256-XHSU+WgoCDLWrbWqGfdFpW8aed8xHlkzjF76b3KF4Wg="; + sha256 = "sha256-l2pi7mImlwKDzahey5x6Soj2JXTApvnoVhJpdt7PGgY="; }; strictDeps = true; From 9581f2ad763900864940600a83bf3c234ccdd414 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 25 Nov 2024 04:30:05 +0000 Subject: [PATCH 580/693] zvbi: 0.2.42 -> 0.2.42-unstable-2024-03-21 Contains fixes for GCC 14 and undefined behaviour. Hopefully upstream will cut a release soon (see ), but this unblocks FFmpeg on `staging`. --- pkgs/by-name/zv/zvbi/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/zv/zvbi/package.nix b/pkgs/by-name/zv/zvbi/package.nix index 55982a1c81b9..47ca1e078b73 100644 --- a/pkgs/by-name/zv/zvbi/package.nix +++ b/pkgs/by-name/zv/zvbi/package.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "zvbi"; - version = "0.2.42"; + version = "0.2.42-unstable-2024-03-21"; src = fetchFromGitHub { owner = "zapping-vbi"; repo = "zvbi"; - rev = "refs/tags/v${finalAttrs.version}"; - hash = "sha256-IeSGscgz51IndX6Xbu8Kw8GcJ9MLXXFhV+4LvnVkrLE="; + rev = "a48ab3a0d72efe9968ebafa34c425c892e4afa50"; + hash = "sha256-1VTTNfXZ12hJWiW+M1WsE8H/PejrJsT/E2RHZ3OSIC8="; }; nativeBuildInputs = [ @@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: { meta = { description = "Vertical Blanking Interval (VBI) utilities"; homepage = "https://github.com/zapping-vbi/zvbi"; - changelog = "https://github.com/zapping-vbi/zvbi/blob/v${finalAttrs.version}/ChangeLog"; + changelog = "https://github.com/zapping-vbi/zvbi/blob/${finalAttrs.src.rev}/ChangeLog"; pkgConfigModules = [ "zvbi-0.2" ]; license = with lib.licenses; [ bsd2 From 3462b97dbc093916db657081a69ea281a48eff75 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 03:14:48 +0000 Subject: [PATCH 581/693] vectorscan: unpin Boost --- pkgs/by-name/ve/vectorscan/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ve/vectorscan/package.nix b/pkgs/by-name/ve/vectorscan/package.nix index 8525a66e4092..860ea03f7a2d 100644 --- a/pkgs/by-name/ve/vectorscan/package.nix +++ b/pkgs/by-name/ve/vectorscan/package.nix @@ -6,7 +6,7 @@ , ragel , util-linux , python3 -, boost184 +, boost , sqlite , pcre , enableShared ? !stdenv.hostPlatform.isStatic @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { ] ++ lib.optional stdenv.hostPlatform.isLinux util-linux; buildInputs = [ - boost184 + boost sqlite pcre ]; From 1b0599f4882ff18730b74bac2e2eb960329e54e9 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 05:26:07 +0000 Subject: [PATCH 582/693] python312Packages.graph-tool: unpin Boost --- pkgs/development/python-modules/graph-tool/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/graph-tool/default.nix b/pkgs/development/python-modules/graph-tool/default.nix index ff0ab4f62787..eefa3ea7a5e0 100644 --- a/pkgs/development/python-modules/graph-tool/default.nix +++ b/pkgs/development/python-modules/graph-tool/default.nix @@ -5,7 +5,7 @@ stdenv, autoreconfHook, - boost185, + boost, cairomm, cgal, expat, @@ -26,8 +26,7 @@ }: let - # graph-tool doesn't build against boost181 on Darwin - boost = boost185.override { + boost' = boost.override { enablePython = true; inherit python; }; @@ -58,7 +57,7 @@ buildPythonPackage rec { configureFlags = [ "--with-python-module-path=$(out)/${python.sitePackages}" - "--with-boost-libdir=${boost}/lib" + "--with-boost-libdir=${boost'}/lib" "--with-cgal=${cgal}" ]; @@ -71,7 +70,7 @@ buildPythonPackage rec { # https://graph-tool.skewed.de/installation.html#manual-compilation dependencies = [ - boost + boost' cairomm cgal expat From f918349b900f52d5c135a5f53479a7a9103259ae Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 05:54:01 +0000 Subject: [PATCH 583/693] saunafs: unpin Boost --- pkgs/top-level/all-packages.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71757dfc349b..2cf2079412b4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1513,10 +1513,6 @@ with pkgs; inherit (darwin) autoSignDarwinBinariesHook; }; - saunafs = callPackage ../by-name/sa/saunafs/package.nix { - boost = boost185; - }; - vifm-full = vifm.override { mediaSupport = true; inherit lib udisks2 python3; From 1bf8a5b6e888eb65d2d801aeba3f3b2ce80cc912 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 19:00:11 +0000 Subject: [PATCH 584/693] liblangtag: 0.6.3 -> 0.6.7 Includes fixes for GCC 14. --- pkgs/by-name/li/liblangtag/package.nix | 30 +++++++------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/li/liblangtag/package.nix b/pkgs/by-name/li/liblangtag/package.nix index 38f1cc03cac4..5684c18ae009 100644 --- a/pkgs/by-name/li/liblangtag/package.nix +++ b/pkgs/by-name/li/liblangtag/package.nix @@ -1,42 +1,28 @@ -{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, gtk-doc, gettext +{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, autoconf-archive, gtk-doc, gettext , pkg-config, glib, libxml2, gobject-introspection, gnome-common, unzip }: stdenv.mkDerivation rec { pname = "liblangtag"; - version = "0.6.3"; + version = "0.6.7"; # Artifact tarball contains lt-localealias.h needed for darwin src = fetchurl { url = "https://bitbucket.org/tagoh/liblangtag/downloads/${pname}-${version}.tar.bz2"; - sha256 = "sha256-HxKiCgLsOo0i5U3tuLaDpDycFgvaG6M3vxBgYHrnM70="; + hash = "sha256-Xta81K4/PAXJEuYvIWzRpEEjhGFH9ymkn7VmjaUeAw4="; }; core_zip = fetchurl { # please update if an update is available - url = "http://www.unicode.org/Public/cldr/37/core.zip"; - sha256 = "0myswkvvaxvrz9zwq4zh65sygfd9n72cd5rk4pwacqba4nxgb4xs"; + url = "http://www.unicode.org/Public/cldr/46/core.zip"; + hash = "sha256-+86cInWGKtJmaPs0eD/mwznz2S3f61oQoXdftYGBoV0="; }; language_subtag_registry = fetchurl { - url = "http://www.iana.org/assignments/language-subtag-registry"; - sha256 = "0y9x5gra6jri4sk16f0dp69p06almnsl48rs85605f035kf539qm"; + url = "https://web.archive.org/web/20241120202537id_/https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry"; + hash = "sha256-xy94jbBKP0Ig7yOPutSviCA6uryx7PW2b1lBIPk2+6Q="; }; - patches = [ - # Pull upstream fix for gcc-13 build compatibility - (fetchpatch { - name = "gcc-13-p1.patch"; - url = "https://bitbucket.org/tagoh/liblangtag/commits/0b6e9f4616a34146e7443c4e9a7197153645e40b/raw"; - hash = "sha256-69wJDVwDCP5OPHKoRn9WZNrvfCvmlX3SwtRmcpJHn2o="; - }) - (fetchpatch { - name = "gcc-13-p1.patch"; - url = "https://bitbucket.org/tagoh/liblangtag/commits/1497c4477d0fa0b7df1886951b953dd3cea54427/raw"; - hash = "sha256-k0Uaeg6YLxVze4fgf0kiyuiZJ5wh2Jq3h7cFPQPtwyo="; - }) - ]; - postPatch = '' gtkdocize cp "${core_zip}" data/core.zip @@ -50,7 +36,7 @@ stdenv.mkDerivation rec { "--with-locale-alias=${stdenv.cc.libc}/share/locale/locale.alias"; buildInputs = [ gettext glib libxml2 gnome-common ]; - nativeBuildInputs = [ autoreconfHook gtk-doc gettext pkg-config unzip gobject-introspection ]; + nativeBuildInputs = [ autoreconfHook autoconf-archive gtk-doc gettext pkg-config unzip gobject-introspection ]; meta = with lib; { description = "Interface library to access tags for identifying languages"; From 818fdedec93c341ab41f3be6fb074abcec98cf61 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 19:25:46 +0000 Subject: [PATCH 585/693] libetonyek: unpin Boost --- pkgs/by-name/li/libetonyek/package.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/li/libetonyek/package.nix b/pkgs/by-name/li/libetonyek/package.nix index 393f542a9ea9..ec7b9b4a82d1 100644 --- a/pkgs/by-name/li/libetonyek/package.nix +++ b/pkgs/by-name/li/libetonyek/package.nix @@ -3,8 +3,7 @@ , fetchFromGitHub , autoreconfHook , pkg-config -# fails on older Boost due to https://github.com/boostorg/phoenix/issues/111 -, boost184 +, boost , cppunit , glm , gperf @@ -32,7 +31,7 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - boost184 + boost cppunit glm gperf From 0fc1b819ade1d87d4ae9ea36504ca46b23ea9c4a Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 24 Nov 2024 08:02:05 +0000 Subject: [PATCH 586/693] shadps4: unpin Boost --- pkgs/by-name/sh/shadps4/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sh/shadps4/package.nix b/pkgs/by-name/sh/shadps4/package.nix index 5484724d886e..58477d157638 100644 --- a/pkgs/by-name/sh/shadps4/package.nix +++ b/pkgs/by-name/sh/shadps4/package.nix @@ -4,7 +4,7 @@ fetchFromGitHub, fetchpatch, alsa-lib, - boost184, + boost, cmake, cryptopp, glslang, @@ -62,7 +62,7 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ alsa-lib - boost184 + boost cryptopp glslang ffmpeg From 3656f34ea1b2893d4a14cd94247ea43f7549b5c1 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 25 Nov 2024 07:33:35 +0000 Subject: [PATCH 587/693] libsoup_3: 3.6.0 -> 3.6.1 Changes: https://gitlab.gnome.org/GNOME/libsoup/-/blob/3.6.1/NEWS --- pkgs/development/libraries/libsoup/3.x.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libsoup/3.x.nix b/pkgs/development/libraries/libsoup/3.x.nix index 2aff5ca60377..79d4fee1ef01 100644 --- a/pkgs/development/libraries/libsoup/3.x.nix +++ b/pkgs/development/libraries/libsoup/3.x.nix @@ -21,13 +21,13 @@ stdenv.mkDerivation rec { pname = "libsoup"; - version = "3.6.0"; + version = "3.6.1"; outputs = [ "out" "dev" ] ++ lib.optional withIntrospection "devdoc"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-YpWfeR6OhEL4wTztrIxJGdePkSDVu1MBvmel5TMYtKM="; + sha256 = "sha256-zrHxqivdc7LNgVnTmYyWxV7wl+8V5LTzYCkgn6GK+Dg="; }; depsBuildBuild = [ From 9f6ea15cc0b214dc1215be921d3cd32e81f38a48 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Mon, 25 Nov 2024 08:53:40 +0100 Subject: [PATCH 588/693] mariadb-server: use DBDMariaDB insteady of mysql --- pkgs/servers/sql/mariadb/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index a178e1fa28e4..921510a07f91 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -26,7 +26,7 @@ let libExt = stdenv.hostPlatform.extensions.sharedLibrary; - mytopEnv = buildPackages.perl.withPackages (p: with p; [ DBDmysql DBI TermReadKey ]); + mytopEnv = buildPackages.perl.withPackages (p: with p; [ DBDMariaDB DBI TermReadKey ]); common = rec { # attributes common to both builds inherit version; From d86588d23033955df991216f49e334fc9b0e36f1 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 17 Nov 2024 22:34:43 +0100 Subject: [PATCH 589/693] treewide: improve prepending and appending derivation arguments in bash code Those would be problematic with __structuredAttrs turned on, because they'd turn those nice bash arrays back into strings - and potentially lose some of the values on the way. --- pkgs/applications/audio/fmit/default.nix | 16 +++++++++------- pkgs/applications/audio/sonic-pi/default.nix | 4 +--- pkgs/applications/kde/marble.nix | 6 +++--- .../misc/maliit-framework/default.nix | 6 +++--- pkgs/applications/science/misc/boinc/default.nix | 6 ++++-- .../version-management/monotone-viz/default.nix | 2 +- .../version-management/vcprompt/default.nix | 5 ++++- pkgs/applications/video/kodi/unwrapped.nix | 4 ++-- pkgs/build-support/release/binary-tarball.nix | 2 +- pkgs/by-name/cl/cl-launch/package.nix | 5 ++++- pkgs/by-name/fl/fluxus/package.nix | 4 +--- pkgs/by-name/gl/globulation2/package.nix | 10 +++++----- pkgs/by-name/gp/gpsd/package.nix | 5 ++--- pkgs/by-name/gt/gt5/package.nix | 6 +++--- pkgs/by-name/lx/lxdvdrip/package.nix | 5 ++++- pkgs/by-name/ne/netcdfcxx4/package.nix | 2 +- pkgs/by-name/nf/nfs-utils/package.nix | 5 ++--- pkgs/by-name/np/np2kai/package.nix | 3 ++- pkgs/by-name/pa/pacparser/package.nix | 6 ++++-- .../pa/patchPpdFilesHook/patch-ppd-hook.sh | 2 +- .../pu/pulseaudio-module-xrdp/package.nix | 2 +- pkgs/by-name/ro/rocksndiamonds/package.nix | 2 +- pkgs/by-name/rt/rt/package.nix | 12 ++++++------ pkgs/by-name/se/serf/package.nix | 12 ++++++------ pkgs/by-name/si/silc_client/package.nix | 10 +++++----- pkgs/by-name/sp/spaceFM/package.nix | 5 +---- pkgs/by-name/tr/trigger/package.nix | 5 ++++- pkgs/by-name/ts/tsocks/package.nix | 5 ++++- pkgs/by-name/un/unbound/package.nix | 3 ++- pkgs/by-name/xl/xlockmore/package.nix | 2 +- pkgs/desktops/gnustep/make/default.nix | 5 +---- pkgs/desktops/plasma-5/default.nix | 4 ++-- .../development/compilers/gcc/common/builder.nix | 2 +- .../cuda-modules/setup-hooks/setup-cuda-hook.sh | 2 +- .../haskell-modules/configuration-nix.nix | 2 +- .../haskell-modules/generic-builder.nix | 6 +++--- .../hooks/python-catch-conflicts-hook-tests.nix | 2 +- pkgs/development/libraries/glibc/common.nix | 11 +++++------ .../libraries/grantlee/5/setup-hook.sh | 4 ++-- .../libraries/kde-frameworks/default.nix | 2 +- .../extra-cmake-modules/setup-hook.sh | 2 +- pkgs/development/libraries/phonon/default.nix | 6 +++--- .../libraries/qt-5/hooks/qtbase-setup-hook.sh | 2 +- pkgs/development/python-modules/numpy/1.nix | 2 +- pkgs/development/python-modules/numpy/2.nix | 2 +- .../tools/analysis/rr/zen_workaround.nix | 2 +- .../tools/analysis/sparse/default.nix | 5 ++++- pkgs/development/tools/misc/luarocks/default.nix | 4 ++-- .../frameworks/extra-cmake-modules/ecm-hook.sh | 2 +- pkgs/os-specific/bsd/freebsd/pkgs/bin.nix | 2 +- pkgs/servers/nosql/mongodb/mongodb.nix | 8 ++++---- pkgs/servers/x11/xorg/builder.sh | 4 ++-- pkgs/tools/typesetting/tex/nix/run-latex.sh | 2 +- 53 files changed, 129 insertions(+), 116 deletions(-) diff --git a/pkgs/applications/audio/fmit/default.nix b/pkgs/applications/audio/fmit/default.nix index c22fe3ab0977..85fd36c3d86e 100644 --- a/pkgs/applications/audio/fmit/default.nix +++ b/pkgs/applications/audio/fmit/default.nix @@ -28,13 +28,15 @@ mkDerivation rec { substituteInPlace fmit.pro --replace '$$FMITVERSIONGITPRO' '${version}' ''; - preConfigure = '' - qmakeFlags="$qmakeFlags \ - CONFIG+=${lib.optionalString alsaSupport "acs_alsa"} \ - CONFIG+=${lib.optionalString jackSupport "acs_jack"} \ - CONFIG+=${lib.optionalString portaudioSupport "acs_portaudio"} \ - PREFIXSHORTCUT=$out" - ''; + qmakeFlags = [ + "PREFIXSHORTCUT=${placeholder "out"}" + ] ++ lib.optionals alsaSupport [ + "CONFIG+=acs_alsa" + ] ++ lib.optionals jackSupport [ + "CONFIG+=acs_jack" + ] ++ lib.optionals portaudioSupport [ + "CONFIG+=acs_portaudio" + ]; meta = with lib; { description = "Free Musical Instrument Tuner"; diff --git a/pkgs/applications/audio/sonic-pi/default.nix b/pkgs/applications/audio/sonic-pi/default.nix index 286e26bdaad3..2c5ad98f64f5 100644 --- a/pkgs/applications/audio/sonic-pi/default.nix +++ b/pkgs/applications/audio/sonic-pi/default.nix @@ -105,6 +105,7 @@ stdenv.mkDerivation rec { "-DUSE_SYSTEM_LIBS=ON" "-DBUILD_IMGUI_INTERFACE=${if withImGui then "ON" else "OFF"}" "-DWITH_QT_GUI_WEBENGINE=${if withTauWidget then "ON" else "OFF"}" + "-DAPP_INSTALL_ROOT=${placeholder "out"}/app" ]; doCheck = true; @@ -136,9 +137,6 @@ stdenv.mkDerivation rec { # Prebuild Ruby vendored dependencies and Qt docs ./linux-prebuild.sh -o - - # Append CMake flag depending on the value of $out - cmakeFlags+=" -DAPP_INSTALL_ROOT=$out/app" ''; postBuild = '' diff --git a/pkgs/applications/kde/marble.nix b/pkgs/applications/kde/marble.nix index 78fc52996dc5..7593e33c4c15 100644 --- a/pkgs/applications/kde/marble.nix +++ b/pkgs/applications/kde/marble.nix @@ -18,7 +18,7 @@ mkDerivation { protobuf_21 qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts knewstuff gpsd ]; - preConfigure = '' - cmakeFlags+=" -DINCLUDE_INSTALL_DIR=''${!outputDev}/include" - ''; + cmakeFlags = [ + "-DINCLUDE_INSTALL_DIR=${placeholder "dev"}/include" + ]; } diff --git a/pkgs/applications/misc/maliit-framework/default.nix b/pkgs/applications/misc/maliit-framework/default.nix index 7093524fc04d..2d350d567e7c 100644 --- a/pkgs/applications/misc/maliit-framework/default.nix +++ b/pkgs/applications/misc/maliit-framework/default.nix @@ -66,9 +66,9 @@ mkDerivation rec { wayland-scanner ]; - preConfigure = '' - cmakeFlags+="-DQT5_PLUGINS_INSTALL_DIR=$out/$qtPluginPrefix" - ''; + cmakeFlags = [ + "-DQT5_PLUGINS_INSTALL_DIR=${placeholder "out"}/$qtPluginPrefix" + ]; meta = with lib; { description = "Core libraries of Maliit and server"; diff --git a/pkgs/applications/science/misc/boinc/default.nix b/pkgs/applications/science/misc/boinc/default.nix index b8b57857c02a..8e15dd6468b5 100644 --- a/pkgs/applications/science/misc/boinc/default.nix +++ b/pkgs/applications/science/misc/boinc/default.nix @@ -63,12 +63,14 @@ stdenv.mkDerivation rec { preConfigure = '' ./_autosetup - configureFlags="$configureFlags --sysconfdir=$out/etc" ''; enableParallelBuilding = true; - configureFlags = [ "--disable-server" ] ++ lib.optionals headless [ "--disable-manager" ]; + configureFlags = [ + "--disable-server" + "--sysconfdir=${placeholder "out"}/etc" + ] ++ lib.optionals headless [ "--disable-manager" ]; postInstall = '' install --mode=444 -D 'client/scripts/boinc-client.service' "$out/etc/systemd/system/boinc.service" diff --git a/pkgs/applications/version-management/monotone-viz/default.nix b/pkgs/applications/version-management/monotone-viz/default.nix index e8eac58e73f6..0e9cd4ddc59c 100644 --- a/pkgs/applications/version-management/monotone-viz/default.nix +++ b/pkgs/applications/version-management/monotone-viz/default.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { ]; preConfigure = '' - configureFlags="$configureFlags --with-lablgtk-dir=$(echo ${lablgtk}/lib/ocaml/*/site-lib/lablgtk2)" + appendToVar configureFlags "--with-lablgtk-dir=$(echo ${lablgtk}/lib/ocaml/*/site-lib/lablgtk2)" ''; postInstall = '' diff --git a/pkgs/applications/version-management/vcprompt/default.nix b/pkgs/applications/version-management/vcprompt/default.nix index d2ef35c9b668..f831003c6fa3 100644 --- a/pkgs/applications/version-management/vcprompt/default.nix +++ b/pkgs/applications/version-management/vcprompt/default.nix @@ -14,9 +14,12 @@ stdenv.mkDerivation rec { preConfigure = '' autoconf - makeFlags="$makeFlags PREFIX=$out" ''; + makeFlags = [ + "PREFIX=${placeholder "out"}" + ]; + meta = with lib; { description = '' A little C program that prints a short string with barebones information diff --git a/pkgs/applications/video/kodi/unwrapped.nix b/pkgs/applications/video/kodi/unwrapped.nix index 374837b01b38..116f01837bc8 100644 --- a/pkgs/applications/video/kodi/unwrapped.nix +++ b/pkgs/applications/video/kodi/unwrapped.nix @@ -214,10 +214,10 @@ in stdenv.mkDerivation (finalAttrs: { # Need these tools on the build system when cross compiling, # hacky, but have found no other way. CXX=$CXX_FOR_BUILD LD=ld make -C tools/depends/native/JsonSchemaBuilder - cmakeFlags+=" -DWITH_JSONSCHEMABUILDER=$PWD/tools/depends/native/JsonSchemaBuilder/bin" + appendToVar cmakeFlags "-DWITH_JSONSCHEMABUILDER=$PWD/tools/depends/native/JsonSchemaBuilder/bin" CXX=$CXX_FOR_BUILD LD=ld make EXTRA_CONFIGURE= -C tools/depends/native/TexturePacker - cmakeFlags+=" -DWITH_TEXTUREPACKER=$PWD/tools/depends/native/TexturePacker/bin" + appendToVar cmakeFlags "-DWITH_TEXTUREPACKER=$PWD/tools/depends/native/TexturePacker/bin" ''; postPatch = '' diff --git a/pkgs/build-support/release/binary-tarball.nix b/pkgs/build-support/release/binary-tarball.nix index aeaa8edb52be..17cea7678c04 100644 --- a/pkgs/build-support/release/binary-tarball.nix +++ b/pkgs/build-support/release/binary-tarball.nix @@ -48,7 +48,7 @@ stdenv.mkDerivation ( # Prefix hackery because of a bug in stdenv (it tries to `mkdir # $prefix', which doesn't work due to the DESTDIR). - configureFlags="--prefix=$prefix $configureFlags" + prependToVar configureFlags "--prefix=$prefix" dontAddPrefix=1 prefix=$TMPDIR/inst$prefix ''; diff --git a/pkgs/by-name/cl/cl-launch/package.nix b/pkgs/by-name/cl/cl-launch/package.nix index 35cfd01ff925..02bd24da1c42 100644 --- a/pkgs/by-name/cl/cl-launch/package.nix +++ b/pkgs/by-name/cl/cl-launch/package.nix @@ -9,10 +9,13 @@ stdenv.mkDerivation rec { }; preConfigure = '' - export makeFlags="$makeFlags PREFIX='$out'" mkdir -p "$out/bin" ''; + makeFlags = [ + "PREFIX=${placeholder "out"}" + ]; + preBuild = '' sed -e 's/\t\t@/\t\t/g' -i Makefile ''; diff --git a/pkgs/by-name/fl/fluxus/package.nix b/pkgs/by-name/fl/fluxus/package.nix index dfa518c5c574..ef3bdce4407c 100644 --- a/pkgs/by-name/fl/fluxus/package.nix +++ b/pkgs/by-name/fl/fluxus/package.nix @@ -58,10 +58,8 @@ stdenv.mkDerivation { "RacketInclude=${racket}/include/racket" "RacketLib=${racket}/lib/racket" "DESTDIR=build" + "Prefix=${placeholder "out"}" ]; - configurePhase = '' - sconsFlags+=" Prefix=$out" - ''; installPhase = '' mkdir -p $out cp -r build$out/* $out/ diff --git a/pkgs/by-name/gl/globulation2/package.nix b/pkgs/by-name/gl/globulation2/package.nix index a444f18335fc..a11dadb70dcd 100644 --- a/pkgs/by-name/gl/globulation2/package.nix +++ b/pkgs/by-name/gl/globulation2/package.nix @@ -51,11 +51,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ scons ]; buildInputs = [ libGLU libGL SDL SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ]; - postConfigure = '' - sconsFlags+=" BINDIR=$out/bin" - sconsFlags+=" INSTALLDIR=$out/share/globulation2" - sconsFlags+=" DATADIR=$out/share/globulation2/glob2" - ''; + sconsFlags = [ + "BINDIR=${placeholder "out"}/bin" + "INSTALLDIR=${placeholder "out"}/share/globulation2" + "DATADIR=${placeholder "out"}/share/globulation2/glob2" + ]; NIX_LDFLAGS = "-lboost_system"; diff --git a/pkgs/by-name/gp/gpsd/package.nix b/pkgs/by-name/gp/gpsd/package.nix index 4b9269ab6692..a259a22c940b 100644 --- a/pkgs/by-name/gp/gpsd/package.nix +++ b/pkgs/by-name/gp/gpsd/package.nix @@ -89,9 +89,6 @@ stdenv.mkDerivation rec { sed -e "s|systemd_dir = .*|systemd_dir = '$out/lib/systemd/system'|" -i SConscript export TAR=noop substituteInPlace SConscript --replace "env['CCVERSION']" "env['CC']" - - sconsFlags+=" udevdir=$out/lib/udev" - sconsFlags+=" python_libdir=$out/${python3Packages.python.sitePackages}" ''; # - leapfetch=no disables going online at build time to fetch leap-seconds @@ -102,6 +99,8 @@ stdenv.mkDerivation rec { "gpsd_group=${gpsdGroup}" "systemd=yes" "xgps=${if guiSupport then "True" else "False"}" + "udevdir=${placeholder "out"}/lib/udev" + "python_libdir=${placeholder "out"}/${python3Packages.python.sitePackages}" ]; preCheck = '' diff --git a/pkgs/by-name/gt/gt5/package.nix b/pkgs/by-name/gt/gt5/package.nix index 68b0e3197162..378ede59e42c 100644 --- a/pkgs/by-name/gt/gt5/package.nix +++ b/pkgs/by-name/gt/gt5/package.nix @@ -13,9 +13,9 @@ stdenv.mkDerivation rec { sed 's/-o root -g root//' -i Makefile ''; - preConfigure = '' - makeFlags="$makeFlags PREFIX=$out" - ''; + makeFlags = [ + "PREFIX=${placeholder "out"}" + ]; meta = { description = "Diff-capable 'du' browser"; diff --git a/pkgs/by-name/lx/lxdvdrip/package.nix b/pkgs/by-name/lx/lxdvdrip/package.nix index 32b533346dfd..fea6e319cc02 100644 --- a/pkgs/by-name/lx/lxdvdrip/package.nix +++ b/pkgs/by-name/lx/lxdvdrip/package.nix @@ -12,9 +12,12 @@ stdenv.mkDerivation rec { postPatch = '' sed -i -e s,/usr/local,$out, -e s,/etc,$out/etc,g Makefile sed -i -e s,/usr/local,$out, mbuffer/Makefile - makeFlags="$makeFlags PREFIX=$out" ''; + makeFlags = [ + "PREFIX=${placeholder "out"}" + ]; + preInstall = '' mkdir -p $out/man/man1 $out/bin $out/share $out/etc ''; diff --git a/pkgs/by-name/ne/netcdfcxx4/package.nix b/pkgs/by-name/ne/netcdfcxx4/package.nix index 606e8a86b0c3..378fe8ceccf0 100644 --- a/pkgs/by-name/ne/netcdfcxx4/package.nix +++ b/pkgs/by-name/ne/netcdfcxx4/package.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { ]; preConfigure = '' - cmakeFlags+="-Dabs_top_srcdir=$(readlink -f ./)" + appendToVar cmakeFlags "-Dabs_top_srcdir=$(readlink -f ./)" ''; nativeBuildInputs = [ cmake ninja ]; diff --git a/pkgs/by-name/nf/nfs-utils/package.nix b/pkgs/by-name/nf/nfs-utils/package.nix index 5f0e62b1b811..dd499fbf5397 100644 --- a/pkgs/by-name/nf/nfs-utils/package.nix +++ b/pkgs/by-name/nf/nfs-utils/package.nix @@ -42,7 +42,8 @@ stdenv.mkDerivation rec { ''; configureFlags = - [ "--enable-gss" + [ "--with-start-statd=${placeholder "out"}/bin/start-statd" + "--enable-gss" "--enable-svcgss" "--with-statedir=/var/lib/nfs" "--with-krb5=${lib.getLib libkrb5}" @@ -67,8 +68,6 @@ stdenv.mkDerivation rec { sed -i "s,/usr/sbin,$out/bin,g" utils/statd/statd.c sed -i "s,^PATH=.*,PATH=$out/bin:${statdPath}," utils/statd/start-statd - configureFlags="--with-start-statd=$out/bin/start-statd $configureFlags" - substituteInPlace systemd/nfs-utils.service \ --replace "/bin/true" "${coreutils}/bin/true" diff --git a/pkgs/by-name/np/np2kai/package.nix b/pkgs/by-name/np/np2kai/package.nix index 0fc56e284417..bea767d0ed07 100644 --- a/pkgs/by-name/np/np2kai/package.nix +++ b/pkgs/by-name/np/np2kai/package.nix @@ -124,7 +124,8 @@ stdenv.mkDerivation rec { configurePhase = '' export GIT_VERSION=${builtins.substring 0 7 src.rev} - buildFlags="$buildFlags ''${enableParallelBuilding:+-j$NIX_BUILD_CORES}" + '' + optionalString enableParallelBuilding '' + appendToVar buildFlags "-j$NIX_BUILD_CORES" '' + optionalString enableX11 '' cd x11 substituteInPlace Makefile.am \ diff --git a/pkgs/by-name/pa/pacparser/package.nix b/pkgs/by-name/pa/pacparser/package.nix index dfef255c15c9..82d24f99c6f4 100644 --- a/pkgs/by-name/pa/pacparser/package.nix +++ b/pkgs/by-name/pa/pacparser/package.nix @@ -11,10 +11,12 @@ stdenv.mkDerivation rec { sha256 = "sha256-X842+xPjM404aQJTc2JwqU4vq8kgyKhpnqVu70pNLks="; }; - makeFlags = [ "NO_INTERNET=1" ]; + makeFlags = [ + "NO_INTERNET=1" + "PREFIX=${placeholder "out"}" + ]; preConfigure = '' - export makeFlags="$makeFlags PREFIX=$out" patchShebangs tests/runtests.sh cd src ''; diff --git a/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh b/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh index 77322b245b27..822714636415 100644 --- a/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh +++ b/pkgs/by-name/pa/patchPpdFilesHook/patch-ppd-hook.sh @@ -174,7 +174,7 @@ patchPpdFileCommands () { # The end result might contain too many # propagated dependencies for multi-output packages, # but never a broken package. - propagatedBuildInputs+=("$path") + appendToVar propagatedBuildInputs "$path" done < sorted-dependencies fi diff --git a/pkgs/by-name/pu/pulseaudio-module-xrdp/package.nix b/pkgs/by-name/pu/pulseaudio-module-xrdp/package.nix index c83d08fc828f..5e62dd7a6386 100644 --- a/pkgs/by-name/pu/pulseaudio-module-xrdp/package.nix +++ b/pkgs/by-name/pu/pulseaudio-module-xrdp/package.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { mv pulseaudio-* pulseaudio-src chmod +w -Rv pulseaudio-src cp ${pulseaudio.dev}/include/pulse/config.h pulseaudio-src - configureFlags="$configureFlags PULSE_DIR=$(realpath ./pulseaudio-src)" + appendToVar configureFlags "PULSE_DIR=$(realpath ./pulseaudio-src)" ''; installPhase = '' diff --git a/pkgs/by-name/ro/rocksndiamonds/package.nix b/pkgs/by-name/ro/rocksndiamonds/package.nix index 4aa70ffa5334..633123165969 100644 --- a/pkgs/by-name/ro/rocksndiamonds/package.nix +++ b/pkgs/by-name/ro/rocksndiamonds/package.nix @@ -32,7 +32,7 @@ stdenv.mkDerivation rec { preBuild = '' dataDir="$out/share/rocksndiamonds" - makeFlags+="BASE_PATH=$dataDir" + appendToVar makeFlags "BASE_PATH=$dataDir" ''; installPhase = '' diff --git a/pkgs/by-name/rt/rt/package.nix b/pkgs/by-name/rt/rt/package.nix index 59933570d7b1..f73c6df494f9 100644 --- a/pkgs/by-name/rt/rt/package.nix +++ b/pkgs/by-name/rt/rt/package.nix @@ -123,12 +123,12 @@ stdenv.mkDerivation rec { echo rt-${version} > .tag ''; preConfigure = '' - configureFlags="$configureFlags --with-web-user=$UID" - configureFlags="$configureFlags --with-web-group=$(id -g)" - configureFlags="$configureFlags --with-rt-group=$(id -g)" - configureFlags="$configureFlags --with-bin-owner=$UID" - configureFlags="$configureFlags --with-libs-owner=$UID" - configureFlags="$configureFlags --with-libs-group=$(id -g)" + appendToVar configureFlags "--with-web-user=$UID" + appendToVar configureFlags "--with-web-group=$(id -g)" + appendToVar configureFlags "--with-rt-group=$(id -g)" + appendToVar configureFlags "--with-bin-owner=$UID" + appendToVar configureFlags "--with-libs-owner=$UID" + appendToVar configureFlags "--with-libs-group=$(id -g)" ''; configureFlags = [ "--enable-graphviz" diff --git a/pkgs/by-name/se/serf/package.nix b/pkgs/by-name/se/serf/package.nix index 07138596d05d..1bbfe31f9c41 100644 --- a/pkgs/by-name/se/serf/package.nix +++ b/pkgs/by-name/se/serf/package.nix @@ -37,13 +37,13 @@ stdenv.mkDerivation rec { prefixKey = "PREFIX="; preConfigure = '' - sconsFlags+=" APR=$(echo ${apr.dev}/bin/*-config)" - sconsFlags+=" APU=$(echo ${aprutil.dev}/bin/*-config)" - sconsFlags+=" CC=$CC" - sconsFlags+=" OPENSSL=${openssl}" - sconsFlags+=" ZLIB=${zlib}" + appendToVar sconsFlags "APR=$(echo ${apr.dev}/bin/*-config)" + appendToVar sconsFlags "APU=$(echo ${aprutil.dev}/bin/*-config)" + appendToVar sconsFlags "CC=$CC" + appendToVar sconsFlags "OPENSSL=${openssl}" + appendToVar sconsFlags "ZLIB=${zlib}" '' + lib.optionalString (!stdenv.hostPlatform.isCygwin) '' - sconsFlags+=" GSSAPI=${libkrb5.dev}" + appendToVar sconsFlags "GSSAPI=${libkrb5.dev}" ''; enableParallelBuilding = true; diff --git a/pkgs/by-name/si/silc_client/package.nix b/pkgs/by-name/si/silc_client/package.nix index 7a64e5cc1233..ae362b682674 100644 --- a/pkgs/by-name/si/silc_client/package.nix +++ b/pkgs/by-name/si/silc_client/package.nix @@ -19,11 +19,11 @@ stdenv.mkDerivation rec { hardeningDisable = [ "format" ]; - configureFlags = [ "--with-ncurses=${ncurses.dev}" ]; - - preConfigure = lib.optionalString enablePlugin '' - configureFlags="$configureFlags --with-silc-plugin=$out/lib/irssi" - ''; + configureFlags = [ + "--with-ncurses=${ncurses.dev}" + ] ++ lib.optionals enablePlugin [ + "--with-silc-plugin=${placeholder "out"}/lib/irssi" + ]; nativeBuildInputs = [ pkg-config ]; buildInputs = [ perl glib ncurses ]; diff --git a/pkgs/by-name/sp/spaceFM/package.nix b/pkgs/by-name/sp/spaceFM/package.nix index f7c7eac9a3a3..c2d90f513e10 100644 --- a/pkgs/by-name/sp/spaceFM/package.nix +++ b/pkgs/by-name/sp/spaceFM/package.nix @@ -30,12 +30,9 @@ stdenv.mkDerivation rec { configureFlags = [ "--with-bash-path=${pkgs.bash}/bin/bash" + "--sysconfdir=${placeholder "out"}/etc" ]; - preConfigure = '' - configureFlags="$configureFlags --sysconfdir=$out/etc" - ''; - postInstall = '' rm -f $out/etc/spacefm/spacefm.conf ln -s /etc/spacefm/spacefm.conf $out/etc/spacefm/spacefm.conf diff --git a/pkgs/by-name/tr/trigger/package.nix b/pkgs/by-name/tr/trigger/package.nix index 86b47f554193..7b661f642248 100644 --- a/pkgs/by-name/tr/trigger/package.nix +++ b/pkgs/by-name/tr/trigger/package.nix @@ -32,9 +32,12 @@ stdenv.mkDerivation rec { sed s,lSDL2main,lSDL2, -i GNUmakefile export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${SDL2.dev}/include/SDL2" - export makeFlags="$makeFlags prefix=$out" ''; + makeFlags = [ + "prefix=${placeholder "out"}" + ]; + enableParallelBuilding = true; postInstall = '' diff --git a/pkgs/by-name/ts/tsocks/package.nix b/pkgs/by-name/ts/tsocks/package.nix index c12f9a44ac6d..33a66d637860 100644 --- a/pkgs/by-name/ts/tsocks/package.nix +++ b/pkgs/by-name/ts/tsocks/package.nix @@ -14,9 +14,12 @@ stdenv.mkDerivation rec { preConfigure = '' sed -i -e "s,\\\/usr,"$(echo $out|sed -e "s,\\/,\\\\\\\/,g")",g" tsocks substituteInPlace tsocks --replace /usr $out - export configureFlags="$configureFlags --libdir=$out/lib" ''; + configureFlags = [ + "--libdir=${placeholder "out"}/lib" + ]; + preBuild = '' # We don't need the saveme binary, it is in fact never stored and we're # never injecting stuff into ld.so.preload anyway diff --git a/pkgs/by-name/un/unbound/package.nix b/pkgs/by-name/un/unbound/package.nix index c9d9a7a26cf6..6bb4dbe5f832 100644 --- a/pkgs/by-name/un/unbound/package.nix +++ b/pkgs/by-name/un/unbound/package.nix @@ -140,7 +140,8 @@ stdenv.mkDerivation (finalAttrs: { # Build libunbound again, but only against nettle instead of openssl. # This avoids gnutls.out -> unbound.lib -> lib.getLib openssl. '' - configureFlags="$configureFlags --with-nettle=${nettle.dev} --with-libunbound-only" + appendToVar configureFlags "--with-nettle=${nettle.dev}" + appendToVar configureFlags "--with-libunbound-only" configurePhase buildPhase if [ -n "$doCheck" ]; then diff --git a/pkgs/by-name/xl/xlockmore/package.nix b/pkgs/by-name/xl/xlockmore/package.nix index 37c864f87f41..4ef282631510 100644 --- a/pkgs/by-name/xl/xlockmore/package.nix +++ b/pkgs/by-name/xl/xlockmore/package.nix @@ -19,6 +19,7 @@ stdenv.mkDerivation rec { # fine via PAM without super user privileges. configureFlags = [ "--disable-setuid" + "--enable-appdefaultdir=${placeholder "out"}/share/X11/app-defaults" ] ++ (lib.optional (pam != null) "--enable-pam"); postPatch = @@ -27,7 +28,6 @@ stdenv.mkDerivation rec { in '' sed -i 's,\(for ac_dir in\),\1 ${inputs},' configure.ac sed -i 's,/usr/,/no-such-dir/,g' configure.ac - configureFlags+=" --enable-appdefaultdir=$out/share/X11/app-defaults" ''; hardeningDisable = [ "format" ]; # no build output otherwise diff --git a/pkgs/desktops/gnustep/make/default.nix b/pkgs/desktops/gnustep/make/default.nix index 32dda5f64838..eed342d4847c 100644 --- a/pkgs/desktops/gnustep/make/default.nix +++ b/pkgs/desktops/gnustep/make/default.nix @@ -17,12 +17,9 @@ stdenv.mkDerivation (finalAttrs: { configureFlags = [ "--with-layout=fhs-system" "--disable-install-p" + "--with-config-file=${placeholder "out"}/etc/GNUstep/GNUstep.conf" ]; - preConfigure = '' - configureFlags="$configureFlags --with-config-file=$out/etc/GNUstep/GNUstep.conf" - ''; - makeFlags = [ "GNUSTEP_INSTALLATION_DOMAIN=SYSTEM" ]; diff --git a/pkgs/desktops/plasma-5/default.nix b/pkgs/desktops/plasma-5/default.nix index 20c7904f9c0a..61ad804d8190 100644 --- a/pkgs/desktops/plasma-5/default.nix +++ b/pkgs/desktops/plasma-5/default.nix @@ -61,7 +61,7 @@ let postHooks+=("source @dev@/nix-support/setup-hook") else # Propagate $${out} output - propagatedUserEnvPkgs+=" @${out}@" + appendToVar propagatedUserEnvPkgs "@${out}@" if [ -z "$outputDev" ]; then echo "error: \$outputDev is unset!" >&2 @@ -71,7 +71,7 @@ let # Propagate $dev so that this setup hook is propagated # But only if there is a separate $dev output if [ "$outputDev" != out ]; then - propagatedBuildInputs+=" @dev@" + appendToVar propagatedBuildInputs "@dev@" fi fi ''; diff --git a/pkgs/development/compilers/gcc/common/builder.nix b/pkgs/development/compilers/gcc/common/builder.nix index 874a43a75f82..ccc4a2feff0b 100644 --- a/pkgs/development/compilers/gcc/common/builder.nix +++ b/pkgs/development/compilers/gcc/common/builder.nix @@ -185,7 +185,7 @@ originalAttrs: (stdenv.mkDerivation (finalAttrs: originalAttrs // { mkdir -p ../mingw # --with-build-sysroot expects that: cp -R $libcCross/include ../mingw - configureFlags="$configureFlags --with-build-sysroot=`pwd`/.." + appendToVar configureFlags "--with-build-sysroot=`pwd`/.." fi # Perform the build in a different directory. diff --git a/pkgs/development/cuda-modules/setup-hooks/setup-cuda-hook.sh b/pkgs/development/cuda-modules/setup-hooks/setup-cuda-hook.sh index 7799d72873a0..7586f9f4b414 100644 --- a/pkgs/development/cuda-modules/setup-hooks/setup-cuda-hook.sh +++ b/pkgs/development/cuda-modules/setup-hooks/setup-cuda-hook.sh @@ -112,7 +112,7 @@ propagateCudaLibraries() { local propagatedBuildInputs=( "${!cudaHostPathsSeen[@]}" ) for output in $(getAllOutputNames) ; do if [[ ! "$output" = "$cudaPropagateToOutput" ]] ; then - propagatedBuildInputs+=( "${!output}" ) + appendToVar propagatedBuildInputs "${!output}" fi break done diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 7a85abfba34e..5d579924bf3a 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -255,7 +255,7 @@ self: super: builtins.intersectAttrs super { jni = overrideCabal (drv: { preConfigure = '' local libdir=( "${pkgs.jdk}/lib/openjdk/jre/lib/"*"/server" ) - configureFlags+=" --extra-lib-dir=''${libdir[0]}" + appendToVar configureFlags "--extra-lib-dir=''${libdir[0]}" ''; }) super.jni; diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index eb7ea4cf76a2..34b3313674d6 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -478,13 +478,13 @@ stdenv.mkDerivation ({ for p in "''${pkgsHostHost[@]}" "''${pkgsHostTarget[@]}"; do ${buildPkgDb ghc "$packageConfDir"} if [ -d "$p/include" ]; then - configureFlags+=" --extra-include-dirs=$p/include" + appendToVar configureFlags "--extra-include-dirs=$p/include" fi if [ -d "$p/lib" ]; then - configureFlags+=" --extra-lib-dirs=$p/lib" + appendToVar configureFlags "--extra-lib-dirs=$p/lib" fi if [[ -d "$p/Library/Frameworks" ]]; then - configureFlags+=" --extra-framework-dirs=$p/Library/Frameworks" + appendToVar configureFlags "--extra-framework-dirs=$p/Library/Frameworks" fi '' + '' done diff --git a/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix b/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix index 2a77ef015015..4a691685a37a 100644 --- a/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix +++ b/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix @@ -83,7 +83,7 @@ in { generatePythonPackage { pname = "cyclic-dependencies"; preFixup = '' - propagatedBuildInputs+=("$out") + appendToVar propagatedBuildInputs "$out" ''; }; diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix index 09dde042848b..42ca8f70ff2e 100644 --- a/pkgs/development/libraries/glibc/common.nix +++ b/pkgs/development/libraries/glibc/common.nix @@ -224,6 +224,11 @@ stdenv.mkDerivation ({ inherit sha256; }; + makeFlags = lib.optionals (stdenv.cc.libc != null) [ + "BUILD_LDFLAGS=-Wl,-rpath,${stdenv.cc.libc}/lib" + "OBJDUMP=${stdenv.cc.bintools.bintools}/bin/objdump" + ]; + # Remove absolute paths from `configure' & co.; build out-of-tree. preConfigure = '' export PWD_P=$(type -tP pwd) @@ -237,12 +242,6 @@ stdenv.mkDerivation ({ cd ../build configureScript="`pwd`/../$sourceRoot/configure" - - ${lib.optionalString (stdenv.cc.libc != null) - ''makeFlags="$makeFlags BUILD_LDFLAGS=-Wl,-rpath,${stdenv.cc.libc}/lib OBJDUMP=${stdenv.cc.bintools.bintools}/bin/objdump"'' - } - - '' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' sed -i s/-lgcc_eh//g "../$sourceRoot/Makeconfig" diff --git a/pkgs/development/libraries/grantlee/5/setup-hook.sh b/pkgs/development/libraries/grantlee/5/setup-hook.sh index b51cb4a31909..1f57c38eb89a 100644 --- a/pkgs/development/libraries/grantlee/5/setup-hook.sh +++ b/pkgs/development/libraries/grantlee/5/setup-hook.sh @@ -6,8 +6,8 @@ providesGrantleeRuntime() { _grantleeEnvHook() { if providesGrantleeRuntime "$1"; then - propagatedBuildInputs+=" $1" - propagatedUserEnvPkgs+=" $1" + appendToVar propagatedBuildInputs "$1" + appendToVar propagatedUserEnvPkgs "$1" fi } addEnvHooks "$hostOffset" _grantleeEnvHook diff --git a/pkgs/development/libraries/kde-frameworks/default.nix b/pkgs/development/libraries/kde-frameworks/default.nix index cc87ec2afa57..e751d8b40b03 100644 --- a/pkgs/development/libraries/kde-frameworks/default.nix +++ b/pkgs/development/libraries/kde-frameworks/default.nix @@ -52,7 +52,7 @@ let # Propagate $dev so that this setup hook is propagated # But only if there is a separate $dev output if [ "''${outputDev:?}" != out ]; then - propagatedBuildInputs="''${propagatedBuildInputs-} @dev@" + appendToVar propagatedBuildInputs "@dev@" fi fi ''; diff --git a/pkgs/development/libraries/kde-frameworks/extra-cmake-modules/setup-hook.sh b/pkgs/development/libraries/kde-frameworks/extra-cmake-modules/setup-hook.sh index e576dbb4ec73..abf330fd9662 100644 --- a/pkgs/development/libraries/kde-frameworks/extra-cmake-modules/setup-hook.sh +++ b/pkgs/development/libraries/kde-frameworks/extra-cmake-modules/setup-hook.sh @@ -111,7 +111,7 @@ ecmHostPathHook() { if [ -d "$1/dbus-1" ] then - propagatedUserEnvPkgs+=" $1" + appendToVar propagatedUserEnvPkgs "$1" fi } addEnvHooks "$targetOffset" ecmHostPathHook diff --git a/pkgs/development/libraries/phonon/default.nix b/pkgs/development/libraries/phonon/default.nix index 58cd0245d052..9068c5f67d53 100644 --- a/pkgs/development/libraries/phonon/default.nix +++ b/pkgs/development/libraries/phonon/default.nix @@ -62,9 +62,9 @@ stdenv.mkDerivation rec { dontWrapQtApps = true; preConfigure = '' - cmakeFlags+=" -DPHONON_QT_MKSPECS_INSTALL_DIR=''${!outputDev}/mkspecs" - cmakeFlags+=" -DPHONON_QT_IMPORTS_INSTALL_DIR=''${!outputBin}/$qtQmlPrefix" - cmakeFlags+=" -DPHONON_QT_PLUGIN_INSTALL_DIR=''${!outputBin}/$qtPluginPrefix/designer" + appendToVar cmakeFlags "-DPHONON_QT_MKSPECS_INSTALL_DIR=''${!outputDev}/mkspecs" + appendToVar cmakeFlags "-DPHONON_QT_IMPORTS_INSTALL_DIR=''${!outputBin}/$qtQmlPrefix" + appendToVar cmakeFlags "-DPHONON_QT_PLUGIN_INSTALL_DIR=''${!outputBin}/$qtPluginPrefix/designer" ''; postPatch = '' diff --git a/pkgs/development/libraries/qt-5/hooks/qtbase-setup-hook.sh b/pkgs/development/libraries/qt-5/hooks/qtbase-setup-hook.sh index 1b189d24d9ee..1a9b94032868 100644 --- a/pkgs/development/libraries/qt-5/hooks/qtbase-setup-hook.sh +++ b/pkgs/development/libraries/qt-5/hooks/qtbase-setup-hook.sh @@ -72,7 +72,7 @@ qtEnvHostTargetHook() { qtEnvHostTargetSeen[$1]=1 if providesQtRuntime "$1" && [ "z${!outputBin}" != "z${!outputDev}" ] then - propagatedBuildInputs+=" $1" + appendToVar propagatedBuildInputs "$1" fi } envHostTargetHooks+=(qtEnvHostTargetHook) diff --git a/pkgs/development/python-modules/numpy/1.nix b/pkgs/development/python-modules/numpy/1.nix index 795f24e5eefa..fad35559c9ed 100644 --- a/pkgs/development/python-modules/numpy/1.nix +++ b/pkgs/development/python-modules/numpy/1.nix @@ -126,7 +126,7 @@ buildPythonPackage rec { # HACK: copy mesonEmulatorHook's flags to the variable used by meson-python postConfigure = '' - mesonFlags="$mesonFlags ''${mesonFlagsArray[@]}" + concatTo mesonFlags mesonFlagsArray ''; preBuild = '' diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix index bbf8acbb3292..db4d1fcc63ee 100644 --- a/pkgs/development/python-modules/numpy/2.nix +++ b/pkgs/development/python-modules/numpy/2.nix @@ -103,7 +103,7 @@ buildPythonPackage rec { # HACK: copy mesonEmulatorHook's flags to the variable used by meson-python postConfigure = '' - mesonFlags="$mesonFlags ''${mesonFlagsArray[@]}" + concatTo mesonFlags mesonFlagsArray ''; buildInputs = [ diff --git a/pkgs/development/tools/analysis/rr/zen_workaround.nix b/pkgs/development/tools/analysis/rr/zen_workaround.nix index 4410224e8454..f69fdcf3b638 100644 --- a/pkgs/development/tools/analysis/rr/zen_workaround.nix +++ b/pkgs/development/tools/analysis/rr/zen_workaround.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation { "-C${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ]; postConfigure = '' - makeFlags="$makeFlags M=$(pwd)" + appendToVar makeFlags "M=$(pwd)" ''; buildFlags = [ "modules" ]; diff --git a/pkgs/development/tools/analysis/sparse/default.nix b/pkgs/development/tools/analysis/sparse/default.nix index 497d571cf14c..38adbe4d8377 100644 --- a/pkgs/development/tools/analysis/sparse/default.nix +++ b/pkgs/development/tools/analysis/sparse/default.nix @@ -14,9 +14,12 @@ in stdenv.mkDerivation rec { preConfigure = '' sed -i 's|"/usr/include"|"${stdenv.cc.libc.dev}/include"|' pre-process.c sed -i 's|qx(\$ccom -print-file-name=)|"${GCC_BASE}"|' cgcc - makeFlags+=" PREFIX=$out" ''; + makeFlags = [ + "PREFIX=${placeholder "out"}" + ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [ gtk3 libxml2 llvm perl sqlite ]; doCheck = true; diff --git a/pkgs/development/tools/misc/luarocks/default.nix b/pkgs/development/tools/misc/luarocks/default.nix index b15924b34f3c..db85fdef01c4 100644 --- a/pkgs/development/tools/misc/luarocks/default.nix +++ b/pkgs/development/tools/misc/luarocks/default.nix @@ -50,12 +50,12 @@ stdenv.mkDerivation (finalAttrs: { lua -e "" || { luajit -e "" && { export LUA_SUFFIX=jit - configureFlags="$configureFlags --lua-suffix=$LUA_SUFFIX" + appendToVar configureFlags "--lua-suffix=$LUA_SUFFIX" } } lua_inc="$(echo "${lua}/include"/*/)" if test -n "$lua_inc"; then - configureFlags="$configureFlags --with-lua-include=$lua_inc" + appendToVar configureFlags "--with-lua-include=$lua_inc" fi ''; diff --git a/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh b/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh index c635816777f5..85ba59faf8df 100644 --- a/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh +++ b/pkgs/kde/frameworks/extra-cmake-modules/ecm-hook.sh @@ -107,7 +107,7 @@ ecmHostPathHook() { if [ -d "$1/share/dbus-1" ] then - propagatedUserEnvPkgs+=" $1" + appendToVar propagatedUserEnvPkgs "$1" fi } addEnvHooks "$hostOffset" ecmHostPathHook diff --git a/pkgs/os-specific/bsd/freebsd/pkgs/bin.nix b/pkgs/os-specific/bsd/freebsd/pkgs/bin.nix index 2b2738ec5794..d287834dcd55 100644 --- a/pkgs/os-specific/bsd/freebsd/pkgs/bin.nix +++ b/pkgs/os-specific/bsd/freebsd/pkgs/bin.nix @@ -81,7 +81,7 @@ mkDerivation { ''; preInstall = '' - makeFlags="$makeFlags ROOTDIR=$out/root" + appendToVar makeFlags "ROOTDIR=$out/root" ''; outputs = [ diff --git a/pkgs/servers/nosql/mongodb/mongodb.nix b/pkgs/servers/nosql/mongodb/mongodb.nix index 37fc0a2e8a57..bd7f8ae61ec2 100644 --- a/pkgs/servers/nosql/mongodb/mongodb.nix +++ b/pkgs/servers/nosql/mongodb/mongodb.nix @@ -136,12 +136,12 @@ in stdenv.mkDerivation rec { hardeningDisable = [ "fortify3" ]; preBuild = '' - sconsFlags+=" CC=$CC" - sconsFlags+=" CXX=$CXX" + appendToVar sconsFlags "CC=$CC" + appendToVar sconsFlags "CXX=$CXX" '' + lib.optionalString (!stdenv.hostPlatform.isDarwin) '' - sconsFlags+=" AR=$AR" + appendToVar sconsFlags "AR=$AR" '' + lib.optionalString stdenv.hostPlatform.isAarch64 '' - sconsFlags+=" CCFLAGS='-march=armv8-a+crc'" + appendToVar sconsFlags "CCFLAGS=-march=armv8-a+crc" ''; preInstall = '' diff --git a/pkgs/servers/x11/xorg/builder.sh b/pkgs/servers/x11/xorg/builder.sh index 833acf43a5b0..1ed163690f89 100644 --- a/pkgs/servers/x11/xorg/builder.sh +++ b/pkgs/servers/x11/xorg/builder.sh @@ -21,14 +21,14 @@ postInstall() { for p in "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}"; do if test -e $p/lib/pkgconfig/$r.pc; then echo " found requisite $r in $p" - propagatedBuildInputs+=" $p" + appendToVar propagatedBuildInputs "$p" fi done done } -installFlags="appdefaultdir=$out/share/X11/app-defaults $installFlags" +prependToVar installFlags "appdefaultdir=$out/share/X11/app-defaults" if test -n "$x11BuildHook"; then diff --git a/pkgs/tools/typesetting/tex/nix/run-latex.sh b/pkgs/tools/typesetting/tex/nix/run-latex.sh index 3f8a16580ea5..9c1807687284 100644 --- a/pkgs/tools/typesetting/tex/nix/run-latex.sh +++ b/pkgs/tools/typesetting/tex/nix/run-latex.sh @@ -99,7 +99,7 @@ fi if test -f $rootNameBase.idx; then echo "MAKING INDEX..." if test -n "$compressBlanksInIndex"; then - makeindexFlags="$makeindexFlags -c" + appendToVar makeindexFlags "-c" fi makeindex $makeindexFlags $rootNameBase.idx runNeeded=1 From 7e6c1813fe3165969ba1e909501ce19133f2edc9 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 20:23:32 +0000 Subject: [PATCH 590/693] ossia-score: 3.2.4 -> 3.3.2 Includes fixes for GCC 14. --- pkgs/by-name/os/ossia-score/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/os/ossia-score/package.nix b/pkgs/by-name/os/ossia-score/package.nix index ee8e0a99a948..ad4a5a731e1b 100644 --- a/pkgs/by-name/os/ossia-score/package.nix +++ b/pkgs/by-name/os/ossia-score/package.nix @@ -43,13 +43,13 @@ clangStdenv.mkDerivation (finalAttrs: { pname = "ossia-score"; - version = "3.2.4"; + version = "3.3.2"; src = fetchFromGitHub { owner = "ossia"; repo = "score"; rev = "v${finalAttrs.version}"; - hash = "sha256-O9v7hhBHVi4OuuCebG3bvjp/MOYu1iPv+lji/wS4O7o="; + hash = "sha256-RMPsZIUZNWnnezxdZhW9oA0Cprb89NQhpwX9THHYN4M="; fetchSubmodules = true; }; From 8cdcf95de96ab031671131eba3314f2b049e14ea Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 20:23:32 +0000 Subject: [PATCH 591/693] ossia-score: unpin Boost --- pkgs/by-name/os/ossia-score/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/os/ossia-score/package.nix b/pkgs/by-name/os/ossia-score/package.nix index ad4a5a731e1b..bce8a7b33fd4 100644 --- a/pkgs/by-name/os/ossia-score/package.nix +++ b/pkgs/by-name/os/ossia-score/package.nix @@ -8,7 +8,7 @@ , avahi , avahi-compat , bluez -, boost185 +, boost , fmt , ffmpeg , fftw @@ -57,7 +57,7 @@ clangStdenv.mkDerivation (finalAttrs: { buildInputs = [ alsa-lib - boost185 + boost avahi avahi-compat bluez From 989a9e84a518835487d8245375e3008abacda400 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 03:13:50 +0000 Subject: [PATCH 592/693] localproxy: unpin Boost --- pkgs/by-name/lo/localproxy/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/lo/localproxy/package.nix b/pkgs/by-name/lo/localproxy/package.nix index f693bcb12c04..895f8796fe40 100644 --- a/pkgs/by-name/lo/localproxy/package.nix +++ b/pkgs/by-name/lo/localproxy/package.nix @@ -6,11 +6,11 @@ , openssl , protobuf_21 , catch2 -, boost181 +, boost , icu }: let - boost = boost181.override { enableStatic = true; }; + boost' = boost.override { enableStatic = true; }; protobuf = protobuf_21.override { enableShared = false; }; in stdenv.mkDerivation (finalAttrs: { @@ -34,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ]; - buildInputs = [ openssl protobuf catch2 boost icu ]; + buildInputs = [ openssl protobuf catch2 boost' icu ]; postPatch = '' sed -i '/set(OPENSSL_USE_STATIC_LIBS TRUE)/d' CMakeLists.txt From b15f8dd1a502cde4e632f4d51d1d184702c95761 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 03:14:05 +0000 Subject: [PATCH 593/693] nheko: unpin Boost --- pkgs/by-name/nh/nheko/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/nh/nheko/package.nix b/pkgs/by-name/nh/nheko/package.nix index 2e1bf3126d75..e9e0a5141818 100644 --- a/pkgs/by-name/nh/nheko/package.nix +++ b/pkgs/by-name/nh/nheko/package.nix @@ -5,7 +5,7 @@ cmake, asciidoc, pkg-config, - boost179, + boost, cmark, coeurl, curl, @@ -45,7 +45,7 @@ stdenv.mkDerivation rec { buildInputs = [ - boost179 + boost cmark coeurl curl From ba861095f9473396d1024da194ee5c1b8acd8910 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 03:14:20 +0000 Subject: [PATCH 594/693] quantlib: unpin Boost --- pkgs/by-name/qu/quantlib/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/qu/quantlib/package.nix b/pkgs/by-name/qu/quantlib/package.nix index aad65c6045db..0bd608ceb728 100644 --- a/pkgs/by-name/qu/quantlib/package.nix +++ b/pkgs/by-name/qu/quantlib/package.nix @@ -2,7 +2,7 @@ , stdenv , fetchFromGitHub , cmake -, boost186 # (boost181) breaks on darwin +, boost }: stdenv.mkDerivation (finalAttrs: { @@ -19,7 +19,7 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ cmake ]; - buildInputs = [ boost186 ]; + buildInputs = [ boost ]; # Required by RQuantLib, may be beneficial for others too cmakeFlags = [ "-DQL_HIGH_RESOLUTION_DATE=ON" ]; From e45f423d2ec9c82bf94df77fbac1cf3631a93f7f Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 03:14:35 +0000 Subject: [PATCH 595/693] sv-lang: unpin Boost --- pkgs/by-name/sv/sv-lang/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sv/sv-lang/package.nix b/pkgs/by-name/sv/sv-lang/package.nix index 2bc5059b8b80..87a4573cb6d8 100644 --- a/pkgs/by-name/sv/sv-lang/package.nix +++ b/pkgs/by-name/sv/sv-lang/package.nix @@ -1,7 +1,7 @@ { lib , stdenv , fetchFromGitHub -, boost182 +, boost , catch2_3 , cmake , ninja @@ -53,7 +53,7 @@ stdenv.mkDerivation rec { buildInputs = [ unordered_dense - boost182 + boost fmt_9 # though only used in tests, cmake will complain its absence when configuring catch2_3 From 4b3e26348014280fc39272fb665146f4dd6b2262 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 03:37:53 +0000 Subject: [PATCH 596/693] {nixf,nixt,nixd}: unpin Boost --- pkgs/development/tools/language-servers/nixd/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/language-servers/nixd/default.nix b/pkgs/development/tools/language-servers/nixd/default.nix index 5a2956984eae..59ff96a3f42f 100644 --- a/pkgs/development/tools/language-servers/nixd/default.nix +++ b/pkgs/development/tools/language-servers/nixd/default.nix @@ -3,7 +3,7 @@ stdenv, fetchFromGitHub, cmake, - boost182, + boost, gtest, llvmPackages, meson, @@ -72,7 +72,7 @@ in buildInputs = [ gtest - boost182 + boost nlohmann_json ]; @@ -103,7 +103,7 @@ in buildInputs = [ nix gtest - boost182 + boost ]; env.CXXFLAGS = "-include ${nix.dev}/include/nix/config.h"; @@ -132,7 +132,7 @@ in nixt llvmPackages.llvm gtest - boost182 + boost ]; nativeBuildInputs = common.nativeBuildInputs ++ [ cmake ]; From 06b0d517259494f846af667671e126fa9168f1f6 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 03:46:55 +0000 Subject: [PATCH 597/693] zcash: unpin Boost --- pkgs/applications/blockchains/zcash/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/blockchains/zcash/default.nix b/pkgs/applications/blockchains/zcash/default.nix index f2c3cc7a065f..d1764ee8f78a 100644 --- a/pkgs/applications/blockchains/zcash/default.nix +++ b/pkgs/applications/blockchains/zcash/default.nix @@ -1,4 +1,4 @@ -{ autoreconfHook, boost180, cargo, coreutils, curl, cxx-rs, db62, fetchFromGitHub +{ autoreconfHook, boost, cargo, coreutils, curl, cxx-rs, db62, fetchFromGitHub , git, hexdump, lib, libevent, libsodium, makeWrapper, rustPlatform , pkg-config, Security, stdenv, testers, tl-expected, utf8cpp, util-linux, zcash, zeromq }: @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage.override { inherit stdenv; } rec { nativeBuildInputs = [ autoreconfHook cargo cxx-rs git hexdump makeWrapper pkg-config ]; buildInputs = [ - boost180 + boost db62 libevent libsodium @@ -56,7 +56,7 @@ rustPlatform.buildRustPackage.override { inherit stdenv; } rec { configureFlags = [ "--disable-tests" - "--with-boost-libdir=${lib.getLib boost180}/lib" + "--with-boost-libdir=${lib.getLib boost}/lib" "RUST_TARGET=${stdenv.hostPlatform.rust.rustcTargetSpec}" ]; From bf46289766e0de417ffe4d1086f6cff2a4e31d65 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 04:04:41 +0000 Subject: [PATCH 598/693] snapcast: unpin Boost --- pkgs/applications/audio/snapcast/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/snapcast/default.nix b/pkgs/applications/audio/snapcast/default.nix index 821cda32e977..4fd1d1fec9bd 100644 --- a/pkgs/applications/audio/snapcast/default.nix +++ b/pkgs/applications/audio/snapcast/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchFromGitHub, cmake, pkg-config -, alsa-lib, asio, avahi, boost179, flac, libogg, libvorbis, libopus, soxr +, alsa-lib, asio, avahi, boost, flac, libogg, libvorbis, libopus, soxr , IOKit, AudioToolbox , aixlog, popl , pulseaudioSupport ? false, libpulseaudio @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { # snapcast also supports building against tremor but as we have libogg, that's # not needed buildInputs = [ - boost179 + boost asio avahi flac libogg libvorbis libopus aixlog popl soxr ] ++ lib.optional pulseaudioSupport libpulseaudio From 8f79887fa1823bd3b0e7bb86c86d4e8f49b48a53 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 04:57:24 +0000 Subject: [PATCH 599/693] emilua: unpin Boost --- pkgs/development/interpreters/emilua/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/emilua/default.nix b/pkgs/development/interpreters/emilua/default.nix index 22affc8b9add..366782276241 100644 --- a/pkgs/development/interpreters/emilua/default.nix +++ b/pkgs/development/interpreters/emilua/default.nix @@ -9,7 +9,7 @@ gperf, gawk, pkg-config, - boost182, + boost, fmt, luajit_openresty, ncurses, @@ -47,8 +47,6 @@ let EOF ''; }; - - boost = boost182; in stdenv.mkDerivation (self: { From 4a7266d952af42044d8ef6972786decb0167a4f3 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 05:03:06 +0000 Subject: [PATCH 600/693] libpulsar: unpin Boost --- pkgs/development/libraries/libpulsar/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libpulsar/default.nix b/pkgs/development/libraries/libpulsar/default.nix index f083ef041457..9e227f92ded0 100644 --- a/pkgs/development/libraries/libpulsar/default.nix +++ b/pkgs/development/libraries/libpulsar/default.nix @@ -1,7 +1,7 @@ { lib , asioSupport ? true , asio -, boost180 +, boost , log4cxxSupport ? false , log4cxx , snappySupport ? false @@ -41,7 +41,7 @@ let ++ lib.optional zstdSupport zstd ++ lib.optional log4cxxSupport log4cxx ++ lib.optional asioSupport asio - ++ lib.optional (!asioSupport) boost180; + ++ lib.optional (!asioSupport) boost; in stdenv.mkDerivation (finalAttrs: rec { From b54dcbddce1c18f54927594fd17ce3016c7ec9b0 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 05:10:31 +0000 Subject: [PATCH 601/693] postgresqlPackages.apache_datasketches: unpin Boost --- pkgs/servers/sql/postgresql/ext/apache_datasketches.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/apache_datasketches.nix b/pkgs/servers/sql/postgresql/ext/apache_datasketches.nix index 46b5fac3852b..23bccca34ab2 100644 --- a/pkgs/servers/sql/postgresql/ext/apache_datasketches.nix +++ b/pkgs/servers/sql/postgresql/ext/apache_datasketches.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, postgresql, boost182, postgresqlTestExtension, buildPostgresqlExtension }: +{ stdenv, lib, fetchFromGitHub, postgresql, boost, postgresqlTestExtension, buildPostgresqlExtension }: let version = "1.7.0"; @@ -28,7 +28,7 @@ buildPostgresqlExtension (finalAttrs: { sourceRoot = main_src.name; - buildInputs = [ boost182 ]; + buildInputs = [ boost ]; patchPhase = '' runHook prePatch From 84fdfde3835719eefeeaa3e68cf7009f400848b2 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 06:07:00 +0000 Subject: [PATCH 602/693] osl: unpin Boost --- pkgs/top-level/all-packages.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 71757dfc349b..d17a46398ee9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4769,7 +4769,6 @@ with pkgs; }; osl = libsForQt5.callPackage ../development/compilers/osl { - boost = boost179; libclang = llvmPackages_15.libclang; clang = clang_15; llvm = llvm_15; From cf10dfe614008c2fa80822b7ff32375d7bdbd111 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 24 Nov 2024 04:24:35 +0000 Subject: [PATCH 603/693] hpx: unpin Boost --- pkgs/top-level/all-packages.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d17a46398ee9..fd1b214c97be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9569,10 +9569,7 @@ with pkgs; autoreconfHook = buildPackages.autoreconfHook269; }; - hpx = callPackage ../development/libraries/hpx { - boost = boost179; - asio = asio.override { boost = boost179; }; - }; + hpx = callPackage ../development/libraries/hpx { }; hspell = callPackage ../development/libraries/hspell { }; From 24c494a78ea30f797515929871418ad96ab02be8 Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Sat, 23 Nov 2024 11:53:25 +0100 Subject: [PATCH 604/693] libsForQt5.qt5.qtwebengine: fix build with clang --- pkgs/development/libraries/qt-5/5.15/default.nix | 9 +++++++++ pkgs/development/libraries/qt-5/modules/qtwebengine.nix | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/pkgs/development/libraries/qt-5/5.15/default.nix b/pkgs/development/libraries/qt-5/5.15/default.nix index b94be6d893d2..7c84a97c4d7c 100644 --- a/pkgs/development/libraries/qt-5/5.15/default.nix +++ b/pkgs/development/libraries/qt-5/5.15/default.nix @@ -176,6 +176,15 @@ let # See: https://bugreports.qt.io/browse/QTBUG-124375 # Backport of: https://code.qt.io/cgit/qt/qtwebengine-chromium.git/commit/?id=a766045f65f934df3b5f1aa63bc86fbb3e003a09 ./qtwebengine-ninja-1.12.patch + # 5.15.17: Fixes 'converts to incompatible function type [-Werror,-Wcast-function-type-strict]' + # in chromium harfbuzz dependency. This may be removed again if harfbuzz is updated + # to include the upstream fixes: https://github.com/harfbuzz/harfbuzz/commit/d88269c827895b38f99f7cf741fa60210d4d5169 + # See https://trac.macports.org/ticket/70850 + (fetchpatch { + url = "https://github.com/macports/macports-ports/raw/dd7bc40d8de48c762bf9757ce0a0672840c5d8c2/aqua/qt5/files/patch-qtwebengine_hb-ft.cc_error.diff"; + sha256 = "sha256-8/CYjGM5n2eJ6sG+ODTa8fPaxZSDVyKuInpc3IlZuyc="; + extraPrefix = ""; + }) ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ ./qtwebengine-darwin-no-platform-check.patch ./qtwebengine-mac-dont-set-dsymutil-path.patch diff --git a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix index 38ad37fc0364..b5768a3da351 100644 --- a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix @@ -173,6 +173,10 @@ qtModule ({ "-march=westmere" ] ++ lib.optionals stdenv.cc.isClang [ "-Wno-elaborated-enum-base" + # 5.15.17: need to silence these two warnings + # https://trac.macports.org/ticket/70850 + "-Wno-enum-constexpr-conversion" + "-Wno-unused-but-set-variable" ]); } // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) { NIX_CFLAGS_LINK = "-Wl,--no-warn-search-mismatch"; From ea4669590bbd2a628329612b780caa55b80421bb Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 24 Nov 2024 08:02:05 +0000 Subject: [PATCH 605/693] boost184: drop --- pkgs/development/libraries/boost/1.84.nix | 14 -------------- pkgs/development/libraries/boost/default.nix | 1 - pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 1 - 4 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 pkgs/development/libraries/boost/1.84.nix diff --git a/pkgs/development/libraries/boost/1.84.nix b/pkgs/development/libraries/boost/1.84.nix deleted file mode 100644 index bfcfdfbfd7cf..000000000000 --- a/pkgs/development/libraries/boost/1.84.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ callPackage, fetchurl, ... } @ args: - -callPackage ./generic.nix (args // rec { - version = "1.84.0"; - - src = fetchurl { - urls = [ - "mirror://sourceforge/boost/boost_${builtins.replaceStrings ["."] ["_"] version}.tar.bz2" - "https://boostorg.jfrog.io/artifactory/main/release/${version}/source/boost_${builtins.replaceStrings ["."] ["_"] version}.tar.bz2" - ]; - # SHA256 from http://www.boost.org/users/history/version_1_84_0.html - sha256 = "cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454"; - }; -}) diff --git a/pkgs/development/libraries/boost/default.nix b/pkgs/development/libraries/boost/default.nix index fed5dbe834c3..fed80576423b 100644 --- a/pkgs/development/libraries/boost/default.nix +++ b/pkgs/development/libraries/boost/default.nix @@ -24,7 +24,6 @@ in { boost181 = makeBoost ./1.81.nix; boost182 = makeBoost ./1.82.nix; boost183 = makeBoost ./1.83.nix; - boost184 = makeBoost ./1.84.nix; boost185 = makeBoost ./1.85.nix; boost186 = makeBoost ./1.86.nix; } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 19452729ad19..cf942e1f2967 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -157,6 +157,7 @@ mapAliases { blockbench-electron = blockbench; # Added 2024-03-16 bloom = throw "'bloom' has been removed because it was unmaintained upstream."; # Added 2024-11-02 bmap-tools = bmaptool; # Added 2024-08-05 + boost184 = throw "Boost 1.84 has been removed as it is obsolete and no longer used by anything in Nixpkgs"; # Added 2024-11-24 boost_process = throw "boost_process has been removed as it is included in regular boost"; # Added 2024-05-01 bpb = throw "bpb has been removed as it is unmaintained and not compatible with recent Rust versions"; # Added 2024-04-30 bpftool = throw "'bpftool' has been renamed to/replaced by 'bpftools'"; # Converted to throw 2024-10-17 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2cf2079412b4..37990657c57d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8851,7 +8851,6 @@ with pkgs; boost181 boost182 boost183 - boost184 boost185 boost186 ; From efff65834a789ddf58e1dc2a60568e1a5dfccd17 Mon Sep 17 00:00:00 2001 From: Emily Date: Sat, 23 Nov 2024 23:40:01 +0000 Subject: [PATCH 606/693] superlu: 5.2.1 -> 7.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Includes fixes for GCC 14. Also addresses non‐free code already removed by Debian. If there’s demand for this functionality it could be re‐added under a flag. --- pkgs/by-name/su/superlu/package.nix | 63 ++++++++++++++++++----------- 1 file changed, 39 insertions(+), 24 deletions(-) diff --git a/pkgs/by-name/su/superlu/package.nix b/pkgs/by-name/su/superlu/package.nix index 4f52c2d6c507..9d9dfa5fe3d3 100644 --- a/pkgs/by-name/su/superlu/package.nix +++ b/pkgs/by-name/su/superlu/package.nix @@ -1,44 +1,59 @@ -{ lib, stdenv, fetchurl, cmake, +{ lib, stdenv, fetchFromGitHub, fetchurl, cmake, ninja, gfortran, blas, lapack}: assert (!blas.isILP64) && (!lapack.isILP64); -stdenv.mkDerivation rec { - version = "5.2.1"; +stdenv.mkDerivation (finalAttrs: { pname = "superlu"; + version = "7.0.0"; - src = fetchurl { - url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_${version}.tar.gz"; - sha256 = "0qzlb7cd608q62kyppd0a8c65l03vrwqql6gsm465rky23b6dyr8"; + src = fetchFromGitHub { + owner = "xiaoyeli"; + repo = "superlu"; + rev = "refs/tags/v${finalAttrs.version}"; + # Remove non‐free files. + # + # See: + # * + # * + # * + postFetch = "rm $out/SRC/mc64ad.* $out/DOC/*.pdf"; + hash = "sha256-iJiVyY+/vr6kll8FCunvZ8rKBj+w+Rnj4F696XW9xFc="; }; - nativeBuildInputs = [ cmake gfortran ]; + patches = [ + (fetchurl { + url = "https://salsa.debian.org/science-team/superlu/-/raw/fae141179928d1cc5a8e381503e8b1264d297c3d/debian/patches/mc64ad-stub.patch"; + hash = "sha256-QUaNUDaRghTqr6jk1TE6a7CdXABqu7xAkYZDhL/lZBQ="; + }) + ]; + + nativeBuildInputs = [ cmake ninja gfortran ]; propagatedBuildInputs = [ blas ]; cmakeFlags = [ - "-DBUILD_SHARED_LIBS=true" - "-DUSE_XSDK_DEFAULTS=true" - ]; - - env = lib.optionalAttrs stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = toString [ - "-Wno-error=implicit-function-declaration" - "-Wno-error=implicit-int" - ]; - }; - - patches = [ - ./add-superlu-lib-as-dependency-for-the-unit-tests.patch + (lib.cmakeBool "BUILD_SHARED_LIBS" true) + (lib.cmakeBool "enable_fortran" true) ]; doCheck = true; - checkTarget = "test"; meta = { - homepage = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/"; - license = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt"; + homepage = "https://portal.nersc.gov/project/sparse/superlu/"; + license = [ + lib.licenses.bsd3Lbnl + + # Xerox code; actually `Boehm-GC` variant. + lib.licenses.mit + + # University of Minnesota example files. + lib.licenses.gpl2Plus + + # University of Florida code; permissive COLAMD licence. + lib.licenses.free + ]; description = "Library for the solution of large, sparse, nonsymmetric systems of linear equations"; platforms = lib.platforms.unix; }; -} +}) From b841aedd883b875cd0dbb5265561b32422286b96 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 24 Nov 2024 00:28:39 +0000 Subject: [PATCH 607/693] openmolcas: unpin Boost --- pkgs/by-name/op/openmolcas/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/op/openmolcas/package.nix b/pkgs/by-name/op/openmolcas/package.nix index ed3f74e7656a..35d244cec9a0 100644 --- a/pkgs/by-name/op/openmolcas/package.nix +++ b/pkgs/by-name/op/openmolcas/package.nix @@ -14,7 +14,7 @@ libxc, makeWrapper, gsl, - boost180, + boost, autoPatchelfHook, enableQcmaquis ? false, # Note that the CASPT2 module is broken with MPI @@ -103,7 +103,7 @@ stdenv.mkDerivation rec { armadillo libxc gsl.dev - boost180 + boost ] ++ lib.optionals enableMpi [ mpi From d490680530a81f77bdd248cbc99aa4878d6d97c7 Mon Sep 17 00:00:00 2001 From: Emily Date: Mon, 25 Nov 2024 17:12:00 +0000 Subject: [PATCH 608/693] =?UTF-8?q?nixos/lib/test-driver:=20fix=20linting?= =?UTF-8?q?=20after=20compatibility=20clean=E2=80=90up?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous commit removed the handling of `dict` arguments, but didn’t adjust the type, leading to the following type-checking error: test_driver/driver.py:216: error: Argument 1 to "NixStartScript" has incompatible type "str | dict[Any, Any]"; expected "str" [arg-type] It also left an unused import that Ruff is unhappy about: build/lib/test_driver/driver.py:11:22: F401 [*] `colorama.Fore` imported but unused … build/lib/test_driver/driver.py:11:28: F401 [*] `colorama.Style` imported but unused Fixes: 71306e6b36657f3987214611ec863a891334bf5a --- nixos/lib/test-driver/test_driver/driver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/lib/test-driver/test_driver/driver.py b/nixos/lib/test-driver/test_driver/driver.py index eeefe1380bc8..6061c1bc09b8 100644 --- a/nixos/lib/test-driver/test_driver/driver.py +++ b/nixos/lib/test-driver/test_driver/driver.py @@ -8,8 +8,6 @@ from contextlib import AbstractContextManager, contextmanager from pathlib import Path from typing import Any -from colorama import Fore, Style - from test_driver.logger import AbstractLogger from test_driver.machine import Machine, NixStartScript, retry from test_driver.polling_condition import PollingCondition @@ -206,7 +204,7 @@ class Driver: def create_machine( self, - start_command: str | dict, + start_command: str, *, name: str | None = None, keep_vm_state: bool = False, From da1e1a03cb7d185d22a91e4d1f930946d061dae8 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 16 Nov 2024 20:42:26 +0100 Subject: [PATCH 609/693] stdenv.mkDerivation: refactor output checks This just moves the code around a little bit to be able to build on it in follow up commits without too much of a diff. Adding to removedOrReplacedAttrNames is just a cleanup right now and doesn't change anything functionally, yet. This will be required for later on to avoid having structured outputChecks and those directly on the derivation at the same time. --- pkgs/stdenv/generic/make-derivation.nix | 76 +++++++++++++------------ 1 file changed, 41 insertions(+), 35 deletions(-) diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index d4d5ee46638a..c9ae4cf1fd9e 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -134,6 +134,8 @@ let "__darwinAllowLocalNetworking" "__impureHostDeps" "__propagatedImpureHostDeps" "sandboxProfile" "propagatedSandboxProfile" + "disallowedReferences" "disallowedRequisites" + "allowedReferences" "allowedRequisites" ]; # Turn a derivation into its outPath without a string context attached. @@ -143,6 +145,42 @@ let then builtins.unsafeDiscardStringContext drv.outPath else drv; + makeOutputChecks = attrs: + # If we use derivations directly here, they end up as build-time dependencies. + # This is especially problematic in the case of disallowed*, since the disallowed + # derivations will be built by nix as build-time dependencies, while those + # derivations might take a very long time to build, or might not even build + # successfully on the platform used. + # We can improve on this situation by instead passing only the outPath, + # without an attached string context, to nix. The out path will be a placeholder + # which will be replaced by the actual out path if the derivation in question + # is part of the final closure (and thus needs to be built). If it is not + # part of the final closure, then the placeholder will be passed along, + # but in that case we know for a fact that the derivation is not part of the closure. + # This means that passing the out path to nix does the right thing in either + # case, both for disallowed and allowed references/requisites, and we won't + # build the derivation if it wouldn't be part of the closure, saving time and resources. + # While the problem is less severe for allowed*, since we want the derivation + # to be built eventually, we would still like to get the error early and without + # having to wait while nix builds a derivation that might not be used. + # See also https://github.com/NixOS/nix/issues/4629 + optionalAttrs (attrs ? disallowedReferences) { + disallowedReferences = + map unsafeDerivationToUntrackedOutpath attrs.disallowedReferences; + } // + optionalAttrs (attrs ? disallowedRequisites) { + disallowedRequisites = + map unsafeDerivationToUntrackedOutpath attrs.disallowedRequisites; + } // + optionalAttrs (attrs ? allowedReferences) { + allowedReferences = + mapNullable unsafeDerivationToUntrackedOutpath attrs.allowedReferences; + } // + optionalAttrs (attrs ? allowedRequisites) { + allowedRequisites = + mapNullable unsafeDerivationToUntrackedOutpath attrs.allowedRequisites; + }; + makeDerivationArgument = @@ -455,41 +493,9 @@ else let "/bin/sh" ]; __propagatedImpureHostDeps = computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps; - }) // - # If we use derivations directly here, they end up as build-time dependencies. - # This is especially problematic in the case of disallowed*, since the disallowed - # derivations will be built by nix as build-time dependencies, while those - # derivations might take a very long time to build, or might not even build - # successfully on the platform used. - # We can improve on this situation by instead passing only the outPath, - # without an attached string context, to nix. The out path will be a placeholder - # which will be replaced by the actual out path if the derivation in question - # is part of the final closure (and thus needs to be built). If it is not - # part of the final closure, then the placeholder will be passed along, - # but in that case we know for a fact that the derivation is not part of the closure. - # This means that passing the out path to nix does the right thing in either - # case, both for disallowed and allowed references/requisites, and we won't - # build the derivation if it wouldn't be part of the closure, saving time and resources. - # While the problem is less severe for allowed*, since we want the derivation - # to be built eventually, we would still like to get the error early and without - # having to wait while nix builds a derivation that might not be used. - # See also https://github.com/NixOS/nix/issues/4629 - optionalAttrs (attrs ? disallowedReferences) { - disallowedReferences = - map unsafeDerivationToUntrackedOutpath attrs.disallowedReferences; - } // - optionalAttrs (attrs ? disallowedRequisites) { - disallowedRequisites = - map unsafeDerivationToUntrackedOutpath attrs.disallowedRequisites; - } // - optionalAttrs (attrs ? allowedReferences) { - allowedReferences = - mapNullable unsafeDerivationToUntrackedOutpath attrs.allowedReferences; - } // - optionalAttrs (attrs ? allowedRequisites) { - allowedRequisites = - mapNullable unsafeDerivationToUntrackedOutpath attrs.allowedRequisites; - }; + }) // ( + makeOutputChecks attrs + ); in derivationArg; From 5bff902d5ec322f8ad238c48a050f43a7b5f32cd Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 16 Nov 2024 22:13:30 +0100 Subject: [PATCH 610/693] stdenv.mkDerivation: avoid depending on derivations passed in outputChecks This was added for non-structuredAttrs output checks in #211783. Here we extend the same concept to structuredAttrs-enabled outputChecks, too. The postgresql package worked around this with some conditionals. Those can now be removed - without causing LLVM to be built or substituted. --- pkgs/servers/sql/postgresql/generic.nix | 10 ++++------ pkgs/stdenv/generic/make-derivation.nix | 4 +++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 79111b589938..afb06a24b789 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -132,21 +132,19 @@ let disallowedReferences = [ "dev" "doc" "man" ]; disallowedRequisites = [ stdenv'.cc + llvmPackages.llvm.out ] ++ ( map lib.getDev (builtins.filter (drv: drv ? "dev") finalAttrs.buildInputs) - ) ++ lib.optionals jitSupport [ - llvmPackages.llvm.out - ]; + ); }; outputChecks.lib = { disallowedReferences = [ "out" "dev" "doc" "man" ]; disallowedRequisites = [ stdenv'.cc + llvmPackages.llvm.out ] ++ ( map lib.getDev (builtins.filter (drv: drv ? "dev") finalAttrs.buildInputs) - ) ++ lib.optionals jitSupport [ - llvmPackages.llvm.out - ]; + ); }; buildInputs = [ diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index c9ae4cf1fd9e..fd3a51e06e42 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -495,7 +495,9 @@ else let __propagatedImpureHostDeps = computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps; }) // ( makeOutputChecks attrs - ); + ) // lib.optionalAttrs (__structuredAttrs) { + outputChecks = builtins.mapAttrs (_: makeOutputChecks) attrs.outputChecks or {}; + }; in derivationArg; From d37f90a2b3ca3716e9297478e2a6827798ffd7cf Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 16 Nov 2024 22:58:09 +0100 Subject: [PATCH 611/693] stdenv.mkDerivation: support output checks with structuredAttrs Once __structuredAttrs are enabled, nix only supports disallowedReferences and friends inside the outputChecks attribute set, defined specifically for each output. Top-level disallowedReferences, as used throughout nixpkgs without structuredAttrs, throws a warning instead: warning: In a derivation named 'perl-5.40.0', 'structuredAttrs' disables the effect of the derivation attribute 'disallowedReferences'; use 'outputChecks..disallowedReferences' instead To support a seamless migration to enabling structuredAttrs by default, those derivation attributes are now mapped to each output separately when structuredAttrs are enabled. Since both top-level disallowedReferences and outputChecks can be given at the same time, those are now merged together. One package that can be simplified this way is neovim, because all checks should be applied to all outputs anyway. --- pkgs/by-name/ne/neovim-unwrapped/package.nix | 13 +------------ pkgs/stdenv/generic/make-derivation.nix | 10 ++++++++-- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/ne/neovim-unwrapped/package.nix b/pkgs/by-name/ne/neovim-unwrapped/package.nix index fb185d85f646..2507934eca13 100644 --- a/pkgs/by-name/ne/neovim-unwrapped/package.nix +++ b/pkgs/by-name/ne/neovim-unwrapped/package.nix @@ -193,18 +193,7 @@ stdenv.mkDerivation ( find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' + ''; # check that the above patching actually works - outputChecks = - let - disallowedRequisites = [ stdenv.cc ] ++ lib.optional (lua != codegenLua) codegenLua; - in - { - out = { - inherit disallowedRequisites; - }; - debug = { - inherit disallowedRequisites; - }; - }; + disallowedRequisites = [ stdenv.cc ] ++ lib.optional (lua != codegenLua) codegenLua; cmakeFlags = [ diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index fd3a51e06e42..b640474e3ab3 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -493,10 +493,16 @@ else let "/bin/sh" ]; __propagatedImpureHostDeps = computedPropagatedImpureHostDeps ++ __propagatedImpureHostDeps; - }) // ( + }) // lib.optionalAttrs (!__structuredAttrs) ( makeOutputChecks attrs ) // lib.optionalAttrs (__structuredAttrs) { - outputChecks = builtins.mapAttrs (_: makeOutputChecks) attrs.outputChecks or {}; + outputChecks = builtins.listToAttrs (map (name: { + inherit name; + value = lib.zipAttrsWith (_: builtins.concatLists) [ + (makeOutputChecks attrs) + (makeOutputChecks attrs.outputChecks.${name} or {}) + ]; + }) outputs); }; in From 8901aab5ed636c63d18e9791b8be39fff03a6836 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Mon, 25 Nov 2024 13:38:54 +0100 Subject: [PATCH 612/693] uv: only generate shell completions when possible This fixes cross builds --- pkgs/by-name/uv/uv/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index bbaa205a05a6..73ec3e84f860 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -1,5 +1,6 @@ { lib, + stdenv, cmake, fetchFromGitHub, installShellFiles, @@ -40,7 +41,7 @@ rustPlatform.buildRustPackage rec { # Tests require python3 doCheck = false; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' export HOME=$TMPDIR installShellCompletion --cmd uv \ --bash <($out/bin/uv --generate-shell-completion bash) \ From 8c73600d0cef45a31271338a1fc37b63078fb448 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Sat, 16 Nov 2024 00:34:51 +0000 Subject: [PATCH 613/693] libiconv: cleanup derivation --- pkgs/development/libraries/libiconv/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/libiconv/default.nix b/pkgs/development/libraries/libiconv/default.nix index 036f822f7843..3ece3c925f76 100644 --- a/pkgs/development/libraries/libiconv/default.nix +++ b/pkgs/development/libraries/libiconv/default.nix @@ -7,7 +7,7 @@ # assert !stdenv.hostPlatform.isLinux || stdenv.hostPlatform != stdenv.buildPlatform; # TODO: improve on cross -stdenv.mkDerivation (rec { +stdenv.mkDerivation rec { pname = "libiconv"; version = "1.17"; @@ -22,6 +22,9 @@ stdenv.mkDerivation (rec { # https://git.savannah.gnu.org/cgit/config.git/commit/?id=e4786449e1c26716e3f9ea182caf472e4dbc96e0 nativeBuildInputs = [ updateAutotoolsGnuConfigScriptsHook ]; + # https://github.com/NixOS/nixpkgs/pull/192630#discussion_r978985593 + hardeningDisable = lib.optional (stdenv.hostPlatform.libc == "bionic") "fortify"; + setupHooks = [ ../../../build-support/setup-hooks/role.bash ./setup-hook.sh @@ -92,7 +95,4 @@ stdenv.mkDerivation (rec { # This library is not needed on GNU platforms. hydraPlatforms = with lib.platforms; cygwin ++ darwin ++ freebsd; }; -} // lib.optionalAttrs (stdenv.hostPlatform.libc == "bionic") { - # https://github.com/NixOS/nixpkgs/pull/192630#discussion_r978985593 - hardeningDisable = [ "fortify" ]; -}) +} From ac6660148ca71e8ebfe9064d2f28b749506e7a66 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 26 Nov 2024 10:06:24 +0000 Subject: [PATCH 614/693] iwd: 3.1 -> 3.2 Changes: https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/ChangeLog?h=3.2 --- pkgs/by-name/iw/iwd/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/iw/iwd/package.nix b/pkgs/by-name/iw/iwd/package.nix index 3f9f0b2a2098..197ca133f13a 100644 --- a/pkgs/by-name/iw/iwd/package.nix +++ b/pkgs/by-name/iw/iwd/package.nix @@ -13,12 +13,12 @@ stdenv.mkDerivation rec { pname = "iwd"; - version = "3.1"; + version = "3.2"; src = fetchgit { url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git"; rev = version; - hash = "sha256-WVtZiNcmQRo6reMu9nkB0Z/Y2AAq+FF8F1xB0Tcth0U="; + hash = "sha256-8jIZu0jHo0jkJbD1Vs+ncEZDxO+KoaOXzkX+HiEI6rg="; }; outputs = [ "out" "man" "doc" ] From c22c8ad5b4ef0848dbe75db9895ce05d4135b261 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 29 Oct 2024 17:42:56 +0100 Subject: [PATCH 615/693] audit: 4.0 -> 4.0.2 --- pkgs/by-name/au/audit/package.nix | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/au/audit/package.nix b/pkgs/by-name/au/audit/package.nix index 9d54944ee8b1..f1979802228e 100644 --- a/pkgs/by-name/au/audit/package.nix +++ b/pkgs/by-name/au/audit/package.nix @@ -18,34 +18,22 @@ }: stdenv.mkDerivation (finalAttrs: { pname = "audit"; - version = "4.0"; + version = "4.0.2"; src = fetchurl { url = "https://people.redhat.com/sgrubb/audit/audit-${finalAttrs.version}.tar.gz"; - hash = "sha256-v0ItQSard6kqTDrDneVHPyeNw941ck0lGKSMe+FdVNg="; + hash = "sha256-1dG11Q7kotDReHW8aua9an1bNNlVfqhHo5+uxTH6qgo="; }; - patches = [ - (fetchpatch { - name = "musl.patch"; - url = "https://github.com/linux-audit/audit-userspace/commit/64cb48e1e5137b8a389c7528e611617a98389bc7.patch"; - hash = "sha256-DN2F5w+2Llm80FZntH9dvdyT00pVBSgRu8DDFILyrlU="; - }) - (fetchpatch { - name = "musl.patch"; - url = "https://github.com/linux-audit/audit-userspace/commit/4192eb960388458c85d76e5e385cfeef48f02c79.patch"; - hash = "sha256-G6CJ9nBJSsTyJ0qq14PVo+YdInAvLLQtXcR25Q8V5/4="; - }) - ]; - postPatch = '' substituteInPlace bindings/swig/src/auditswig.i \ --replace-fail "/usr/include/linux/audit.h" \ - "${linuxHeaders}/include/linux/audit.h" + "${linuxHeaders}/include/linux/audit.h" ''; outputs = [ "bin" + "lib" "dev" "out" "man" From c68990eda0c64ee19a7927bf5c3a9e33562d9f0b Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 26 Nov 2024 16:21:54 +0300 Subject: [PATCH 616/693] pipewire: 1.2.6 -> 1.2.7 Diff: https://gitlab.freedesktop.org/pipewire/pipewire/-/compare/1.2.6...1.2.7 Changelog: https://gitlab.freedesktop.org/pipewire/pipewire/-/releases/1.2.7 --- pkgs/development/libraries/pipewire/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix index f8735c294a07..8ddb73bb956c 100644 --- a/pkgs/development/libraries/pipewire/default.nix +++ b/pkgs/development/libraries/pipewire/default.nix @@ -59,7 +59,7 @@ stdenv.mkDerivation(finalAttrs: { pname = "pipewire"; - version = "1.2.6"; + version = "1.2.7"; outputs = [ "out" @@ -75,7 +75,7 @@ stdenv.mkDerivation(finalAttrs: { owner = "pipewire"; repo = "pipewire"; rev = finalAttrs.version; - sha256 = "sha256-AmrbA1YQBeETLC9u9rQ2f85rG9TASvcbCZ/Xlz7ICdY="; + sha256 = "sha256-TV+2nz44a742bUfGnWt7zJAnO15eED5kAwyAgE5CQZ0="; }; patches = [ From 3376e632475f7823cf5c9bac87e68e462db92b99 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Tue, 26 Nov 2024 15:53:17 +0100 Subject: [PATCH 617/693] firefox: remove removeReferencesTo reverts f3d1410e08859e31bc91463e08666b9642bc9fa4 After the merge of #359098 this workarround for ca-derivations isn't needed anymore. Signed-off-by: Florian Brandes --- pkgs/applications/networking/browsers/firefox/wrapper.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index 56314b66de49..f34bfdb6fc0f 100644 --- a/pkgs/applications/networking/browsers/firefox/wrapper.nix +++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix @@ -19,7 +19,6 @@ , sndio , libjack2 , speechd-minimal -, removeReferencesTo }: ## configurability of the wrapper itself @@ -242,7 +241,7 @@ let }; })); - nativeBuildInputs = [ makeWrapper lndir jq removeReferencesTo ]; + nativeBuildInputs = [ makeWrapper lndir jq ]; buildInputs = [ browser.gtk3 ]; @@ -417,9 +416,6 @@ let passthru = { unwrapped = browser; }; disallowedRequisites = [ stdenv.cc ]; - postInstall = '' - find "$out" -type f -exec remove-references-to -t ${stdenv.cc} '{}' + - ''; meta = browser.meta // { inherit (browser.meta) description; mainProgram = launcherName; From 5d1d70c1f7035c2e1fe475e3b57515c18120a150 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Tue, 26 Nov 2024 15:57:57 +0100 Subject: [PATCH 618/693] Revert "libwebsockets: fix build for ca-derivations" This reverts commit 43fccb0535f447f87a00915e2231fb16c036c352. After the merge of #359098 this workarround for ca-derivations isn't needed anymore. Signed-off-by: Florian Brandes --- pkgs/by-name/li/libwebsockets/package.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/by-name/li/libwebsockets/package.nix b/pkgs/by-name/li/libwebsockets/package.nix index 8cdcd9d19560..af028888b23b 100644 --- a/pkgs/by-name/li/libwebsockets/package.nix +++ b/pkgs/by-name/li/libwebsockets/package.nix @@ -5,7 +5,6 @@ , openssl , zlib , libuv -, removeReferencesTo # External poll is required for e.g. mosquitto, but discouraged by the maintainer. , withExternalPoll ? false }: @@ -25,7 +24,7 @@ stdenv.mkDerivation rec { buildInputs = [ openssl zlib libuv ]; - nativeBuildInputs = [ cmake removeReferencesTo ]; + nativeBuildInputs = [ cmake ]; cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" @@ -43,7 +42,6 @@ stdenv.mkDerivation rec { ); postInstall = '' - find "$out" -type f -exec remove-references-to -t ${stdenv.cc.cc} '{}' + # Fix path that will be incorrect on move to "dev" output. substituteInPlace "$out/lib/cmake/libwebsockets/LibwebsocketsTargets-release.cmake" \ --replace "\''${_IMPORT_PREFIX}" "$out" From b7d44d811a786582605b89f5db2d39fe91c88008 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 26 Nov 2024 15:08:51 +0000 Subject: [PATCH 619/693] mdbook: 0.4.42 -> 0.4.43 Changes: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0443 --- pkgs/by-name/md/mdbook/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/md/mdbook/package.nix b/pkgs/by-name/md/mdbook/package.nix index 9a6729b1462b..d6cec841b3a3 100644 --- a/pkgs/by-name/md/mdbook/package.nix +++ b/pkgs/by-name/md/mdbook/package.nix @@ -9,7 +9,7 @@ installShellFiles, }: let - version = "0.4.42"; + version = "0.4.43"; in rustPlatform.buildRustPackage { inherit version; @@ -19,10 +19,10 @@ rustPlatform.buildRustPackage { owner = "rust-lang"; repo = "mdBook"; rev = "refs/tags/v${version}"; - hash = "sha256-gdcHW30+vx+pNTKWJqArxVVYZyG73NnMMkU9JMUPyI8="; + hash = "sha256-aADNcuIeDef9+a3NOWQxo6IRnKJ6AbkvE4GqvFbubyI="; }; - cargoHash = "sha256-19BZe9sCDtSD8f6ZN5Neb2hj75VAW8pXSPCZdIOZF2s="; + cargoHash = "sha256-8K72sJywMKxX/31SJuCEoacWvHrpkuwGGLXJ9MsDkTE="; nativeBuildInputs = [ installShellFiles ]; From 0f6e04eb906fb47c2502000e1d42f84d9b91bbb0 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Tue, 26 Nov 2024 16:34:31 +0100 Subject: [PATCH 620/693] neovim: remove removeReferencesTo reverts 9305ed35ec7f38c6fed16e9d6d0dcd788f007b4d After the merge of #359098 this workarround for ca-derivations isn't needed anymore. Signed-off-by: Florian Brandes --- pkgs/by-name/ne/neovim-unwrapped/package.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/by-name/ne/neovim-unwrapped/package.nix b/pkgs/by-name/ne/neovim-unwrapped/package.nix index fb185d85f646..0818c6fb9d85 100644 --- a/pkgs/by-name/ne/neovim-unwrapped/package.nix +++ b/pkgs/by-name/ne/neovim-unwrapped/package.nix @@ -2,7 +2,6 @@ lib, stdenv, fetchFromGitHub, - removeReferencesTo, cmake, gettext, msgpack-c, @@ -163,7 +162,6 @@ stdenv.mkDerivation ( cmake gettext pkg-config - removeReferencesTo ]; # extra programs test via `make functionaltest` @@ -189,9 +187,6 @@ stdenv.mkDerivation ( sed -i src/nvim/po/CMakeLists.txt \ -e "s|\$ Date: Fri, 22 Nov 2024 19:31:46 +0100 Subject: [PATCH 621/693] nodejs_{20,22,23}: fix flaky test --- pkgs/development/web/nodejs/nodejs.nix | 1 + pkgs/development/web/nodejs/v20.nix | 5 +++++ pkgs/development/web/nodejs/v22.nix | 5 +++++ pkgs/development/web/nodejs/v23.nix | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 86d5897f8e62..90c2d23447b5 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -299,6 +299,7 @@ let "FLAKY_TESTS=skip" # Skip some tests that are not passing in this context "CI_SKIP_TESTS=${lib.concatStringsSep "," ([ + # Tests don't work in sandbox. "test-child-process-exec-env" "test-child-process-uid-gid" "test-fs-write-stream-eagain" diff --git a/pkgs/development/web/nodejs/v20.nix b/pkgs/development/web/nodejs/v20.nix index a29c5385a4fc..a9bac963f2da 100644 --- a/pkgs/development/web/nodejs/v20.nix +++ b/pkgs/development/web/nodejs/v20.nix @@ -44,5 +44,10 @@ buildNodejs { stripLen = 1; hash = "sha256-6y3aEqxNC4iTQEv1oewodJrhOHxjp5xZMq1P1QL94Rg="; }) + # fixes test failure, remove when included in release + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch?full_index=1"; + hash = "sha256-KoKsQBFKUji0GeEPTR8ixBflCiHBhPqd2cPVPuKyua8="; + }) ] ++ gypPatches; } diff --git a/pkgs/development/web/nodejs/v22.nix b/pkgs/development/web/nodejs/v22.nix index e11d2fb882b3..0bdabda01400 100644 --- a/pkgs/development/web/nodejs/v22.nix +++ b/pkgs/development/web/nodejs/v22.nix @@ -24,5 +24,10 @@ buildNodejs { url = "https://github.com/nodejs/node/commit/32f7d5ad1cf79e7e731e1bb7ac967f4f2a3194cf.patch?full_index=1"; hash = "sha256-dyUr3caGfetrXgfAl+CLE1LKKetDZCpPwMg4EM98rqI="; }) + # fixes test failure, remove when included in release + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch?full_index=1"; + hash = "sha256-KoKsQBFKUji0GeEPTR8ixBflCiHBhPqd2cPVPuKyua8="; + }) ]; } diff --git a/pkgs/development/web/nodejs/v23.nix b/pkgs/development/web/nodejs/v23.nix index 0e55a6484dd7..43cbaa2b8e71 100644 --- a/pkgs/development/web/nodejs/v23.nix +++ b/pkgs/development/web/nodejs/v23.nix @@ -35,5 +35,10 @@ buildNodejs { url = "https://github.com/nodejs/node/commit/f270462c09ddfd770291a7c8a2cd204b2c63d730.patch?full_index=1"; hash = "sha256-Err0i5g7WtXcnhykKgrS3ocX7/3oV9UrT0SNeRtMZNU="; }) + # fixes test failure, remove when included in release + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/b6fe731c55eb4cb9d14042a23e5002ed39b7c8b7.patch?full_index=1"; + hash = "sha256-KoKsQBFKUji0GeEPTR8ixBflCiHBhPqd2cPVPuKyua8="; + }) ]; } From 09dbf4e51d17dd00ddb83ba23af34f769eedc24f Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Tue, 26 Nov 2024 17:08:02 +0000 Subject: [PATCH 622/693] cbmc: fix eval f3c863877b175288ec45ea78c1e041610a9b135e dropped apple-sdk < 11 and now darwin aarch64/x66 use sdk 11.3 making the sdk override unnecessary. --- pkgs/by-name/cb/cbmc/package.nix | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pkgs/by-name/cb/cbmc/package.nix b/pkgs/by-name/cb/cbmc/package.nix index fb360095c7bc..7a5ddce33511 100644 --- a/pkgs/by-name/cb/cbmc/package.nix +++ b/pkgs/by-name/cb/cbmc/package.nix @@ -15,9 +15,6 @@ cudd, fetchurl, nix-update-script, - apple-sdk, - apple-sdk_10_15, - darwinMinVersionHook, }: stdenv.mkDerivation (finalAttrs: { @@ -51,14 +48,7 @@ stdenv.mkDerivation (finalAttrs: { makeWrapper ]; - buildInputs = - [ cadical ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - (darwinMinVersionHook "10.15") - ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin && lib.versionOlder apple-sdk.version "10.15") [ - apple-sdk_10_15 - ]; + buildInputs = [ cadical ]; # do not download sources # link existing cadical instead From f126749a88c536789a619fbb758618f3d3074403 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Mon, 25 Nov 2024 15:49:01 +0100 Subject: [PATCH 623/693] zip: include gentoo patches --- ...ffer-overflow-on-utf8-rh-bug-2165653.patch | 12 ------ pkgs/by-name/zi/zip/package.nix | 40 +++++++++++++++---- 2 files changed, 32 insertions(+), 20 deletions(-) delete mode 100644 pkgs/by-name/zi/zip/buffer-overflow-on-utf8-rh-bug-2165653.patch diff --git a/pkgs/by-name/zi/zip/buffer-overflow-on-utf8-rh-bug-2165653.patch b/pkgs/by-name/zi/zip/buffer-overflow-on-utf8-rh-bug-2165653.patch deleted file mode 100644 index 2ee3fff0db54..000000000000 --- a/pkgs/by-name/zi/zip/buffer-overflow-on-utf8-rh-bug-2165653.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -urp zip30/fileio.c zip30/fileio.c ---- zip30/fileio.c 2008-05-29 03:13:24.000000000 +0300 -+++ zip30/fileio.c 2023-05-02 12:19:50.488314853 +0300 -@@ -3502,7 +3502,7 @@ zwchar *local_to_wide_string(local_strin - if ((wc_string = (wchar_t *)malloc((wsize + 1) * sizeof(wchar_t))) == NULL) { - ZIPERR(ZE_MEM, "local_to_wide_string"); - } -- wsize = mbstowcs(wc_string, local_string, strlen(local_string) + 1); -+ wsize = mbstowcs(wc_string, local_string, wsize + 1); - wc_string[wsize] = (wchar_t) 0; - - /* in case wchar_t is not zwchar */ diff --git a/pkgs/by-name/zi/zip/package.nix b/pkgs/by-name/zi/zip/package.nix index 2c225489a346..19a16cd40a0e 100644 --- a/pkgs/by-name/zi/zip/package.nix +++ b/pkgs/by-name/zi/zip/package.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, enableNLS ? false, libnatspec ? null, libiconv }: +{ lib, stdenv, fetchurl, enableNLS ? false, libnatspec ? null, libiconv, fetchpatch }: assert enableNLS -> libnatspec != null; @@ -13,11 +13,11 @@ stdenv.mkDerivation rec { ]; sha256 = "0sb3h3067pzf3a7mlxn1hikpcjrsvycjcnj9hl9b1c3ykcgvps7h"; }; - prePatch = '' - substituteInPlace unix/Makefile --replace 'CC = cc' "" - ''; - hardeningDisable = [ "format" ]; + postPatch = '' + substituteInPlace unix/Makefile --replace 'CC = cc' "" + substituteInPlace unix/configure --replace-fail "O3" "O2" + ''; makefile = "unix/Makefile"; buildFlags = if stdenv.hostPlatform.isCygwin then [ "cygwin" ] else [ "generic" ]; @@ -33,11 +33,35 @@ stdenv.mkDerivation rec { ./fix-memset-detection.patch # Implicit declaration of `closedir` and `opendir` cause dirent detection to fail with clang 16. ./fix-implicit-declarations.patch - # Buffer overflow on Unicode characters in path names - # https://bugzilla.redhat.com/show_bug.cgi?id=2165653 - ./buffer-overflow-on-utf8-rh-bug-2165653.patch # Fixes forward declaration errors with timezone.c ./fix-time.h-not-included.patch + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-pic.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; + hash = "sha256-OXgC9KqiOpH/o/bSabt3LqtoT/xifqfkvpLLPfPz+1c="; + }) + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-no-crypt.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; + hash = "sha256-9bwV+uKST828PcRVbICs8xwz9jcIPk26gxLBbiEeta4="; + }) + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-format-security.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; + hash = "sha256-YmGKivZ0iFCFmPjVYuOv9D8Y0xG2QnWOpas8gMgoQ3M="; + }) + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-exec-stack.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; + hash = "sha256-akJFY+zGijPWCwaAL/xxCN4wQpVFBHkLMo2HowrSn/M="; + }) + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-build.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; + hash = "sha256-MiupD7W+sxiRTsB5viKAiI4QeqtZC6VttfJktdt1ucI="; + }) + # Buffer overflow on Unicode characters in path names + # https://bugzilla.redhat.com/show_bug.cgi?id=2165653 + # (included among other changes below) + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-zipnote-freeze.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; + hash = "sha256-EVr7YS3IytnCRjAYUlkg05GA/kaAY9NRFG7uDt0QLAY="; + }) ] ++ lib.optionals (enableNLS && !stdenv.hostPlatform.isCygwin) [ ./natspec-gentoo.patch.bz2 ]; buildInputs = lib.optional enableNLS libnatspec From 584da3b7cef1e40dc3e31e0112e2a995e5f145f3 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Tue, 26 Nov 2024 17:38:50 +0100 Subject: [PATCH 624/693] zip: include patch to fix build with GCC 14 Co-authored-by: Emily --- .../zi/zip/12-fix-build-with-gcc-14.patch | 56 +++++++++++++++++++ .../by-name/zi/zip/fix-memset-detection.patch | 15 ----- pkgs/by-name/zi/zip/package.nix | 12 ++-- 3 files changed, 64 insertions(+), 19 deletions(-) create mode 100644 pkgs/by-name/zi/zip/12-fix-build-with-gcc-14.patch delete mode 100644 pkgs/by-name/zi/zip/fix-memset-detection.patch diff --git a/pkgs/by-name/zi/zip/12-fix-build-with-gcc-14.patch b/pkgs/by-name/zi/zip/12-fix-build-with-gcc-14.patch new file mode 100644 index 000000000000..58d070a3c2b9 --- /dev/null +++ b/pkgs/by-name/zi/zip/12-fix-build-with-gcc-14.patch @@ -0,0 +1,56 @@ +From: Santiago Vila +Subject: Fix build with gcc-14 +Bug-Debian: https://bugs.debian.org/1075706 +X-Debian-version: 3.0-14 + +--- a/unix/configure ++++ b/unix/configure +@@ -514,14 +514,16 @@ + echo Check for $func + echo "int main(){ $func(); return 0; }" > conftest.c + $CC $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null +- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $func | tr '[a-z]' '[A-Z]'`" ++# glibc-based systems do not need this ++# [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $func | tr '[a-z]' '[A-Z]'`" + done + + + echo Check for memset + echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c + $CC -o conftest conftest.c >/dev/null 2>/dev/null +-[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM" ++# glibc-based systems do not need this ++# [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM" + + + echo Check for memmove +@@ -551,7 +553,8 @@ + } + _EOF_ + $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null +-[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_ERRNO" ++# glibc-based systems do not need this ++# [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_ERRNO" + + + echo Check for directory libraries +@@ -567,7 +570,8 @@ + $CC -o conftest conftest.c -l$lib >/dev/null 2>/dev/null + [ $? -eq 0 ] && OPT=-l$lib && break + done +- if [ ${OPT} ]; then ++ # glibc-based systems do not need this ++ if true; then + LFLAGS2="${LFLAGS2} ${OPT}" + else + CFLAGS="${CFLAGS} -DNO_DIR" +@@ -629,7 +633,8 @@ + } + _EOF_ + $CC ${CFLAGS} -c conftest.c > /dev/null 2>/dev/null +-[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_VALLOC" ++# glibc-based systems do not need this ++# [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_VALLOC" + + + echo Check for /usr/local/bin and /usr/local/man diff --git a/pkgs/by-name/zi/zip/fix-memset-detection.patch b/pkgs/by-name/zi/zip/fix-memset-detection.patch deleted file mode 100644 index 55bda33a2573..000000000000 --- a/pkgs/by-name/zi/zip/fix-memset-detection.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -ur a/unix/configure b/unix/configure ---- a/unix/configure 2008-06-19 21:32:20.000000000 -0600 -+++ b/unix/configure 2023-07-11 10:02:57.809867694 -0600 -@@ -519,7 +519,10 @@ - - - echo Check for memset --echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c -+cat > conftest.c << _EOF_ -+#include -+int main(){ char k; memset(&k,0,0); return 0; } -+_EOF_ - $CC -o conftest conftest.c >/dev/null 2>/dev/null - [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM" - diff --git a/pkgs/by-name/zi/zip/package.nix b/pkgs/by-name/zi/zip/package.nix index 19a16cd40a0e..85b81e0f309b 100644 --- a/pkgs/by-name/zi/zip/package.nix +++ b/pkgs/by-name/zi/zip/package.nix @@ -27,14 +27,18 @@ stdenv.mkDerivation rec { ]; patches = [ - # Trying to use `memset` without declaring it is flagged as an error with clang 16, causing - # the `configure` script to incorrectly define `ZMEM`. That causes the build to fail due to - # incompatible redeclarations of `memset`, `memcpy`, and `memcmp` in `zip.h`. - ./fix-memset-detection.patch # Implicit declaration of `closedir` and `opendir` cause dirent detection to fail with clang 16. ./fix-implicit-declarations.patch # Fixes forward declaration errors with timezone.c ./fix-time.h-not-included.patch + # Without this patch, we get a runtime failures with GCC 14 when building OpenJDK 8: + # + # zip I/O error: No such file or directory + # zip error: Could not create output file (was replacing the original zip file) + # make[2]: *** [CreateJars.gmk:659: /build/source/build/linux-x86_64-normal-server-release/images/src.zip] Error 1 + # + # Source: Debian + ./12-fix-build-with-gcc-14.patch (fetchpatch { url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/zip/files/zip-3.0-pic.patch?id=d37d095fc7a2a9e4a8e904a7bf0f597fe99df85a"; hash = "sha256-OXgC9KqiOpH/o/bSabt3LqtoT/xifqfkvpLLPfPz+1c="; From c0c28f3e46ffc6ba00e3b41b6c395fffb51dfeb6 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Tue, 26 Nov 2024 18:45:59 +0100 Subject: [PATCH 625/693] treewide: fix unstable Gentoo patch URLs --- pkgs/by-name/au/autopanosiftc/package.nix | 2 +- pkgs/by-name/bf/bfr/package.nix | 2 +- pkgs/by-name/bi/bitmeter/package.nix | 2 +- pkgs/by-name/cu/cuneiform/package.nix | 2 +- pkgs/by-name/db/dbus_cplusplus/package.nix | 2 +- pkgs/by-name/li/libieee1284/package.nix | 2 +- pkgs/by-name/pn/pngtoico/package.nix | 2 +- pkgs/by-name/tk/tkman/package.nix | 2 +- pkgs/development/python-modules/parameterized/default.nix | 2 +- pkgs/misc/drivers/utsushi/default.nix | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/au/autopanosiftc/package.nix b/pkgs/by-name/au/autopanosiftc/package.nix index 20874dd55e76..0391461be567 100644 --- a/pkgs/by-name/au/autopanosiftc/package.nix +++ b/pkgs/by-name/au/autopanosiftc/package.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { patches = [ (fetchurl { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; sha256 = "1bfcr5sps0ip9gl4jprji5jgf9wkczz6d2clsjjlbsy8r3ixi3lv"; }) ]; diff --git a/pkgs/by-name/bf/bfr/package.nix b/pkgs/by-name/bf/bfr/package.nix index 6d67d4d20677..73f70edf8f7b 100644 --- a/pkgs/by-name/bf/bfr/package.nix +++ b/pkgs/by-name/bf/bfr/package.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { patches = [ (fetchurl { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-misc/bfr/files/bfr-1.6-perl.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-misc/bfr/files/bfr-1.6-perl.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; sha256 = "1pk9jm3c1qzs727lh0bw61w3qbykaqg4jblywf9pvq5bypk88qfj"; }) ]; diff --git a/pkgs/by-name/bi/bitmeter/package.nix b/pkgs/by-name/bi/bitmeter/package.nix index 9ae4bd7e79fb..47210d5bbec5 100644 --- a/pkgs/by-name/bi/bitmeter/package.nix +++ b/pkgs/by-name/bi/bitmeter/package.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { patches = [ (fetchurl { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/bitmeter/files/bitmeter-1.2-fix-build-system.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/bitmeter/files/bitmeter-1.2-fix-build-system.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; sha256 = "021mz6933iw7mpk6b9cbjr8naj6smbq1hwqjszlyx72qbwrrid7k"; }) ]; diff --git a/pkgs/by-name/cu/cuneiform/package.nix b/pkgs/by-name/cu/cuneiform/package.nix index 9332b25babfb..6bad04b2e8f8 100644 --- a/pkgs/by-name/cu/cuneiform/package.nix +++ b/pkgs/by-name/cu/cuneiform/package.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "19cmrlx4khn30qqrpyayn7bicg8yi0wpz1x1bvqqrbvr3kwldxyj"; }) (fetchurl { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/cuneiform/files/cuneiform-1.1.0-gcc11.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/cuneiform/files/cuneiform-1.1.0-gcc11.patch?id=fd8e596c6a5eab634656e265c3da5241f5ceee8c"; sha256 = "14bp2f4dvlgxnpdza1rgszhkbxhp6p7lhgnb1s7c1x7vwdrx0ri7"; }) ]; diff --git a/pkgs/by-name/db/dbus_cplusplus/package.nix b/pkgs/by-name/db/dbus_cplusplus/package.nix index 95dbdce239c7..107d7ca8a183 100644 --- a/pkgs/by-name/db/dbus_cplusplus/package.nix +++ b/pkgs/by-name/db/dbus_cplusplus/package.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { (fetchurl { name = "gcc-4.7.patch"; url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-libs/" - + "dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch"; + + "dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; sha256 = "0rwcz9pvc13b3yfr0lkifnfz0vb5q6dg240bzgf37ni4s8rpc72g"; }) (fetchpatch { diff --git a/pkgs/by-name/li/libieee1284/package.nix b/pkgs/by-name/li/libieee1284/package.nix index 377d56957123..b7adc4c312d9 100644 --- a/pkgs/by-name/li/libieee1284/package.nix +++ b/pkgs/by-name/li/libieee1284/package.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { patches = [ (fetchurl { name = "musl.patch"; - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-libs/libieee1284/files/libieee1284-0.2.11-don-t-blindly-assume-outb_p-to-be-available.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-libs/libieee1284/files/libieee1284-0.2.11-don-t-blindly-assume-outb_p-to-be-available.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; hash = "sha256-sNu0OPBMa9GIwSu754noateF4FZC14f+8YRgYUl13KQ="; }) ]; diff --git a/pkgs/by-name/pn/pngtoico/package.nix b/pkgs/by-name/pn/pngtoico/package.nix index a537e16d96ae..b7347ca09a3b 100644 --- a/pkgs/by-name/pn/pngtoico/package.nix +++ b/pkgs/by-name/pn/pngtoico/package.nix @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { patches = [ (fetchpatch { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; hash = "sha256-MeRV4FL37Wq7aFRnjbxPokcBKmPM+h94cnFJmdvHAt0="; }) ]; diff --git a/pkgs/by-name/tk/tkman/package.nix b/pkgs/by-name/tk/tkman/package.nix index c51c3564fef8..acc82bfcf024 100644 --- a/pkgs/by-name/tk/tkman/package.nix +++ b/pkgs/by-name/tk/tkman/package.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: { ]; patches = [(fetchpatch { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/tkman/files/tkman-CVE-2008-5137.diff"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/tkman/files/tkman-CVE-2008-5137.diff?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; hash = "sha256-l97SY2/YnMgzHYKnVYCVJKV7oGLN1hXNpeHFlLVzTMA="; })]; diff --git a/pkgs/development/python-modules/parameterized/default.nix b/pkgs/development/python-modules/parameterized/default.nix index 0379d5c7cb0d..62663c9cd9da 100644 --- a/pkgs/development/python-modules/parameterized/default.nix +++ b/pkgs/development/python-modules/parameterized/default.nix @@ -24,7 +24,7 @@ buildPythonPackage rec { patches = [ (fetchpatch2 { name = "parameterized-docstring-3.13-compat.patch"; - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/parameterized/files/parameterized-0.9.0-py313-test.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/parameterized/files/parameterized-0.9.0-py313-test.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; hash = "sha256-tWcN0eRC0oRHrOaa/cctXLhi1WapDKvxO36e6gU6UIk="; }) ]; diff --git a/pkgs/misc/drivers/utsushi/default.nix b/pkgs/misc/drivers/utsushi/default.nix index 1642e91bb109..6b24313af1db 100644 --- a/pkgs/misc/drivers/utsushi/default.nix +++ b/pkgs/misc/drivers/utsushi/default.nix @@ -38,7 +38,7 @@ in stdenv.mkDerivation rec { sha256 = "sha256-W8R1l7ZPcsfiIy1QBJvh0M8du0w1cnTg3PyAz65v4rE="; }) (fetchpatch { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/iscan/files/iscan-3.65.0-sane-backends-1.1.patch"; + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/iscan/files/iscan-3.65.0-sane-backends-1.1.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5"; sha256 = "sha256-AmMZ+/lrUMR7IU+S8MEn0Ji5pqOiD6izFJBsJ0tCCCw="; }) ]; From 62e24cdb9bf5b3795050bb71e444c6762b6409ef Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 26 Nov 2024 20:14:27 +0100 Subject: [PATCH 626/693] iproute2: fix build for musl These patches were removed when iproute2 was updated, but are still necessary. (They fix implicit function declarations, which are an error with GCC 14.) Fixes: e74ce644d04b ("iproute2: 6.11.0 -> 6.12.0") --- pkgs/by-name/ip/iproute2/package.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/by-name/ip/iproute2/package.nix b/pkgs/by-name/ip/iproute2/package.nix index 6ca8651c9a4c..cd9ca84ee08d 100644 --- a/pkgs/by-name/ip/iproute2/package.nix +++ b/pkgs/by-name/ip/iproute2/package.nix @@ -13,6 +13,19 @@ stdenv.mkDerivation rec { hash = "sha256-u9FB73tdASfMIVKEO6YfJ03DKBT6Pg8T59B6CAvvU9k="; }; + patches = [ + (fetchurl { + name = "musl-endian.patch"; + url = "https://lore.kernel.org/netdev/20240712191209.31324-1-contact@hacktivis.me/raw"; + hash = "sha256-MX+P+PSEh6XlhoWgzZEBlOV9aXhJNd20Gi0fJCcSZ5E="; + }) + (fetchurl { + name = "musl-basename.patch"; + url = "https://lore.kernel.org/netdev/20240804161054.942439-1-dilfridge@gentoo.org/raw"; + hash = "sha256-47obv6mIn/HO47lt47slpTAFDxiQ3U/voHKzIiIGCTM="; + }) + ]; + postPatch = '' substituteInPlace Makefile \ --replace "CC := gcc" "CC ?= $CC" From e37eeadacd2c20cde48c44af092c7838d923495f Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 26 Nov 2024 23:44:51 +0100 Subject: [PATCH 627/693] buildenv: fix version not being set --- pkgs/build-support/buildenv/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index c6b6acd5f8e2..ecd633fdbe43 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -77,17 +77,21 @@ let (lib.remove null) ]; in runCommand name - rec { + (rec { inherit manifest ignoreCollisions checkCollisionContents passthru meta pathsToLink extraPrefix postBuild - nativeBuildInputs buildInputs pname version; + nativeBuildInputs buildInputs; pkgs = builtins.toJSON chosenOutputs; extraPathsFrom = lib.optional includeClosures (writeClosure pathsForClosure); preferLocalBuild = true; allowSubstitutes = false; # XXX: The size is somewhat arbitrary passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ]; - } + } // lib.optionalAttrs (pname != null) { + inherit pname; + } // lib.optionalAttrs (version != null) { + inherit version; + }) '' ${buildPackages.perl}/bin/perl -w ${builder} eval "$postBuild" From 271e87c33878e242fe044a0bc78069bd96af0791 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 27 Nov 2024 01:25:25 +0100 Subject: [PATCH 628/693] audit: backport upstream fix for static builds Upstream thinks this is a fix for non-GCC compilers, but it seems to fix static builds with GCC too. Fixes: c22c8ad5b4ef ("audit: 4.0 -> 4.0.2") --- pkgs/by-name/au/audit/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/au/audit/package.nix b/pkgs/by-name/au/audit/package.nix index f1979802228e..5707948dfd63 100644 --- a/pkgs/by-name/au/audit/package.nix +++ b/pkgs/by-name/au/audit/package.nix @@ -25,6 +25,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-1dG11Q7kotDReHW8aua9an1bNNlVfqhHo5+uxTH6qgo="; }; + patches = [ + (fetchpatch { + name = "static.patch"; + url = "https://github.com/linux-audit/audit-userspace/commit/a89664b45c30a853a6f80b19730984bd78432142.patch"; + hash = "sha256-HsaL9Bfo1MQ1JBKIS9ckNTapGk5eshjWWKh4M+e+Y9c="; + }) + ]; + postPatch = '' substituteInPlace bindings/swig/src/auditswig.i \ --replace-fail "/usr/include/linux/audit.h" \ From 12c819e43f6a6136f5625b76735fe095c66dd982 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Nov 2024 04:43:05 +0100 Subject: [PATCH 629/693] openldap: 2.6.8 -> 2.6.9 --- pkgs/by-name/op/openldap/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/op/openldap/package.nix b/pkgs/by-name/op/openldap/package.nix index 453cb1dfebde..5a941240559a 100644 --- a/pkgs/by-name/op/openldap/package.nix +++ b/pkgs/by-name/op/openldap/package.nix @@ -17,11 +17,11 @@ stdenv.mkDerivation rec { pname = "openldap"; - version = "2.6.8"; + version = "2.6.9"; src = fetchurl { url = "https://www.openldap.org/software/download/OpenLDAP/openldap-release/${pname}-${version}.tgz"; - hash = "sha256-SJaTI+lOO+OwPGoTKULcun741UXyrTVAFwkBn2lsPE4="; + hash = "sha256-LLfcc+nINA3/DZk1f7qleKvzDMZhnwUhlyxVVoHmsv8="; }; # TODO: separate "out" and "bin" From 1ebfdb5ead63f194b7f4aaf0917ae519d176786f Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 27 Nov 2024 07:26:17 +0000 Subject: [PATCH 630/693] boost: apply upstream patch for NumPy 2 --- pkgs/development/libraries/boost/generic.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index eca05e4fcf7a..c59fc3b2a80e 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -161,7 +161,17 @@ stdenv.mkDerivation { extraPrefix = "libs/python/"; }) ] - ++ lib.optional (lib.versionAtLeast version "1.81" && stdenv.cc.isClang) ./fix-clang-target.patch; + ++ lib.optional (lib.versionAtLeast version "1.81" && stdenv.cc.isClang) ./fix-clang-target.patch + ++ lib.optional (lib.versionAtLeast version "1.86") [ + # Backport fix for NumPy 2 support. + (fetchpatch { + name = "boost-numpy-2-compatibility.patch"; + url = "https://github.com/boostorg/python/commit/0474de0f6cc9c6e7230aeb7164af2f7e4ccf74bf.patch"; + stripLen = 1; + extraPrefix = "libs/python/"; + hash = "sha256-0IHK55JSujYcwEVOuLkwOa/iPEkdAKQlwVWR42p/X2U="; + }) + ]; meta = with lib; { homepage = "http://boost.org/"; @@ -173,6 +183,10 @@ stdenv.mkDerivation { # a very cryptic error message. badPlatforms = [ lib.systems.inspect.patterns.isMips64n32 ]; maintainers = with maintainers; [ hjones2199 ]; + broken = + enableNumpy + && lib.versionOlder version "1.86" + && lib.versionAtLeast python.pkgs.numpy.version "2"; }; passthru = { From 41f52f8a0578715ba2e9efdfb8c657d0fcbabb45 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 27 Nov 2024 08:55:49 +0100 Subject: [PATCH 631/693] openjdk8: fix build with GCC 14 --- pkgs/development/compilers/openjdk/generic.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/openjdk/generic.nix b/pkgs/development/compilers/openjdk/generic.nix index b18e9679c107..43ce3e68612d 100644 --- a/pkgs/development/compilers/openjdk/generic.nix +++ b/pkgs/development/compilers/openjdk/generic.nix @@ -443,6 +443,11 @@ stdenv.mkDerivation (finalAttrs: { "-std=gnu++98" "-Wno-error" ] + ++ [ + # error by default in GCC 14 + "-Wno-error=int-conversion" + "-Wno-error=incompatible-pointer-types" + ] ); NIX_LDFLAGS = lib.concatStringsSep " " ( From cb05815e588481a472b44141ef53d3deae25c6e1 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 27 Nov 2024 09:26:25 +0100 Subject: [PATCH 632/693] nodejs_{20,22}: fix test-os failure Same as #356257 --- pkgs/development/web/nodejs/v20.nix | 10 ++++++++++ pkgs/development/web/nodejs/v22.nix | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/pkgs/development/web/nodejs/v20.nix b/pkgs/development/web/nodejs/v20.nix index a29c5385a4fc..3a1812870d22 100644 --- a/pkgs/development/web/nodejs/v20.nix +++ b/pkgs/development/web/nodejs/v20.nix @@ -29,6 +29,16 @@ buildNodejs { stripLen = 1; hash = "sha256-WVxsoEcJu0WBTyelNrVQFTZxJhnekQb1GrueeRBRdnY="; }) + # Fix for https://github.com/NixOS/nixpkgs/issues/355919 + # FIXME: remove after a minor point release + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/a094a8166cd772f89e92b5deef168e5e599fa815.patch?full_index=1"; + hash = "sha256-5FZfozYWRa1ZI/f+e+xpdn974Jg2DbiHbua13XUQP5E="; + }) + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/f270462c09ddfd770291a7c8a2cd204b2c63d730.patch?full_index=1"; + hash = "sha256-Err0i5g7WtXcnhykKgrS3ocX7/3oV9UrT0SNeRtMZNU="; + }) # Backport V8 fixes for LLVM 19. (fetchpatch2 { url = "https://chromium.googlesource.com/v8/v8/+/182d9c05e78b1ddb1cb8242cd3628a7855a0336f%5E%21/?format=TEXT"; diff --git a/pkgs/development/web/nodejs/v22.nix b/pkgs/development/web/nodejs/v22.nix index e11d2fb882b3..26c064a8443e 100644 --- a/pkgs/development/web/nodejs/v22.nix +++ b/pkgs/development/web/nodejs/v22.nix @@ -19,6 +19,16 @@ buildNodejs { ./use-correct-env-in-tests.patch ./bin-sh-node-run-v22.patch + # Fix for https://github.com/NixOS/nixpkgs/issues/355919 + # FIXME: remove after a minor point release + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/a094a8166cd772f89e92b5deef168e5e599fa815.patch?full_index=1"; + hash = "sha256-5FZfozYWRa1ZI/f+e+xpdn974Jg2DbiHbua13XUQP5E="; + }) + (fetchpatch2 { + url = "https://github.com/nodejs/node/commit/f270462c09ddfd770291a7c8a2cd204b2c63d730.patch?full_index=1"; + hash = "sha256-Err0i5g7WtXcnhykKgrS3ocX7/3oV9UrT0SNeRtMZNU="; + }) # Patch to use the shared version of SQLite instead of the one vendored upstream: (fetchpatch2 { url = "https://github.com/nodejs/node/commit/32f7d5ad1cf79e7e731e1bb7ac967f4f2a3194cf.patch?full_index=1"; From 2503bd9a53f95b603c0165ff7ed894cb4250d7ae Mon Sep 17 00:00:00 2001 From: Yureka Date: Wed, 27 Nov 2024 10:24:20 +0100 Subject: [PATCH 633/693] libjxl: build against system lcms2 (#359039) prevent accidentally building against vendored libs. Fixes build of pkgsMusl.libjxl. Change-Id: I8f1cba112991b47f0951acc2a2471757a9c440bb --- pkgs/by-name/li/libjxl/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/li/libjxl/package.nix b/pkgs/by-name/li/libjxl/package.nix index 2bd30ddda8e2..57f4ab170faf 100644 --- a/pkgs/by-name/li/libjxl/package.nix +++ b/pkgs/by-name/li/libjxl/package.nix @@ -104,6 +104,9 @@ stdenv.mkDerivation rec { # Use our version of gtest "-DJPEGXL_FORCE_SYSTEM_GTEST=ON" + "-DJPEGXL_ENABLE_SKCMS=OFF" + "-DJPEGXL_FORCE_SYSTEM_LCMS2=ON" + # TODO: Update this package to enable this (overridably via an option): # Viewer tools for evaluation. # "-DJPEGXL_ENABLE_VIEWERS=ON" @@ -121,6 +124,13 @@ stdenv.mkDerivation rec { # the second substitution fix regex for a2x script # https://github.com/libjxl/libjxl/pull/3842 postPatch = '' + # Make sure we do not accidentally build against some of the vendored dependencies + # If it asks you to "run deps.sh to fetch the build dependencies", then you are probably missing a JPEGXL_FORCE_SYSTEM_* flag + ( + shopt -s extglob + rm -rf third_party/!(sjpeg)/ + ) + substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \ --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl" substituteInPlace CMakeLists.txt \ From 84d3903d9a7abe3eb02e21a8726aa1d54b29fb02 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 27 Nov 2024 18:14:00 +0800 Subject: [PATCH 634/693] libselinux: nixfmt --- pkgs/by-name/li/libselinux/package.nix | 201 ++++++++++++++----------- 1 file changed, 117 insertions(+), 84 deletions(-) diff --git a/pkgs/by-name/li/libselinux/package.nix b/pkgs/by-name/li/libselinux/package.nix index 172b9959b704..3f0034591145 100644 --- a/pkgs/by-name/li/libselinux/package.nix +++ b/pkgs/by-name/li/libselinux/package.nix @@ -1,101 +1,134 @@ -{ lib, stdenv, fetchurl, fetchpatch, buildPackages, pcre2, pkg-config, libsepol -, enablePython ? !stdenv.hostPlatform.isStatic -, swig ? null, python3 ? null, python3Packages -, fts +{ + lib, + stdenv, + fetchurl, + fetchpatch, + buildPackages, + pcre2, + pkg-config, + libsepol, + enablePython ? !stdenv.hostPlatform.isStatic, + swig ? null, + python3 ? null, + python3Packages, + fts, }: assert enablePython -> swig != null && python3 != null; -stdenv.mkDerivation (rec { - pname = "libselinux"; - version = "3.7"; - inherit (libsepol) se_url; +stdenv.mkDerivation ( + rec { + pname = "libselinux"; + version = "3.7"; + inherit (libsepol) se_url; - outputs = [ "bin" "out" "dev" "man" ] ++ lib.optional enablePython "py"; + outputs = [ + "bin" + "out" + "dev" + "man" + ] ++ lib.optional enablePython "py"; - src = fetchurl { - url = "${se_url}/${version}/libselinux-${version}.tar.gz"; - hash = "sha256-6gP0LROk+VdXmX26jPCyYyH6xdLxZEGLTMhWqS0rF70="; - }; + src = fetchurl { + url = "${se_url}/${version}/libselinux-${version}.tar.gz"; + hash = "sha256-6gP0LROk+VdXmX26jPCyYyH6xdLxZEGLTMhWqS0rF70="; + }; - patches = [ - # Make it possible to disable shared builds (for pkgsStatic). - # - # We can't use fetchpatch because it processes includes/excludes - # /after/ stripping the prefix, which wouldn't work here because - # there would be no way to distinguish between - # e.g. libselinux/src/Makefile and libsepol/src/Makefile. - # - # This is a static email, so we shouldn't have to worry about - # normalizing the patch. - (fetchurl { - url = "https://lore.kernel.org/selinux/20211113141616.361640-1-hi@alyssa.is/raw"; - sha256 = "16a2s2ji9049892i15yyqgp4r20hi1hij4c1s4s8law9jsx65b3n"; - postFetch = '' - mv "$out" $TMPDIR/patch - ${buildPackages.patchutils_0_3_3}/bin/filterdiff \ - -i 'a/libselinux/*' --strip 1 <$TMPDIR/patch >"$out" - ''; - }) + patches = [ + # Make it possible to disable shared builds (for pkgsStatic). + # + # We can't use fetchpatch because it processes includes/excludes + # /after/ stripping the prefix, which wouldn't work here because + # there would be no way to distinguish between + # e.g. libselinux/src/Makefile and libsepol/src/Makefile. + # + # This is a static email, so we shouldn't have to worry about + # normalizing the patch. + (fetchurl { + url = "https://lore.kernel.org/selinux/20211113141616.361640-1-hi@alyssa.is/raw"; + sha256 = "16a2s2ji9049892i15yyqgp4r20hi1hij4c1s4s8law9jsx65b3n"; + postFetch = '' + mv "$out" $TMPDIR/patch + ${buildPackages.patchutils_0_3_3}/bin/filterdiff \ + -i 'a/libselinux/*' --strip 1 <$TMPDIR/patch >"$out" + ''; + }) - (fetchurl { - url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d"; - sha256 = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU="; - }) + (fetchurl { + url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d"; + sha256 = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU="; + }) - # libselinux: fix swig bindings for 4.3.0 - (fetchpatch { - url = "https://github.com/SELinuxProject/selinux/commit/8e0e718bae53fff30831b92cd784151d475a20da.patch"; - stripLen = 1; - hash = "sha256-8Nd6ketQ7/r5W0sRdheqyGWHJRZ1RfGC4ehTqnHau04="; - }) - ]; + # libselinux: fix swig bindings for 4.3.0 + (fetchpatch { + url = "https://github.com/SELinuxProject/selinux/commit/8e0e718bae53fff30831b92cd784151d475a20da.patch"; + stripLen = 1; + hash = "sha256-8Nd6ketQ7/r5W0sRdheqyGWHJRZ1RfGC4ehTqnHau04="; + }) + ]; - nativeBuildInputs = [ pkg-config python3 ] ++ lib.optionals enablePython [ - python3Packages.pip - python3Packages.setuptools - python3Packages.wheel - swig - ]; - buildInputs = [ libsepol pcre2 fts ] ++ lib.optionals enablePython [ python3 ]; + nativeBuildInputs = + [ + pkg-config + python3 + ] + ++ lib.optionals enablePython [ + python3Packages.pip + python3Packages.setuptools + python3Packages.wheel + swig + ]; + buildInputs = [ + libsepol + pcre2 + fts + ] ++ lib.optionals enablePython [ python3 ]; - # drop fortify here since package uses it by default, leading to compile error: - # command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] - hardeningDisable = [ "fortify" ]; + # drop fortify here since package uses it by default, leading to compile error: + # command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] + hardeningDisable = [ "fortify" ]; - env.NIX_CFLAGS_COMPILE = "-Wno-error -D_FILE_OFFSET_BITS=64"; + env.NIX_CFLAGS_COMPILE = "-Wno-error -D_FILE_OFFSET_BITS=64"; - makeFlags = [ - "PREFIX=$(out)" - "INCDIR=$(dev)/include/selinux" - "INCLUDEDIR=$(dev)/include" - "MAN3DIR=$(man)/share/man/man3" - "MAN5DIR=$(man)/share/man/man5" - "MAN8DIR=$(man)/share/man/man8" - "SBINDIR=$(bin)/sbin" - "SHLIBDIR=$(out)/lib" + makeFlags = + [ + "PREFIX=$(out)" + "INCDIR=$(dev)/include/selinux" + "INCLUDEDIR=$(dev)/include" + "MAN3DIR=$(man)/share/man/man3" + "MAN5DIR=$(man)/share/man/man5" + "MAN8DIR=$(man)/share/man/man8" + "SBINDIR=$(bin)/sbin" + "SHLIBDIR=$(out)/lib" - "LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a" - "ARCH=${stdenv.hostPlatform.linuxArch}" - ] ++ lib.optionals (fts != null) [ - "FTS_LDLIBS=-lfts" - ] ++ lib.optionals stdenv.hostPlatform.isStatic [ - "DISABLE_SHARED=y" - ] ++ lib.optionals enablePython [ - "PYTHON=${python3.pythonOnBuildForHost.interpreter}" - "PYTHONLIBDIR=$(py)/${python3.sitePackages}" - "PYTHON_SETUP_ARGS=--no-build-isolation" - ]; + "LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a" + "ARCH=${stdenv.hostPlatform.linuxArch}" + ] + ++ lib.optionals (fts != null) [ + "FTS_LDLIBS=-lfts" + ] + ++ lib.optionals stdenv.hostPlatform.isStatic [ + "DISABLE_SHARED=y" + ] + ++ lib.optionals enablePython [ + "PYTHON=${python3.pythonOnBuildForHost.interpreter}" + "PYTHONLIBDIR=$(py)/${python3.sitePackages}" + "PYTHON_SETUP_ARGS=--no-build-isolation" + ]; - preInstall = lib.optionalString enablePython '' - mkdir -p $py/${python3.sitePackages}/selinux - ''; + preInstall = lib.optionalString enablePython '' + mkdir -p $py/${python3.sitePackages}/selinux + ''; - installTargets = [ "install" ] ++ lib.optional enablePython "install-pywrap"; + installTargets = [ "install" ] ++ lib.optional enablePython "install-pywrap"; - meta = removeAttrs libsepol.meta ["outputsToInstall"] // { - description = "SELinux core library"; - }; -} // lib.optionalAttrs (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") { - NIX_LDFLAGS = "--undefined-version"; -}) + meta = removeAttrs libsepol.meta [ "outputsToInstall" ] // { + description = "SELinux core library"; + }; + } + // + lib.optionalAttrs (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") + { + NIX_LDFLAGS = "--undefined-version"; + } +) From 949d56977319ba165e6b008545a0d03c02a60773 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 27 Nov 2024 18:14:48 +0800 Subject: [PATCH 635/693] python311Packages.libselinux: fix build --- pkgs/by-name/li/libselinux/package.nix | 8 ++++---- pkgs/top-level/python-packages.nix | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/li/libselinux/package.nix b/pkgs/by-name/li/libselinux/package.nix index 3f0034591145..4d5cbbb11e32 100644 --- a/pkgs/by-name/li/libselinux/package.nix +++ b/pkgs/by-name/li/libselinux/package.nix @@ -7,10 +7,10 @@ pcre2, pkg-config, libsepol, - enablePython ? !stdenv.hostPlatform.isStatic, + enablePython ? false, swig ? null, python3 ? null, - python3Packages, + python3Packages ? null, fts, }: @@ -46,7 +46,7 @@ stdenv.mkDerivation ( # normalizing the patch. (fetchurl { url = "https://lore.kernel.org/selinux/20211113141616.361640-1-hi@alyssa.is/raw"; - sha256 = "16a2s2ji9049892i15yyqgp4r20hi1hij4c1s4s8law9jsx65b3n"; + hash = "sha256-dqxiupaJK4o00YERGWGIEIhM7sPelxBFQomAFKXQQpk="; postFetch = '' mv "$out" $TMPDIR/patch ${buildPackages.patchutils_0_3_3}/bin/filterdiff \ @@ -56,7 +56,7 @@ stdenv.mkDerivation ( (fetchurl { url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d"; - sha256 = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU="; + hash = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU="; }) # libselinux: fix swig bindings for 4.3.0 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ad888129ddb2..4f51c6f267f5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7333,6 +7333,7 @@ self: super: with self; { p.override { enablePython = true; python3 = python; + python3Packages = pythonPackages; }) (p: p.py) ]; From 71a170ef424bd6b92af4ad607c4fa48c9d231ca1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Nov 2024 18:22:00 +0100 Subject: [PATCH 636/693] python312Packages.bleach: 6.1.0 -> 6.2.0 https://github.com/mozilla/bleach/blob/v6.2.0/CHANGES --- pkgs/development/python-modules/bleach/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/bleach/default.nix b/pkgs/development/python-modules/bleach/default.nix index 5adbde446d95..290aa1913b81 100644 --- a/pkgs/development/python-modules/bleach/default.nix +++ b/pkgs/development/python-modules/bleach/default.nix @@ -3,25 +3,21 @@ buildPythonPackage, fetchPypi, pytestCheckHook, - six, html5lib, setuptools, tinycss2, packaging, - pythonOlder, webencodings, }: buildPythonPackage rec { pname = "bleach"; - version = "6.1.0"; + version = "6.2.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchPypi { inherit pname version; - hash = "sha256-CjHxg3ljxB1Gu/EzG4d44TCOoHkdsDzE5zV7l89CqP4="; + hash = "sha256-Ej6JQRi4pZn9gNPsGm1Mx85OWIKxMXp+G6abVulfmR8="; }; nativeBuildInputs = [ setuptools ]; @@ -30,7 +26,6 @@ buildPythonPackage rec { html5lib packaging setuptools - six webencodings ]; From 4348c4b5f27e042ef2935edb18007144d26443fd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Nov 2024 18:23:44 +0100 Subject: [PATCH 637/693] python312Packages.tinycss2: 1.3.0 -> 1.4.0 https://github.com/Kozea/tinycss2/releases/tag/v1.4.0 https://github.com/kozea/tinycss2/compare/v1.3.0...v1.4.0 --- .../python-modules/tinycss2/default.nix | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/tinycss2/default.nix b/pkgs/development/python-modules/tinycss2/default.nix index 730bbfc4f4d7..5702722a4c9c 100644 --- a/pkgs/development/python-modules/tinycss2/default.nix +++ b/pkgs/development/python-modules/tinycss2/default.nix @@ -3,40 +3,36 @@ buildPythonPackage, pythonOlder, fetchFromGitHub, - webencodings, - pytestCheckHook, flit-core, + webencodings, + pytest-cov-stub, + pytestCheckHook, }: buildPythonPackage rec { pname = "tinycss2"; - version = "1.3.0"; - format = "pyproject"; + version = "1.4.0"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "kozea"; repo = "tinycss2"; - - # Tag v1.3.0 is missing the actual version number bump. - rev = "bda62b101530588718d931d61bcc343a628b9af9"; + rev = "refs/tags/${version}"; # for tests fetchSubmodules = true; hash = "sha256-Exjxdm0VnnjHUKjquXsC/zDmwA7bELHdX1f55IGBjYk="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]'" "" \ - --replace "--isort --flake8 --cov --no-cov-on-fail" "" - ''; + build-system = [ flit-core ]; - nativeBuildInputs = [ flit-core ]; + dependencies = [ webencodings ]; - propagatedBuildInputs = [ webencodings ]; - - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; meta = with lib; { description = "Low-level CSS parser for Python"; From cbc54468f239a29af9af2e810d4f7ac438a0cf2d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Nov 2024 18:36:28 +0100 Subject: [PATCH 638/693] pretix: 2024.10.0 -> 2024.11.0 https://pretix.eu/about/en/blog/20241127-release-2024-11/ https://github.com/pretix/pretix/compare/refs/tags/v2024.10.0...v2024.11.0 --- pkgs/by-name/pr/pretix/package.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/pr/pretix/package.nix b/pkgs/by-name/pr/pretix/package.nix index ddbbe8781a4e..8f77670f467f 100644 --- a/pkgs/by-name/pr/pretix/package.nix +++ b/pkgs/by-name/pr/pretix/package.nix @@ -13,16 +13,6 @@ let python = python3.override { self = python; packageOverrides = self: super: { - bleach = super.bleach.overridePythonAttrs (oldAttrs: rec { - version = "5.0.1"; - - src = fetchPypi { - pname = "bleach"; - inherit version; - hash = "sha256-DQMlXEfrm9Lyaqm7fyEHcy5+j+GVyi9kcJ/POwpKCFw="; - }; - }); - django = super.django_4; django-oauth-toolkit = super.django-oauth-toolkit.overridePythonAttrs (oldAttrs: { @@ -51,13 +41,13 @@ let }; pname = "pretix"; - version = "2024.10.0"; + version = "2024.11.0"; src = fetchFromGitHub { owner = "pretix"; repo = "pretix"; rev = "refs/tags/v${version}"; - hash = "sha256-MCiCr00N7894DjckAw3vpxdiNtlgzqivlbSY4A/327E="; + hash = "sha256-vmk7oW9foXkZdt3XOLJDbPldX2TruJOgd8mmi5tGqNw="; }; npmDeps = buildNpmPackage { @@ -65,7 +55,7 @@ let inherit version src; sourceRoot = "${src.name}/src/pretix/static/npm_dir"; - npmDepsHash = "sha256-PPcA6TBsU/gGk4wII+w7VZOm65nS7qGjZ/UoQs31s9M="; + npmDepsHash = "sha256-4PrOrI2cykkuzob+DMeAu/GF5OMCho40G3BjCwVW/tE="; dontBuild = true; From 91372ed9895e511dfc5be6e6d37b7190dfbae0ed Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Nov 2024 18:38:42 +0100 Subject: [PATCH 639/693] pretix.plugins.pages: 1.6.2 -> 1.6.3 https://github.com/pretix/pretix-pages/compare/v1.6.2...v1.6.3 --- pkgs/by-name/pr/pretix/plugins/pages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pr/pretix/plugins/pages.nix b/pkgs/by-name/pr/pretix/plugins/pages.nix index 97e409679385..020436d8f43c 100644 --- a/pkgs/by-name/pr/pretix/plugins/pages.nix +++ b/pkgs/by-name/pr/pretix/plugins/pages.nix @@ -7,14 +7,14 @@ buildPythonPackage rec { pname = "pretix-pages"; - version = "1.6.2"; + version = "1.6.3"; pyproject = true; src = fetchFromGitHub { owner = "pretix"; repo = "pretix-pages"; rev = "v${version}"; - hash = "sha256-0pTFGCgtt/JGviTLsZFwgx93TD8ArLwZGfWoSYv5XuY="; + hash = "sha256-ZM38zHlFB5013PvoJwm7YC5/wHg2GZWmrhvreXuqNc8="; }; build-system = [ From c4d74a525c3f0a431d4bfc41617ebfa61670bc28 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Nov 2024 18:39:16 +0100 Subject: [PATCH 640/693] pretix.plugins.zugferd: 2.2.1 -> 2.2.2 https://github.com/pretix/pretix-zugferd/compare/v2.2.1...v2.2.2 --- pkgs/by-name/pr/pretix/plugins/zugferd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pr/pretix/plugins/zugferd.nix b/pkgs/by-name/pr/pretix/plugins/zugferd.nix index e7aeb78b346f..bada0bbc9bfd 100644 --- a/pkgs/by-name/pr/pretix/plugins/zugferd.nix +++ b/pkgs/by-name/pr/pretix/plugins/zugferd.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "pretix-zugferd"; - version = "2.2.1"; + version = "2.2.2"; pyproject = true; src = fetchFromGitHub { owner = "pretix"; repo = "pretix-zugferd"; rev = "v${version}"; - hash = "sha256-AJbrx1n32YAZnJGYX67qqaEnOeegYfSUEekvQnmjt+0="; + hash = "sha256-urf5HrC3Y64hH+U738t9fchoeR2sawlJAQoLFtwebA4="; }; postPatch = '' From 8fa5e5b33f9d54e4577319a9c1ad7f749c83b3f1 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 28 Nov 2024 05:57:44 +0000 Subject: [PATCH 641/693] =?UTF-8?q?electricsheep:=20add=20patch=20for=20Bo?= =?UTF-8?q?ost=20=E2=89=A5=201.85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../by-name/el/electricsheep/boost-1.85.patch | 96 +++++++++++++++++++ pkgs/by-name/el/electricsheep/package.nix | 9 +- 2 files changed, 103 insertions(+), 2 deletions(-) create mode 100644 pkgs/by-name/el/electricsheep/boost-1.85.patch diff --git a/pkgs/by-name/el/electricsheep/boost-1.85.patch b/pkgs/by-name/el/electricsheep/boost-1.85.patch new file mode 100644 index 000000000000..e35b0a44d863 --- /dev/null +++ b/pkgs/by-name/el/electricsheep/boost-1.85.patch @@ -0,0 +1,96 @@ +From a8a7f4460b8f46ca752389f3e1fa43b5c95f2bac Mon Sep 17 00:00:00 2001 +From: Emily +Date: Thu, 28 Nov 2024 05:56:34 +0000 +Subject: [PATCH] Remove use of deprecated `` + +This header was dropped in Boost 1.85. +--- + client_generic/Client/Player.cpp | 3 --- + client_generic/Client/lua_playlist.h | 3 --- + client_generic/ContentDecoder/graph_playlist.h | 4 +--- + client_generic/TupleStorage/luastorage.cpp | 3 --- + 4 files changed, 1 insertion(+), 12 deletions(-) + +diff --git a/client_generic/Client/Player.cpp b/client_generic/Client/Player.cpp +index 1f65d761..9726b014 100644 +--- a/client_generic/Client/Player.cpp ++++ b/client_generic/Client/Player.cpp +@@ -60,7 +60,6 @@ + + #include "boost/filesystem/path.hpp" + #include "boost/filesystem/operations.hpp" +-#include "boost/filesystem/convenience.hpp" + + #if defined(MAC) || defined(WIN32) + #define HONOR_VBL_SYNC +@@ -68,8 +67,6 @@ + + using boost::filesystem::path; + using boost::filesystem::exists; +-using boost::filesystem::directory_iterator; +-using boost::filesystem::extension; + + using namespace DisplayOutput; + +diff --git a/client_generic/Client/lua_playlist.h b/client_generic/Client/lua_playlist.h +index fbe5a333..511c86ee 100644 +--- a/client_generic/Client/lua_playlist.h ++++ b/client_generic/Client/lua_playlist.h +@@ -17,13 +17,10 @@ + + #include "boost/filesystem/path.hpp" + #include "boost/filesystem/operations.hpp" +-#include "boost/filesystem/convenience.hpp" + #include + + using boost::filesystem::path; + using boost::filesystem::exists; +-using boost::filesystem::directory_iterator; +-using boost::filesystem::extension; + + + // Lua. +diff --git a/client_generic/ContentDecoder/graph_playlist.h b/client_generic/ContentDecoder/graph_playlist.h +index 1f0a6cd0..cc2672e2 100644 +--- a/client_generic/ContentDecoder/graph_playlist.h ++++ b/client_generic/ContentDecoder/graph_playlist.h +@@ -13,13 +13,11 @@ + + #include "boost/filesystem/path.hpp" + #include "boost/filesystem/operations.hpp" +-#include "boost/filesystem/convenience.hpp" + + using boost::filesystem::path; + using boost::filesystem::exists; + using boost::filesystem::no_check; + using boost::filesystem::directory_iterator; +-using boost::filesystem::extension; + + namespace ContentDecoder + { +@@ -116,7 +114,7 @@ class CGraphPlaylist : public CPlaylist + for( directory_iterator i( _dir ), end; i != end; ++i ) + { + #warning TODO (Keffo#1#): Remove hardcoded extension... +- if( extension(*i) != ".avi" ) ++ if( i->extension().string() != ".avi" ) + continue; + + std::string file = i->string(); +diff --git a/client_generic/TupleStorage/luastorage.cpp b/client_generic/TupleStorage/luastorage.cpp +index efbe8867..9b2ffa93 100644 +--- a/client_generic/TupleStorage/luastorage.cpp ++++ b/client_generic/TupleStorage/luastorage.cpp +@@ -9,12 +9,9 @@ + + #include "boost/filesystem/path.hpp" + #include "boost/filesystem/operations.hpp" +-#include "boost/filesystem/convenience.hpp" + + using boost::filesystem::path; + using boost::filesystem::exists; +-using boost::filesystem::directory_iterator; +-using boost::filesystem::extension; + + using namespace std; + diff --git a/pkgs/by-name/el/electricsheep/package.nix b/pkgs/by-name/el/electricsheep/package.nix index 2f7038195b3e..88e09f983ee6 100644 --- a/pkgs/by-name/el/electricsheep/package.nix +++ b/pkgs/by-name/el/electricsheep/package.nix @@ -11,7 +11,7 @@ , pkg-config , flam3 , libgtop -, boost179 +, boost , tinyxml , libglut , libGLU @@ -30,6 +30,11 @@ stdenv.mkDerivation { hash = "sha256-X3EZ1/VcLEU1GkZbskWSsqQWYTnsH3pbFDvDLpdLmcU="; }; + patches = [ + # + ./boost-1.85.patch + ]; + nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ @@ -41,7 +46,7 @@ stdenv.mkDerivation { xorg.libXrender flam3 libgtop - boost179 + boost tinyxml libglut libGLU From 59f9910870fe0a5ff71dbd68825902a25b0e8085 Mon Sep 17 00:00:00 2001 From: K900 Date: Thu, 28 Nov 2024 10:17:52 +0300 Subject: [PATCH 642/693] mesa: 24.2.7 -> 24.2.8 Diff: https://gitlab.freedesktop.org/mesa/mesa/-/compare/mesa-24.2.7...mesa-24.2.8 Changelog: https://docs.mesa3d.org/relnotes/24.2.8.html --- pkgs/development/libraries/mesa/common.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/mesa/common.nix b/pkgs/development/libraries/mesa/common.nix index 4aecdcc2c450..80f9c133a63d 100644 --- a/pkgs/development/libraries/mesa/common.nix +++ b/pkgs/development/libraries/mesa/common.nix @@ -5,14 +5,14 @@ # nix build .#legacyPackages.x86_64-darwin.mesa .#legacyPackages.aarch64-darwin.mesa rec { pname = "mesa"; - version = "24.2.7"; + version = "24.2.8"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "mesa"; repo = "mesa"; rev = "mesa-${version}"; - hash = "sha256-AM9npUnf/Cl/kPahqeK4Vt6piHv8gKOqrTkE36RIMlg="; + hash = "sha256-70X0Ba7t8l9Vs/w/3dd4UpTR7woIvd7NRwO/ph2rKu8="; }; meta = { From bdac0fa35d69d2ea454deeb71b0c826aef53886c Mon Sep 17 00:00:00 2001 From: Romanos Skiadas Date: Thu, 28 Nov 2024 16:57:10 +0200 Subject: [PATCH 643/693] pkgs/stdenv: fix defaultUnpack on nfs -p preserves permission,mode,timestamps. When trying to copy with permission on NFS, it can fail; The closest documentation I found on this was: https://access.redhat.com/solutions/725513 One suggestion is to change the netapp configuration, but another that should work for everyone is to use the cp command presented in this patch. With this, builds on nfs work for me. I however cannot say that I'm certain that removing the permission preservation won't cause any other troubles elsewhere, e.g. by perhaps introducing some sort of non-determinism. --- pkgs/stdenv/generic/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 72fdbef981da..0660c6b642db 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1211,7 +1211,7 @@ _defaultUnpack() { # We can't preserve hardlinks because they may have been # introduced by store optimization, which might break things # in the build. - cp -pr --reflink=auto -- "$fn" "$destination" + cp -r --preserve=mode,timestamps --reflink=auto -- "$fn" "$destination" else From 3174b49c7cac60d3e44d3b59172c3d6194f2360f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 28 Nov 2024 17:15:36 +0100 Subject: [PATCH 644/693] protobuf: 28.3 -> 29.0 --- pkgs/development/python-modules/protobuf/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/protobuf/default.nix b/pkgs/development/python-modules/protobuf/default.nix index 8e0cc3cc7a51..07674f06e050 100644 --- a/pkgs/development/python-modules/protobuf/default.nix +++ b/pkgs/development/python-modules/protobuf/default.nix @@ -8,12 +8,12 @@ buildPythonPackage rec { pname = "protobuf"; - version = "5.28.3"; + version = "5.29.0"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-ZLrbxJGApeQB83P5znqx0Ytj991KnNxDySufC0gc73s="; + hash = "sha256-RFoMAkg4ae2FE6WF2AAg0BLG3GAHX5b6BWOnJJh7EAE="; }; build-system = [ setuptools ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8fd968f959b1..325e56a8a109 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10587,7 +10587,7 @@ with pkgs; prospector = callPackage ../development/tools/prospector { }; - protobuf = protobuf_28; + protobuf = protobuf_29; inherit ({ From 5ce60ad159238046b4523baeef910e3c24a31fbe Mon Sep 17 00:00:00 2001 From: PerchunPak Date: Fri, 29 Nov 2024 00:37:01 +0100 Subject: [PATCH 645/693] python3Packages.aioresponses: 0.7.6 -> 0.7.7 --- .../python-modules/aioresponses/default.nix | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix index 929432d91e74..880f7505c28b 100644 --- a/pkgs/development/python-modules/aioresponses/default.nix +++ b/pkgs/development/python-modules/aioresponses/default.nix @@ -19,25 +19,16 @@ buildPythonPackage rec { pname = "aioresponses"; - version = "0.7.6"; + version = "0.7.7"; pyproject = true; disabled = pythonOlder "3.5"; src = fetchPypi { inherit pname version; - hash = "sha256-95XZ29otYXdIQOfjL1Nm9FdS0a3Bt0yTYq/QFylsfuE="; + hash = "sha256-ZikvHVyUo8uYTzM22AZEYEKtsXNH0wifLTli3W5bpVo="; }; - patches = [ - (fetchpatch2 { - # https://github.com/pnuckowski/aioresponses/pull/262 - name = "aiohttp-3.11.0-compat.patch"; - url = "https://github.com/pnuckowski/aioresponses/commit/e909123c5a70180a54443899d26b44ada511cd39.patch"; - hash = "sha256-i/2rPtX64buVrVDSdB06NMOJCTdgENsxZDyphXWRwJI="; - }) - ]; - nativeBuildInputs = [ pbr setuptools @@ -53,9 +44,10 @@ buildPythonPackage rec { ]; disabledTests = [ - # Skip a test which makes requests to httpbin.org + # Skip tests which make requests to httpbin.org "test_address_as_instance_of_url_combined_with_pass_through" "test_pass_through_with_origin_params" + "test_pass_through_unmatched_requests" ]; meta = { From 75d2d3c2926a4184f1124f53f42e7794b5c5777a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 29 Nov 2024 06:35:51 +0000 Subject: [PATCH 646/693] file: 5.45 -> 5.46 Changes: https://github.com/file/file/compare/FILE5_45...FILE5_46 --- pkgs/tools/misc/file/32-bit-time_t.patch | 38 ------------------------ pkgs/tools/misc/file/default.nix | 10 ++----- 2 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 pkgs/tools/misc/file/32-bit-time_t.patch diff --git a/pkgs/tools/misc/file/32-bit-time_t.patch b/pkgs/tools/misc/file/32-bit-time_t.patch deleted file mode 100644 index 19c595215d65..000000000000 --- a/pkgs/tools/misc/file/32-bit-time_t.patch +++ /dev/null @@ -1,38 +0,0 @@ -https://github.com/file/file/commit/218fdf813fd5ccecbb8887a1b62509cd1c6dd3a1.patch - -From 218fdf813fd5ccecbb8887a1b62509cd1c6dd3a1 Mon Sep 17 00:00:00 2001 -From: Christos Zoulas -Date: Fri, 28 Jul 2023 14:38:25 +0000 -Subject: [PATCH] deal with 32 bit time_t - ---- - src/file.h | 8 +++++--- - 1 file changed, 5 insertions(+), 3 deletions(-) - -diff --git a/src/file.h b/src/file.h -index 2e0494d2f..78f574ea1 100644 ---- a/src/file.h -+++ b/src/file.h -@@ -27,7 +27,7 @@ - */ - /* - * file.h - definitions for file(1) program -- * @(#)$File: file.h,v 1.247 2023/07/27 19:40:22 christos Exp $ -+ * @(#)$File: file.h,v 1.248 2023/07/28 14:38:25 christos Exp $ - */ - - #ifndef __file_h__ -@@ -159,9 +159,11 @@ - /* - * Dec 31, 23:59:59 9999 - * we need to make sure that we don't exceed 9999 because some libc -- * implementations like muslc crash otherwise -+ * implementations like muslc crash otherwise. If you are unlucky -+ * to be running on a system with a 32 bit time_t, then it is even less. - */ --#define MAX_CTIME CAST(time_t, 0x3afff487cfULL) -+#define MAX_CTIME \ -+ CAST(time_t, sizeof(time_t) > 4 ? 0x3afff487cfULL : 0x7fffffffULL) - - #define FILE_BADSIZE CAST(size_t, ~0ul) - #define MAXDESC 64 /* max len of text description/MIME type */ diff --git a/pkgs/tools/misc/file/default.nix b/pkgs/tools/misc/file/default.nix index f0bc89d466f5..9fa3bd053859 100644 --- a/pkgs/tools/misc/file/default.nix +++ b/pkgs/tools/misc/file/default.nix @@ -10,24 +10,18 @@ stdenv.mkDerivation (finalAttrs: { pname = "file"; - version = "5.45"; + version = "5.46"; src = fetchurl { urls = [ "https://astron.com/pub/file/file-${finalAttrs.version}.tar.gz" "https://distfiles.macports.org/file/file-${finalAttrs.version}.tar.gz" ]; - hash = "sha256-/Jf1ECm7DiyfTjv/79r2ePDgOe6HK53lwAKm0Jx4TYI="; + hash = "sha256-ycx3x8VgxUMTXtxVWvYJ1WGdvvARmX6YjOQKPXXYYIg="; }; outputs = [ "out" "dev" "man" ]; - patches = [ - # Upstream patch to fix 32-bit tests. - # Will be included in 5.46+ releases. - ./32-bit-time_t.patch - ]; - strictDeps = true; enableParallelBuilding = true; From d2b52620bf1dec76526d45865e49326796470c85 Mon Sep 17 00:00:00 2001 From: misilelab Date: Fri, 29 Nov 2024 19:02:09 +0900 Subject: [PATCH 647/693] uv: 0.5.4 -> 0.5.5 Signed-off-by: misilelaboratory --- pkgs/by-name/uv/uv/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/uv/uv/package.nix b/pkgs/by-name/uv/uv/package.nix index 73ec3e84f860..3abe878f2afd 100644 --- a/pkgs/by-name/uv/uv/package.nix +++ b/pkgs/by-name/uv/uv/package.nix @@ -13,17 +13,17 @@ rustPlatform.buildRustPackage rec { pname = "uv"; - version = "0.5.4"; + version = "0.5.5"; src = fetchFromGitHub { owner = "astral-sh"; repo = "uv"; rev = "refs/tags/${version}"; - hash = "sha256-Kieh76RUrDEwdL04mvCXOqbXHasMMpXRqp0LwMOIHdM="; + hash = "sha256-E0U6K+lvtIM9htpMpFN36JHA772LgTHaTCVGiTTlvQk="; }; useFetchCargoVendor = true; - cargoHash = "sha256-ZhHUKotXVDdwJs2kqIxME5I1FitWetx7FrQtluuIUWo="; + cargoHash = "sha256-WbA0/HojU/E2ccAvV2sv9EAXLqcb+99LFHxddcYFZFw="; nativeBuildInputs = [ cmake From 6a2e100c0b21ed75d1aa06767811b0f4d1f56c1a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 29 Nov 2024 08:05:50 +0100 Subject: [PATCH 648/693] ruff: 0.8.0 -> 0.8.1 Diff: https://github.com/astral-sh/ruff/compare/refs/tags/0.8.0...0.8.1 Changelog: https://github.com/astral-sh/ruff/releases/tag/0.8.1 --- pkgs/by-name/ru/ruff/package.nix | 50 +++++++++++++++----------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/pkgs/by-name/ru/ruff/package.nix b/pkgs/by-name/ru/ruff/package.nix index 2449165caeb0..ea326706b008 100644 --- a/pkgs/by-name/ru/ruff/package.nix +++ b/pkgs/by-name/ru/ruff/package.nix @@ -1,22 +1,22 @@ { lib, - rustPlatform, - fetchFromGitHub, - installShellFiles, stdenv, python3Packages, - darwin, + fetchFromGitHub, + rustPlatform, + installShellFiles, rust-jemalloc-sys, - ruff-lsp, - nix-update-script, versionCheckHook, - libiconv, + + # passthru + ruff-lsp, nixosTests, + nix-update-script, }: python3Packages.buildPythonPackage rec { pname = "ruff"; - version = "0.8.0"; + version = "0.8.1"; pyproject = true; outputs = [ @@ -28,7 +28,7 @@ python3Packages.buildPythonPackage rec { owner = "astral-sh"; repo = "ruff"; rev = "refs/tags/${version}"; - hash = "sha256-yenGZ7TuiHtY/3AIjMPlHVtQPP6PHMc1wdezfZdVtK0="; + hash = "sha256-N3TplR+vPu2r56VP/vnOfkxN3Lh2o92kE2hFZKLXO04="; }; # Do not rely on path lookup at runtime to find the ruff binary @@ -41,7 +41,7 @@ python3Packages.buildPythonPackage rec { cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; - hash = "sha256-O5+uVYWtSMEj7hBrc/FUuqRBN4hUlEbtDPF42kpL7PA="; + hash = "sha256-iddUzip2LmBMOB+MfpI4k3OitdPbwAZkc4szDPB6duM="; }; nativeBuildInputs = @@ -52,14 +52,9 @@ python3Packages.buildPythonPackage rec { cargoCheckHook ]); - buildInputs = - [ - rust-jemalloc-sys - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - darwin.apple_sdk.frameworks.CoreServices - libiconv - ]; + buildInputs = [ + rust-jemalloc-sys + ]; postInstall = '' @@ -74,14 +69,6 @@ python3Packages.buildPythonPackage rec { --zsh <($bin/bin/ruff generate-shell-completion zsh) ''; - passthru = { - tests = { - inherit ruff-lsp; - nixos-test-driver-busybox = nixosTests.nixos-test-driver.busybox; - }; - updateScript = nix-update-script { }; - }; - # Run cargo tests cargoCheckType = "debug"; postInstallCheck = '' @@ -123,6 +110,17 @@ python3Packages.buildPythonPackage rec { pythonImportsCheck = [ "ruff" ]; + passthru = { + tests = + { + inherit ruff-lsp; + } + // lib.optionalAttrs stdenv.hostPlatform.isLinux { + nixos-test-driver-busybox = nixosTests.nixos-test-driver.busybox; + }; + updateScript = nix-update-script { }; + }; + meta = { description = "Extremely fast Python linter"; homepage = "https://github.com/astral-sh/ruff"; From c5310090f8e8d28f3927a5e4dc83f320a2482f0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 29 Nov 2024 10:57:09 -0800 Subject: [PATCH 649/693] python312Packages.multipart: 1.1.0 -> 1.2.1 Diff: https://github.com/defnull/multipart/compare/refs/tags/v1.1.0...v1.2.1 Changelog: https://github.com/defnull/multipart/blob/refs/tags/v1.2.1/CHANGELOG.rst --- pkgs/development/python-modules/multipart/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/multipart/default.nix b/pkgs/development/python-modules/multipart/default.nix index 46ccd9bfa8f3..ff4aa63698db 100644 --- a/pkgs/development/python-modules/multipart/default.nix +++ b/pkgs/development/python-modules/multipart/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "multipart"; - version = "1.1.0"; + version = "1.2.1"; pyproject = true; src = fetchFromGitHub { owner = "defnull"; repo = "multipart"; rev = "refs/tags/v${version}"; - hash = "sha256-RaHAV1LapYf0zRW7cxxbe7ysAJ5xB6EvF1bsCbCWS0U="; + hash = "sha256-mQMv5atWrWpwyY9YYjaRYNDm5AfW54drPSKL7qiae+I="; }; build-system = [ flit-core ]; @@ -25,7 +25,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "multipart" ]; meta = { - changelog = "https://github.com/defnull/multipart/blob/${src.rev}/README.rst#changelog"; + changelog = "https://github.com/defnull/multipart/blob/${src.rev}/CHANGELOG.rst"; description = "Parser for multipart/form-data"; homepage = "https://github.com/defnull/multipart"; license = lib.licenses.mit; From ebc7e99684fd14781091c46e88e5e9c5c80b19b9 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 29 Nov 2024 20:50:06 +0100 Subject: [PATCH 650/693] zvbi: 0.2.42-unstable-2024-03-21 -> 0.2.42-unstable-2024-11-29 Fixes building for musl. --- pkgs/by-name/zv/zvbi/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/zv/zvbi/package.nix b/pkgs/by-name/zv/zvbi/package.nix index 47ca1e078b73..100d4ee3e646 100644 --- a/pkgs/by-name/zv/zvbi/package.nix +++ b/pkgs/by-name/zv/zvbi/package.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "zvbi"; - version = "0.2.42-unstable-2024-03-21"; + version = "0.2.42-unstable-2024-11-29"; src = fetchFromGitHub { owner = "zapping-vbi"; repo = "zvbi"; - rev = "a48ab3a0d72efe9968ebafa34c425c892e4afa50"; - hash = "sha256-1VTTNfXZ12hJWiW+M1WsE8H/PejrJsT/E2RHZ3OSIC8="; + rev = "f3aca6cb9eaf2b4f1fd28e94563db4773b98dfca"; + hash = "sha256-SG+MXauK4bZ1IMxklVt5R2y864Zs3MjGtpfN4np7xiE="; }; nativeBuildInputs = [ From 4b04ca42d4150283c60cb5ea8d0da56d1ce6cc06 Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Fri, 22 Nov 2024 18:28:36 +0000 Subject: [PATCH 651/693] ant: add passthru.home Makes modifying the ant_home location easier by centralizing the value. --- pkgs/by-name/an/ant/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/an/ant/package.nix b/pkgs/by-name/an/ant/package.nix index bedaa9b13949..1209746f7a78 100644 --- a/pkgs/by-name/an/ant/package.nix +++ b/pkgs/by-name/an/ant/package.nix @@ -85,6 +85,7 @@ stdenv.mkDerivation (finalAttrs: { ''; passthru = { + home = "${finalAttrs.finalPackage}/lib/ant"; updateScript = gitUpdater { rev-prefix = "rel/"; url = "https://gitbox.apache.org/repos/asf/ant"; From a87772b3950544a63181d5c6f8b2ec3be97a6ab0 Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Fri, 22 Nov 2024 18:29:26 +0000 Subject: [PATCH 652/693] processing: use ant.home instead of hardcoded value --- pkgs/applications/graphics/processing/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/processing/default.nix b/pkgs/applications/graphics/processing/default.nix index a7a38e6f75ab..b660d5cc8c34 100644 --- a/pkgs/applications/graphics/processing/default.nix +++ b/pkgs/applications/graphics/processing/default.nix @@ -93,7 +93,7 @@ stdenv.mkDerivation rec { echo "tarring jdk" tar --checkpoint=10000 -czf build/linux/jdk-17.0.8-${arch}.tgz ${jdk} - cp ${ant}/lib/ant/lib/{ant.jar,ant-launcher.jar} app/lib/ + cp ${ant.home}/lib/{ant.jar,ant-launcher.jar} app/lib/ mkdir -p core/library ln -s ${jogl}/share/java/* core/library/ ln -s ${vaqua} app/lib/VAqua9.jar From 8c06f39e268492c31d1065e189aef60cc08e2eb9 Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Fri, 22 Nov 2024 18:29:53 +0000 Subject: [PATCH 653/693] libreoffice: use ant.home instead of hardcoded value --- pkgs/applications/office/libreoffice/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/office/libreoffice/default.nix b/pkgs/applications/office/libreoffice/default.nix index efd3b01a7d16..438500f41cc0 100644 --- a/pkgs/applications/office/libreoffice/default.nix +++ b/pkgs/applications/office/libreoffice/default.nix @@ -461,7 +461,7 @@ in stdenv.mkDerivation (finalAttrs: { "--enable-dbus" "--enable-release-build" "--enable-epm" - "--with-ant-home=${getLib ant}/lib/ant" + "--with-ant-home=${ant.home}" # Without these, configure does not finish "--without-junit" From c14874697bd52e764d5dda345323248a63194dc6 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 27 Nov 2024 00:05:52 +0100 Subject: [PATCH 654/693] python3Packages.python-dbusmock: backport test fix for bluez 5.79 Fixes: 83b7cf4a00c0 ("bluez: 5.78 -> 5.79") --- pkgs/development/python-modules/python-dbusmock/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/python-dbusmock/default.nix b/pkgs/development/python-modules/python-dbusmock/default.nix index d39f44084d50..96f48d0ebd01 100644 --- a/pkgs/development/python-modules/python-dbusmock/default.nix +++ b/pkgs/development/python-modules/python-dbusmock/default.nix @@ -52,6 +52,11 @@ buildPythonPackage rec { url = "https://github.com/martinpitt/python-dbusmock/commit/4b99cff50e8c741f20aef4527b27ccdb2a4053d2.patch"; hash = "sha256-Xcovv44JeuTvPAtXWJvWE+MxlyloClSJGKZz+C3P5bE="; }) + (fetchpatch { + name = "tests-bluez-5.79.patch"; + url = "https://github.com/martinpitt/python-dbusmock/commit/d5e449bff924ea2b2837843237fbb5d9751c4f89.patch"; + hash = "sha256-CafQ/RhFynjI9eY4Xeu5yS+a29ZiJJnSYUmd74/2Dpg="; + }) ]; build-system = [ From f7398ad53a8f56e1e314e876e0a98ae4c4390416 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 26 Nov 2024 22:19:07 +0100 Subject: [PATCH 655/693] openh264: disable -Werror -Werror isn't suitable for distro builds because it means new breakages can appear before upstream has a chance to do anything about them, and they might not be worth failing the build over. Fixes building for musl. Link: https://github.com/cisco/openh264/pull/3809 --- pkgs/by-name/op/openh264/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/op/openh264/package.nix b/pkgs/by-name/op/openh264/package.nix index 18766f628c12..a8a74377e4ff 100644 --- a/pkgs/by-name/op/openh264/package.nix +++ b/pkgs/by-name/op/openh264/package.nix @@ -22,6 +22,10 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "dev" ]; + postPatch = '' + substituteInPlace meson.build --replace-fail "'-Werror'," "" + ''; + nativeBuildInputs = [ meson nasm From cccce2ac65ddb46369517fe568973570f0ea3e24 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 18 Nov 2024 15:04:27 +0100 Subject: [PATCH 656/693] linuxHeaders: 6.10 -> 6.12 --- pkgs/os-specific/linux/kernel-headers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel-headers/default.nix b/pkgs/os-specific/linux/kernel-headers/default.nix index b149b3f08d5c..054457edf256 100644 --- a/pkgs/os-specific/linux/kernel-headers/default.nix +++ b/pkgs/os-specific/linux/kernel-headers/default.nix @@ -111,12 +111,12 @@ let in { inherit makeLinuxHeaders; - linuxHeaders = let version = "6.10"; in + linuxHeaders = let version = "6.12"; in makeLinuxHeaders { inherit version; src = fetchurl { url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${version}.tar.xz"; - hash = "sha256-d0aYQi7lTF8ecERW83xlwGtRtOmosIZvNFgNhv744iY="; + hash = "sha256-saJWK+VuQq+z+EidTCp6xHKsIwmPHvHB5A2mAfVGJes="; }; patches = [ ./no-relocs.patch # for building x86 kernel headers on non-ELF platforms From f152afb13e9b576ee1aa2e77737bd89289411d2a Mon Sep 17 00:00:00 2001 From: Steven Keuchel Date: Thu, 28 Nov 2024 21:25:11 +0100 Subject: [PATCH 657/693] libjxl: fix broken extglob in patchPhase --- pkgs/by-name/li/libjxl/package.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/li/libjxl/package.nix b/pkgs/by-name/li/libjxl/package.nix index 57f4ab170faf..6211023c59d8 100644 --- a/pkgs/by-name/li/libjxl/package.nix +++ b/pkgs/by-name/li/libjxl/package.nix @@ -126,10 +126,9 @@ stdenv.mkDerivation rec { postPatch = '' # Make sure we do not accidentally build against some of the vendored dependencies # If it asks you to "run deps.sh to fetch the build dependencies", then you are probably missing a JPEGXL_FORCE_SYSTEM_* flag - ( - shopt -s extglob - rm -rf third_party/!(sjpeg)/ - ) + shopt -s extglob + rm -rf third_party/!(sjpeg)/ + shopt -u extglob substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \ --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl" From 66817904a04dc5f6f1c4018b29b7783edb32c453 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 28 Nov 2024 18:12:06 +0100 Subject: [PATCH 658/693] cargo,clippy,rustc,rustfmt: 1.82.0 -> 1.83.0 --- .../compilers/rust/{1_82.nix => 1_83.nix} | 44 +++++++------------ pkgs/top-level/all-packages.nix | 8 ++-- 2 files changed, 21 insertions(+), 31 deletions(-) rename pkgs/development/compilers/rust/{1_82.nix => 1_83.nix} (67%) diff --git a/pkgs/development/compilers/rust/1_82.nix b/pkgs/development/compilers/rust/1_83.nix similarity index 67% rename from pkgs/development/compilers/rust/1_82.nix rename to pkgs/development/compilers/rust/1_83.nix index 45734f893dca..8232079a2adc 100644 --- a/pkgs/development/compilers/rust/1_82.nix +++ b/pkgs/development/compilers/rust/1_83.nix @@ -28,7 +28,6 @@ llvm_19, wrapCCWith, overrideCC, - fetchpatch, }@args: let llvmSharedFor = @@ -48,8 +47,8 @@ let in import ./default.nix { - rustcVersion = "1.82.0"; - rustcSha256 = "fFP0UJ7aGE4XTvprp9XutYZYVobOjt78eBorEafPUSo="; + rustcVersion = "1.83.0"; + rustcSha256 = "ci13O9Tqstgo1901tZ8LAX3fmpfuK0bBt/f6xciEHG4="; llvmSharedForBuild = llvmSharedFor pkgsBuildBuild; llvmSharedForHost = llvmSharedFor pkgsBuildHost; @@ -107,34 +106,26 @@ import ./default.nix # Note: the version MUST be the same version that we are building. Upstream # ensures that each released compiler can compile itself: # https://github.com/NixOS/nixpkgs/pull/351028#issuecomment-2438244363 - bootstrapVersion = "1.82.0"; + bootstrapVersion = "1.83.0"; # fetch hashes by running `print-hashes.sh ${bootstrapVersion}` bootstrapHashes = { - i686-unknown-linux-gnu = "77b261fb3d9efa7fe39e87c024987495e03b647b6cb23a66b8e69aeb12a8be61"; - x86_64-unknown-linux-gnu = "0265c08ae997c4de965048a244605fb1f24a600bbe35047b811c638b8fcf676b"; - x86_64-unknown-linux-musl = "9dd781c64f71c1d3f854b0937eb751f19e8ebac1110e68e08b94223ad9b022ba"; - arm-unknown-linux-gnueabihf = "d6a2857d0ab8880c3bc691607b10b68fb2750eae35144e035a9a5eeef820b740"; - armv7-unknown-linux-gnueabihf = "eff9939c4b98c6ad91a759fa1a2ebdd81b4d05e47ac523218bf9d7093226589b"; - aarch64-unknown-linux-gnu = "d7db04fce65b5f73282941f3f1df5893be9810af17eb7c65b2e614461fe31a48"; - aarch64-unknown-linux-musl = "f061eabf0324805637c1e89e7d936365f705be1359699efbda59b637dbe9715f"; - x86_64-apple-darwin = "b1a289cabc523f259f65116a41374ac159d72fbbf6c373bd5e545c8e835ceb6a"; - aarch64-apple-darwin = "49b6d36b308addcfd21ae56c94957688338ba7b8985bff57fc626c8e1b32f62c"; - powerpc64le-unknown-linux-gnu = "44f3a1e70be33f91927ae8d89a11843a79b8b6124d62a9ddd9030a5275ebc923"; - riscv64gc-unknown-linux-gnu = "a72e8aa3fff374061ff90ada317a8d170c2a15eb079ddc828c97189179d3eebd"; - s390x-unknown-linux-gnu = "63760886a9b2de6cb38f75a236db358939d904e205e1e2bc9d96cec69e00ae83"; - x86_64-unknown-freebsd = "f7b51943dbed0af3387e3269c1767fee916fb22b8e7897b3594bf5e422403137"; + i686-unknown-linux-gnu = "cb4763e8e04a302486e06195917921f917b485d1138823b9ebae1e23abf55a99"; + x86_64-unknown-linux-gnu = "bd9d53d09d4b60826288336de19fb9c5c7592081e4e4520d6de2f65ee8d79087"; + x86_64-unknown-linux-musl = "d1d379e8bb545466f53f8a5821dfbc7129e8cab046c44c0a9ea089eeff1616e1"; + arm-unknown-linux-gnueabihf = "1ac6ebcb610226c7d81d52ef5158571567d5385a62a41ba73775e52c25666220"; + armv7-unknown-linux-gnueabihf = "747c685a4858f2814a7e493e5d2552ff4234ad41e724560c75738340947cf425"; + aarch64-unknown-linux-gnu = "ec70c500e2744f0db55bd495ef90534a31fd9c0d5f5a2d752182a59e439ddee3"; + aarch64-unknown-linux-musl = "b7aabedc3d6109e2b46e02e2925aafd8d0aa2d319390a257c170b6750ba683ce"; + x86_64-apple-darwin = "d878d4508e0bf2d699e4c8b9b8b9ccd30787859f60149c0934371c53a0fdf013"; + aarch64-apple-darwin = "a605f4e3732eb472dac524861ca8c7456a923e4b4c883b0c8ebfba7550238f41"; + powerpc64le-unknown-linux-gnu = "0bf705a288994d47975e10bd2a709d00e4caf6cc53b02a8847ad607cbc77e24a"; + riscv64gc-unknown-linux-gnu = "f4cb563530ad12daba059373a354cf0dcb53a88e5a5d24928778d2736a0e8c65"; + s390x-unknown-linux-gnu = "502010d6f40b1385c4b99cf74ff0436102efd155ec1e49bca4c02e8c68a4b142"; + x86_64-unknown-freebsd = "3b55ed8afe27032128622b14e4f4b59d66b3cc7ff64e6df7a06d5e224b3de2a1"; }; - selectRustPackage = pkgs: pkgs.rust_1_82; - - rustcPatches = [ - (fetchpatch { - name = "fix-fastCross.patch"; - url = "https://github.com/rust-lang/rust/commit/c15469a7fec811d1a4f69ff26e18c6f383df41d2.patch"; - hash = "sha256-lFc48AMoGf4LCP65IsXS5rEB9eYacTP8ADftQkj8zkg="; - }) - ]; + selectRustPackage = pkgs: pkgs.rust_1_83; } ( @@ -143,7 +134,6 @@ import ./default.nix "llvm_19" "wrapCCWith" "overrideCC" - "fetchpatch" "pkgsHostTarget" ] ) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5fc0fa29bc4b..3172cc21cbeb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6829,11 +6829,11 @@ with pkgs; wrapRustcWith = { rustc-unwrapped, ... } @ args: callPackage ../build-support/rust/rustc-wrapper args; wrapRustc = rustc-unwrapped: wrapRustcWith { inherit rustc-unwrapped; }; - rust_1_82 = callPackage ../development/compilers/rust/1_82.nix { + rust_1_83 = callPackage ../development/compilers/rust/1_83.nix { inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration; llvm_19 = llvmPackages_19.libllvm; }; - rust = rust_1_82; + rust = rust_1_83; mrustc = callPackage ../development/compilers/mrustc { }; mrustc-minicargo = callPackage ../development/compilers/mrustc/minicargo.nix { }; @@ -6841,8 +6841,8 @@ with pkgs; openssl = openssl_1_1; }; - rustPackages_1_82 = rust_1_82.packages.stable; - rustPackages = rustPackages_1_82; + rustPackages_1_83 = rust_1_83.packages.stable; + rustPackages = rustPackages_1_83; inherit (rustPackages) cargo cargo-auditable cargo-auditable-cargo-wrapper clippy rustc rustPlatform; From 1621c3b8701f9480464f4c635af0decee527deab Mon Sep 17 00:00:00 2001 From: Peter Waller Date: Sat, 30 Nov 2024 12:53:58 +0000 Subject: [PATCH 659/693] rsync: skip runtime ipv6 configure check Rsync's configure phase does a runtime check for ipv6 availability unless explicitly enabled/disabled, leading to a diverged build between machines if one machine has `ipv6.disable=1` kernel commandline on linux. Skip the check by always enabling it. Ref: RsyncProject/rsync#675 Fix: #360152 Signed-off-by: Peter Waller --- pkgs/applications/networking/sync/rsync/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/networking/sync/rsync/default.nix b/pkgs/applications/networking/sync/rsync/default.nix index 32236f36a9b9..4c38daf0d779 100644 --- a/pkgs/applications/networking/sync/rsync/default.nix +++ b/pkgs/applications/networking/sync/rsync/default.nix @@ -48,6 +48,9 @@ stdenv.mkDerivation rec { (lib.enableFeature enableOpenSSL "openssl") (lib.enableFeature enableXXHash "xxhash") (lib.enableFeature enableZstd "zstd") + # Feature detection does a runtime check which varies according to ipv6 + # availability, so force it on to make reproducible, see #360152. + (lib.enableFeature true "ipv6") "--with-nobody-group=nogroup" # disable the included zlib explicitly as it otherwise still compiles and From 56b09628e33333c9a9a9463f004fe24ce01e5f98 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 30 Nov 2024 16:38:02 +0100 Subject: [PATCH 660/693] stdenv: support multi-char separators in concatStringsSep One prominent use-case for this is pytestCheckHook. This will help making it work with structuredAttrs in the future. --- .../python/hooks/pytest-check-hook.sh | 25 +------------------ pkgs/stdenv/generic/setup.sh | 15 ++++++++--- pkgs/test/stdenv/default.nix | 8 ++++++ 3 files changed, 21 insertions(+), 27 deletions(-) diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index fd61fd14043d..b542398a92b0 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -4,29 +4,6 @@ echo "Sourcing pytest-check-hook" declare -ar disabledTests declare -a disabledTestPaths -function _concatSep { - local result - local sep="$1" - local -n arr=$2 - for index in ${!arr[*]}; do - if [ $index -eq 0 ]; then - result="${arr[index]}" - else - result+=" $sep ${arr[index]}" - fi - done - echo "$result" -} - -function _pytestComputeDisabledTestsString() { - declare -a tests - local tests=($1) - local prefix="not " - prefixed=("${tests[@]/#/$prefix}") - result=$(_concatSep "and" prefixed) - echo "$result" -} - function pytestCheckPhase() { echo "Executing pytestCheckPhase" runHook preCheck @@ -34,7 +11,7 @@ function pytestCheckPhase() { # Compose arguments args=" -m pytest" if [ -n "$disabledTests" ]; then - disabledTestsString=$(_pytestComputeDisabledTestsString "${disabledTests[@]}") + disabledTestsString="not $(concatStringsSep " and not " disabledTests)" args+=" -k \""$disabledTestsString"\"" fi diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 0660c6b642db..79997237482f 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -432,6 +432,11 @@ concatTo() { # $ flags=("lorem ipsum" "dolor" "sit amet") # $ concatStringsSep ";" flags # lorem ipsum;dolor;sit amet +# +# Also supports multi-character separators; +# $ flags=("lorem ipsum" "dolor" "sit amet") +# $ concatStringsSep " and " flags +# lorem ipsum and dolor and sit amet concatStringsSep() { local sep="$1" local name="$2" @@ -443,11 +448,15 @@ concatStringsSep() { echo "concatStringsSep(): ERROR: trying to use concatStringsSep on an associative array." >&2 return 1 ;; -a*) - local IFS="$sep" - echo -n "${nameref[*]}" ;; + # \036 is the "record separator" character. We assume that this will never need to be part of + # an argument string we create here. If anyone ever hits this limitation: Feel free to refactor. + local IFS=$'\036' ;; *) - echo -n "${nameref// /"${sep}"}" ;; + local IFS=" " ;; + esac + local ifs_separated="${nameref[*]}" + echo -n "${ifs_separated//"$IFS"/"$sep"}" fi } diff --git a/pkgs/test/stdenv/default.nix b/pkgs/test/stdenv/default.nix index d8f11f98e9b8..cd333ccf04be 100644 --- a/pkgs/test/stdenv/default.nix +++ b/pkgs/test/stdenv/default.nix @@ -161,6 +161,14 @@ let arrayWithSep="$(concatStringsSep "&" array)" [[ "$arrayWithSep" == "lorem ipsum&dolor&sit amet" ]] || (echo "'\$arrayWithSep' was not 'lorem ipsum&dolor&sit amet'" && false) + array=("lorem ipsum" "dolor" "sit amet") + arrayWithSep="$(concatStringsSep "++" array)" + [[ "$arrayWithSep" == "lorem ipsum++dolor++sit amet" ]] || (echo "'\$arrayWithSep' was not 'lorem ipsum++dolor++sit amet'" && false) + + array=("lorem ipsum" "dolor" "sit amet") + arrayWithSep="$(concatStringsSep " and " array)" + [[ "$arrayWithSep" == "lorem ipsum and dolor and sit amet" ]] || (echo "'\$arrayWithSep' was not 'lorem ipsum and dolor and sit amet'" && false) + touch $out ''; }; From 445371f309a62e9107ad78fb3c65fff768efb43c Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 30 Nov 2024 17:02:08 +0100 Subject: [PATCH 661/693] postgresql: enable strictDeps --- pkgs/servers/sql/postgresql/generic.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 79111b589938..a2826aa012f7 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -149,6 +149,8 @@ let ]; }; + strictDeps = true; + buildInputs = [ zlib readline @@ -171,6 +173,7 @@ let ++ lib.optionals nlsSupport [ gettext ]; nativeBuildInputs = [ + libxml2 makeWrapper pkg-config removeReferencesTo From 3bd9f92eae830c03ec6e37b1727d4b43052149eb Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 29 Sep 2024 14:48:16 +0200 Subject: [PATCH 662/693] pkgsStatic.postgresql: fix build The underlying problem was fixed as a side-effect of [1], for reasons unknown to me. In the current state, it's enough to disable a few breaking dependencies to make the build pass. Note, that this builds the full package, including backend. However, the backend is not working, yet: Loading shared modules, which PostgreSQL heavily depends is still broken. Further, all binaries in the default output, even client binaries such as psql, are currently dynamically linked against libpq.so. While the current autoconf based build system doesn't support changing this, this might be possible in the future with meson. However, not all is bad: Fixing the build allows using the static libpq.a library, which is probably the one thing that most users want from pkgsStatic.postgresql anyway. Resolves #191920 [1]: 77977286d80c9bfb77cbf80989d41c59d66dccf8 --- pkgs/servers/sql/postgresql/generic.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index a2826aa012f7..54658d76b959 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -53,7 +53,11 @@ let , libkrb5 # icu - , icuSupport ? true + # Building with icu in pkgsStatic gives tons of "undefined reference" errors like this: + # /nix/store/452lkaak37d3mzzn3p9ak7aa3wzhdqaj-icu4c-74.2-x86_64-unknown-linux-musl/lib/libicuuc.a(chariter.ao): + # (.data.rel.ro._ZTIN6icu_7417CharacterIteratorE[_ZTIN6icu_7417CharacterIteratorE]+0x0): + # undefined reference to `vtable for __cxxabiv1::__si_class_type_info' + , icuSupport ? !stdenv.hostPlatform.isStatic , icu # JIT @@ -71,7 +75,11 @@ let , gettext # PAM - , pamSupport ? stdenv.hostPlatform.isLinux + # Building with linux-pam in pkgsStatic gives a few "undefined reference" errors like this: + # /nix/store/3s55icpsbc36sgn7sa8q3qq4z6al6rlr-linux-pam-static-x86_64-unknown-linux-musl-1.6.1/lib/libpam.a(pam_audit.o): + # in function `pam_modutil_audit_write':(.text+0x571): + # undefined reference to `audit_close' + , pamSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isStatic , linux-pam # PL/Perl @@ -267,7 +275,7 @@ let # because there is a realistic use-case for extensions to locate the /lib directory to # load other shared modules. remove-references-to -t "$dev" -t "$doc" -t "$man" "$out/bin/postgres" - + '' + lib.optionalString (!stdenv'.hostPlatform.isStatic) '' if [ -z "''${dontDisableStatic:-}" ]; then # Remove static libraries in case dynamic are available. for i in $lib/lib/*.a; do @@ -278,6 +286,7 @@ let fi done fi + '' + '' # The remaining static libraries are libpgcommon.a, libpgport.a and related. # Those are only used when building e.g. extensions, so go to $dev. moveToOutput "lib/*.a" "$dev" @@ -306,7 +315,7 @@ let # Also see /doc/stdenv/platform-notes.chapter.md doCheck = false; # Tests just get stuck on macOS 14.x for v13 and v14 - doInstallCheck = !(stdenv'.hostPlatform.isDarwin && olderThan "15"); + doInstallCheck = !(stdenv'.hostPlatform.isDarwin && olderThan "15") && !(stdenv'.hostPlatform.isStatic); installCheckTarget = "check-world"; passthru = let From a77adf3285ce0dde751b77ff970098fea1913870 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 28 Nov 2024 20:31:41 +0100 Subject: [PATCH 663/693] postgresql: add -export_dynamic on darwin only for v16 --- pkgs/servers/sql/postgresql/generic.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 54658d76b959..30191c1986ad 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -218,9 +218,8 @@ let ++ lib.optionals pythonSupport [ "--with-python" ] ++ lib.optionals jitSupport [ "--with-llvm" ] ++ lib.optionals pamSupport [ "--with-pam" ] - # This could be removed once the upstream issue is resolved: - # https://postgr.es/m/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b%40technowledgy.de - ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ] + # This can be removed once v17 is removed. v18+ ships with it. + ++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16" && olderThan "18") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ] ++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ] ++ lib.optionals ldapSupport [ "--with-ldap" ] ++ lib.optionals tclSupport [ "--with-tcl" ] From a7049cc45c8cf186d888d9e0194e32e3a9993b24 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 28 Nov 2024 17:37:29 -0500 Subject: [PATCH 664/693] zvbi: propagate libiconv and libintl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit zvbi’s `.pc` tries to link libiconv and libintl. Make sure these libraries are propagated to prevent false negatives detecting it. --- pkgs/by-name/zv/zvbi/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/zv/zvbi/package.nix b/pkgs/by-name/zv/zvbi/package.nix index 47ca1e078b73..bcdd838051cf 100644 --- a/pkgs/by-name/zv/zvbi/package.nix +++ b/pkgs/by-name/zv/zvbi/package.nix @@ -4,6 +4,7 @@ gitUpdater, lib, libiconv, + libintl, stdenv, testers, validatePkgConfig, @@ -25,7 +26,10 @@ stdenv.mkDerivation (finalAttrs: { validatePkgConfig ]; - buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv; + propagatedBuildInputs = [ + libiconv + libintl + ]; outputs = [ "out" From df901165cd95d7183af191eeff8b4fb75c48ec85 Mon Sep 17 00:00:00 2001 From: Tomodachi94 Date: Fri, 22 Nov 2024 17:09:43 +0000 Subject: [PATCH 665/693] ant: change ant home to $out/share Everything in the Ant home is platform-agnostic (JARs), so it should go to $out/share. Debian puts the Ant home into /usr/share as well, so this is not unprecedented: https://salsa.debian.org/java-team/ant/-/blob/31d9fc0a76ac991509fcfc537ffc3dbf61ebc41d/debian/README.Debian Fedora does too: https://src.fedoraproject.org/rpms/ant/blob/20b8a9a5596a5fd2b12c1d6f922f4502450db674/f/ant.spec#_39 And Arch Linux: https://gitlab.archlinux.org/archlinux/packaging/packages/ant/-/blob/e8e0ddb82105f16cd7d8153091c2c6f527d9b371/PKGBUILD#L59 And Gentoo: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-java/ant/ant-1.10.15.ebuild?id=55bcd350a89469eac0af4bfafe464050d01154e0#n381 And probably more, I stopped looking :) --- pkgs/by-name/an/ant/package.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/an/ant/package.nix b/pkgs/by-name/an/ant/package.nix index 1209746f7a78..073c14a0b57e 100644 --- a/pkgs/by-name/an/ant/package.nix +++ b/pkgs/by-name/an/ant/package.nix @@ -24,27 +24,27 @@ stdenv.mkDerivation (finalAttrs: { }; installPhase = '' - mkdir -p $out/bin $out/lib/ant - mv * $out/lib/ant/ + mkdir -p $out/bin $out/share/ant + mv * $out/share/ant/ # Get rid of the manual (35 MiB). Maybe we should put this in a # separate output. Keep the antRun script since it's vanilla sh # and needed for the task (but since we set ANT_HOME to # a weird value, we have to move antRun to a weird location). # Get rid of the other Ant scripts since we provide our own. - mv $out/lib/ant/bin/antRun $out/bin/ - rm -rf $out/lib/ant/{manual,bin,WHATSNEW} - mkdir $out/lib/ant/bin - mv $out/bin/antRun $out/lib/ant/bin/ + mv $out/share/ant/bin/antRun $out/bin/ + rm -rf $out/share/ant/{manual,bin,WHATSNEW} + mkdir $out/share/ant/bin + mv $out/bin/antRun $out/share/ant/bin/ # Install ant-contrib. unpackFile $contrib - cp -p ant-contrib/ant-contrib-*.jar $out/lib/ant/lib/ + cp -p ant-contrib/ant-contrib-*.jar $out/share/ant/lib/ cat >> $out/bin/ant < Date: Fri, 29 Nov 2024 23:57:45 -0800 Subject: [PATCH 666/693] pkgsStatic.ruff: ignore tests doctests do not appear to respect the linker option set in `.cargo/config.toml`. Until this gets fixed, tests are disabled on static builds. error: ``` ---- crates/red_knot_python_semantic/src/module_name.rs - module_name::ModuleName::parent (line 84) stdout ---- error: linker `cc` not found | = note: No such file or directory (os error 2) error: aborting due to 1 previous error Couldn't compile the test. ``` --- pkgs/by-name/ru/ruff/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ru/ruff/package.nix b/pkgs/by-name/ru/ruff/package.nix index ea326706b008..6fd163a518cd 100644 --- a/pkgs/by-name/ru/ruff/package.nix +++ b/pkgs/by-name/ru/ruff/package.nix @@ -71,7 +71,10 @@ python3Packages.buildPythonPackage rec { # Run cargo tests cargoCheckType = "debug"; - postInstallCheck = '' + # tests do not appear to respect linker options on doctests + # Upstream issue: https://github.com/rust-lang/cargo/issues/14189 + # This causes errors like "error: linker `cc` not found" on static builds + postInstallCheck = lib.optionalString (!stdenv.hostPlatform.isStatic) '' cargoCheckHook ''; From 217d3132cfaf728be0b0728d7ecf2c05dd0791ff Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 30 Nov 2024 17:40:00 +0100 Subject: [PATCH 667/693] various: remove unused substituteAll imports --- pkgs/build-support/docker/default.nix | 1 - pkgs/build-support/dotnet/build-dotnet-module/default.nix | 1 - pkgs/by-name/cb/cbmc/package.nix | 1 - pkgs/by-name/tp/tpm2-pkcs11/package.nix | 2 +- pkgs/development/compilers/llvm/common/clang/default.nix | 1 - pkgs/development/tools/electron/common.nix | 1 - 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index 80c5c79dea91..c948d802a953 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -26,7 +26,6 @@ , skopeo , stdenv , storeDir ? builtins.storeDir -, substituteAll , symlinkJoin , tarsum , util-linux diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index 7b02b92b3c65..418e21b36c70 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -3,7 +3,6 @@ runtimeShell, stdenvNoCC, callPackage, - substituteAll, writeShellScript, makeWrapper, dotnetCorePackages, diff --git a/pkgs/by-name/cb/cbmc/package.nix b/pkgs/by-name/cb/cbmc/package.nix index fb360095c7bc..afec7c8aca05 100644 --- a/pkgs/by-name/cb/cbmc/package.nix +++ b/pkgs/by-name/cb/cbmc/package.nix @@ -11,7 +11,6 @@ makeWrapper, perl, substituteAll, - substitute, cudd, fetchurl, nix-update-script, diff --git a/pkgs/by-name/tp/tpm2-pkcs11/package.nix b/pkgs/by-name/tp/tpm2-pkcs11/package.nix index 80d9a1c45200..06ae9c5f849c 100644 --- a/pkgs/by-name/tp/tpm2-pkcs11/package.nix +++ b/pkgs/by-name/tp/tpm2-pkcs11/package.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, substituteAll +{ stdenv, lib, fetchFromGitHub , pkg-config, autoreconfHook, autoconf-archive, makeWrapper, patchelf , tpm2-tss, tpm2-tools, opensc, openssl, sqlite, python3, glibc, libyaml , abrmdSupport ? true, tpm2-abrmd ? null diff --git a/pkgs/development/compilers/llvm/common/clang/default.nix b/pkgs/development/compilers/llvm/common/clang/default.nix index 88f5dfd84d6a..e1d052e0ab7b 100644 --- a/pkgs/development/compilers/llvm/common/clang/default.nix +++ b/pkgs/development/compilers/llvm/common/clang/default.nix @@ -5,7 +5,6 @@ , src ? null , monorepoSrc ? null , runCommand -, substituteAll , cmake , ninja , libxml2 diff --git a/pkgs/development/tools/electron/common.nix b/pkgs/development/tools/electron/common.nix index bd4843edbcca..3be25cfbe9d0 100644 --- a/pkgs/development/tools/electron/common.nix +++ b/pkgs/development/tools/electron/common.nix @@ -8,7 +8,6 @@ , fixup-yarn-lock , npmHooks , yarn -, substituteAll , libnotify , unzip , pkgs From 4423b0746c9f0a8c1467327ab472991fc23ebb7f Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 23 Nov 2024 13:45:07 +0100 Subject: [PATCH 668/693] various: replace substituteAll with replaceVars This deals with some special cases, i.e. where "null" is used to avoid replacing some values or where the syntax is not too easy to grep for for automated replacement. --- .../applications/editors/emacs/make-emacs.nix | 8 ++--- .../kde/kdegraphics-thumbnailers/default.nix | 5 ++-- pkgs/build-support/testers/default.nix | 4 +-- pkgs/by-name/hy/hylafaxplus/config.site | 18 ++++++------ pkgs/by-name/hy/hylafaxplus/package.nix | 16 ++++------ .../li/libnvidia-container/package.nix | 5 ++-- pkgs/by-name/ps/ps2eps/package.nix | 8 ++--- pkgs/by-name/zo/zod/package.nix | 5 ++-- .../compilers/llvm/common/default.nix | 21 ++++++++------ .../python-modules/pysdl2/PySDL2-dll.patch | 10 +++---- .../python-modules/pysdl2/default.nix | 29 +++++++++---------- pkgs/development/tools/ocaml/merlin/4.x.nix | 8 ++--- .../gear/kdegraphics-thumbnailers/default.nix | 5 ++-- pkgs/os-specific/linux/lvm2/common.nix | 6 ++-- 14 files changed, 69 insertions(+), 79 deletions(-) diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index 7bae78f35e70..3305b674dac6 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -51,7 +51,7 @@ , recurseIntoAttrs , sigtool , sqlite -, substituteAll +, replaceVars , systemd , tree-sitter , texinfo @@ -148,12 +148,12 @@ mkDerivation (finalAttrs: { inherit src; patches = patches fetchpatch ++ lib.optionals withNativeCompilation [ - (substituteAll { - src = if lib.versionOlder finalAttrs.version "29" + (replaceVars (if lib.versionOlder finalAttrs.version "29" then ./native-comp-driver-options-28.patch else if lib.versionOlder finalAttrs.version "30" then ./native-comp-driver-options.patch - else ./native-comp-driver-options-30.patch; + else ./native-comp-driver-options-30.patch) { + backendPath = (lib.concatStringsSep " " (builtins.map (x: ''"-B${x}"'') ([ # Paths necessary so the JIT compiler finds its libraries: diff --git a/pkgs/applications/kde/kdegraphics-thumbnailers/default.nix b/pkgs/applications/kde/kdegraphics-thumbnailers/default.nix index 6686f582d6d2..a8711164926c 100644 --- a/pkgs/applications/kde/kdegraphics-thumbnailers/default.nix +++ b/pkgs/applications/kde/kdegraphics-thumbnailers/default.nix @@ -1,5 +1,5 @@ { - mkDerivation, lib, ghostscript, substituteAll, + mkDerivation, lib, ghostscript, replaceVars, extra-cmake-modules, karchive, kio, libkexiv2, libkdcraw, kdegraphics-mobipocket }: @@ -15,9 +15,8 @@ mkDerivation { patches = [ # Hardcode patches to Ghostscript so PDF thumbnails work OOTB. # Intentionally not doing the same for dvips because TeX is big. - (substituteAll { + (replaceVars ./gs-paths.patch { gs = "${ghostscript}/bin/gs"; - src = ./gs-paths.patch; }) ]; } diff --git a/pkgs/build-support/testers/default.nix b/pkgs/build-support/testers/default.nix index ba605adeb9a0..92b248882e6f 100644 --- a/pkgs/build-support/testers/default.nix +++ b/pkgs/build-support/testers/default.nix @@ -10,7 +10,7 @@ runCommandWith, stdenv, stdenvNoCC, - substituteAll, + replaceVars, testers, }: # Documentation is in doc/build-helpers/testers.chapter.md @@ -24,7 +24,7 @@ testBuildFailure = drv: drv.overrideAttrs (orig: { builder = buildPackages.bash; args = [ - (substituteAll { coreutils = buildPackages.coreutils; src = ./expect-failure.sh; }) + (replaceVars ./expect-failure.sh { coreutils = buildPackages.coreutils; }) orig.realBuilder or stdenv.shell ] ++ orig.args or ["-e" (orig.builder or ../../stdenv/generic/default-builder.sh)]; }); diff --git a/pkgs/by-name/hy/hylafaxplus/config.site b/pkgs/by-name/hy/hylafaxplus/config.site index 7c8014449216..aa66fad916b7 100644 --- a/pkgs/by-name/hy/hylafaxplus/config.site +++ b/pkgs/by-name/hy/hylafaxplus/config.site @@ -1,16 +1,16 @@ @config_maxgid@ -DIR_BIN="@out_@/bin" -DIR_FONTMAP="@out_@/share/ghostscript/@ghostscript_version@" -DIR_LIB="@out_@/lib" -DIR_LIBDATA="@out_@/spool/etc" -DIR_LIBEXEC="@out_@/spool/bin" +DIR_BIN="@out@/bin" +DIR_FONTMAP="@out@/share/ghostscript/@ghostscript_version@" +DIR_LIB="@out@/lib" +DIR_LIBDATA="@out@/spool/etc" +DIR_LIBEXEC="@out@/spool/bin" DIR_LOCKS=/var/lock -DIR_MAN="@out_@/share/man" -DIR_SBIN="@out_@/spool/bin" -DIR_SPOOL="@out_@/spool" +DIR_MAN="@out@/share/man" +DIR_SBIN="@out@/spool/bin" +DIR_SPOOL="@out@/spool" FONTMAP="@ghostscript@/share/ghostscript/@ghostscript_version@" PATH_AFM="@ghostscript@/share/ghostscript/fonts" -PATH_DPSRIP="@out_@/spool/bin/ps2fax" +PATH_DPSRIP="@out@/spool/bin/ps2fax" PATH_EGETTY="@coreutils@/bin/false" PATH_GSRIP="@ghostscript@/bin/gs" PATH_IMPRIP="@coreutils@/bin/false" diff --git a/pkgs/by-name/hy/hylafaxplus/package.nix b/pkgs/by-name/hy/hylafaxplus/package.nix index 3c66ce8129f3..c2c6045ecc4b 100644 --- a/pkgs/by-name/hy/hylafaxplus/package.nix +++ b/pkgs/by-name/hy/hylafaxplus/package.nix @@ -3,7 +3,7 @@ , fakeroot , fetchurl , libfaketime -, substituteAll +, replaceVars ## runtime dependencies , coreutils , file @@ -35,18 +35,14 @@ let version = "7.0.9"; hash = "sha512-3OJwM4vFC9pzPozPobFLiNNx/Qnkl8BpNNziRUpJNBDLBxjtg/eDm3GnprS2hpt7VUoV4PCsFvp1hxhNnhlUwQ=="; - configSite = substituteAll { - name = "${pname}-config.site"; - src = ./config.site; + configSite = replaceVars ./config.site { config_maxgid = lib.optionalString (maxgid!=null) ''CONFIG_MAXGID=${builtins.toString maxgid}''; ghostscript_version = ghostscript.version; - out_ = "@out@"; # "out" will be resolved in post-install.sh + out = null; # "out" will be resolved in post-install.sh inherit coreutils ghostscript libtiff; }; - postPatch = substituteAll { - name = "${pname}-post-patch.sh"; - src = ./post-patch.sh; + postPatch = replaceVars ./post-patch.sh { inherit configSite; maxuid = lib.optionalString (maxuid!=null) (builtins.toString maxuid); faxcover_binpath = lib.makeBinPath @@ -55,9 +51,7 @@ let [stdenv.shellPackage coreutils findutils gnused gnugrep gawk]; }; - postInstall = substituteAll { - name = "${pname}-post-install.sh"; - src = ./post-install.sh; + postInstall = replaceVars ./post-install.sh { inherit fakeroot libfaketime; }; diff --git a/pkgs/by-name/li/libnvidia-container/package.nix b/pkgs/by-name/li/libnvidia-container/package.nix index 9b3023813c3f..703943bc2d20 100644 --- a/pkgs/by-name/li/libnvidia-container/package.nix +++ b/pkgs/by-name/li/libnvidia-container/package.nix @@ -10,7 +10,6 @@ rpcsvc-proto, libtirpc, makeWrapper, - substituteAll, removeReferencesTo, replaceVars, go, @@ -23,8 +22,8 @@ let rev = modprobeVersion; sha256 = "sha256-iBRMkvOXacs/llTtvc/ZC5i/q9gc8lMuUHxMbu8A+Kg="; }; - modprobePatch = substituteAll { - src = ./modprobe.patch; + modprobePatch = replaceVars ./modprobe.patch { + inherit modprobeVersion; }; in diff --git a/pkgs/by-name/ps/ps2eps/package.nix b/pkgs/by-name/ps/ps2eps/package.nix index c8f558889c60..88d295b03c66 100644 --- a/pkgs/by-name/ps/ps2eps/package.nix +++ b/pkgs/by-name/ps/ps2eps/package.nix @@ -1,7 +1,7 @@ { lib , fetchFromGitHub , perlPackages -, substituteAll +, replaceVars , ghostscript , installShellFiles }: @@ -18,11 +18,11 @@ perlPackages.buildPerlPackage rec { hash = "sha256-SPLwsGKLVhANoqSQ/GJ938cYjbjMbUOXkNn9so3aJTA="; }; patches = [ - (substituteAll { - src = ./hardcode-deps.patch; + (replaceVars ./hardcode-deps.patch { gs = "${ghostscript}/bin/gs"; - # bbox cannot be substituted here because substituteAll doesn't know what + # bbox cannot be substituted here because replaceVars doesn't know what # will be the $out path of the main derivation + bbox = null; }) ]; diff --git a/pkgs/by-name/zo/zod/package.nix b/pkgs/by-name/zo/zod/package.nix index e0c2031dde25..7a992251c9a5 100644 --- a/pkgs/by-name/zo/zod/package.nix +++ b/pkgs/by-name/zo/zod/package.nix @@ -13,7 +13,7 @@ , makeWrapper , coreutils , scalingFactor ? 2 # this is to resize the fixed-size zod_launcher window -, substituteAll +, replaceVars }: let name = "zod-engine"; @@ -70,9 +70,8 @@ let # 2,3,4 look acceptable on my 4k monitor and 1 is unreadable. # also the ./ in the run command is removed to have easier time starting the game patches = [ - (substituteAll { + (replaceVars ./0002-add-scaling-factor-to-source.patch { inherit scalingFactor; - src=./0002-add-scaling-factor-to-source.patch; }) ]; postPatch = '' diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 707bb91b875d..792a33738509 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -7,7 +7,7 @@ preLibcCrossHeaders, libxcrypt, substitute, - substituteAll, + replaceVars, fetchFromGitHub, fetchpatch, fetchpatch2, @@ -547,14 +547,17 @@ let !args.stdenv.hostPlatform.isDarwin || !args.stdenv.targetPlatform.isDarwin ) ./clang/add-nostdlibinc-flag.patch ++ [ - (substituteAll { - src = + (replaceVars + ( if (lib.versionOlder metadata.release_version "16") then ./clang/clang-11-15-LLVMgold-path.patch else - ./clang/clang-at-least-16-LLVMgold-path.patch; - libllvmLibdir = "${tools.libllvm.lib}/lib"; - }) + ./clang/clang-at-least-16-LLVMgold-path.patch + ) + { + libllvmLibdir = "${tools.libllvm.lib}/lib"; + } + ) ] # Backport version logic from Clang 16. This is needed by the following patch. ++ lib.optional (lib.versions.major metadata.release_version == "15") (fetchpatch { @@ -662,9 +665,9 @@ let patches = let resourceDirPatch = callPackage ( - { substituteAll, libclang }: - (substituteAll { - src = metadata.getVersionFile "lldb/resource-dir.patch"; + { replaceVars, libclang }: + (replaceVars (metadata.getVersionFile "lldb/resource-dir.patch") { + clangLibDir = "${lib.getLib libclang}/lib"; }).overrideAttrs (_: _: { name = "resource-dir.patch"; }) diff --git a/pkgs/development/python-modules/pysdl2/PySDL2-dll.patch b/pkgs/development/python-modules/pysdl2/PySDL2-dll.patch index 9b8374a0f051..792c8bcd28e2 100644 --- a/pkgs/development/python-modules/pysdl2/PySDL2-dll.patch +++ b/pkgs/development/python-modules/pysdl2/PySDL2-dll.patch @@ -39,7 +39,7 @@ index 2413329..f460bf6 100644 try: - dll = DLL("SDL2", ["SDL2", "SDL2-2.0", "SDL2-2.0.0"], os.getenv("PYSDL2_DLL_PATH")) -+ dll = DLL("SDL2", "@sdl2@") ++ dll = DLL("SDL2", "@SDL2@") except RuntimeError as exc: raise ImportError(exc) @@ -53,7 +53,7 @@ index 015eeaf..d6ce52f 100644 try: - dll = DLL("SDL2_gfx", ["SDL2_gfx", "SDL2_gfx-1.0"], - os.getenv("PYSDL2_DLL_PATH")) -+ dll = DLL("SDL2_gfx", "@sdl2_gfx@") ++ dll = DLL("SDL2_gfx", "@SDL2_gfx@") except RuntimeError as exc: raise ImportError(exc) @@ -68,7 +68,7 @@ index a702136..dcdea51 100644 - dll = DLL( - "SDL2_image", ["SDL2_image", "SDL2_image-2.0"], os.getenv("PYSDL2_DLL_PATH") - ) -+ dll = DLL("SDL2_image", "@sdl2_image@") ++ dll = DLL("SDL2_image", "@SDL2_image@") except RuntimeError as exc: raise ImportError(exc) @@ -82,7 +82,7 @@ index 5f2163c..23d95b0 100644 try: - dll = DLL("SDL2_mixer", ["SDL2_mixer", "SDL2_mixer-2.0"], - os.getenv("PYSDL2_DLL_PATH")) -+ dll = DLL("SDL2_mixer", "@sdl2_mixer@") ++ dll = DLL("SDL2_mixer", "@SDL2_mixer@") except RuntimeError as exc: raise ImportError(exc) @@ -96,7 +96,7 @@ index 7c5f7db..61814cd 100644 try: - dll = DLL("SDL2_ttf", ["SDL2_ttf", "SDL2_ttf-2.0"], - os.getenv("PYSDL2_DLL_PATH")) -+ dll = DLL("SDL2_ttf", "@sdl2_ttf@") ++ dll = DLL("SDL2_ttf", "@SDL2_ttf@") except RuntimeError as exc: raise ImportError(exc) diff --git a/pkgs/development/python-modules/pysdl2/default.nix b/pkgs/development/python-modules/pysdl2/default.nix index 7854f2465432..2bc97d102b7f 100644 --- a/pkgs/development/python-modules/pysdl2/default.nix +++ b/pkgs/development/python-modules/pysdl2/default.nix @@ -1,7 +1,7 @@ { stdenv, lib, - substituteAll, + replaceVars, fetchPypi, buildPythonPackage, SDL2, @@ -38,21 +38,18 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ SDL2 ]; patches = [ - (substituteAll ( - { - src = ./PySDL2-dll.patch; - } - // - builtins.mapAttrs - (_: pkg: "${pkg}/lib/lib${pkg.pname}${stdenv.hostPlatform.extensions.sharedLibrary}") - { - # substituteAll keys must start lowercase - sdl2 = SDL2; - sdl2_ttf = SDL2_ttf; - sdl2_image = SDL2_image; - sdl2_gfx = SDL2_gfx; - sdl2_mixer = SDL2_mixer; - } + (replaceVars ./PySDL2-dll.patch ( + builtins.mapAttrs + (_: pkg: "${pkg}/lib/lib${pkg.pname}${stdenv.hostPlatform.extensions.sharedLibrary}") + { + inherit + SDL2 + SDL2_ttf + SDL2_image + SDL2_gfx + SDL2_mixer + ; + } )) ]; diff --git a/pkgs/development/tools/ocaml/merlin/4.x.nix b/pkgs/development/tools/ocaml/merlin/4.x.nix index b15668269494..45698a4b9654 100644 --- a/pkgs/development/tools/ocaml/merlin/4.x.nix +++ b/pkgs/development/tools/ocaml/merlin/4.x.nix @@ -1,5 +1,5 @@ { lib -, substituteAll +, replaceVars , fetchurl , ocaml , dune_3 @@ -56,9 +56,9 @@ buildDunePackage { old-patch = lib.versionOlder version "4.17"; in [ - (substituteAll { - src = if old-patch then ./fix-paths.patch else ./fix-paths2.patch; - dot_merlin_reader = "${dot-merlin-reader}/bin/dot-merlin-reader"; + (replaceVars (if old-patch then ./fix-paths.patch else ./fix-paths2.patch) { + + dot-merlin-reader = "${dot-merlin-reader}/bin/dot-merlin-reader"; dune = "${dune_3}/bin/dune"; }) ]; diff --git a/pkgs/kde/gear/kdegraphics-thumbnailers/default.nix b/pkgs/kde/gear/kdegraphics-thumbnailers/default.nix index bfb3ba1fc850..79ae5c8b30a9 100644 --- a/pkgs/kde/gear/kdegraphics-thumbnailers/default.nix +++ b/pkgs/kde/gear/kdegraphics-thumbnailers/default.nix @@ -1,6 +1,6 @@ { mkKdeDerivation, - substituteAll, + replaceVars, ghostscript, }: mkKdeDerivation { @@ -9,9 +9,8 @@ mkKdeDerivation { patches = [ # Hardcode patches to Ghostscript so PDF thumbnails work OOTB. # Intentionally not doing the same for dvips because TeX is big. - (substituteAll { + (replaceVars ./gs-paths.patch { gs = "${ghostscript}/bin/gs"; - src = ./gs-paths.patch; }) ]; } diff --git a/pkgs/os-specific/linux/lvm2/common.nix b/pkgs/os-specific/linux/lvm2/common.nix index b690a19de29f..830464053a05 100644 --- a/pkgs/os-specific/linux/lvm2/common.nix +++ b/pkgs/os-specific/linux/lvm2/common.nix @@ -6,7 +6,7 @@ , coreutils , libuuid , libaio -, substituteAll +, replaceVars , enableCmdlib ? false , enableDmeventd ? false , udevSupport ? !stdenv.hostPlatform.isStatic, udev @@ -91,15 +91,15 @@ stdenv.mkDerivation rec { patches = [ # fixes paths to and checks for tools - (substituteAll (let + (replaceVars ./fix-blkdeactivate.patch (let optionalTool = cond: pkg: if cond then pkg else "/run/current-system/sw"; in { - src = ./fix-blkdeactivate.patch; inherit coreutils; util_linux = optionalTool enableUtilLinux util-linux; mdadm = optionalTool enableMdadm mdadm; multipath_tools = optionalTool enableMultipath multipath-tools; vdo = optionalTool enableVDO vdo; + SBINDIR = null; # part of original source code in the patch's context })) ./fix-stdio-usage.patch ]; From fc064c62cab15594b99cb395edb87928b1b4fbd8 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 1 Dec 2024 22:08:25 +0100 Subject: [PATCH 669/693] libsoup: apply patches for CVE-2024-52532, CVE-2024-52531 and CVE-2024-52530 --- .../development/libraries/libsoup/default.nix | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkgs/development/libraries/libsoup/default.nix b/pkgs/development/libraries/libsoup/default.nix index a88cd9355326..2e9d52bc54c1 100644 --- a/pkgs/development/libraries/libsoup/default.nix +++ b/pkgs/development/libraries/libsoup/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchurl +, fetchpatch , glib , libxml2 , meson @@ -29,6 +30,34 @@ stdenv.mkDerivation rec { sha256 = "sha256-5Ld8Qc/EyMWgNfzcMgx7xs+3XvfFoDQVPfFBP6HZLxM="; }; + patches = [ + (fetchpatch { + name = "CVE-2024-52530.patch"; + url = "https://gitlab.gnome.org/GNOME/libsoup/-/commit/04df03bc092ac20607f3e150936624d4f536e68b.patch"; + hash = "sha256-WRLiW2B/xxr3hW0nmeRNrXtZL44S0nTptPRdTqBV8Iw="; + }) + (fetchpatch { + name = "CVE-2024-52531_1.patch"; + url = "https://git.launchpad.net/ubuntu/+source/libsoup2.4/patch/?id=4ce2f2dc8ba0c458edce0f039a087fb3ac57787e"; + hash = "sha256-wg1qz8xHcnTiinBTF0ECMkrsD8W6M4IbiKGgbJ1gp9o="; + }) + (fetchpatch { + name = "CVE-2024-52531_2.patch"; + url = "https://git.launchpad.net/ubuntu/+source/libsoup2.4/patch/?id=5866d63aed3500700c5f1d2868ff689bb2ba8b82"; + hash = "sha256-e/VXtKX+agCw+ESGbgQ83NaVNbB3jLTxL7+VgNGbZ7U="; + }) + (fetchpatch { + name = "CVE-2024-52532_1.patch"; + url = "https://git.launchpad.net/ubuntu/+source/libsoup2.4/patch/?id=98e096a0d2142e3c63de2cca7d4023f9c52ed2c6"; + hash = "sha256-h7k+HpcKlsVYlAONxTOiupMhsMkf2v246ouxLejurcY="; + }) + (fetchpatch { + name = "CVE-2024-52532_2.patch"; + url = "https://git.launchpad.net/ubuntu/+source/libsoup2.4/patch/?id=030e72420e8271299c324273f393d92f6d4bb53e"; + hash = "sha256-0BEJpEKgjmKACf53lHMglxhmevKsSXR4ejEoTtr4wII="; + }) + ]; + depsBuildBuild = [ pkg-config ]; From 5931ac4ea9347219ea51192f016e3d302c209250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Kurucz?= Date: Mon, 2 Dec 2024 09:24:05 +0100 Subject: [PATCH 670/693] mesa: enable all freedreno kernel mode driver `virtio` is used with a virtio-gpu device supporting drm native context. I don't know the use-cases for `wsl` and `kgsl`, but let's just enable them too. --- pkgs/development/libraries/mesa/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index fb5f6b1d817c..c3e5f1392757 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -201,6 +201,11 @@ in stdenv.mkDerivation { (lib.mesonBool "osmesa" true) # used by wine (lib.mesonBool "teflon" true) # TensorFlow frontend + # Enable all freedreno kernel mode drivers. (For example, virtio can be + # used with a virtio-gpu device supporting drm native context.) This option + # is ignored when freedreno is not being built. + (lib.mesonOption "freedreno-kmds" "msm,kgsl,virtio,wsl") + # Enable Intel RT stuff when available (lib.mesonBool "install-intel-clc" true) (lib.mesonEnable "intel-rt" stdenv.hostPlatform.isx86_64) From 2873053688b964478727782f2fbc34365bfe93f8 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 2 Dec 2024 13:34:55 +0300 Subject: [PATCH 671/693] qt6: 6.8.0 -> 6.8.1, reorganize everything - move patches to their corresponding modules - inline patches list for qtbase into the expression itself - don't treat patches as series, as they are not - clean up outdated headers from all the patches - drop doc tools patch, replace it with setting newly added cmake var in a hook - add a new patch to disable SBOM generation that's very broken with split installs --- pkgs/development/libraries/qt-6/default.nix | 34 +- pkgs/development/libraries/qt-6/fetch.sh | 2 +- .../libraries/qt-6/hooks/qtbase-setup-hook.sh | 20 +- .../allow-translations-outside-prefix.patch} | 2 - .../{qtbase.nix => qtbase/default.nix} | 35 +- .../derive-plugin-load-path-from-PATH.patch} | 11 - .../qtbase/find-qmlimportscanner.patch | 13 + .../qt-6/modules/qtbase/no-sbom.patch | 11 + .../qtbase/qmake-always-use-libname.patch} | 4 - .../qtbase/qmake-fix-includedir.patch} | 11 - .../qmlimportscanner-import-path.patch} | 11 - .../qtbase/skip-missing-qml-directory.patch} | 15 - .../qtbase/use-cmake-from-path.patch} | 14 - .../libraries/qt-6/modules/qtdeclarative.nix | 61 ---- .../qt-6/modules/qtdeclarative/default.nix | 33 ++ .../qtdeclarative/disable-disk-cache.patch} | 17 +- .../use-versioned-import-path.patch} | 11 - .../libraries/qt-6/modules/qtmqtt.nix | 4 +- .../default.nix} | 6 +- .../fix-qtgui-include-incorrect-case.patch | 2 - .../windows-no-uppercase-libs.patch} | 2 - .../windows-resolve-function-name.patch} | 2 - .../{qttools.nix => qttools/default.nix} | 2 +- .../qttools/paths.patch} | 2 - .../libraries/qt-6/modules/qtwayland.nix | 10 + .../default.nix} | 6 +- .../qtwebengine/link-pulseaudio.patch} | 2 - .../qtwebengine/locales-path.patch} | 12 - .../qtwebengine/xkb-includes.patch} | 0 .../0005-qtbase-find-tools-in-PATH.patch | 42 --- ...mportscanner-in-macdeployqt-via-envi.patch | 32 -- pkgs/development/libraries/qt-6/srcs.nix | 312 +++++++++--------- 32 files changed, 282 insertions(+), 459 deletions(-) rename pkgs/development/libraries/qt-6/{patches/0007-qtbase-allow-translations-outside-prefix.patch => modules/qtbase/allow-translations-outside-prefix.patch} (83%) rename pkgs/development/libraries/qt-6/modules/{qtbase.nix => qtbase/default.nix} (83%) rename pkgs/development/libraries/qt-6/{patches/0010-qtbase-derive-plugin-load-path-from-PATH.patch => modules/qtbase/derive-plugin-load-path-from-PATH.patch} (66%) create mode 100644 pkgs/development/libraries/qt-6/modules/qtbase/find-qmlimportscanner.patch create mode 100644 pkgs/development/libraries/qt-6/modules/qtbase/no-sbom.patch rename pkgs/development/libraries/qt-6/{patches/0001-qtbase-qmake-always-use-libname-instead-of-absolute-.patch => modules/qtbase/qmake-always-use-libname.patch} (87%) rename pkgs/development/libraries/qt-6/{patches/0003-qtbase-qmake-fix-includedir-in-generated-pkg-config.patch => modules/qtbase/qmake-fix-includedir.patch} (57%) rename pkgs/development/libraries/qt-6/{patches/0006-qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch => modules/qtbase/qmlimportscanner-import-path.patch} (64%) rename pkgs/development/libraries/qt-6/{patches/0009-qtbase-check-in-the-QML-folder-of-this-library-does-.patch => modules/qtbase/skip-missing-qml-directory.patch} (53%) rename pkgs/development/libraries/qt-6/{patches/0004-qtbase-qt-cmake-always-use-cmake-from-path.patch => modules/qtbase/use-cmake-from-path.patch} (65%) delete mode 100644 pkgs/development/libraries/qt-6/modules/qtdeclarative.nix create mode 100644 pkgs/development/libraries/qt-6/modules/qtdeclarative/default.nix rename pkgs/development/libraries/qt-6/{patches/0001-qtdeclarative-disable-qml-disk-cache.patch => modules/qtdeclarative/disable-disk-cache.patch} (50%) rename pkgs/development/libraries/qt-6/{patches/0002-qtdeclarative-also-use-versioned-qml-paths.patch => modules/qtdeclarative/use-versioned-import-path.patch} (52%) rename pkgs/development/libraries/qt-6/modules/{qtmultimedia.nix => qtmultimedia/default.nix} (88%) rename pkgs/development/libraries/qt-6/{patches => modules/qtmultimedia}/fix-qtgui-include-incorrect-case.patch (70%) rename pkgs/development/libraries/qt-6/{patches/qtmultimedia-windows-no-uppercase-libs.patch => modules/qtmultimedia/windows-no-uppercase-libs.patch} (63%) rename pkgs/development/libraries/qt-6/{patches/qtmultimedia-windows-resolve-function-name.patch => modules/qtmultimedia/windows-resolve-function-name.patch} (85%) rename pkgs/development/libraries/qt-6/modules/{qttools.nix => qttools/default.nix} (95%) rename pkgs/development/libraries/qt-6/{patches/qttools-paths.patch => modules/qttools/paths.patch} (88%) rename pkgs/development/libraries/qt-6/modules/{qtwebengine.nix => qtwebengine/default.nix} (97%) rename pkgs/development/libraries/qt-6/{patches/qtwebengine-link-pulseaudio.patch => modules/qtwebengine/link-pulseaudio.patch} (80%) rename pkgs/development/libraries/qt-6/{patches/qtwebengine-locales-path.patch => modules/qtwebengine/locales-path.patch} (73%) rename pkgs/development/libraries/qt-6/{patches/qtwebengine-xkb-includes.patch => modules/qtwebengine/xkb-includes.patch} (100%) delete mode 100644 pkgs/development/libraries/qt-6/patches/0005-qtbase-find-tools-in-PATH.patch delete mode 100644 pkgs/development/libraries/qt-6/patches/0008-qtbase-find-qmlimportscanner-in-macdeployqt-via-envi.patch diff --git a/pkgs/development/libraries/qt-6/default.nix b/pkgs/development/libraries/qt-6/default.nix index 96a498c5f195..a664247dfbcd 100644 --- a/pkgs/development/libraries/qt-6/default.nix +++ b/pkgs/development/libraries/qt-6/default.nix @@ -56,34 +56,10 @@ let inherit darwinVersionInputs; }; - qtbase = callPackage ./modules/qtbase.nix { + qtbase = callPackage ./modules/qtbase { withGtk3 = !stdenv.hostPlatform.isMinGW; inherit darwinVersionInputs; inherit (srcs.qtbase) src version; - patches = [ - ./patches/0001-qtbase-qmake-always-use-libname-instead-of-absolute-.patch - ./patches/0003-qtbase-qmake-fix-includedir-in-generated-pkg-config.patch - ./patches/0004-qtbase-qt-cmake-always-use-cmake-from-path.patch - ./patches/0005-qtbase-find-tools-in-PATH.patch - ./patches/0006-qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch - ./patches/0007-qtbase-allow-translations-outside-prefix.patch - ./patches/0008-qtbase-find-qmlimportscanner-in-macdeployqt-via-envi.patch - ./patches/0009-qtbase-check-in-the-QML-folder-of-this-library-does-.patch - ./patches/0010-qtbase-derive-plugin-load-path-from-PATH.patch - # Backport patch for https://bugs.kde.org/show_bug.cgi?id=493116 - # FIXME: remove for 6.8.1 - (fetchpatch2 { - url = "https://github.com/qt/qtbase/commit/2ea3abed0125d81ca4f3bacb9650db7314657332.patch"; - hash = "sha256-mdTdwhJtebuLUQRo+y1XUrrzgqG9G7GvPQwvrXLycJI="; - }) - - # Backport patch to fix plugin loading through symlinks - # FIXME: remove for 6.8.1 - (fetchpatch2 { - url = "https://github.com/qt/qtbase/commit/e25150ca29437ab315e3686aa801b8636e201e2a.patch"; - hash = "sha256-8WOjjffI48Vlx7gQIiOzfUtPloLys5lf06RQi1lsTys="; - }) - ]; }; env = callPackage ./qt-env.nix { }; full = callPackage @@ -135,7 +111,7 @@ let qtcharts = callPackage ./modules/qtcharts.nix { }; qtconnectivity = callPackage ./modules/qtconnectivity.nix { }; qtdatavis3d = callPackage ./modules/qtdatavis3d.nix { }; - qtdeclarative = callPackage ./modules/qtdeclarative.nix { }; + qtdeclarative = callPackage ./modules/qtdeclarative { }; qtdoc = callPackage ./modules/qtdoc.nix { }; qtgraphs = callPackage ./modules/qtgraphs.nix { }; qtgrpc = callPackage ./modules/qtgrpc.nix { }; @@ -144,7 +120,7 @@ let qtlanguageserver = callPackage ./modules/qtlanguageserver.nix { }; qtlocation = callPackage ./modules/qtlocation.nix { }; qtlottie = callPackage ./modules/qtlottie.nix { }; - qtmultimedia = callPackage ./modules/qtmultimedia.nix { + qtmultimedia = callPackage ./modules/qtmultimedia { inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi; }; qtmqtt = callPackage ./modules/qtmqtt.nix { }; @@ -162,12 +138,12 @@ let qtremoteobjects = callPackage ./modules/qtremoteobjects.nix { }; qtsvg = callPackage ./modules/qtsvg.nix { }; qtscxml = callPackage ./modules/qtscxml.nix { }; - qttools = callPackage ./modules/qttools.nix { }; + qttools = callPackage ./modules/qttools { }; qttranslations = callPackage ./modules/qttranslations.nix { }; qtvirtualkeyboard = callPackage ./modules/qtvirtualkeyboard.nix { }; qtwayland = callPackage ./modules/qtwayland.nix { }; qtwebchannel = callPackage ./modules/qtwebchannel.nix { }; - qtwebengine = callPackage ./modules/qtwebengine.nix { + qtwebengine = callPackage ./modules/qtwebengine { inherit (darwin) autoSignDarwinBinariesHook bootstrap_cmds; }; qtwebsockets = callPackage ./modules/qtwebsockets.nix { }; diff --git a/pkgs/development/libraries/qt-6/fetch.sh b/pkgs/development/libraries/qt-6/fetch.sh index 8ae22eecfa05..183e6e5b2028 100644 --- a/pkgs/development/libraries/qt-6/fetch.sh +++ b/pkgs/development/libraries/qt-6/fetch.sh @@ -1 +1 @@ -WGET_ARGS=( https://download.qt.io/official_releases/qt/6.8/6.8.0/submodules/ -A '*.tar.xz' ) +WGET_ARGS=( https://download.qt.io/official_releases/qt/6.8/6.8.1/submodules/ -A '*.tar.xz' ) diff --git a/pkgs/development/libraries/qt-6/hooks/qtbase-setup-hook.sh b/pkgs/development/libraries/qt-6/hooks/qtbase-setup-hook.sh index 48beac0b04fa..44e48db7dad8 100644 --- a/pkgs/development/libraries/qt-6/hooks/qtbase-setup-hook.sh +++ b/pkgs/development/libraries/qt-6/hooks/qtbase-setup-hook.sh @@ -35,16 +35,18 @@ else # Only set up Qt once. } envBuildHostHooks+=(qmakePathHook) - export QTTOOLSPATH= - - declare -Ag qttoolsPathSeen=() + declare -g qttoolsPathSeen= qtToolsHook() { - # Skip this path if we have seen it before. - # MUST use 'if' because 'qttoolsPathSeen[$]' may be unset. - if [ -n "${qttoolsPathSeen[$1]-}" ]; then return; fi - qttoolsPathSeen[$1]=1 - if [ -d "$1/libexec" ]; then - QTTOOLSPATH="${QTTOOLSPATH}${QTTOOLSPATH:+:}$1/libexec" + if [ -f "$1/libexec/qhelpgenerator" ]; then + if [[ -n "${qtToolsPathSeen:-}" && "${qttoolsPathSeen:-}" != "$1" ]]; then + echo >&2 "Error: detected mismatched Qt dependencies:" + echo >&2 " $1" + echo >&2 " $qttoolsPathSeen" + exit 1 + fi + + qttoolsPathSeen=$1 + appendToVar cmakeFlags "-DQT_OPTIONAL_TOOLS_PATH=$1" fi } addEnvHooks "$hostOffset" qtToolsHook diff --git a/pkgs/development/libraries/qt-6/patches/0007-qtbase-allow-translations-outside-prefix.patch b/pkgs/development/libraries/qt-6/modules/qtbase/allow-translations-outside-prefix.patch similarity index 83% rename from pkgs/development/libraries/qt-6/patches/0007-qtbase-allow-translations-outside-prefix.patch rename to pkgs/development/libraries/qt-6/modules/qtbase/allow-translations-outside-prefix.patch index c7c097cce359..35e78451f186 100644 --- a/pkgs/development/libraries/qt-6/patches/0007-qtbase-allow-translations-outside-prefix.patch +++ b/pkgs/development/libraries/qt-6/modules/qtbase/allow-translations-outside-prefix.patch @@ -1,5 +1,3 @@ -diff --git a/cmake/QtBuildPathsHelpers.cmake b/cmake/QtBuildPathsHelpers.cmake -index bf28d1e9ee..08e64a2092 100644 --- a/cmake/QtBuildPathsHelpers.cmake +++ b/cmake/QtBuildPathsHelpers.cmake @@ -140,7 +140,7 @@ function(qt_configure_process_path name default docstring) diff --git a/pkgs/development/libraries/qt-6/modules/qtbase.nix b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix similarity index 83% rename from pkgs/development/libraries/qt-6/modules/qtbase.nix rename to pkgs/development/libraries/qt-6/modules/qtbase/default.nix index b57099ba0c00..6b6fa45e6dea 100644 --- a/pkgs/development/libraries/qt-6/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix @@ -1,7 +1,6 @@ { stdenv , lib , src -, patches ? [ ] , version , bison , flex @@ -75,7 +74,6 @@ , libmysqlclient , postgresql , withGtk3 ? false -, dconf , gtk3 , withLibinput ? false , libinput @@ -182,7 +180,32 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - inherit patches; + patches = [ + # look for Qt plugins in directories on PATH + ./derive-plugin-load-path-from-PATH.patch + + # allow translations to be found outside of install prefix, as is the case in our split builds + ./allow-translations-outside-prefix.patch + + # always link to libraries by name in qmake-generated build scripts + ./qmake-always-use-libname.patch + # always explicitly list includedir in qmake-generated pkg-config files + ./qmake-fix-includedir.patch + + # don't generate SBOM files by default, they don't work with our split installs anyway + ./no-sbom.patch + + # use cmake from PATH in qt-cmake wrapper, to avoid qtbase runtime-depending on cmake + ./use-cmake-from-path.patch + + # macdeployqt fixes + # get qmlimportscanner location from environment variable + ./find-qmlimportscanner.patch + # pass QML2_IMPORT_PATH from environment to qmlimportscanner + ./qmlimportscanner-import-path.patch + # don't pass qtbase's QML directory to qmlimportscanner if it's empty + ./skip-missing-qml-directory.patch + ]; postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' # TODO: Verify that this catches all the occurrences? @@ -205,8 +228,8 @@ stdenv.mkDerivation rec { --replace-fail 'CONFIG += ' 'CONFIG += no_default_rpath ' ''; - fix_qt_builtin_paths = ../hooks/fix-qt-builtin-paths.sh; - fix_qt_module_paths = ../hooks/fix-qt-module-paths.sh; + fix_qt_builtin_paths = ../../hooks/fix-qt-builtin-paths.sh; + fix_qt_module_paths = ../../hooks/fix-qt-module-paths.sh; preHook = '' . "$fix_qt_builtin_paths" . "$fix_qt_module_paths" @@ -253,7 +276,7 @@ stdenv.mkDerivation rec { dontWrapQtApps = true; - setupHook = ../hooks/qtbase-setup-hook.sh; + setupHook = ../../hooks/qtbase-setup-hook.sh; meta = with lib; { homepage = "https://www.qt.io/"; diff --git a/pkgs/development/libraries/qt-6/patches/0010-qtbase-derive-plugin-load-path-from-PATH.patch b/pkgs/development/libraries/qt-6/modules/qtbase/derive-plugin-load-path-from-PATH.patch similarity index 66% rename from pkgs/development/libraries/qt-6/patches/0010-qtbase-derive-plugin-load-path-from-PATH.patch rename to pkgs/development/libraries/qt-6/modules/qtbase/derive-plugin-load-path-from-PATH.patch index b950b7d4ac79..447d01257783 100644 --- a/pkgs/development/libraries/qt-6/patches/0010-qtbase-derive-plugin-load-path-from-PATH.patch +++ b/pkgs/development/libraries/qt-6/modules/qtbase/derive-plugin-load-path-from-PATH.patch @@ -1,14 +1,3 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Milan=20P=C3=A4ssler?= -Date: Sun, 10 May 2020 12:47:28 +0200 -Subject: [PATCH] qtbase: derive plugin load path from PATH - ---- - src/corelib/kernel/qcoreapplication.cpp | 9 +++++++++ - 1 file changed, 9 insertions(+) - -diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp -index 1ce2642cf2d..48fd91a0d7f 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -3038,6 +3038,15 @@ QStringList QCoreApplication::libraryPathsLocked() diff --git a/pkgs/development/libraries/qt-6/modules/qtbase/find-qmlimportscanner.patch b/pkgs/development/libraries/qt-6/modules/qtbase/find-qmlimportscanner.patch new file mode 100644 index 000000000000..bde2c940d682 --- /dev/null +++ b/pkgs/development/libraries/qt-6/modules/qtbase/find-qmlimportscanner.patch @@ -0,0 +1,13 @@ +--- a/src/tools/macdeployqt/shared/shared.cpp ++++ b/src/tools/macdeployqt/shared/shared.cpp +@@ -1280,6 +1280,10 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf + if (!QFile::exists(qmlImportScannerPath)) + qmlImportScannerPath = QCoreApplication::applicationDirPath() + "/qmlimportscanner"; + ++ // Fallback: Pass qml import scanner via environment variable ++ if (!QFile::exists(qmlImportScannerPath)) ++ qmlImportScannerPath = ::qgetenv("NIX_QMLIMPORTSCANNER"); ++ + // Verify that we found a qmlimportscanner binary + if (!QFile::exists(qmlImportScannerPath)) { + LogError() << "qmlimportscanner not found at" << qmlImportScannerPath; diff --git a/pkgs/development/libraries/qt-6/modules/qtbase/no-sbom.patch b/pkgs/development/libraries/qt-6/modules/qtbase/no-sbom.patch new file mode 100644 index 000000000000..f0822bac3ced --- /dev/null +++ b/pkgs/development/libraries/qt-6/modules/qtbase/no-sbom.patch @@ -0,0 +1,11 @@ +--- a/cmake/QtBuildOptionsHelpers.cmake ++++ b/cmake/QtBuildOptionsHelpers.cmake +@@ -345,7 +345,7 @@ macro(qt_internal_setup_sbom) + qt_internal_compute_sbom_default(_qt_generate_sbom_default) + + option(QT_GENERATE_SBOM "Generate SBOM documents in SPDX v2.3 tag:value format." +- "${_qt_generate_sbom_default}") ++ OFF) + + option(QT_SBOM_GENERATE_JSON + "Generate SBOM documents in SPDX v2.3 JSON format if dependencies are available" ON) diff --git a/pkgs/development/libraries/qt-6/patches/0001-qtbase-qmake-always-use-libname-instead-of-absolute-.patch b/pkgs/development/libraries/qt-6/modules/qtbase/qmake-always-use-libname.patch similarity index 87% rename from pkgs/development/libraries/qt-6/patches/0001-qtbase-qmake-always-use-libname-instead-of-absolute-.patch rename to pkgs/development/libraries/qt-6/modules/qtbase/qmake-always-use-libname.patch index 94ae308c1cfc..d1d91c39f4d7 100644 --- a/pkgs/development/libraries/qt-6/patches/0001-qtbase-qmake-always-use-libname-instead-of-absolute-.patch +++ b/pkgs/development/libraries/qt-6/modules/qtbase/qmake-always-use-libname.patch @@ -1,5 +1,3 @@ -diff --git a/cmake/QtFinishPrlFile.cmake b/cmake/QtFinishPrlFile.cmake -index 0cef22617c..232d92bc62 100644 --- a/cmake/QtFinishPrlFile.cmake +++ b/cmake/QtFinishPrlFile.cmake @@ -69,9 +69,10 @@ foreach(line ${lines}) @@ -16,8 +14,6 @@ index 0cef22617c..232d92bc62 100644 endif() endif() else() -diff --git a/cmake/QtGenerateLibHelpers.cmake b/cmake/QtGenerateLibHelpers.cmake -index 96675267d2..c9d4a69497 100644 --- a/cmake/QtGenerateLibHelpers.cmake +++ b/cmake/QtGenerateLibHelpers.cmake @@ -82,9 +82,6 @@ function(qt_transform_absolute_library_paths_to_link_flags out_var library_path_ diff --git a/pkgs/development/libraries/qt-6/patches/0003-qtbase-qmake-fix-includedir-in-generated-pkg-config.patch b/pkgs/development/libraries/qt-6/modules/qtbase/qmake-fix-includedir.patch similarity index 57% rename from pkgs/development/libraries/qt-6/patches/0003-qtbase-qmake-fix-includedir-in-generated-pkg-config.patch rename to pkgs/development/libraries/qt-6/modules/qtbase/qmake-fix-includedir.patch index f2f9425841a8..3cb9a9ce85e6 100644 --- a/pkgs/development/libraries/qt-6/patches/0003-qtbase-qmake-fix-includedir-in-generated-pkg-config.patch +++ b/pkgs/development/libraries/qt-6/modules/qtbase/qmake-fix-includedir.patch @@ -1,14 +1,3 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Nick Cao -Date: Fri, 14 Apr 2023 09:34:46 +0800 -Subject: [PATCH] qtbase: qmake: fix includedir in generated pkg-config - ---- - qmake/generators/makefile.cpp | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp -index 482ef2e2697..49217e62cda 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -3412,8 +3412,7 @@ MakefileGenerator::writePkgConfigFile() diff --git a/pkgs/development/libraries/qt-6/patches/0006-qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch b/pkgs/development/libraries/qt-6/modules/qtbase/qmlimportscanner-import-path.patch similarity index 64% rename from pkgs/development/libraries/qt-6/patches/0006-qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch rename to pkgs/development/libraries/qt-6/modules/qtbase/qmlimportscanner-import-path.patch index de4c12ef0448..e99dd5a90363 100644 --- a/pkgs/development/libraries/qt-6/patches/0006-qtbase-pass-to-qmlimportscanner-the-QML2_IMPORT_PATH.patch +++ b/pkgs/development/libraries/qt-6/modules/qtbase/qmlimportscanner-import-path.patch @@ -1,14 +1,3 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Nick Cao -Date: Tue, 10 Oct 2023 10:12:56 -0400 -Subject: [PATCH] qtbase: pass to qmlimportscanner the QML2_IMPORT_PATH - ---- - src/tools/macdeployqt/shared/shared.cpp | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp -index b7ee93f6fc1..57b68627eba 100644 --- a/src/tools/macdeployqt/shared/shared.cpp +++ b/src/tools/macdeployqt/shared/shared.cpp @@ -1300,6 +1300,13 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf diff --git a/pkgs/development/libraries/qt-6/patches/0009-qtbase-check-in-the-QML-folder-of-this-library-does-.patch b/pkgs/development/libraries/qt-6/modules/qtbase/skip-missing-qml-directory.patch similarity index 53% rename from pkgs/development/libraries/qt-6/patches/0009-qtbase-check-in-the-QML-folder-of-this-library-does-.patch rename to pkgs/development/libraries/qt-6/modules/qtbase/skip-missing-qml-directory.patch index 890c68a97f77..bb6257ca31d7 100644 --- a/pkgs/development/libraries/qt-6/patches/0009-qtbase-check-in-the-QML-folder-of-this-library-does-.patch +++ b/pkgs/development/libraries/qt-6/modules/qtbase/skip-missing-qml-directory.patch @@ -1,18 +1,3 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Nick Cao -Date: Tue, 10 Oct 2023 10:17:00 -0400 -Subject: [PATCH] qtbase: check in the QML folder of this library does actually - exist - -In a modularized installation, this folder will be the location where -`qtbase` itself is installed, but `qtbase` does not have any QML -code, and `qmlimportscanner` will complain that it does not exist. ---- - src/tools/macdeployqt/shared/shared.cpp | 7 +++++-- - 1 file changed, 5 insertions(+), 2 deletions(-) - -diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp -index 2b972a76c49..96c61b3824a 100644 --- a/src/tools/macdeployqt/shared/shared.cpp +++ b/src/tools/macdeployqt/shared/shared.cpp @@ -1300,9 +1300,12 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf diff --git a/pkgs/development/libraries/qt-6/patches/0004-qtbase-qt-cmake-always-use-cmake-from-path.patch b/pkgs/development/libraries/qt-6/modules/qtbase/use-cmake-from-path.patch similarity index 65% rename from pkgs/development/libraries/qt-6/patches/0004-qtbase-qt-cmake-always-use-cmake-from-path.patch rename to pkgs/development/libraries/qt-6/modules/qtbase/use-cmake-from-path.patch index 56d19e0bb817..f439bf5d50e6 100644 --- a/pkgs/development/libraries/qt-6/patches/0004-qtbase-qt-cmake-always-use-cmake-from-path.patch +++ b/pkgs/development/libraries/qt-6/modules/qtbase/use-cmake-from-path.patch @@ -1,17 +1,3 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Nick Cao -Date: Wed, 12 Apr 2023 10:13:50 +0800 -Subject: [PATCH] qtbase: qt-cmake: always use cmake from path - -The generated qt-cmake scripts embeds the absolute path of cmake used -during the build of qtbase, bloating the runtime closure of qtbase. ---- - bin/qt-cmake-create.in | 7 +------ - bin/qt-cmake.in | 7 +------ - 2 files changed, 2 insertions(+), 12 deletions(-) - -diff --git a/bin/qt-cmake-create.in b/bin/qt-cmake-create.in -index 7865d0fe91b..884dc4aba93 100755 --- a/bin/qt-cmake-create.in +++ b/bin/qt-cmake-create.in @@ -7,12 +7,7 @@ HELP_MESSAGE="Usage diff --git a/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix b/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix deleted file mode 100644 index 5ca2fb74b498..000000000000 --- a/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix +++ /dev/null @@ -1,61 +0,0 @@ -{ qtModule -, qtbase -, qtlanguageserver -, qtshadertools -, openssl -, stdenv -, lib -, pkgsBuildBuild -, fetchpatch2 -}: - -qtModule { - pname = "qtdeclarative"; - - propagatedBuildInputs = [ qtbase qtlanguageserver qtshadertools openssl ]; - strictDeps = true; - - patches = [ - # prevent headaches from stale qmlcache data - ../patches/0001-qtdeclarative-disable-qml-disk-cache.patch - # add version specific QML import path - ../patches/0002-qtdeclarative-also-use-versioned-qml-paths.patch - - # Backport patches for https://bugs.kde.org/show_bug.cgi?id=493116 - # FIXME: remove for 6.8.1 - (fetchpatch2 { - url = "https://github.com/qt/qtdeclarative/commit/3330731d0cb221477ab3d856db032126403ae6a0.patch"; - hash = "sha256-XXXGJ7nVDpEG/6nr16L89J87tvutyc+YnQPQx9cRU+w="; - }) - (fetchpatch2 { - url = "https://github.com/qt/qtdeclarative/commit/2aefbca84d2f3dca2c2697f13710b6907c0c7e59.patch"; - hash = "sha256-a/BX0gpW6juJbjDRo8OleMahOC6WWqreURmYZNiGm5c="; - }) - # Backport patch to fix Kirigami applications crashing - # FIXME: remove for 6.8.1 - (fetchpatch2 { - url = "https://github.com/qt/qtdeclarative/commit/0ae3697cf40bcd3ae1de20621abad17cf6c5f52d.patch"; - hash = "sha256-YuTHqHCWOsqUOATfaAZRxPSwMsFNylxoqnqCeW5kPjs="; - }) - # Backport patches to fix SDDM multi-screen issues - (fetchpatch2 { - url = "https://github.com/qt/qtdeclarative/commit/104b0d6e88ce6781c9d31cf0dd14dfe99988b789.patch"; - hash = "sha256-fWjFvaSnDcqquqfNkwEIHlp2Cxmf4DmWmQyYhEj9Jbw="; - }) - (fetchpatch2 { - url = "https://github.com/qt/qtdeclarative/commit/fbdbed919f59cc7b4520f5aab2149f4c99b63e24.patch"; - excludes = [ "tests/auto/qml/qv4mm/tst_qv4mm.cpp" ]; - hash = "sha256-YsB81v0apTK+GdzVa3oMe4akcz5sxuI3aUjCLu1bTJ8="; - }) - ]; - - cmakeFlags = [ - "-DQt6ShaderToolsTools_DIR=${pkgsBuildBuild.qt6.qtshadertools}/lib/cmake/Qt6ShaderTools" - # for some reason doesn't get found automatically on Darwin - "-DPython_EXECUTABLE=${lib.getExe pkgsBuildBuild.python3}" - ] - # Conditional is required to prevent infinite recursion during a cross build - ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ - "-DQt6QmlTools_DIR=${pkgsBuildBuild.qt6.qtdeclarative}/lib/cmake/Qt6QmlTools" - ]; -} diff --git a/pkgs/development/libraries/qt-6/modules/qtdeclarative/default.nix b/pkgs/development/libraries/qt-6/modules/qtdeclarative/default.nix new file mode 100644 index 000000000000..196f3d782fcd --- /dev/null +++ b/pkgs/development/libraries/qt-6/modules/qtdeclarative/default.nix @@ -0,0 +1,33 @@ +{ qtModule +, qtbase +, qtlanguageserver +, qtshadertools +, openssl +, stdenv +, lib +, pkgsBuildBuild +}: + +qtModule { + pname = "qtdeclarative"; + + propagatedBuildInputs = [ qtbase qtlanguageserver qtshadertools openssl ]; + strictDeps = true; + + patches = [ + # prevent headaches from stale qmlcache data + ./disable-disk-cache.patch + # add version specific QML import path + ./use-versioned-import-path.patch + ]; + + cmakeFlags = [ + "-DQt6ShaderToolsTools_DIR=${pkgsBuildBuild.qt6.qtshadertools}/lib/cmake/Qt6ShaderTools" + # for some reason doesn't get found automatically on Darwin + "-DPython_EXECUTABLE=${lib.getExe pkgsBuildBuild.python3}" + ] + # Conditional is required to prevent infinite recursion during a cross build + ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + "-DQt6QmlTools_DIR=${pkgsBuildBuild.qt6.qtdeclarative}/lib/cmake/Qt6QmlTools" + ]; +} diff --git a/pkgs/development/libraries/qt-6/patches/0001-qtdeclarative-disable-qml-disk-cache.patch b/pkgs/development/libraries/qt-6/modules/qtdeclarative/disable-disk-cache.patch similarity index 50% rename from pkgs/development/libraries/qt-6/patches/0001-qtdeclarative-disable-qml-disk-cache.patch rename to pkgs/development/libraries/qt-6/modules/qtdeclarative/disable-disk-cache.patch index 9afcc8240ab3..2c10263bdc84 100644 --- a/pkgs/development/libraries/qt-6/patches/0001-qtdeclarative-disable-qml-disk-cache.patch +++ b/pkgs/development/libraries/qt-6/modules/qtdeclarative/disable-disk-cache.patch @@ -1,17 +1,6 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Nick Cao -Date: Tue, 10 Oct 2023 11:12:27 -0400 -Subject: [PATCH] qtdeclarative: disable qml disk cache - ---- - src/qml/jsruntime/qv4engine.cpp | 6 +----- - 1 file changed, 1 insertion(+), 5 deletions(-) - -diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp -index 506b920142..3cadb4fe06 100644 --- a/src/qml/jsruntime/qv4engine.cpp +++ b/src/qml/jsruntime/qv4engine.cpp -@@ -2202,11 +2202,7 @@ ExecutionEngine::DiskCacheOptions ExecutionEngine::diskCacheOptions() const +@@ -2208,13 +2208,7 @@ ExecutionEngine::DiskCacheOptions ExecutionEngine::diskCacheOptions() const { if (forceDiskCache()) return DiskCache::Enabled; @@ -19,7 +8,9 @@ index 506b920142..3cadb4fe06 100644 - return DiskCache::Disabled; - static const DiskCacheOptions options = qmlGetConfigOption< - DiskCacheOptions, transFormDiskCache>("QML_DISK_CACHE"); -- return options; +- return hasPreview.loadAcquire() +- ? (options & ~DiskCacheOptions(DiskCache::Aot)) // Disable AOT if preview enabled +- : options; + return DiskCache::Disabled; } diff --git a/pkgs/development/libraries/qt-6/patches/0002-qtdeclarative-also-use-versioned-qml-paths.patch b/pkgs/development/libraries/qt-6/modules/qtdeclarative/use-versioned-import-path.patch similarity index 52% rename from pkgs/development/libraries/qt-6/patches/0002-qtdeclarative-also-use-versioned-qml-paths.patch rename to pkgs/development/libraries/qt-6/modules/qtdeclarative/use-versioned-import-path.patch index d857d7ac1bba..7efd9c9cdb70 100644 --- a/pkgs/development/libraries/qt-6/patches/0002-qtdeclarative-also-use-versioned-qml-paths.patch +++ b/pkgs/development/libraries/qt-6/modules/qtdeclarative/use-versioned-import-path.patch @@ -1,14 +1,3 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Nick Cao -Date: Wed, 7 Feb 2024 11:49:04 -0500 -Subject: [PATCH] qtdeclarative: also use versioned qml paths - ---- - src/qml/qml/qqmlimport.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp -index f9cc8da240..f8cb033be0 100644 --- a/src/qml/qml/qqmlimport.cpp +++ b/src/qml/qml/qqmlimport.cpp @@ -1520,6 +1520,7 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e) diff --git a/pkgs/development/libraries/qt-6/modules/qtmqtt.nix b/pkgs/development/libraries/qt-6/modules/qtmqtt.nix index 80eef148701a..36fe1962983d 100644 --- a/pkgs/development/libraries/qt-6/modules/qtmqtt.nix +++ b/pkgs/development/libraries/qt-6/modules/qtmqtt.nix @@ -5,13 +5,13 @@ qtModule rec { pname = "qtmqtt"; - version = "6.8.0"; + version = "6.8.1"; src = fetchFromGitHub { owner = "qt"; repo = "qtmqtt"; rev = "v${version}"; - hash = "sha256-WvqBEq7Zv1CONMMuDHdj8/nJHoY4y7ysrqliTZHi7x8="; + hash = "sha256-PmIs+06DjPTbVTNfnl4N/F6sL7qa/X58AvbyCxltAMw="; }; propagatedBuildInputs = [ qtbase ]; diff --git a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix b/pkgs/development/libraries/qt-6/modules/qtmultimedia/default.nix similarity index 88% rename from pkgs/development/libraries/qt-6/modules/qtmultimedia.nix rename to pkgs/development/libraries/qt-6/modules/qtmultimedia/default.nix index ae02112475f0..49cd63224819 100644 --- a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix +++ b/pkgs/development/libraries/qt-6/modules/qtmultimedia/default.nix @@ -36,10 +36,10 @@ qtModule { ++ lib.optionals stdenv.hostPlatform.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ]; patches = [ - ../patches/fix-qtgui-include-incorrect-case.patch + ./fix-qtgui-include-incorrect-case.patch ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ - ../patches/qtmultimedia-windows-no-uppercase-libs.patch - ../patches/qtmultimedia-windows-resolve-function-name.patch + ./windows-no-uppercase-libs.patch + ./windows-resolve-function-name.patch ]; cmakeFlags = [ diff --git a/pkgs/development/libraries/qt-6/patches/fix-qtgui-include-incorrect-case.patch b/pkgs/development/libraries/qt-6/modules/qtmultimedia/fix-qtgui-include-incorrect-case.patch similarity index 70% rename from pkgs/development/libraries/qt-6/patches/fix-qtgui-include-incorrect-case.patch rename to pkgs/development/libraries/qt-6/modules/qtmultimedia/fix-qtgui-include-incorrect-case.patch index 5540ed8d77da..c67fde93498b 100644 --- a/pkgs/development/libraries/qt-6/patches/fix-qtgui-include-incorrect-case.patch +++ b/pkgs/development/libraries/qt-6/modules/qtmultimedia/fix-qtgui-include-incorrect-case.patch @@ -1,5 +1,3 @@ -diff --git a/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp b/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp -index c90dabb53..12557976d 100644 --- a/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp +++ b/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp @@ -7,7 +7,7 @@ diff --git a/pkgs/development/libraries/qt-6/patches/qtmultimedia-windows-no-uppercase-libs.patch b/pkgs/development/libraries/qt-6/modules/qtmultimedia/windows-no-uppercase-libs.patch similarity index 63% rename from pkgs/development/libraries/qt-6/patches/qtmultimedia-windows-no-uppercase-libs.patch rename to pkgs/development/libraries/qt-6/modules/qtmultimedia/windows-no-uppercase-libs.patch index 05f009bacdad..06cead730f77 100644 --- a/pkgs/development/libraries/qt-6/patches/qtmultimedia-windows-no-uppercase-libs.patch +++ b/pkgs/development/libraries/qt-6/modules/qtmultimedia/windows-no-uppercase-libs.patch @@ -1,5 +1,3 @@ -diff --git a/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp b/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp -index c0fbb53..3c82085 100644 --- a/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp +++ b/src/plugins/multimedia/ffmpeg/qffmpegscreencapture_dxgi.cpp @@ -14,7 +14,7 @@ diff --git a/pkgs/development/libraries/qt-6/patches/qtmultimedia-windows-resolve-function-name.patch b/pkgs/development/libraries/qt-6/modules/qtmultimedia/windows-resolve-function-name.patch similarity index 85% rename from pkgs/development/libraries/qt-6/patches/qtmultimedia-windows-resolve-function-name.patch rename to pkgs/development/libraries/qt-6/modules/qtmultimedia/windows-resolve-function-name.patch index 681e36e0c513..56482b30652d 100644 --- a/pkgs/development/libraries/qt-6/patches/qtmultimedia-windows-resolve-function-name.patch +++ b/pkgs/development/libraries/qt-6/modules/qtmultimedia/windows-resolve-function-name.patch @@ -1,5 +1,3 @@ -diff --git a/src/plugins/multimedia/ffmpeg/qwincapturablewindows.cpp b/src/plugins/multimedia/ffmpeg/qwincapturablewindows.cpp -index aac77ae..71ffed6 100644 --- a/src/plugins/multimedia/ffmpeg/qwincapturablewindows.cpp +++ b/src/plugins/multimedia/ffmpeg/qwincapturablewindows.cpp @@ -42,11 +42,7 @@ static QString windowTitle(HWND hwnd) { diff --git a/pkgs/development/libraries/qt-6/modules/qttools.nix b/pkgs/development/libraries/qt-6/modules/qttools/default.nix similarity index 95% rename from pkgs/development/libraries/qt-6/modules/qttools.nix rename to pkgs/development/libraries/qt-6/modules/qttools/default.nix index f13500d65464..ba7c421211fd 100644 --- a/pkgs/development/libraries/qt-6/modules/qttools.nix +++ b/pkgs/development/libraries/qt-6/modules/qttools/default.nix @@ -18,7 +18,7 @@ qtModule { propagatedBuildInputs = [ qtbase qtdeclarative ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cups ]; patches = [ - ../patches/qttools-paths.patch + ./paths.patch ]; env.NIX_CFLAGS_COMPILE = toString [ "-DNIX_OUTPUT_OUT=\"${placeholder "out"}\"" diff --git a/pkgs/development/libraries/qt-6/patches/qttools-paths.patch b/pkgs/development/libraries/qt-6/modules/qttools/paths.patch similarity index 88% rename from pkgs/development/libraries/qt-6/patches/qttools-paths.patch rename to pkgs/development/libraries/qt-6/modules/qttools/paths.patch index 6e7b8488fa54..ec306ecc480a 100644 --- a/pkgs/development/libraries/qt-6/patches/qttools-paths.patch +++ b/pkgs/development/libraries/qt-6/modules/qttools/paths.patch @@ -1,5 +1,3 @@ -diff --git a/src/linguist/shared/runqttool.cpp b/src/linguist/shared/runqttool.cpp -index d355b9dc..94fef33f 100644 --- a/src/linguist/shared/runqttool.cpp +++ b/src/linguist/shared/runqttool.cpp @@ -20,9 +20,21 @@ class FMT { diff --git a/pkgs/development/libraries/qt-6/modules/qtwayland.nix b/pkgs/development/libraries/qt-6/modules/qtwayland.nix index d3d55685f5fb..aab08733bbf1 100644 --- a/pkgs/development/libraries/qt-6/modules/qtwayland.nix +++ b/pkgs/development/libraries/qt-6/modules/qtwayland.nix @@ -6,6 +6,7 @@ , wayland-scanner , pkg-config , libdrm +, fetchpatch2 }: qtModule { @@ -18,6 +19,15 @@ qtModule { buildInputs = [ wayland libdrm ]; nativeBuildInputs = [ pkg-config ]; + patches = [ + # backport fix for crashes when hotplugging a graphics tablet, as recommended by upstream + # FIXME: remove in 6.8.2 + (fetchpatch2 { + url = "https://invent.kde.org/qt/qt/qtwayland/-/commit/24002ac6cbd01dbde4944b63c1f7c87ed2bd72b5.patch"; + hash = "sha256-Lz4Gv6FLhFGv7dVpqqcss6/w5jsGA8SKaNeWMHT0A/A="; + }) + ]; + # Replace vendored wayland.xml with our matching version # FIXME: remove when upstream updates past 1.23 postPatch = '' diff --git a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix b/pkgs/development/libraries/qt-6/modules/qtwebengine/default.nix similarity index 97% rename from pkgs/development/libraries/qt-6/modules/qtwebengine.nix rename to pkgs/development/libraries/qt-6/modules/qtwebengine/default.nix index c97dd0377981..8fe5a0b32ec6 100644 --- a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-6/modules/qtwebengine/default.nix @@ -101,12 +101,12 @@ qtModule { # Don't assume /usr/share/X11, and also respect the XKB_CONFIG_ROOT # environment variable, since NixOS relies on it working. # See https://github.com/NixOS/nixpkgs/issues/226484 for more context. - ../patches/qtwebengine-xkb-includes.patch + ./xkb-includes.patch - ../patches/qtwebengine-link-pulseaudio.patch + ./link-pulseaudio.patch # Override locales install path so they go to QtWebEngine's $out - ../patches/qtwebengine-locales-path.patch + ./locales-path.patch ]; postPatch = '' diff --git a/pkgs/development/libraries/qt-6/patches/qtwebengine-link-pulseaudio.patch b/pkgs/development/libraries/qt-6/modules/qtwebengine/link-pulseaudio.patch similarity index 80% rename from pkgs/development/libraries/qt-6/patches/qtwebengine-link-pulseaudio.patch rename to pkgs/development/libraries/qt-6/modules/qtwebengine/link-pulseaudio.patch index a48bb2c37eee..7ee990f45ce7 100644 --- a/pkgs/development/libraries/qt-6/patches/qtwebengine-link-pulseaudio.patch +++ b/pkgs/development/libraries/qt-6/modules/qtwebengine/link-pulseaudio.patch @@ -1,5 +1,3 @@ -diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt -index de5222645..bddb2322a 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -366,6 +366,7 @@ foreach(arch ${archs}) diff --git a/pkgs/development/libraries/qt-6/patches/qtwebengine-locales-path.patch b/pkgs/development/libraries/qt-6/modules/qtwebengine/locales-path.patch similarity index 73% rename from pkgs/development/libraries/qt-6/patches/qtwebengine-locales-path.patch rename to pkgs/development/libraries/qt-6/modules/qtwebengine/locales-path.patch index fecdb93cd547..e2bf74980878 100644 --- a/pkgs/development/libraries/qt-6/patches/qtwebengine-locales-path.patch +++ b/pkgs/development/libraries/qt-6/modules/qtwebengine/locales-path.patch @@ -1,15 +1,3 @@ -From 6f0068359f32d1e7ebaa32650c3b608c008a1127 Mon Sep 17 00:00:00 2001 -From: Nick Cao -Date: Tue, 10 Oct 2023 11:46:28 -0400 -Subject: [PATCH 2/2] qtwebengine: fix path to locales - ---- - src/core/api/CMakeLists.txt | 3 ++- - src/core/web_engine_library_info.cpp | 3 ++- - 2 files changed, 4 insertions(+), 2 deletions(-) - -diff --git a/src/core/api/CMakeLists.txt b/src/core/api/CMakeLists.txt -index a3cb53e17..fcb6d70c5 100644 --- a/src/core/api/CMakeLists.txt +++ b/src/core/api/CMakeLists.txt @@ -190,7 +190,8 @@ if(QT_FEATURE_framework) diff --git a/pkgs/development/libraries/qt-6/patches/qtwebengine-xkb-includes.patch b/pkgs/development/libraries/qt-6/modules/qtwebengine/xkb-includes.patch similarity index 100% rename from pkgs/development/libraries/qt-6/patches/qtwebengine-xkb-includes.patch rename to pkgs/development/libraries/qt-6/modules/qtwebengine/xkb-includes.patch diff --git a/pkgs/development/libraries/qt-6/patches/0005-qtbase-find-tools-in-PATH.patch b/pkgs/development/libraries/qt-6/patches/0005-qtbase-find-tools-in-PATH.patch deleted file mode 100644 index df1b67654b61..000000000000 --- a/pkgs/development/libraries/qt-6/patches/0005-qtbase-find-tools-in-PATH.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: rewine -Date: Wed, 29 Mar 2023 11:51:33 +0800 -Subject: [PATCH] qtbase: find tools in PATH - -1. find qt's tools in `QTTOOLSPATH` env - qt assumes that all components use the same install prefix - we can't get the real prefix for qttools when build qtbase - we will add /libexec to `QTTOOLSPATH` in qtToolsHook - find_path will also search in 'PATH' by default - see `CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH` - -2. disable tool_dependencies_enabled - We can guarantee the build order of qt components in nixpkgs - tools in qttools always build before qtdoc - qdoc_bin is not a build target now, since we find it in `QTTOOLSPATH` ---- - cmake/QtDocsHelpers.cmake | 11 ++++++++--- - 1 file changed, 8 insertions(+), 3 deletions(-) - -diff --git a/cmake/QtDocsHelpers.cmake b/cmake/QtDocsHelpers.cmake -index 8b631e88ca5..922639a9985 100644 ---- a/cmake/QtDocsHelpers.cmake -+++ b/cmake/QtDocsHelpers.cmake -@@ -72,9 +72,14 @@ function(qt_internal_add_docs) - set(doc_tools_libexec "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_LIBEXECDIR}") - endif() - -- set(qdoc_bin "${doc_tools_bin}/qdoc${CMAKE_EXECUTABLE_SUFFIX}") -- set(qtattributionsscanner_bin "${doc_tools_libexec}/qtattributionsscanner${CMAKE_EXECUTABLE_SUFFIX}") -- set(qhelpgenerator_bin "${doc_tools_libexec}/qhelpgenerator${CMAKE_EXECUTABLE_SUFFIX}") -+ set(tool_dependencies_enabled FALSE) -+ -+ find_path(qdoc_path name qdoc PATHS ENV QTTOOLSPATH) -+ find_path(qtattributionsscanner_path name qtattributionsscanner PATHS ENV QTTOOLSPATH) -+ find_path(qhelpgenerator_path name qhelpgenerator PATHS ENV QTTOOLSPATH) -+ set(qdoc_bin "${qdoc_path}/qdoc${CMAKE_EXECUTABLE_SUFFIX}") -+ set(qtattributionsscanner_bin "${qtattributionsscanner_path}/qtattributionsscanner${CMAKE_EXECUTABLE_SUFFIX}") -+ set(qhelpgenerator_bin "${qhelpgenerator_path}/qhelpgenerator${CMAKE_EXECUTABLE_SUFFIX}") - - get_target_property(target_type ${target} TYPE) - if (NOT target_type STREQUAL "INTERFACE_LIBRARY") diff --git a/pkgs/development/libraries/qt-6/patches/0008-qtbase-find-qmlimportscanner-in-macdeployqt-via-envi.patch b/pkgs/development/libraries/qt-6/patches/0008-qtbase-find-qmlimportscanner-in-macdeployqt-via-envi.patch deleted file mode 100644 index 597dd7e6550d..000000000000 --- a/pkgs/development/libraries/qt-6/patches/0008-qtbase-find-qmlimportscanner-in-macdeployqt-via-envi.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Juan=20Pedro=20Bol=C3=ADvar=20Puente?= -Date: Wed, 9 Aug 2023 16:16:21 +0200 -Subject: [PATCH] qtbase: find qmlimportscanner in macdeployqt via environment - -The qmlimportscanner tool is provided by qtdeclarative. Because of the -modularized installation in Nix, it can not be found via the usual -mechanisms. Also, hard-coding it like we do for Qt5 would also not -work, as it would require making qtbase depend on qtdeclarative. - -Here we add an option to provide its location via the environment. -While this means macdeployqt does not work out of the box, it provides -a workaround for users. ---- - src/tools/macdeployqt/shared/shared.cpp | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/tools/macdeployqt/shared/shared.cpp b/src/tools/macdeployqt/shared/shared.cpp -index 57b68627eba..2b972a76c49 100644 ---- a/src/tools/macdeployqt/shared/shared.cpp -+++ b/src/tools/macdeployqt/shared/shared.cpp -@@ -1280,6 +1280,10 @@ bool deployQmlImports(const QString &appBundlePath, DeploymentInfo deploymentInf - if (!QFile::exists(qmlImportScannerPath)) - qmlImportScannerPath = QCoreApplication::applicationDirPath() + "/qmlimportscanner"; - -+ // Fallback: Pass qml import scanner via environment variable -+ if (!QFile::exists(qmlImportScannerPath)) -+ qmlImportScannerPath = ::qgetenv("NIX_QMLIMPORTSCANNER"); -+ - // Verify that we found a qmlimportscanner binary - if (!QFile::exists(qmlImportScannerPath)) { - LogError() << "qmlimportscanner not found at" << qmlImportScannerPath; diff --git a/pkgs/development/libraries/qt-6/srcs.nix b/pkgs/development/libraries/qt-6/srcs.nix index 1bf3d1a649c8..cc37e20647de 100644 --- a/pkgs/development/libraries/qt-6/srcs.nix +++ b/pkgs/development/libraries/qt-6/srcs.nix @@ -4,315 +4,315 @@ { qt3d = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qt3d-everywhere-src-6.8.0.tar.xz"; - sha256 = "0zbv1j0i9bla73b4v15skjballff2l0lxgrdfhdkaz232ng9249s"; - name = "qt3d-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qt3d-everywhere-src-6.8.1.tar.xz"; + sha256 = "0dj2gh6lrcy096g0f9cyawg16c7n46lqqn3bgicr5bbv3f3hdc08"; + name = "qt3d-everywhere-src-6.8.1.tar.xz"; }; }; qt5compat = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qt5compat-everywhere-src-6.8.0.tar.xz"; - sha256 = "0c2yhgsn63a5m0pxchmkkqfb7izllpr46srf2pndcsqbszyhb6rw"; - name = "qt5compat-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qt5compat-everywhere-src-6.8.1.tar.xz"; + sha256 = "1z34289x0j40f3jylwz62aqqq21aqkvpz2wwibx330ydnj4c1j05"; + name = "qt5compat-everywhere-src-6.8.1.tar.xz"; }; }; qtactiveqt = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtactiveqt-everywhere-src-6.8.0.tar.xz"; - sha256 = "0nycsn0yim01cvinfaljwmx8rllll6xw62cywqhbz61fqlsdy693"; - name = "qtactiveqt-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtactiveqt-everywhere-src-6.8.1.tar.xz"; + sha256 = "1mwc5incb7hy33d0jskxl3yliw6jvgky8qxq9cgmplx5p7m48scj"; + name = "qtactiveqt-everywhere-src-6.8.1.tar.xz"; }; }; qtbase = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtbase-everywhere-src-6.8.0.tar.xz"; - sha256 = "0x9wp9fd37ycpw73s03p01zi19l93xjp57vcvrrgh9xa20blib8v"; - name = "qtbase-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtbase-everywhere-src-6.8.1.tar.xz"; + sha256 = "1bywb2nxdqdwnc68qvpaz0sq58lgw0mfl6041sy7kmrvxxi4bca0"; + name = "qtbase-everywhere-src-6.8.1.tar.xz"; }; }; qtcharts = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtcharts-everywhere-src-6.8.0.tar.xz"; - sha256 = "0bqkbd31lxyqiw4nbwrach7hixg3q93v26di9hxb0s8s1nndl8qr"; - name = "qtcharts-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtcharts-everywhere-src-6.8.1.tar.xz"; + sha256 = "0abxy1b42rzvg1yksbmzvdpapxdp8n37jclkv44gb3i4dvqs7pif"; + name = "qtcharts-everywhere-src-6.8.1.tar.xz"; }; }; qtconnectivity = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtconnectivity-everywhere-src-6.8.0.tar.xz"; - sha256 = "120pq8yvm4v72800cj0mm8069fiyan036arnc74zq1vmq1ngpgmv"; - name = "qtconnectivity-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtconnectivity-everywhere-src-6.8.1.tar.xz"; + sha256 = "0724lq45jjw223n681rnrsjxh97jn5gi8ki7i03p3412mpkldzfc"; + name = "qtconnectivity-everywhere-src-6.8.1.tar.xz"; }; }; qtdatavis3d = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtdatavis3d-everywhere-src-6.8.0.tar.xz"; - sha256 = "1zscaf1f4dfc5v8w8bivac5hnbq4j6j70vf78b5dcy5h2dfrdwim"; - name = "qtdatavis3d-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtdatavis3d-everywhere-src-6.8.1.tar.xz"; + sha256 = "03jba3d5arysrw1drz4a5kj2kjrb6lrwfrrhvgg3mamqdph8zrns"; + name = "qtdatavis3d-everywhere-src-6.8.1.tar.xz"; }; }; qtdeclarative = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtdeclarative-everywhere-src-6.8.0.tar.xz"; - sha256 = "1hj4asdzkm78v0mfwyvh847j010mb43i3xx11nma66g989ms6h9v"; - name = "qtdeclarative-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtdeclarative-everywhere-src-6.8.1.tar.xz"; + sha256 = "1z1rq2j4cwhz5wgibdb8a6xw339vs6d231b4vyqyvp3a3df5vlcm"; + name = "qtdeclarative-everywhere-src-6.8.1.tar.xz"; }; }; qtdoc = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtdoc-everywhere-src-6.8.0.tar.xz"; - sha256 = "0mqjki77cbm14jxxh750p6h7kixkma1nsimdl97b4lslcrs3mj1x"; - name = "qtdoc-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtdoc-everywhere-src-6.8.1.tar.xz"; + sha256 = "1ckvrpn32v20vd0m06s46vxcrhn8plq738bzahz9329rvdild9vh"; + name = "qtdoc-everywhere-src-6.8.1.tar.xz"; }; }; qtgraphs = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtgraphs-everywhere-src-6.8.0.tar.xz"; - sha256 = "0hnb1nb8bdhjkrr3b64dk9wgkdgnrb8bxdafvizy2gsr0rd4m9ab"; - name = "qtgraphs-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtgraphs-everywhere-src-6.8.1.tar.xz"; + sha256 = "102asm1c2pmn3xb784l74qgafkl2yp5gh3ml59jkas4kd7gf6ihy"; + name = "qtgraphs-everywhere-src-6.8.1.tar.xz"; }; }; qtgrpc = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtgrpc-everywhere-src-6.8.0.tar.xz"; - sha256 = "0zgli0y52n5ahiahkmr1439c5vmjjv69f1x6vw4jbhc3xkp4lnvx"; - name = "qtgrpc-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtgrpc-everywhere-src-6.8.1.tar.xz"; + sha256 = "102y1gs7r9097cvym8zds03cj8ffs8hc8mza5bsfa4mhjrq5qqdi"; + name = "qtgrpc-everywhere-src-6.8.1.tar.xz"; }; }; qthttpserver = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qthttpserver-everywhere-src-6.8.0.tar.xz"; - sha256 = "0zvrmqdch8mgpz3xbql3qy6zivyg8f0h10h86di90p1ssb40ihw1"; - name = "qthttpserver-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qthttpserver-everywhere-src-6.8.1.tar.xz"; + sha256 = "09qbkg1lx0rdq6bjvlw5n61q8hawg1b4cd0y9p3v2nf3vl7vk32x"; + name = "qthttpserver-everywhere-src-6.8.1.tar.xz"; }; }; qtimageformats = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtimageformats-everywhere-src-6.8.0.tar.xz"; - sha256 = "1m55966458jf5n7hciahzw8fdix3d2cf1w96qzmziqcigdazhnsr"; - name = "qtimageformats-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtimageformats-everywhere-src-6.8.1.tar.xz"; + sha256 = "0dyj7n8dh8fawaxgxd537ifn4ppb6qwyndiy53vmz3x9ka8c530k"; + name = "qtimageformats-everywhere-src-6.8.1.tar.xz"; }; }; qtlanguageserver = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtlanguageserver-everywhere-src-6.8.0.tar.xz"; - sha256 = "1vsw0q0pb7dbxhpg1df0bandfy7k62l68pi063fxpld4ihn1bxzv"; - name = "qtlanguageserver-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtlanguageserver-everywhere-src-6.8.1.tar.xz"; + sha256 = "0zkdiqy26fji2mqh827m7xap5gv0xrn5nqihibim6aj3q4v98pl6"; + name = "qtlanguageserver-everywhere-src-6.8.1.tar.xz"; }; }; qtlocation = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtlocation-everywhere-src-6.8.0.tar.xz"; - sha256 = "181ijzpx4xav5j282w2ppa9g5wdc4z13q0r7269flrb9ngs8gi50"; - name = "qtlocation-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtlocation-everywhere-src-6.8.1.tar.xz"; + sha256 = "1vsr9fpdsslz78fh6vb3qrqjgqip5s9amls99qfkm1xvp1gdnw4h"; + name = "qtlocation-everywhere-src-6.8.1.tar.xz"; }; }; qtlottie = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtlottie-everywhere-src-6.8.0.tar.xz"; - sha256 = "15kw2cgxqh8mhip0838yalbpfnp4pd000sdalgxvc53bd8wycsfb"; - name = "qtlottie-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtlottie-everywhere-src-6.8.1.tar.xz"; + sha256 = "0jhpf3hmhzr0ns4qd0zsdblxadmparmcj6n24js95pxzzk2l8hw2"; + name = "qtlottie-everywhere-src-6.8.1.tar.xz"; }; }; qtmultimedia = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtmultimedia-everywhere-src-6.8.0.tar.xz"; - sha256 = "1kfgfcnihn0rqnjdif4n0hd8j2p9xkbfy3a2m3gsfypscajnlxi8"; - name = "qtmultimedia-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtmultimedia-everywhere-src-6.8.1.tar.xz"; + sha256 = "0lzrfg8vscjc3n79rlb0jm8pkb4r8xsa8m9clvqbgyls9w9qgykm"; + name = "qtmultimedia-everywhere-src-6.8.1.tar.xz"; }; }; qtnetworkauth = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtnetworkauth-everywhere-src-6.8.0.tar.xz"; - sha256 = "0j6ch2p6c2b6akg0hq7iy96v118rypz77573bf4mvcy68ijmcpdr"; - name = "qtnetworkauth-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtnetworkauth-everywhere-src-6.8.1.tar.xz"; + sha256 = "0920qx3zw0567la4wl1fx3z4qrs3pmlvsf14hbgvnpwwjax691hi"; + name = "qtnetworkauth-everywhere-src-6.8.1.tar.xz"; }; }; qtpositioning = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtpositioning-everywhere-src-6.8.0.tar.xz"; - sha256 = "0fgbgsg1hnwnm7bbp0j41nlpmz9g65nwj48v2c8mjiq15cz4d0gc"; - name = "qtpositioning-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtpositioning-everywhere-src-6.8.1.tar.xz"; + sha256 = "13gpglkgacmpjikga5wsbvghnhvp7vzzizsvg2qvxm4i4liyf473"; + name = "qtpositioning-everywhere-src-6.8.1.tar.xz"; }; }; qtquick3d = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtquick3d-everywhere-src-6.8.0.tar.xz"; - sha256 = "0gr2y030phghpniw7flr90f4kckiksq39y53dwddncysw970959y"; - name = "qtquick3d-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtquick3d-everywhere-src-6.8.1.tar.xz"; + sha256 = "1rqcy8ds8kidccp193paklims7l1676kfskync5d9z4mdig38g9z"; + name = "qtquick3d-everywhere-src-6.8.1.tar.xz"; }; }; qtquick3dphysics = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtquick3dphysics-everywhere-src-6.8.0.tar.xz"; - sha256 = "07wmy546hwavbpy368pyk0qgj79sqykqkcsnmv802qp7kwi5rcqk"; - name = "qtquick3dphysics-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtquick3dphysics-everywhere-src-6.8.1.tar.xz"; + sha256 = "0vhabyblidy7wf80jl27bq25rpq5f9pys8dj9bxj40rgazdqwbk5"; + name = "qtquick3dphysics-everywhere-src-6.8.1.tar.xz"; }; }; qtquickeffectmaker = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtquickeffectmaker-everywhere-src-6.8.0.tar.xz"; - sha256 = "1x3lijsfd8pv74sgyjc7cj9s0c2q9bf49r44aa2d0zdjs3rxg8ca"; - name = "qtquickeffectmaker-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtquickeffectmaker-everywhere-src-6.8.1.tar.xz"; + sha256 = "1xjizd15q2pgvaikw5vjkf2chvkdrfy3c66cfar91gba6l9xykrd"; + name = "qtquickeffectmaker-everywhere-src-6.8.1.tar.xz"; }; }; qtquicktimeline = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtquicktimeline-everywhere-src-6.8.0.tar.xz"; - sha256 = "020zv4fnx37k8nm0c462bk8r9ma7l6ivr8j7i82h6688v0ds81hi"; - name = "qtquicktimeline-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtquicktimeline-everywhere-src-6.8.1.tar.xz"; + sha256 = "18qjzvnhx24lhfp9fv53wq3jd4w1dqrzlg7v044cwyzx4y71kg7x"; + name = "qtquicktimeline-everywhere-src-6.8.1.tar.xz"; }; }; qtremoteobjects = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtremoteobjects-everywhere-src-6.8.0.tar.xz"; - sha256 = "123mkiak4xj05yg6sg86z1hixp8vycj0yks1fj1yk5lpdl65gpzi"; - name = "qtremoteobjects-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtremoteobjects-everywhere-src-6.8.1.tar.xz"; + sha256 = "1y2riwh227s1krp4l96s8fy4lagmrqmc2ynxrz8p2jv10l7qgwky"; + name = "qtremoteobjects-everywhere-src-6.8.1.tar.xz"; }; }; qtscxml = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtscxml-everywhere-src-6.8.0.tar.xz"; - sha256 = "0fxl6yc03z43x49nskm2r1wa7vq9zg6dv1hl74nipc21yi7amadv"; - name = "qtscxml-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtscxml-everywhere-src-6.8.1.tar.xz"; + sha256 = "1mjgc49gr7fsgqm1m8h5xij7m7frs6ji5026j3dyvmmcrx26yh1g"; + name = "qtscxml-everywhere-src-6.8.1.tar.xz"; }; }; qtsensors = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtsensors-everywhere-src-6.8.0.tar.xz"; - sha256 = "0yg6vn1yk4k962bff33pk9pjzyw3rskqcqfnadfvgyh5zb2l8dbj"; - name = "qtsensors-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtsensors-everywhere-src-6.8.1.tar.xz"; + sha256 = "0l4p3lh5g8w2dymy7k661b4qz7kmpvv0xrw0gdj0rm2h91hrpx21"; + name = "qtsensors-everywhere-src-6.8.1.tar.xz"; }; }; qtserialbus = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtserialbus-everywhere-src-6.8.0.tar.xz"; - sha256 = "1ynsy0xkjdp5d3rii0ch540n8cs07dzwd66cxw59gh9j92839676"; - name = "qtserialbus-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtserialbus-everywhere-src-6.8.1.tar.xz"; + sha256 = "1nhmxm44achdagfqvzd39yjriqr1kpm9x7wfh6by4fjwxj98sy20"; + name = "qtserialbus-everywhere-src-6.8.1.tar.xz"; }; }; qtserialport = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtserialport-everywhere-src-6.8.0.tar.xz"; - sha256 = "1hz7fynpa6z0x206g920xfk45hi74fahpcyha1f09cddrwpdfrvp"; - name = "qtserialport-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtserialport-everywhere-src-6.8.1.tar.xz"; + sha256 = "15c3jdncjvc172sqk7nbm4z8wc6pfbnv18gfwc1v0zbdq2jp53h9"; + name = "qtserialport-everywhere-src-6.8.1.tar.xz"; }; }; qtshadertools = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtshadertools-everywhere-src-6.8.0.tar.xz"; - sha256 = "1jy4siv6ny9wgs5bcn19z05my9q8za0wi5lyngrlndw26k4jssa4"; - name = "qtshadertools-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtshadertools-everywhere-src-6.8.1.tar.xz"; + sha256 = "0ij8khb8k9qzmvkn1g2ks90m175syw897a2bqx1q0fj76bb0rdsm"; + name = "qtshadertools-everywhere-src-6.8.1.tar.xz"; }; }; qtspeech = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtspeech-everywhere-src-6.8.0.tar.xz"; - sha256 = "0rb52qbwjkxlncz28rcjapi059b8px3i5haq71gm7f1pph90l8vm"; - name = "qtspeech-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtspeech-everywhere-src-6.8.1.tar.xz"; + sha256 = "1pxcw468f003qx645xv377rm55jkbqrddl49xg6b1c2pq4vgxidh"; + name = "qtspeech-everywhere-src-6.8.1.tar.xz"; }; }; qtsvg = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtsvg-everywhere-src-6.8.0.tar.xz"; - sha256 = "16b1ckqpfhzn9xaqbwz5gy4b0xavbpjxj4064ivq23sjbqymjyng"; - name = "qtsvg-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtsvg-everywhere-src-6.8.1.tar.xz"; + sha256 = "1l0darn7apr142kzn4k9hm91f2dv4r27rms8gjm2ssz3jqsyf39x"; + name = "qtsvg-everywhere-src-6.8.1.tar.xz"; }; }; qttools = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qttools-everywhere-src-6.8.0.tar.xz"; - sha256 = "1xw1k7rnm2yylbj08p9a0w2ydfcfwa50qca3dv6cc0w54vc1aca0"; - name = "qttools-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qttools-everywhere-src-6.8.1.tar.xz"; + sha256 = "0ba37hl5pp3zpf3n9vqsq4zrm75n2i8wdaam04d6if08pq4x8hwx"; + name = "qttools-everywhere-src-6.8.1.tar.xz"; }; }; qttranslations = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qttranslations-everywhere-src-6.8.0.tar.xz"; - sha256 = "1dkw8f3hcnmnnv0ia62i5189dcgjkpx7pkcal180rka3q9kjpgw4"; - name = "qttranslations-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qttranslations-everywhere-src-6.8.1.tar.xz"; + sha256 = "0jjs0c1j62rlp4sv3b6lhr3xvsjw91vi1rbxh0xj8llix69n0nk3"; + name = "qttranslations-everywhere-src-6.8.1.tar.xz"; }; }; qtvirtualkeyboard = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtvirtualkeyboard-everywhere-src-6.8.0.tar.xz"; - sha256 = "1q0cdmxm4j9w6lhm1k1ayjykknl6kmzr415qc14znr87ykbh4rcg"; - name = "qtvirtualkeyboard-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtvirtualkeyboard-everywhere-src-6.8.1.tar.xz"; + sha256 = "0r52i57lfzy6yvjg9zhdppn1x8vhia61andnhlp77v4k82ya68hh"; + name = "qtvirtualkeyboard-everywhere-src-6.8.1.tar.xz"; }; }; qtwayland = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtwayland-everywhere-src-6.8.0.tar.xz"; - sha256 = "02h6lak0cp87b76474ifsm78vsx0gwfc2smnzg3g3srq2rcmhmqp"; - name = "qtwayland-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtwayland-everywhere-src-6.8.1.tar.xz"; + sha256 = "00x2xhlp3iyxvxkk9rl9wxa6lw7x727rq8sbpzw15p9d9vggn9i2"; + name = "qtwayland-everywhere-src-6.8.1.tar.xz"; }; }; qtwebchannel = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtwebchannel-everywhere-src-6.8.0.tar.xz"; - sha256 = "1h30mzmhkbcjaj4wivway0ldrdidqyg2b79313v2m3capwjhs9fn"; - name = "qtwebchannel-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtwebchannel-everywhere-src-6.8.1.tar.xz"; + sha256 = "0fknlmlaajrf7cmkk4wnswmr51zam0zh4id19n99wc18j5zry4vb"; + name = "qtwebchannel-everywhere-src-6.8.1.tar.xz"; }; }; qtwebengine = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtwebengine-everywhere-src-6.8.0.tar.xz"; - sha256 = "0lklgz5i3ryl6d1ghy11rvmg9isbzvrvx007nwb4qqm89294b114"; - name = "qtwebengine-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtwebengine-everywhere-src-6.8.1.tar.xz"; + sha256 = "1g4imqhd3rnkq5sjjiapczlj5pl3p4yvcj8fhg751kzdr0xf1a0v"; + name = "qtwebengine-everywhere-src-6.8.1.tar.xz"; }; }; qtwebsockets = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtwebsockets-everywhere-src-6.8.0.tar.xz"; - sha256 = "0vxgbqxahay0gz5cv3fl075qw3flm3hgz1srhs4jl75p8rff0jy1"; - name = "qtwebsockets-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtwebsockets-everywhere-src-6.8.1.tar.xz"; + sha256 = "0gqy6kgixyvpwayldjwd072i3k48pz4sca84n31d3v8bfvldmkz4"; + name = "qtwebsockets-everywhere-src-6.8.1.tar.xz"; }; }; qtwebview = { - version = "6.8.0"; + version = "6.8.1"; src = fetchurl { - url = "${mirror}/official_releases/qt/6.8/6.8.0/submodules/qtwebview-everywhere-src-6.8.0.tar.xz"; - sha256 = "1wvrq7lf688hqvq102kyvx7kqnixxp6w25cb6rvb2xiqb50rvf3w"; - name = "qtwebview-everywhere-src-6.8.0.tar.xz"; + url = "${mirror}/official_releases/qt/6.8/6.8.1/submodules/qtwebview-everywhere-src-6.8.1.tar.xz"; + sha256 = "08lyas1zvc2yj8h7d75yf9n6jmjm0qvvlwaqjprhdyl4kjgc0szm"; + name = "qtwebview-everywhere-src-6.8.1.tar.xz"; }; }; } From c2d0cf4975e48b0b6c53bd3f3351a4e92e4fddff Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 2 Dec 2024 22:44:33 +0300 Subject: [PATCH 672/693] qt6.qtwayland: propagate wayland --- pkgs/development/libraries/qt-6/modules/qtwayland.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/qt-6/modules/qtwayland.nix b/pkgs/development/libraries/qt-6/modules/qtwayland.nix index aab08733bbf1..925a94ba6742 100644 --- a/pkgs/development/libraries/qt-6/modules/qtwayland.nix +++ b/pkgs/development/libraries/qt-6/modules/qtwayland.nix @@ -14,9 +14,9 @@ qtModule { # wayland-scanner needs to be propagated as both build # (for the wayland-scanner binary) and host (for the # actual wayland.xml protocol definition) - propagatedBuildInputs = [ qtbase qtdeclarative wayland-scanner ]; + propagatedBuildInputs = [ qtbase qtdeclarative wayland wayland-scanner ]; propagatedNativeBuildInputs = [ wayland wayland-scanner ]; - buildInputs = [ wayland libdrm ]; + buildInputs = [ libdrm ]; nativeBuildInputs = [ pkg-config ]; patches = [ From 70038f0e4d5c44cb6eade3feca332cb88bb9fc5e Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Mon, 28 Oct 2024 13:56:33 +0800 Subject: [PATCH 673/693] buildEnv: support ignoreSingleFileOutputs Add option to ignore single-file output instead of failing. --- pkgs/build-support/buildenv/builder.pl | 23 ++++++++++++++--------- pkgs/build-support/buildenv/default.nix | 5 ++++- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/pkgs/build-support/buildenv/builder.pl b/pkgs/build-support/buildenv/builder.pl index 12d922770a8f..b620a89aee8f 100755 --- a/pkgs/build-support/buildenv/builder.pl +++ b/pkgs/build-support/buildenv/builder.pl @@ -77,7 +77,7 @@ for my $p (@pathsToLink) { sub findFiles; sub findFilesInDir { - my ($relName, $target, $ignoreCollisions, $checkCollisionContents, $priority) = @_; + my ($relName, $target, $ignoreCollisions, $ignoreSingleFileOutputs, $checkCollisionContents, $priority) = @_; opendir DIR, "$target" or die "cannot open `$target': $!"; my @names = readdir DIR or die; @@ -85,7 +85,7 @@ sub findFilesInDir { foreach my $name (@names) { next if $name eq "." || $name eq ".."; - findFiles("$relName/$name", "$target/$name", $name, $ignoreCollisions, $checkCollisionContents, $priority); + findFiles("$relName/$name", "$target/$name", $name, $ignoreCollisions, $ignoreSingleFileOutputs, $checkCollisionContents, $priority); } } @@ -115,11 +115,16 @@ sub prependDangling { } sub findFiles { - my ($relName, $target, $baseName, $ignoreCollisions, $checkCollisionContents, $priority) = @_; + my ($relName, $target, $baseName, $ignoreCollisions, $ignoreSingleFileOutputs, $checkCollisionContents, $priority) = @_; - # The store path must not be a file + # The store path must not be a file when not ignoreSingleFileOutputs if (-f $target && isStorePath $target) { - die "The store path $target is a file and can't be merged into an environment using pkgs.buildEnv!"; + if ($ignoreSingleFileOutputs) { + warn "The store path $target is a file and can't be merged into an environment using pkgs.buildEnv"; + return; + } else { + die "The store path $target is a file and can't be merged into an environment using pkgs.buildEnv!"; + } } # Urgh, hacky... @@ -188,8 +193,8 @@ sub findFiles { } } - findFilesInDir($relName, $oldTarget, $ignoreCollisions, $checkCollisionContents, $oldPriority) unless $oldTarget eq ""; - findFilesInDir($relName, $target, $ignoreCollisions, $checkCollisionContents, $priority); + findFilesInDir($relName, $oldTarget, $ignoreCollisions, $ignoreSingleFileOutputs, $checkCollisionContents, $oldPriority) unless $oldTarget eq ""; + findFilesInDir($relName, $target, $ignoreCollisions, $ignoreSingleFileOutputs, $checkCollisionContents, $priority); $symlinks{$relName} = ["", $priority]; # denotes directory } @@ -199,12 +204,12 @@ my %done; my %postponed; sub addPkg { - my ($pkgDir, $ignoreCollisions, $checkCollisionContents, $priority) = @_; + my ($pkgDir, $ignoreCollisions, $ignoreSingleFileOutputs, $checkCollisionContents, $priority) = @_; return if (defined $done{$pkgDir}); $done{$pkgDir} = 1; - findFiles("", $pkgDir, "", $ignoreCollisions, $checkCollisionContents, $priority); + findFiles("", $pkgDir, "", $ignoreCollisions, $ignoreSingleFileOutputs, $checkCollisionContents, $priority); my $propagatedFN = "$pkgDir/nix-support/propagated-user-env-packages"; if (-e $propagatedFN) { diff --git a/pkgs/build-support/buildenv/default.nix b/pkgs/build-support/buildenv/default.nix index ecd633fdbe43..e536467837c1 100644 --- a/pkgs/build-support/buildenv/default.nix +++ b/pkgs/build-support/buildenv/default.nix @@ -23,6 +23,9 @@ lib.makeOverridable , # Whether to ignore collisions or abort. ignoreCollisions ? false + # Whether to ignore outputs that are a single file instead of a directory. +, ignoreSingleFileOutputs ? false + , # Whether to include closures of all input paths. includeClosures ? false @@ -78,7 +81,7 @@ let ]; in runCommand name (rec { - inherit manifest ignoreCollisions checkCollisionContents passthru + inherit manifest ignoreCollisions checkCollisionContents ignoreSingleFileOutputs passthru meta pathsToLink extraPrefix postBuild nativeBuildInputs buildInputs; pkgs = builtins.toJSON chosenOutputs; From 6ebffd546a9ed2e85fb94bf166c90ccff4e05d95 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 29 Oct 2024 21:23:41 -0500 Subject: [PATCH 674/693] neovim-require-check-hook: auto discover modules to require --- doc/languages-frameworks/vim.section.md | 36 ++++- doc/redirects.json | 3 + .../vim/plugins/neovim-require-check-hook.sh | 140 ++++++++++++++++-- .../editors/vim/plugins/vim-utils.nix | 9 +- 4 files changed, 171 insertions(+), 17 deletions(-) diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md index 4bb2b6e4f255..7b3522af17c8 100644 --- a/doc/languages-frameworks/vim.section.md +++ b/doc/languages-frameworks/vim.section.md @@ -234,9 +234,17 @@ Finally, there are some plugins that are also packaged in nodePackages because t ### Testing Neovim plugins {#testing-neovim-plugins} -`nvimRequireCheck=MODULE` is a simple test which checks if Neovim can requires the lua module `MODULE` without errors. This is often enough to catch missing dependencies. +#### neovimRequireCheck {#testing-neovim-plugins-neovim-require-check} +`neovimRequireCheck` is a simple test which checks if Neovim can requires lua modules without errors. This is often enough to catch missing dependencies. -This can be manually added through plugin definition overrides in the [overrides.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/overrides.nix). +It accepts a single string for a module, or a list of module strings to test. +- `nvimRequireCheck = MODULE;` +- `nvimRequireCheck = [ MODULE1 MODULE2 ];` + +When `neovimRequireCheck` is not specified, we will search the plugin's directory for lua modules to attempt loading. This quick smoke test can catch obvious dependency errors that might be missed. +The check hook will fail the build if any failures are detected to encourage inspecting the logs to identify potential issues. + +If you would like to only check a specific module, this can be manually added through plugin definition overrides in the [overrides.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/overrides.nix). ```nix gitsigns-nvim = super.gitsigns-nvim.overrideAttrs { @@ -244,6 +252,30 @@ This can be manually added through plugin definition overrides in the [overrides nvimRequireCheck = "gitsigns"; }; ``` +Some plugins will have lua modules that require a user configuration to function properly or can contain optional lua modules that we dont want to test requiring. +We can skip specific modules using `nvimSkipModule`. Similar to `nvimRequireCheck`, it accepts a single string or a list of strings. +- `nvimSkipModule = MODULE;` +- `nvimSkipModule = [ MODULE1 MODULE2 ];` + +```nix + asyncrun-vim = super.asyncrun-vim.overrideAttrs { + nvimSkipModule = [ + # vim plugin with optional toggleterm integration + "asyncrun.toggleterm" + "asyncrun.toggleterm2" + ]; + }; +``` + +In rare cases, we might not want to actually test loading lua modules for a plugin. In those cases, we can disable `neovimRequireCheck` with `doCheck = false;`. + +This can be manually added through plugin definition overrides in the [overrides.nix](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/overrides.nix). +```nix + vim-test = super.vim-test.overrideAttrs { + # Vim plugin with a test lua file + doCheck = false; + }; +``` ### Plugin optional configuration {#vim-plugin-required-snippet} diff --git a/doc/redirects.json b/doc/redirects.json index 311ca1ff4af7..dc6e46a5688a 100644 --- a/doc/redirects.json +++ b/doc/redirects.json @@ -3760,6 +3760,9 @@ "testing-neovim-plugins": [ "index.html#testing-neovim-plugins" ], + "testing-neovim-plugins-neovim-require-check": [ + "index.html#testing-neovim-plugins-neovim-require-check" + ], "vim-plugin-required-snippet": [ "index.html#vim-plugin-required-snippet" ], diff --git a/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh b/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh index 1808442327a1..d5bd1c515451 100644 --- a/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh +++ b/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh @@ -1,24 +1,136 @@ #shellcheck shell=bash -# Setup hook for checking whether Python imports succeed +# Setup hook for checking whether Lua imports succeed echo "Sourcing neovim-require-check-hook.sh" -neovimRequireCheckHook () { +# Discover modules automatically if nvimRequireCheck is not set +discover_modules() { + echo "Running module discovery in source directory..." + + # Create unique lists so we can organize later + modules=() + + while IFS= read -r lua_file; do + # Ignore certain infra directories + if [[ "$lua_file" =~ debug/|scripts?/|tests?/|spec/ || "$lua_file" =~ .*\meta.lua ]]; then + continue + # Ignore optional telescope and lualine modules + elif [[ "$lua_file" =~ ^lua/telescope/_extensions/(.+)\.lua || "$lua_file" =~ ^lua/lualine/(.+)\.lua ]]; then + continue + # Grab main module names + elif [[ "$lua_file" =~ ^lua/([^/]+)/init.lua$ ]]; then + echo "$lua_file" + modules+=("${BASH_REMATCH[1]}") + # Check other lua files + elif [[ "$lua_file" =~ ^lua/(.*)\.lua$ ]]; then + echo "$lua_file" + # Replace slashes with dots to form the module name + module_name="${BASH_REMATCH[1]//\//.}" + modules+=("$module_name") + elif [[ "$lua_file" =~ ^([^/.][^/]*)\.lua$ ]]; then + echo "$lua_file" + modules+=("${BASH_REMATCH[1]}") + fi + done < <(find "$src" -name '*.lua' | xargs -n 1 realpath --relative-to="$src") + + nvimRequireCheck=("${modules[@]}") + echo "Discovered modules: ${nvimRequireCheck[*]}" + + if [ "${#nvimRequireCheck[@]}" -eq 0 ]; then + echo "No valid Lua modules found; skipping check" + return 1 + fi + return 0 +} + +# Run require checks on each module in nvimRequireCheck +run_require_checks() { + echo "Starting require checks" + check_passed=false + failed_modules=() + successful_modules=() + + export HOME="$TMPDIR" + local deps="${dependencies[*]}" + local checks="${nativeBuildInputs[*]}" + set +e + for name in "${nvimRequireCheck[@]}"; do + local skip=false + for module in "${nvimSkipModule[@]}"; do + if [[ "$module" == "$name" ]]; then + echo "$name is in list of modules to not check. Skipping..." + skip=true + break + fi + done + + if [ "$skip" = false ]; then + echo "Attempting to require module: $name" + if @nvimBinary@ -es --headless -n -u NONE -i NONE --clean -V1 \ + --cmd "set rtp+=$out,${deps// /,}" \ + --cmd "set rtp+=$out,${checks// /,}" \ + --cmd "lua require('$name')"; then + check_passed=true + successful_modules+=("$name") + echo "Successfully required module: $name" + else + echo "Failed to require module: $name" + failed_modules+=("$name") + fi + fi + done + set -e +} + +# Define color codes +GREEN="\033[0;32m" +RED="\033[0;31m" +NC="\033[0m" # No Color + +# Print summary of the require checks +print_summary() { + echo -e "\n======================================================" + if [[ "$check_passed" == "true" ]]; then + echo -e "${GREEN}Require check succeeded for the following modules:${NC}" + for module in "${successful_modules[@]}"; do + echo -e " ${GREEN}- $module${NC}" + done + echo "All lua modules were checked." + else + echo -e "${RED}No successful require checks.${NC}" + fi + + # Print any modules that failed with improved formatting and color + if [ "${#failed_modules[@]}" -gt 0 ]; then + echo -e "\n${RED}Require check failed for the following modules:${NC}" + for module in "${failed_modules[@]}"; do + echo -e " ${RED}- $module${NC}" + done + fi + echo "======================================================" + + if [ "${#failed_modules[@]}" -gt 0 ]; then + return 1 + fi +} + +# Main entry point: orchestrates discovery, require checks, and summary +neovimRequireCheckHook() { echo "Executing neovimRequireCheckHook" - if [ -n "$nvimRequireCheck" ]; then - echo "Check whether the following module can be imported: $nvimRequireCheck" - - # editorconfig-checker-disable - export HOME="$TMPDIR" - - local deps="${dependencies[*]}" - @nvimBinary@ -es --headless -n -u NONE -i NONE --clean -V1 \ - --cmd "set rtp+=$out,${deps// /,}" \ - --cmd "lua require('$nvimRequireCheck')" + if [ "${nvimRequireCheck[*]}" = "" ]; then + echo "nvimRequireCheck is empty; entering discovery mode" + # Auto-discovery mode + if ! discover_modules; then + echo "No modules found during discovery; exiting hook" + return + fi + else + echo "nvimRequireCheck is pre-populated; entering manual check mode" fi + + run_require_checks + print_summary } echo "Using neovimRequireCheckHook" appendToVar preDistPhases neovimRequireCheckHook - - diff --git a/pkgs/applications/editors/vim/plugins/vim-utils.nix b/pkgs/applications/editors/vim/plugins/vim-utils.nix index 164245be176f..d1f7bf3440e2 100644 --- a/pkgs/applications/editors/vim/plugins/vim-utils.nix +++ b/pkgs/applications/editors/vim/plugins/vim-utils.nix @@ -499,8 +499,15 @@ rec { nativeBuildInputs = oldAttrs.nativeBuildInputs or [ ] ++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ - vimCommandCheckHook vimGenDocHook + ]; + + doCheck = oldAttrs.doCheck or true; + + nativeCheckInputs = + oldAttrs.nativeCheckInputs or [ ] + ++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + vimCommandCheckHook # many neovim plugins keep using buildVimPlugin neovimRequireCheckHook ]; From 337f61247af2561740769a7509c297dc8def9a58 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 2 Dec 2024 09:21:22 -0600 Subject: [PATCH 675/693] vimPlugins.snacks-nvim: skip new modules --- pkgs/applications/editors/vim/plugins/overrides.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 64182160f3c3..ae4433903f44 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -2897,6 +2897,10 @@ in "snacks.terminal" "snacks.win" "snacks.words" + "snacks.debug" + "snacks.scratch" + # Optional trouble integration + "trouble.sources.profiler" ]; }; From 1f3f8e2cce4b58dc58c3465c89a36de2a8ba4264 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 2 Dec 2024 09:23:07 -0600 Subject: [PATCH 676/693] vimPlugins.cmp-dictionary: skip test modules --- pkgs/applications/editors/vim/plugins/overrides.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index ae4433903f44..eeefd3474852 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -466,6 +466,13 @@ in cmp-dictionary = super.cmp-dictionary.overrideAttrs (oa: { nativeCheckInputs = oa.nativeCheckInputs ++ [ self.nvim-cmp ]; + nvimSkipModule = [ + # Test files + "cmp_dictionary.dict.external_spec" + "cmp_dictionary.dict.trie_spec" + "cmp_dictionary.lib.trie_spec" + "cmp_dictionary.lib.unknown_spec" + ]; }); cmp-digraphs = super.cmp-digraphs.overrideAttrs (oa: { From 2af36816bf951248f2a8b4b5dea56311f6b8802e Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sat, 23 Nov 2024 21:10:57 +0800 Subject: [PATCH 677/693] python3Packages.tornado: distinguish tags from branches with refs/tags/ --- pkgs/development/python-modules/tornado/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/tornado/default.nix b/pkgs/development/python-modules/tornado/default.nix index 2a5c06f5ab38..14330d5cb710 100644 --- a/pkgs/development/python-modules/tornado/default.nix +++ b/pkgs/development/python-modules/tornado/default.nix @@ -26,7 +26,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "tornadoweb"; repo = "tornado"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-vWiTLKL5gzrf3J6T3u8I1HHg5Ww0sf5ybSbZX6G3UXM="; }; From 1f77429008960ee776456d0e50a6b45bedb5692b Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sat, 23 Nov 2024 21:08:31 +0800 Subject: [PATCH 678/693] python3Packages.tornado: 6.4.1 -> 6.4.2 Address CVE-2024-52804. --- pkgs/development/python-modules/tornado/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tornado/default.nix b/pkgs/development/python-modules/tornado/default.nix index 14330d5cb710..47122a67d7ef 100644 --- a/pkgs/development/python-modules/tornado/default.nix +++ b/pkgs/development/python-modules/tornado/default.nix @@ -20,14 +20,14 @@ buildPythonPackage rec { pname = "tornado"; - version = "6.4.1"; + version = "6.4.2"; pyproject = true; src = fetchFromGitHub { owner = "tornadoweb"; repo = "tornado"; rev = "refs/tags/v${version}"; - hash = "sha256-vWiTLKL5gzrf3J6T3u8I1HHg5Ww0sf5ybSbZX6G3UXM="; + hash = "sha256-qgJh8pnC1ALF8KxhAYkZFAc0DE6jHVB8R/ERJFL4OFc="; }; build-system = [ setuptools ]; From 9544e5785107f150cbec68e19d38f4a9743f1ccc Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 29 Nov 2024 15:00:41 +0100 Subject: [PATCH 679/693] python312Packages.cattrs: cosmetic changes --- pkgs/development/python-modules/cattrs/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix index edf8becd02fb..8772932278e8 100644 --- a/pkgs/development/python-modules/cattrs/default.nix +++ b/pkgs/development/python-modules/cattrs/default.nix @@ -27,13 +27,11 @@ buildPythonPackage rec { pname = "cattrs"; version = "24.1.2"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "python-attrs"; - repo = pname; + repo = "cattrs"; rev = "refs/tags/v${version}"; hash = "sha256-LSP8a/JduK0h9GytfbN7/CjFlnGGChaa3VbbCHQ3AFE="; }; @@ -116,11 +114,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "cattr" ]; - meta = with lib; { + meta = { description = "Python custom class converters for attrs"; homepage = "https://github.com/python-attrs/cattrs"; changelog = "https://github.com/python-attrs/cattrs/blob/${src.rev}/HISTORY.md"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ fab ]; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ fab ]; }; } From 41d4a66bba6843f060c41f385fd00f8e89eda0ae Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 02:18:53 +0100 Subject: [PATCH 680/693] Revert "stdenv: `runPhase` returns status" --- pkgs/stdenv/generic/setup.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 830f5fc321c1..79997237482f 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1694,7 +1694,6 @@ showPhaseFooter() { runPhase() { - local retval=0 local curPhase="$*" if [[ "$curPhase" = unpackPhase && -n "${dontUnpack:-}" ]]; then return; fi if [[ "$curPhase" = patchPhase && -n "${dontPatch:-}" ]]; then return; fi @@ -1713,9 +1712,8 @@ runPhase() { startTime=$(date +"%s") # Evaluate the variable named $curPhase if it exists, otherwise the - # function named $curPhase. Trap errors in subshell to set non-zero retval. - trap 'retval=1; trap - ERR' ERR - eval "set -o errtrace; ${!curPhase:-$curPhase}" + # function named $curPhase. + eval "${!curPhase:-$curPhase}" endTime=$(date +"%s") @@ -1727,8 +1725,6 @@ runPhase() { cd -- "${sourceRoot:-.}" fi - - return $retval } From 90b387699bdc44507ca57a6dfe727d8bde2898bd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 3 Dec 2024 21:35:18 +0100 Subject: [PATCH 681/693] python312Packages.aiohttp: 3.11.2 -> 3.11.9 https://github.com/aio-libs/aiohttp/releases/tag/v3.11.3 https://github.com/aio-libs/aiohttp/releases/tag/v3.11.4 https://github.com/aio-libs/aiohttp/releases/tag/v3.11.5 https://github.com/aio-libs/aiohttp/releases/tag/v3.11.6 https://github.com/aio-libs/aiohttp/releases/tag/v3.11.7 https://github.com/aio-libs/aiohttp/releases/tag/v3.11.8 https://github.com/aio-libs/aiohttp/releases/tag/v3.11.9 --- pkgs/development/python-modules/aiohttp/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 867a78484ad9..3d681d212dfc 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -2,7 +2,6 @@ lib, stdenv, buildPythonPackage, - pythonOlder, fetchFromGitHub, substituteAll, isPy310, @@ -46,16 +45,14 @@ buildPythonPackage rec { pname = "aiohttp"; - version = "3.11.2"; + version = "3.11.9"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "aio-libs"; repo = "aiohttp"; rev = "refs/tags/v${version}"; - hash = "sha256-+a5ok4jg6+eL8uQBqZ6AaaZ1wNqJyh6Fxe08VOoJxNM="; + hash = "sha256-3pZPiDnAlsKX5kXH9OQzhmkBZ0vD2qiy2lpKdvV2vW8="; }; patches = [ From c824d7197f96b81882eb8463376c5a27a2f26fac Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 02:16:19 +0100 Subject: [PATCH 682/693] python312Packages.aiohappyeyeballs: 2.4.3 -> 2.4.4 https://github.com/bdraco/aiohappyeyeballs/blob/v2.4.4/CHANGELOG.md --- pkgs/development/python-modules/aiohappyeyeballs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiohappyeyeballs/default.nix b/pkgs/development/python-modules/aiohappyeyeballs/default.nix index 7c2f015a76c0..c8e1d431eeef 100644 --- a/pkgs/development/python-modules/aiohappyeyeballs/default.nix +++ b/pkgs/development/python-modules/aiohappyeyeballs/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "aiohappyeyeballs"; - version = "2.4.3"; + version = "2.4.4"; pyproject = true; disabled = pythonOlder "3.10"; @@ -30,7 +30,7 @@ buildPythonPackage rec { owner = "bdraco"; repo = "aiohappyeyeballs"; rev = "refs/tags/v${version}"; - hash = "sha256-mN1vJ/ktkabEkON3BqomnUoahrM0uEB/KJStqAYUS5s="; + hash = "sha256-zf1EkS+cdCkttce2jCjRf1693AlBYkmAuLX5IysWeUs="; }; outputs = [ From 5f1e58c37265ce0bb61bc6b89e81b4ae3f114756 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 02:31:31 +0100 Subject: [PATCH 683/693] python312Packages.propcache: 0.2.0 -> 0.2.1 https://github.com/aio-libs/propcache/blob/refs/tags/v0.2.1/CHANGES.rst --- pkgs/development/python-modules/propcache/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/propcache/default.nix b/pkgs/development/python-modules/propcache/default.nix index 7dc515ef6fee..143b27953077 100644 --- a/pkgs/development/python-modules/propcache/default.nix +++ b/pkgs/development/python-modules/propcache/default.nix @@ -4,6 +4,7 @@ cython, expandvars, fetchFromGitHub, + pytest-codspeed, pytest-cov-stub, pytest-xdist, pytestCheckHook, @@ -13,7 +14,7 @@ buildPythonPackage rec { pname = "propcache"; - version = "0.2.0"; + version = "0.2.1"; pyproject = true; disabled = pythonOlder "3.11"; @@ -22,7 +23,7 @@ buildPythonPackage rec { owner = "aio-libs"; repo = "propcache"; rev = "refs/tags/v${version}"; - hash = "sha256-S0u5/HJYtZCWB9X+Nlnz+oSFb3o98mGWWwsNLodzS9g="; + hash = "sha256-j2PjSaOx0IKijoMjhtYVNrpqEwRjVFsON5OU/Fv5idc="; }; build-system = [ @@ -32,6 +33,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + pytest-codspeed pytest-cov-stub pytest-xdist pytestCheckHook From 534b9a983f43ac582fbb039047192aca5ae14ff8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 02:32:47 +0100 Subject: [PATCH 684/693] python312Packages.yarl: 1.17.3 -> 1.18.3 https://github.com/aio-libs/yarl/blob/v1.18.3/CHANGES.rst --- pkgs/development/python-modules/yarl/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index c44b11693176..2bbc77852c8e 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - pythonOlder, cython, expandvars, setuptools, @@ -18,17 +17,14 @@ buildPythonPackage rec { pname = "yarl"; - version = "1.17.1"; - - disabled = pythonOlder "3.8"; - + version = "1.18.3"; pyproject = true; src = fetchFromGitHub { owner = "aio-libs"; repo = "yarl"; rev = "refs/tags/v${version}"; - hash = "sha256-0/3hyx0n4UHlqZyGLGfdNlm04gCYiBjYYbaqRPoSfgA="; + hash = "sha256-j2z6YAFbQe26YUQGLBwLr9ztUoxMDJJGS9qYeVqSob0="; }; build-system = [ From 4a9cb54aab87faec422a096148b5cf25ca0217c6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 02:38:48 +0100 Subject: [PATCH 685/693] python312Packages.pyjwt: 2.9.0 -> 2.10.1 https://github.com/jpadilla/pyjwt/blob/2.10.1/CHANGELOG.rst --- pkgs/development/python-modules/pyjwt/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pyjwt/default.nix b/pkgs/development/python-modules/pyjwt/default.nix index daffbcb6d70c..7488891a717e 100644 --- a/pkgs/development/python-modules/pyjwt/default.nix +++ b/pkgs/development/python-modules/pyjwt/default.nix @@ -5,7 +5,6 @@ setuptools, cryptography, pytestCheckHook, - pythonOlder, sphinxHook, sphinx-rtd-theme, zope-interface, @@ -14,16 +13,14 @@ buildPythonPackage rec { pname = "pyjwt"; - version = "2.9.0"; + version = "2.10.1"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "jpadilla"; repo = "pyjwt"; rev = "refs/tags/${version}"; - hash = "sha256-z1sqaSeign0ZDFcg94cli0fIVBxcK14VUlgP+mSaxRA="; + hash = "sha256-BPVythRLpglYtpLEoaC7+Q4l9izYXH2M9JEbxdyQZqU="; }; outputs = [ From 565478f8ae3fc99a3b6b645bce9b45e52fa60445 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 02:46:57 +0100 Subject: [PATCH 686/693] python312Packages.cryptography: 43.0.1 -> 44.0.0 https://cryptography.io/en/latest/changelog/#v44-0-0 --- .../python-modules/cryptography/default.nix | 17 ++++++++--------- .../python-modules/cryptography/vectors.nix | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 63f6bf2850e7..791d90f8c9ad 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -8,7 +8,7 @@ certifi, cffi, cryptography-vectors ? (callPackage ./vectors.nix { }), - fetchPypi, + fetchFromGitHub, isPyPy, libiconv, libxcrypt, @@ -24,21 +24,22 @@ buildPythonPackage rec { pname = "cryptography"; - version = "43.0.1"; # Also update the hash in vectors.nix + version = "44.0.0"; # Also update the hash in vectors.nix pyproject = true; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-ID6Sp1cW2M+0kdxHx54X0NkgfM/8vLNfWY++RjrjRE0="; + src = fetchFromGitHub { + owner = "pyca"; + repo = "cryptography"; + rev = "refs/tags/${version}"; + hash = "sha256-A+qYW8GksYk+FQG8ZJHNYrjcouE1CsVH0Lko2ahoYUI="; }; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; - sourceRoot = "${pname}-${version}/${cargoRoot}"; name = "${pname}-${version}"; - hash = "sha256-wiAHM0ucR1X7GunZX8V0Jk2Hsi+dVdGgDKqcYjSdD7Q="; + hash = "sha256-LJIY2O8ul36JQmhiW8VhLCQ0BaX+j+HGr3e8RUkZpc8="; }; postPatch = '' @@ -46,8 +47,6 @@ buildPythonPackage rec { --replace-fail "--benchmark-disable" "" ''; - cargoRoot = "src/rust"; - build-system = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook diff --git a/pkgs/development/python-modules/cryptography/vectors.nix b/pkgs/development/python-modules/cryptography/vectors.nix index 4f296b036265..0e404d57a665 100644 --- a/pkgs/development/python-modules/cryptography/vectors.nix +++ b/pkgs/development/python-modules/cryptography/vectors.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "cryptography_vectors"; inherit version; - hash = "sha256-aKD8GP4nswnpM6KTpU8zVreKFMFSB+lsn/hWga8FCd4="; + hash = "sha256-EGIodmxFuaX/0aiz4lTwVgyCHaedXNf9EToX43U1gKs="; }; nativeBuildInputs = [ flit-core ]; From 4700074d7d3acfa80840db9c12793de86ae9f9d7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 02:47:50 +0100 Subject: [PATCH 687/693] python312Packages.pyopenssl: 24.2.1 -> 24.3.0 https://github.com/pyca/pyopenssl/blob/24.3.0/CHANGELOG.rst --- pkgs/development/python-modules/pyopenssl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyopenssl/default.nix b/pkgs/development/python-modules/pyopenssl/default.nix index 4d9ecb6152c2..ecb51cbebdda 100644 --- a/pkgs/development/python-modules/pyopenssl/default.nix +++ b/pkgs/development/python-modules/pyopenssl/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "pyopenssl"; - version = "24.2.1"; + version = "24.3.0"; pyproject = true; src = fetchFromGitHub { owner = "pyca"; repo = "pyopenssl"; rev = "refs/tags/${version}"; - hash = "sha256-/TQnDWdycN4hQ7ZGvBhMJEZVafmL+0wy9eJ8hC6rfio="; + hash = "sha256-otK7Y7Kb/l3QOErhAcuDHB/CKG9l1vH2BTnOieAWNc0="; }; outputs = [ From a8dc47bce349872245a9b8e77ab22f9f6a58c974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 23 Nov 2024 09:41:13 -0800 Subject: [PATCH 688/693] python312Packages.pydantic: 2.9.2 -> 2.10.3 Diff: https://github.com/pydantic/pydantic/compare/refs/tags/v2.9.2...v2.10.3 Changelog: https://github.com/pydantic/pydantic/blob/v2.10.3/HISTORY.md --- pkgs/development/python-modules/pydantic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index 9e008f9565e1..bb5ba289d5f5 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -29,7 +29,7 @@ buildPythonPackage rec { pname = "pydantic"; - version = "2.9.2"; + version = "2.10.3"; pyproject = true; disabled = pythonOlder "3.8"; @@ -38,7 +38,7 @@ buildPythonPackage rec { owner = "pydantic"; repo = "pydantic"; rev = "refs/tags/v${version}"; - hash = "sha256-Eb/9k9bNizRyGhjbW/LAE/2R0Ino4DIRDy5ZrQuzJ7o="; + hash = "sha256-/QxWgViqVmPnX/sO+qkvGl+WQX3OPXpS44CdP2HHOis="; }; buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; From 97365475dfce3753756119906c07bdbae55cbd79 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 13:21:00 +0100 Subject: [PATCH 689/693] python312: 3.12.7 -> 3.12.8 https://docs.python.org/release/3.12.8/whatsnew/changelog.html --- pkgs/development/interpreters/python/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/default.nix b/pkgs/development/interpreters/python/default.nix index 04b6a60ce5e4..55fbc9cbab56 100644 --- a/pkgs/development/interpreters/python/default.nix +++ b/pkgs/development/interpreters/python/default.nix @@ -20,10 +20,10 @@ sourceVersion = { major = "3"; minor = "12"; - patch = "7"; + patch = "8"; suffix = ""; }; - hash = "sha256-JIh7kuKv1KKsYCQZrUtZY3L2esmwdxkPRZq6OQ+vVVA="; + hash = "sha256-yQkVe7JewRTlhpEkzCqcSk1MHpV8pP9VPx7caSEBFU4="; }; }; From 57824b047bd69e92f5cf824682a1a6922e5bf99f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 16:34:35 +0100 Subject: [PATCH 690/693] python312Packages.trio: 0.26.2 -> 0.27.0 https://github.com/python-trio/trio/blob/v0.27.0/docs/source/history.rst --- pkgs/development/python-modules/trio/default.nix | 10 +++++++--- pkgs/top-level/python-packages.nix | 4 +--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/trio/default.nix b/pkgs/development/python-modules/trio/default.nix index a29bcd842401..f9cc2f20e19c 100644 --- a/pkgs/development/python-modules/trio/default.nix +++ b/pkgs/development/python-modules/trio/default.nix @@ -18,7 +18,6 @@ # tests astor, - coreutils, jedi, pyopenssl, pytestCheckHook, @@ -36,7 +35,7 @@ let in buildPythonPackage rec { pname = "trio"; - version = "0.26.2"; + version = "0.27.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -45,7 +44,7 @@ buildPythonPackage rec { owner = "python-trio"; repo = "trio"; rev = "refs/tags/v${version}"; - hash = "sha256-Vlm6lEMKKfwmhbeefPjxm3vz1zFRUEGOCHXLcZKQcIo="; + hash = "sha256-VJVGMhoLISCtNh56E7ssKXBPh4/WvUbFyKUbnWvqd0s="; }; build-system = [ setuptools ]; @@ -77,6 +76,11 @@ buildPythonPackage rec { PYTHONPATH=$PWD/src:$PYTHONPATH ''; + pytestFlagsArray = [ + "-W" + "ignore::DeprecationWarning" + ]; + # It appears that the build sandbox doesn't include /etc/services, and these tests try to use it. disabledTests = [ "getnameinfo" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 69f663e1473b..ef97bedb953b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16264,9 +16264,7 @@ self: super: with self; { trino-python-client = callPackage ../development/python-modules/trino-python-client { }; - trio = callPackage ../development/python-modules/trio { - inherit (pkgs) coreutils; - }; + trio = callPackage ../development/python-modules/trio { }; trio-asyncio = callPackage ../development/python-modules/trio-asyncio { }; From b904748936817440244a757aadb91a06200b2320 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 4 Dec 2024 07:27:17 -0500 Subject: [PATCH 691/693] emacs: fix native compilaton on Darwin --- pkgs/applications/editors/emacs/make-emacs.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index e87330ab1136..eb486eb0e339 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -11,6 +11,7 @@ , Xaw3d , acl , alsa-lib +, apple-sdk , autoreconfHook , cairo , dbus @@ -163,6 +164,9 @@ mkDerivation (finalAttrs: { "${lib.getBin stdenv.cc.cc}/bin" "${lib.getBin stdenv.cc.bintools}/bin" "${lib.getBin stdenv.cc.bintools.bintools}/bin" + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # The linker needs to know where to find libSystem on Darwin. + "${apple-sdk.sdkroot}/usr/lib" ]))); }) ]; From c6d9cd94c6334b672a28ddb7e7062ec7a04fc1a3 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Wed, 4 Dec 2024 19:28:26 +0100 Subject: [PATCH 692/693] python3Packages.django_4: 4.2.16-> 4.2.17 Fixes CVE-2024-53907 and CVE-2024-53908. Changes: https://docs.djangoproject.com/en/dev/releases/4.2.17/ --- pkgs/development/python-modules/django/4.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/django/4.nix b/pkgs/development/python-modules/django/4.nix index ad174e933528..88f287327066 100644 --- a/pkgs/development/python-modules/django/4.nix +++ b/pkgs/development/python-modules/django/4.nix @@ -44,7 +44,7 @@ buildPythonPackage rec { pname = "django"; - version = "4.2.16"; + version = "4.2.17"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -53,7 +53,7 @@ buildPythonPackage rec { owner = "django"; repo = "django"; rev = "refs/tags/${version}"; - hash = "sha256-VW/qfqOadivtU8Xg70FLqENtOV7GqJM4bR2Ik6Yag+o="; + hash = "sha256-G3PAG/fe4yG55699XS8rcWigF92J0Fke1qnUxRqOUnc="; }; patches = From d2770fee1cd6bc63ef3408dfd5b7e08ab88deccf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 4 Dec 2024 19:52:48 +0100 Subject: [PATCH 693/693] python312Packages.fastapi: 0.115.4 -> 0.115.6 https://github.com/fastapi/fastapi/releases/tag/0.115.6 --- pkgs/development/python-modules/fastapi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index bc7457623413..52c4d75e6c96 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -41,7 +41,7 @@ buildPythonPackage rec { pname = "fastapi"; - version = "0.115.4"; + version = "0.115.6"; pyproject = true; disabled = pythonOlder "3.7"; @@ -50,7 +50,7 @@ buildPythonPackage rec { owner = "tiangolo"; repo = "fastapi"; rev = "refs/tags/${version}"; - hash = "sha256-jnVk2mdp07YDyC9aReCOIMt/IaJLeNFO8XMkS0y/bgU="; + hash = "sha256-yNYjFD77q5x5DtcYdywmScuuVdyWhBoxbLYJhu1Fmno="; }; build-system = [ pdm-backend ];