From 48fee47b5e64be280975d9703d74aea8d39630d0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 29 Aug 2025 02:34:58 +0000 Subject: [PATCH 01/18] openxr-loader: 1.1.50 -> 1.1.51 --- pkgs/by-name/op/openxr-loader/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/op/openxr-loader/package.nix b/pkgs/by-name/op/openxr-loader/package.nix index 08131917a964..41a1ba59b4e0 100644 --- a/pkgs/by-name/op/openxr-loader/package.nix +++ b/pkgs/by-name/op/openxr-loader/package.nix @@ -16,13 +16,13 @@ stdenv.mkDerivation rec { pname = "openxr-loader"; - version = "1.1.50"; + version = "1.1.51"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "OpenXR-SDK-Source"; tag = "release-${version}"; - hash = "sha256-/5zw9tj7F0cxhzyIRf8njoYB9moJFYLEjDeqe0OBr34="; + hash = "sha256-NEArzegPZNL0zRbnUHrNbNhBtj0IJP+uha1ehzwB7wA="; }; nativeBuildInputs = [ From a7717977700f1ff286e25ec6d1f26d1c797d49c2 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Tue, 26 Aug 2025 07:51:18 -0700 Subject: [PATCH 02/18] llvmPackages_21: 21.1.0-rc3 -> 21.1.0 --- pkgs/development/compilers/llvm/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/default.nix b/pkgs/development/compilers/llvm/default.nix index ab515f712110..ebbebb89a54d 100644 --- a/pkgs/development/compilers/llvm/default.nix +++ b/pkgs/development/compilers/llvm/default.nix @@ -31,7 +31,7 @@ let "18.1.8".officialRelease.sha256 = "sha256-iiZKMRo/WxJaBXct9GdAcAT3cz9d9pnAcO1mmR6oPNE="; "19.1.7".officialRelease.sha256 = "sha256-cZAB5vZjeTsXt9QHbP5xluWNQnAHByHtHnAhVDV0E6I="; "20.1.8".officialRelease.sha256 = "sha256-ysyB/EYxi2qE9fD5x/F2zI4vjn8UDoo1Z9ukiIrjFGw="; - "21.1.0-rc3".officialRelease.sha256 = "sha256-quZuqDIm8OrkDJqu7vJKUP8MF1xCuQNFwW9SnKMFoS8="; + "21.1.0".officialRelease.sha256 = "sha256-4DLEZuhREHMl2t0f1iqvXSRSE5VBMVxd94Tj4m8Yf9s="; "22.0.0-git".gitRelease = { rev = "0b42e117c829c6e127ef4b1bd82807ba01853128"; rev-version = "22.0.0-unstable-2025-08-31"; From afd965280e1f52dace0327474b6176f23e8c386f Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Tue, 26 Aug 2025 19:39:43 -0700 Subject: [PATCH 03/18] llvmPackages_21.libc: fix building --- .../compilers/llvm/common/libc/default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/libc/default.nix b/pkgs/development/compilers/llvm/common/libc/default.nix index de68e6698cfb..1942671a782b 100644 --- a/pkgs/development/compilers/llvm/common/libc/default.nix +++ b/pkgs/development/compilers/llvm/common/libc/default.nix @@ -18,14 +18,19 @@ let pname = "libc"; - src' = runCommand "${pname}-src-${version}" { } ('' - mkdir -p "$out" - cp -r ${monorepoSrc}/cmake "$out" - cp -r ${monorepoSrc}/runtimes "$out" - cp -r ${monorepoSrc}/llvm "$out" - cp -r ${monorepoSrc}/compiler-rt "$out" - cp -r ${monorepoSrc}/${pname} "$out" - ''); + src' = runCommand "${pname}-src-${version}" { } ( + '' + mkdir -p "$out" + cp -r ${monorepoSrc}/cmake "$out" + cp -r ${monorepoSrc}/runtimes "$out" + cp -r ${monorepoSrc}/llvm "$out" + cp -r ${monorepoSrc}/compiler-rt "$out" + cp -r ${monorepoSrc}/${pname} "$out" + '' + + lib.optionalString (lib.versionAtLeast release_version "21") '' + cp -r ${monorepoSrc}/third-party "$out" + '' + ); in stdenv.mkDerivation (finalAttrs: { inherit pname version patches; From c22f96846772fe1da1c08331c44f531e167174de Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 1 Sep 2025 20:50:42 +0000 Subject: [PATCH 04/18] arkade: 0.11.41 -> 0.11.43 --- pkgs/by-name/ar/arkade/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ar/arkade/package.nix b/pkgs/by-name/ar/arkade/package.nix index c9f657bfd799..63c320add7e8 100644 --- a/pkgs/by-name/ar/arkade/package.nix +++ b/pkgs/by-name/ar/arkade/package.nix @@ -7,13 +7,13 @@ buildGoModule rec { pname = "arkade"; - version = "0.11.41"; + version = "0.11.43"; src = fetchFromGitHub { owner = "alexellis"; repo = "arkade"; rev = version; - hash = "sha256-N9NiAsggIJpYe2UfREp5l1srzm+P2LNIQhKJyT7w0rQ="; + hash = "sha256-zHKLk9dLZZiH7pH5FR6+uHP9ZteMsAFyrf4V7I+vgSs="; }; env.CGO_ENABLED = 0; From 15648f40318b9aa65232675ab6fc7ba724f3e883 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 2 Sep 2025 14:44:49 +0000 Subject: [PATCH 05/18] harbor-cli: 0.0.10 -> 0.0.11 --- pkgs/by-name/ha/harbor-cli/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ha/harbor-cli/package.nix b/pkgs/by-name/ha/harbor-cli/package.nix index a1f07b9a3ba5..ddd2ed5bfdc5 100644 --- a/pkgs/by-name/ha/harbor-cli/package.nix +++ b/pkgs/by-name/ha/harbor-cli/package.nix @@ -9,16 +9,16 @@ buildGoModule (finalAttrs: { pname = "harbor-cli"; - version = "0.0.10"; + version = "0.0.11"; src = fetchFromGitHub { owner = "goharbor"; repo = "harbor-cli"; tag = "v${finalAttrs.version}"; - hash = "sha256-KIICM26SYmzySt5oqiFpsEGVw/ORJZ3K11VANWa81lw="; + hash = "sha256-Mfy1v6uefaFI059o11/GKaiswXwJJKAH1w6kbzd2Vkk="; }; - vendorHash = "sha256-Y2UIQWH78qsw1UE6NgeTm1Tdno78Bg6oxA9GyPLDjkQ="; + vendorHash = "sha256-/pBLFEGPewRNi/h5EyUueTyp5iTu2R5wLppiHSF3XxE="; excludedPackages = [ "dagger" From b116926fb9b09a0b0a867472764e309ca638d632 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 2 Sep 2025 16:05:51 +0000 Subject: [PATCH 06/18] clouddrive2: 0.9.5 -> 0.9.8 --- pkgs/by-name/cl/clouddrive2/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/cl/clouddrive2/package.nix b/pkgs/by-name/cl/clouddrive2/package.nix index 5c8bcfd3fa2b..9c916ef51c44 100644 --- a/pkgs/by-name/cl/clouddrive2/package.nix +++ b/pkgs/by-name/cl/clouddrive2/package.nix @@ -11,16 +11,16 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "clouddrive2"; - version = "0.9.5"; + version = "0.9.8"; src = fetchurl { url = "https://github.com/cloud-fs/cloud-fs.github.io/releases/download/v${finalAttrs.version}/clouddrive-2-${os}-${arch}-${finalAttrs.version}.tgz"; hash = { - x86_64-linux = "sha256-Gsq5rvr0SeGxCRwAeeFRZBPOe32EIa7uO6SAIuinezA="; - aarch64-linux = "sha256-M+lCUzoiy/sImBZrOjjeP4eqG3F4wbkMQg9Ho3ELGFo="; - x86_64-darwin = "sha256-Uyz1wuHICSq5C+n3ZjPinZznhajd6QR36CZgQBm+QRE="; - aarch64-darwin = "sha256-ZQxRHTzLUAhnL1rRLR9l8Ix5XzxeTAds7XAmEgZ9Xmo="; + x86_64-linux = "sha256-dla1Mp+frV12v+OkGJwwcTfUKRcWy47tXYx6nWpHMhk="; + aarch64-linux = "sha256-GjR0zLGLvfZJMQgq9Hq3NQp7Y8QSXU4kW9cUIe5MxyM="; + x86_64-darwin = "sha256-pQjLwahjtw+lgLJbRpgGM4lbAfZCDtgJSVcqS6TDwug="; + aarch64-darwin = "sha256-by4reE2OH1Qz+Wn40QMVNZm2JsJHkoZ05OZZEnxGChI="; } .${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); }; From e78d474d695ff136473669c1a82a6553669c0aab Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 2 Sep 2025 16:47:02 +0000 Subject: [PATCH 07/18] tigerbeetle: 0.16.55 -> 0.16.57 --- pkgs/by-name/ti/tigerbeetle/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ti/tigerbeetle/package.nix b/pkgs/by-name/ti/tigerbeetle/package.nix index 2b73486a8629..0fad0004bb63 100644 --- a/pkgs/by-name/ti/tigerbeetle/package.nix +++ b/pkgs/by-name/ti/tigerbeetle/package.nix @@ -10,14 +10,14 @@ let platform = if stdenvNoCC.hostPlatform.isDarwin then "universal-macos" else stdenvNoCC.hostPlatform.system; hash = builtins.getAttr platform { - "universal-macos" = "sha256-Xwjmwpy9xOSXFlGegj6hXMJtIsYJFme2yhptiaZorGU="; - "x86_64-linux" = "sha256-VQ9fQh65GIktHW6BWsnQmQnGwg971KkwY8lgvJgw0YY="; - "aarch64-linux" = "sha256-nVGJxJlV+a5vpuCj1r3b1geggjwDammKKdp1Je7z4A8="; + "universal-macos" = "sha256-XVYnzs9BF35pdB9uKSoX/+DWa8drWls0rtrNO9IZJtE="; + "x86_64-linux" = "sha256-rNlAikb/DrFYnE/OEgTPz3G82bQCnySeOp6dZAWxFn4="; + "aarch64-linux" = "sha256-wNuy8hq9Zt2UP/4zI/lgkWHv3X/mIKhaKoN8b/WRS2U="; }; in stdenvNoCC.mkDerivation (finalAttrs: { pname = "tigerbeetle"; - version = "0.16.55"; + version = "0.16.57"; src = fetchzip { url = "https://github.com/tigerbeetle/tigerbeetle/releases/download/${finalAttrs.version}/tigerbeetle-${platform}.zip"; From a8ea016dd8b38a3f9fecfe815b228f3850b56722 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 2 Sep 2025 18:47:37 +0100 Subject: [PATCH 08/18] emacs-macport: fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t love how this is separated from the actual declaration of the source, but it seems to be what we have to do. Fixes: 4a2ad8134b8b40f198c71f7d8d84467d250cd714 --- pkgs/applications/editors/emacs/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/default.nix b/pkgs/applications/editors/emacs/default.nix index 1ac714c15575..24f722bf37b1 100644 --- a/pkgs/applications/editors/emacs/default.nix +++ b/pkgs/applications/editors/emacs/default.nix @@ -31,6 +31,11 @@ lib.makeScope pkgs.newScope ( withPgtk = true; }; - emacs29-macport = callPackage (self.sources.emacs29-macport) inheritedArgs; + emacs29-macport = callPackage (self.sources.emacs29-macport) ( + inheritedArgs + // { + srcRepo = true; + } + ); } ) From cb0db57251a9cd3974da0d5b669eacd2650c4029 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 10 Aug 2025 01:29:59 +0100 Subject: [PATCH 09/18] emacs-macport: use a different hammer for the `CF_NOESCAPE` bug The header was breaking compilation with modern versions of Clang, seemingly due to the `limits.h` stuff. Wrapping the header directly is simpler and fixes it. --- .../CoreFoundation/CFBase.h | 8 +++++ .../editors/emacs/macport_noescape_noop.h | 31 ------------------- .../applications/editors/emacs/make-emacs.nix | 9 ++---- 3 files changed, 10 insertions(+), 38 deletions(-) create mode 100644 pkgs/applications/editors/emacs/macport-noescape-noop/CoreFoundation/CFBase.h delete mode 100644 pkgs/applications/editors/emacs/macport_noescape_noop.h diff --git a/pkgs/applications/editors/emacs/macport-noescape-noop/CoreFoundation/CFBase.h b/pkgs/applications/editors/emacs/macport-noescape-noop/CoreFoundation/CFBase.h new file mode 100644 index 000000000000..2ade833151ef --- /dev/null +++ b/pkgs/applications/editors/emacs/macport-noescape-noop/CoreFoundation/CFBase.h @@ -0,0 +1,8 @@ +#if !defined(__COREFOUNDATION_CFBASE__) + +#include_next + +#undef CF_NOESCAPE +#define CF_NOESCAPE + +#endif diff --git a/pkgs/applications/editors/emacs/macport_noescape_noop.h b/pkgs/applications/editors/emacs/macport_noescape_noop.h deleted file mode 100644 index 64c65bd90f88..000000000000 --- a/pkgs/applications/editors/emacs/macport_noescape_noop.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef NOESCAPE_NOOP_H_ -#define NOESCAPE_NOOP_H_ - -// First, do some work to get definitions for *_WIDTH. Normally, Emacs would -// have these defined by headers in-tree, but clang's headers clash with those. -// Due to how include paths work, we have to include clang headers if we want to -// mess with CoreFoundation definitions. -#pragma push_macro("__STDC_VERSION__") -// Make the preprocessor think that we're on C2x. The macros we want are gated -// on it. -#undef __STDC_VERSION__ -#define __STDC_VERSION__ 202000L -// Include limits.h first, as stdint.h includes it. -#include - -// XX: clang's stdint.h is shy and won't give us its defs unless it thinks it's -// in freestanding mode. -#undef __STDC_HOSTED__ -#include -#define __STDC_HOSTED__ 1 - -#pragma pop_macro("__STDC_VERSION__") - -// Now, pull in the header that defines CF_NOESCAPE. -#include - -// Redefine CF_NOESCAPE as empty. -#undef CF_NOESCAPE -#define CF_NOESCAPE - -#endif // NOESCAPE_NOOP_H_ diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index b9f75464c793..cc5df12f973e 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -45,7 +45,6 @@ libtiff, libwebp, libxml2, - llvmPackages_14, m17n_lib, mailcap, mailutils, @@ -139,12 +138,8 @@ let ++ lib.optionals (stdenv.cc ? cc.lib.libgcc) [ "${lib.getLib stdenv.cc.cc.lib.libgcc}/lib" ]; - - inherit (if variant == "macport" then llvmPackages_14.stdenv else stdenv) - mkDerivation - ; in -mkDerivation (finalAttrs: { +stdenv.mkDerivation (finalAttrs: { pname = pname + ( @@ -430,7 +425,7 @@ mkDerivation (finalAttrs: { // lib.optionalAttrs (variant == "macport") { # Fixes intermittent segfaults when compiled with LLVM >= 7.0. # See https://github.com/NixOS/nixpkgs/issues/127902 - NIX_CFLAGS_COMPILE = "-include ${./macport_noescape_noop.h}"; + NIX_CFLAGS_COMPILE = "-isystem ${./macport-noescape-noop}"; }; enableParallelBuilding = true; From e4b834e655e0ccfe08a351599c8b057a0e2b998b Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 2 Sep 2025 11:44:18 -0700 Subject: [PATCH 10/18] nixVersions.nix_2_31: 2.31.0 -> 2.31.1 Diff: https://github.com/NixOS/nix/compare/refs/tags/2.31.0...refs/tags/2.31.1 --- pkgs/tools/package-management/nix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 0ce59e8467bb..3efa71eec89e 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -165,14 +165,14 @@ lib.makeExtensible ( nix_2_30 = addTests "nix_2_30" self.nixComponents_2_30.nix-everything; nixComponents_2_31 = nixDependencies.callPackage ./modular/packages.nix rec { - version = "2.31.0"; + version = "2.31.1"; inherit (self.nix_2_30.meta) maintainers teams; otherSplices = generateSplicesForNixComponents "nixComponents_2_31"; src = fetchFromGitHub { owner = "NixOS"; repo = "nix"; tag = version; - hash = "sha256-5JYyijH2q/uQCDIZCCyQEBsZ0VPNP2SS1wgZ4+qeIWM="; + hash = "sha256-p7GXuu9OyQ1etTYl5egWIk2Ck7CdpXj80CqkhfE4H0c="; }; }; From 7603691b5cc3114fe784221ed4ad96fc5648f637 Mon Sep 17 00:00:00 2001 From: fmbearmf <77757734+fmbearmf@users.noreply.github.com> Date: Tue, 2 Sep 2025 04:58:24 -0700 Subject: [PATCH 11/18] poetry: pin virtualenv to 20.30.0 --- pkgs/by-name/po/poetry/package.nix | 12 ++++++++++++ pkgs/by-name/po/poetry/unwrapped.nix | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/po/poetry/package.nix b/pkgs/by-name/po/poetry/package.nix index b96a4cce5b14..e5ce69dbc168 100644 --- a/pkgs/by-name/po/poetry/package.nix +++ b/pkgs/by-name/po/poetry/package.nix @@ -11,6 +11,18 @@ let { poetry = self.callPackage ./unwrapped.nix { }; + # Poetry 2.1.4 officially requires virtualenv >=20.26.6, <20.33.0 + # otherwise will be incompatible with python312 + # see: https://github.com/python-poetry/poetry/issues/10490 + virtualenv = super.virtualenv.overridePythonAttrs (old: rec { + version = "20.30.0"; + src = fetchPypi { + inherit (old) pname; + inherit version; + hash = "sha256-gAhjFivKpUUKbk1yEElzDn8trgdyDgkCsOQEC9b5rag="; + }; + }); + # The versions of Poetry and poetry-core need to match exactly, # and poetry-core in nixpkgs requires a staging cycle to be updated, # so apply an override here. diff --git a/pkgs/by-name/po/poetry/unwrapped.nix b/pkgs/by-name/po/poetry/unwrapped.nix index f9ef63ee0313..9a1486765cce 100644 --- a/pkgs/by-name/po/poetry/unwrapped.nix +++ b/pkgs/by-name/po/poetry/unwrapped.nix @@ -60,7 +60,6 @@ buildPythonPackage rec { pythonRelaxDeps = [ "dulwich" "keyring" - "virtualenv" ]; dependencies = [ From 14061fbecc66b1656088dae8c8a5ff60f72ef707 Mon Sep 17 00:00:00 2001 From: Chris Moultrie <821688+tebriel@users.noreply.github.com> Date: Tue, 2 Sep 2025 19:08:15 -0400 Subject: [PATCH 12/18] forgejo-runner: tebriel added to maintainers --- pkgs/by-name/fo/forgejo-runner/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fo/forgejo-runner/package.nix b/pkgs/by-name/fo/forgejo-runner/package.nix index c270c24fe6c4..499c58eaf8e5 100644 --- a/pkgs/by-name/fo/forgejo-runner/package.nix +++ b/pkgs/by-name/fo/forgejo-runner/package.nix @@ -99,6 +99,7 @@ buildGoModule rec { adamcstephens emilylange christoph-heiss + tebriel ]; mainProgram = "forgejo-runner"; }; From 319b8175017f4a1c2ba408680b693f4d01d5b570 Mon Sep 17 00:00:00 2001 From: Chris Moultrie <821688+tebriel@users.noreply.github.com> Date: Tue, 2 Sep 2025 19:08:28 -0400 Subject: [PATCH 13/18] forgejo: tebriel added to maintainers --- pkgs/by-name/fo/forgejo/generic.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/fo/forgejo/generic.nix b/pkgs/by-name/fo/forgejo/generic.nix index 1aacb193be16..dcb4019fbf8e 100644 --- a/pkgs/by-name/fo/forgejo/generic.nix +++ b/pkgs/by-name/fo/forgejo/generic.nix @@ -199,6 +199,7 @@ buildGoModule rec { adamcstephens marie pyrox0 + tebriel ]; broken = stdenv.hostPlatform.isDarwin; mainProgram = "gitea"; From 7fb53a9eeb4db19b602f7c0eee6977240b32ceab Mon Sep 17 00:00:00 2001 From: Chris Moultrie <821688+tebriel@users.noreply.github.com> Date: Tue, 2 Sep 2025 19:08:44 -0400 Subject: [PATCH 14/18] tests/forgejo: tebriel added to maintainers --- nixos/tests/forgejo.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/forgejo.nix b/nixos/tests/forgejo.nix index a35ee87ff68c..ae78b75dc7f8 100644 --- a/nixos/tests/forgejo.nix +++ b/nixos/tests/forgejo.nix @@ -34,6 +34,7 @@ let meta.maintainers = with lib.maintainers; [ bendlas emilylange + tebriel ]; nodes = { From 120356fb1d2a19b152a98a9b4ae482a0ef55907f Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 27 Aug 2025 19:32:07 +0100 Subject: [PATCH 15/18] librosa: add patch for Numba 0.62.0 --- .../python-modules/librosa/default.nix | 5 ++++ .../librosa/fix-with-numba-0.62.0.patch | 27 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/librosa/fix-with-numba-0.62.0.patch diff --git a/pkgs/development/python-modules/librosa/default.nix b/pkgs/development/python-modules/librosa/default.nix index 76740d890174..b1f19401b812 100644 --- a/pkgs/development/python-modules/librosa/default.nix +++ b/pkgs/development/python-modules/librosa/default.nix @@ -49,6 +49,11 @@ buildPythonPackage rec { hash = "sha256-T58J/Gi3tHzelr4enbYJi1KmO46QxE5Zlhkc0+EgvRg="; }; + patches = [ + # + ./fix-with-numba-0.62.0.patch + ]; + build-system = [ setuptools ]; dependencies = [ diff --git a/pkgs/development/python-modules/librosa/fix-with-numba-0.62.0.patch b/pkgs/development/python-modules/librosa/fix-with-numba-0.62.0.patch new file mode 100644 index 000000000000..aac5a7855f79 --- /dev/null +++ b/pkgs/development/python-modules/librosa/fix-with-numba-0.62.0.patch @@ -0,0 +1,27 @@ +From 902bcca8cfc84801cf93a6c3ca59da283072a79f Mon Sep 17 00:00:00 2001 +From: Emily +Date: Wed, 27 Aug 2025 18:58:07 +0100 +Subject: [PATCH] Fix types in beat tracking code + +The development version of Numba 0.62.0 is unhappy about `range` +being applied to floating point values here. +--- + librosa/beat.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/librosa/beat.py b/librosa/beat.py +index 1a19005d..4ed9e945 100644 +--- a/librosa/beat.py ++++ b/librosa/beat.py +@@ -582,7 +582,7 @@ def __beat_track_dp(localscore, frames_per_beat, tightness, backlink, cumscore): + # Search over all possible predecessors to find the best preceding beat + # NOTE: to provide time-varying tempo estimates, we replace + # frames_per_beat[0] by frames_per_beat[i] in this loop body. +- for loc in range(i - np.round(frames_per_beat[tv * i] / 2), i - 2 * frames_per_beat[tv * i] - 1, - 1): ++ for loc in range(i - round(frames_per_beat[tv * i] / 2), int(i - 2 * frames_per_beat[tv * i] - 1), - 1): + # Once we're searching past the start, break out + if loc < 0: + break +-- +2.50.1 + From 4fdeae9c1150c69362b73ff5df8fe216e378365d Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 10 Aug 2025 06:53:50 +0100 Subject: [PATCH 16/18] python313Packages.llvmlite: 0.44.0 -> 0.45.0rc1 --- .../python-modules/llvmlite/default.nix | 32 ++++++++++++------- pkgs/top-level/python-packages.nix | 3 +- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/llvmlite/default.nix b/pkgs/development/python-modules/llvmlite/default.nix index c6fd06d620c1..b81f40392fa3 100644 --- a/pkgs/development/python-modules/llvmlite/default.nix +++ b/pkgs/development/python-modules/llvmlite/default.nix @@ -8,17 +8,25 @@ setuptools, + cmake, + ninja, + + llvm_20, + libxml2, + # tests pytestCheckHook, - llvm, - libxml2, withStaticLLVM ? true, }: +let + llvm = llvm_20; +in + buildPythonPackage rec { pname = "llvmlite"; - version = "0.44.0"; + version = "0.45.0rc1"; pyproject = true; disabled = isPyPy || pythonAtLeast "3.14"; @@ -27,28 +35,28 @@ buildPythonPackage rec { owner = "numba"; repo = "llvmlite"; tag = "v${version}"; - hash = "sha256-ZIA/JfK9ZP00Zn6SZuPus30Xw10hn3DArHCkzBZAUV0="; + hash = "sha256-wMTNtUuslCjopyfF6FAtfJAR0zuWjL8N8G16UKiplN0="; }; build-system = [ setuptools ]; + nativeBuildInputs = [ + cmake + ninja + ]; + buildInputs = [ llvm ] ++ lib.optionals withStaticLLVM [ libxml2.dev ]; - postPatch = lib.optionalString withStaticLLVM '' - substituteInPlace ffi/build.py --replace-fail "--system-libs --libs all" "--system-libs --libs --link-static all" - ''; - - # Set directory containing llvm-config binary - env.LLVM_CONFIG = "${llvm.dev}/bin/llvm-config"; - nativeCheckInputs = [ pytestCheckHook ]; + dontUseCmakeConfigure = true; + # https://github.com/NixOS/nixpkgs/issues/255262 preCheck = '' cd $out ''; - __impureHostDeps = lib.optionals stdenv.hostPlatform.isDarwin [ "/usr/lib/libm.dylib" ]; + env.LLVMLITE_SHARED = !withStaticLLVM; passthru = lib.optionalAttrs (!withStaticLLVM) { inherit llvm; }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 40c1e29a051a..670ea92e0208 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8641,8 +8641,7 @@ self: super: with self; { llmx = callPackage ../development/python-modules/llmx { }; llvmlite = callPackage ../development/python-modules/llvmlite { - # llvmlite always requires a specific version of llvm. - llvm = pkgs.llvm_16; + inherit (pkgs) cmake ninja; }; lm-eval = callPackage ../development/python-modules/lm-eval { }; From 6de6b5a155a067eff7a772728c986d5c0bd53e71 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 10 Aug 2025 06:53:50 +0100 Subject: [PATCH 17/18] python313Packages.numba: 0.61.2 -> 0.62.0rc1 --- .../python-modules/numba/default.nix | 40 ++++++++----------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix index 3182440439e5..94159ab88b79 100644 --- a/pkgs/development/python-modules/numba/default.nix +++ b/pkgs/development/python-modules/numba/default.nix @@ -33,7 +33,7 @@ let cudatoolkit = cudaPackages.cuda_nvcc; in buildPythonPackage rec { - version = "0.61.2"; + version = "0.62.0rc1"; pname = "numba"; pyproject = true; @@ -51,7 +51,7 @@ buildPythonPackage rec { postFetch = '' sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/numba/_version.py ''; - hash = "sha256-Qa2B5pOWrLb/1V3PSyiwS1x9ueXwDKRhDMDecBCAN+8="; + hash = "sha256-YnozYetRsrCl5+UvK4y1QQykUqSMshi9vcv/K5A0dts="; }; postPatch = '' @@ -59,15 +59,8 @@ buildPythonPackage rec { --replace-fail \ "dldir = [" \ "dldir = [ '${addDriverRunpath.driverLink}/lib', " - - substituteInPlace setup.py \ - --replace-fail 'max_numpy_run_version = "2.3"' 'max_numpy_run_version = "2.4"' - substituteInPlace numba/__init__.py \ - --replace-fail "numpy_version > (2, 2)" "numpy_version > (2, 3)" ''; - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1"; - build-system = [ setuptools numpy @@ -80,21 +73,16 @@ buildPythonPackage rec { buildInputs = lib.optionals cudaSupport [ cudaPackages.cuda_cudart ]; - pythonRelaxDeps = [ "numpy" ]; + pythonRelaxDeps = [ + "numpy" + ]; dependencies = [ numpy llvmlite ]; - patches = [ - (fetchpatch2 { - url = "https://github.com/numba/numba/commit/e2c8984ba60295def17e363a926d6f75e7fa9f2d.patch"; - includes = [ "numba/core/bytecode.py" ]; - hash = "sha256-HIVbp3GSmnq6W7zrRIirIbhGjJsFN3PNyHSfAE8fdDw="; - }) - ] - ++ lib.optionals cudaSupport [ + patches = lib.optionals cudaSupport [ (replaceVars ./cuda_path.patch { cuda_toolkit_path = cudatoolkit; cuda_toolkit_lib_path = lib.getLib cudatoolkit; @@ -111,12 +99,16 @@ buildPythonPackage rec { cd $out ''; - enabledTestPaths = lib.optionals (!doFullCheck) [ - # These are the most basic tests. Running all tests is too expensive, and - # some of them fail (also differently on different platforms), so it will - # be too hard to maintain such a `disabledTests` list. - "${python.sitePackages}/numba/tests/test_usecases.py" - ]; + enabledTestPaths = + if doFullCheck then + null + else + [ + # These are the most basic tests. Running all tests is too expensive, and + # some of them fail (also differently on different platforms), so it will + # be too hard to maintain such a `disabledTests` list. + "${python.sitePackages}/numba/tests/test_usecases.py" + ]; disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ # captured stderr: Fatal Python error: Segmentation fault From c37de9b4fdcfc9190c6ba3217f25d80dbfcf8cda Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 27 Aug 2025 11:27:22 +0200 Subject: [PATCH 18/18] virt-top: fix build with gettext 0.25 --- pkgs/applications/virtualization/virt-top/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/virtualization/virt-top/default.nix b/pkgs/applications/virtualization/virt-top/default.nix index 04844d214c67..57fe22216e59 100644 --- a/pkgs/applications/virtualization/virt-top/default.nix +++ b/pkgs/applications/virtualization/virt-top/default.nix @@ -7,6 +7,7 @@ libxml2, pkg-config, getopt, + gettext, }: stdenv.mkDerivation rec { @@ -43,9 +44,10 @@ stdenv.mkDerivation rec { ] ++ [ libxml2 ]; - prePatch = '' + postPatch = '' substituteInPlace ocaml-dep.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}' substituteInPlace ocaml-link.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}' + substituteInPlace configure.ac --replace-fail 'AC_CONFIG_MACRO_DIR([m4])' 'AC_CONFIG_MACRO_DIRS([m4 ${gettext}/share/gettext/m4])' ''; meta = {