Merge branch 'master' into staging-next

+135 -106
+1
nixos/tests/forgejo.nix
··· 34 meta.maintainers = with lib.maintainers; [ 35 bendlas 36 emilylange 37 ]; 38 39 nodes = {
··· 34 meta.maintainers = with lib.maintainers; [ 35 bendlas 36 emilylange 37 + tebriel 38 ]; 39 40 nodes = {
+6 -1
pkgs/applications/editors/emacs/default.nix
··· 31 withPgtk = true; 32 }; 33 34 - emacs29-macport = callPackage (self.sources.emacs29-macport) inheritedArgs; 35 } 36 )
··· 31 withPgtk = true; 32 }; 33 34 + emacs29-macport = callPackage (self.sources.emacs29-macport) ( 35 + inheritedArgs 36 + // { 37 + srcRepo = true; 38 + } 39 + ); 40 } 41 )
+8
pkgs/applications/editors/emacs/macport-noescape-noop/CoreFoundation/CFBase.h
···
··· 1 + #if !defined(__COREFOUNDATION_CFBASE__) 2 + 3 + #include_next <CoreFoundation/CFBase.h> 4 + 5 + #undef CF_NOESCAPE 6 + #define CF_NOESCAPE 7 + 8 + #endif
-31
pkgs/applications/editors/emacs/macport_noescape_noop.h
··· 1 - #ifndef NOESCAPE_NOOP_H_ 2 - #define NOESCAPE_NOOP_H_ 3 - 4 - // First, do some work to get definitions for *_WIDTH. Normally, Emacs would 5 - // have these defined by headers in-tree, but clang's headers clash with those. 6 - // Due to how include paths work, we have to include clang headers if we want to 7 - // mess with CoreFoundation definitions. 8 - #pragma push_macro("__STDC_VERSION__") 9 - // Make the preprocessor think that we're on C2x. The macros we want are gated 10 - // on it. 11 - #undef __STDC_VERSION__ 12 - #define __STDC_VERSION__ 202000L 13 - // Include limits.h first, as stdint.h includes it. 14 - #include <limits.h> 15 - 16 - // XX: clang's stdint.h is shy and won't give us its defs unless it thinks it's 17 - // in freestanding mode. 18 - #undef __STDC_HOSTED__ 19 - #include <stdint.h> 20 - #define __STDC_HOSTED__ 1 21 - 22 - #pragma pop_macro("__STDC_VERSION__") 23 - 24 - // Now, pull in the header that defines CF_NOESCAPE. 25 - #include <CoreFoundation/CFBase.h> 26 - 27 - // Redefine CF_NOESCAPE as empty. 28 - #undef CF_NOESCAPE 29 - #define CF_NOESCAPE 30 - 31 - #endif // NOESCAPE_NOOP_H_
···
+2 -7
pkgs/applications/editors/emacs/make-emacs.nix
··· 45 libtiff, 46 libwebp, 47 libxml2, 48 - llvmPackages_14, 49 m17n_lib, 50 mailcap, 51 mailutils, ··· 139 ++ lib.optionals (stdenv.cc ? cc.lib.libgcc) [ 140 "${lib.getLib stdenv.cc.cc.lib.libgcc}/lib" 141 ]; 142 - 143 - inherit (if variant == "macport" then llvmPackages_14.stdenv else stdenv) 144 - mkDerivation 145 - ; 146 in 147 - mkDerivation (finalAttrs: { 148 pname = 149 pname 150 + ( ··· 430 // lib.optionalAttrs (variant == "macport") { 431 # Fixes intermittent segfaults when compiled with LLVM >= 7.0. 432 # See https://github.com/NixOS/nixpkgs/issues/127902 433 - NIX_CFLAGS_COMPILE = "-include ${./macport_noescape_noop.h}"; 434 }; 435 436 enableParallelBuilding = true;
··· 45 libtiff, 46 libwebp, 47 libxml2, 48 m17n_lib, 49 mailcap, 50 mailutils, ··· 138 ++ lib.optionals (stdenv.cc ? cc.lib.libgcc) [ 139 "${lib.getLib stdenv.cc.cc.lib.libgcc}/lib" 140 ]; 141 in 142 + stdenv.mkDerivation (finalAttrs: { 143 pname = 144 pname 145 + ( ··· 425 // lib.optionalAttrs (variant == "macport") { 426 # Fixes intermittent segfaults when compiled with LLVM >= 7.0. 427 # See https://github.com/NixOS/nixpkgs/issues/127902 428 + NIX_CFLAGS_COMPILE = "-isystem ${./macport-noescape-noop}"; 429 }; 430 431 enableParallelBuilding = true;
+3 -1
pkgs/applications/virtualization/virt-top/default.nix
··· 7 libxml2, 8 pkg-config, 9 getopt, 10 }: 11 12 stdenv.mkDerivation rec { ··· 43 ] 44 ++ [ libxml2 ]; 45 46 - prePatch = '' 47 substituteInPlace ocaml-dep.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}' 48 substituteInPlace ocaml-link.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}' 49 ''; 50 51 meta = {
··· 7 libxml2, 8 pkg-config, 9 getopt, 10 + gettext, 11 }: 12 13 stdenv.mkDerivation rec { ··· 44 ] 45 ++ [ libxml2 ]; 46 47 + postPatch = '' 48 substituteInPlace ocaml-dep.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}' 49 substituteInPlace ocaml-link.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}' 50 + substituteInPlace configure.ac --replace-fail 'AC_CONFIG_MACRO_DIR([m4])' 'AC_CONFIG_MACRO_DIRS([m4 ${gettext}/share/gettext/m4])' 51 ''; 52 53 meta = {
+2 -2
pkgs/by-name/ar/arkade/package.nix
··· 7 8 buildGoModule rec { 9 pname = "arkade"; 10 - version = "0.11.41"; 11 12 src = fetchFromGitHub { 13 owner = "alexellis"; 14 repo = "arkade"; 15 rev = version; 16 - hash = "sha256-N9NiAsggIJpYe2UfREp5l1srzm+P2LNIQhKJyT7w0rQ="; 17 }; 18 19 env.CGO_ENABLED = 0;
··· 7 8 buildGoModule rec { 9 pname = "arkade"; 10 + version = "0.11.43"; 11 12 src = fetchFromGitHub { 13 owner = "alexellis"; 14 repo = "arkade"; 15 rev = version; 16 + hash = "sha256-zHKLk9dLZZiH7pH5FR6+uHP9ZteMsAFyrf4V7I+vgSs="; 17 }; 18 19 env.CGO_ENABLED = 0;
+5 -5
pkgs/by-name/cl/clouddrive2/package.nix
··· 11 in 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "clouddrive2"; 14 - version = "0.9.5"; 15 16 src = fetchurl { 17 url = "https://github.com/cloud-fs/cloud-fs.github.io/releases/download/v${finalAttrs.version}/clouddrive-2-${os}-${arch}-${finalAttrs.version}.tgz"; 18 hash = 19 { 20 - x86_64-linux = "sha256-Gsq5rvr0SeGxCRwAeeFRZBPOe32EIa7uO6SAIuinezA="; 21 - aarch64-linux = "sha256-M+lCUzoiy/sImBZrOjjeP4eqG3F4wbkMQg9Ho3ELGFo="; 22 - x86_64-darwin = "sha256-Uyz1wuHICSq5C+n3ZjPinZznhajd6QR36CZgQBm+QRE="; 23 - aarch64-darwin = "sha256-ZQxRHTzLUAhnL1rRLR9l8Ix5XzxeTAds7XAmEgZ9Xmo="; 24 } 25 .${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); 26 };
··· 11 in 12 stdenv.mkDerivation (finalAttrs: { 13 pname = "clouddrive2"; 14 + version = "0.9.8"; 15 16 src = fetchurl { 17 url = "https://github.com/cloud-fs/cloud-fs.github.io/releases/download/v${finalAttrs.version}/clouddrive-2-${os}-${arch}-${finalAttrs.version}.tgz"; 18 hash = 19 { 20 + x86_64-linux = "sha256-dla1Mp+frV12v+OkGJwwcTfUKRcWy47tXYx6nWpHMhk="; 21 + aarch64-linux = "sha256-GjR0zLGLvfZJMQgq9Hq3NQp7Y8QSXU4kW9cUIe5MxyM="; 22 + x86_64-darwin = "sha256-pQjLwahjtw+lgLJbRpgGM4lbAfZCDtgJSVcqS6TDwug="; 23 + aarch64-darwin = "sha256-by4reE2OH1Qz+Wn40QMVNZm2JsJHkoZ05OZZEnxGChI="; 24 } 25 .${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); 26 };
+1
pkgs/by-name/fo/forgejo-runner/package.nix
··· 99 adamcstephens 100 emilylange 101 christoph-heiss 102 ]; 103 mainProgram = "forgejo-runner"; 104 };
··· 99 adamcstephens 100 emilylange 101 christoph-heiss 102 + tebriel 103 ]; 104 mainProgram = "forgejo-runner"; 105 };
+1
pkgs/by-name/fo/forgejo/generic.nix
··· 199 adamcstephens 200 marie 201 pyrox0 202 ]; 203 broken = stdenv.hostPlatform.isDarwin; 204 mainProgram = "gitea";
··· 199 adamcstephens 200 marie 201 pyrox0 202 + tebriel 203 ]; 204 broken = stdenv.hostPlatform.isDarwin; 205 mainProgram = "gitea";
+3 -3
pkgs/by-name/ha/harbor-cli/package.nix
··· 9 10 buildGoModule (finalAttrs: { 11 pname = "harbor-cli"; 12 - version = "0.0.10"; 13 14 src = fetchFromGitHub { 15 owner = "goharbor"; 16 repo = "harbor-cli"; 17 tag = "v${finalAttrs.version}"; 18 - hash = "sha256-KIICM26SYmzySt5oqiFpsEGVw/ORJZ3K11VANWa81lw="; 19 }; 20 21 - vendorHash = "sha256-Y2UIQWH78qsw1UE6NgeTm1Tdno78Bg6oxA9GyPLDjkQ="; 22 23 excludedPackages = [ 24 "dagger"
··· 9 10 buildGoModule (finalAttrs: { 11 pname = "harbor-cli"; 12 + version = "0.0.11"; 13 14 src = fetchFromGitHub { 15 owner = "goharbor"; 16 repo = "harbor-cli"; 17 tag = "v${finalAttrs.version}"; 18 + hash = "sha256-Mfy1v6uefaFI059o11/GKaiswXwJJKAH1w6kbzd2Vkk="; 19 }; 20 21 + vendorHash = "sha256-/pBLFEGPewRNi/h5EyUueTyp5iTu2R5wLppiHSF3XxE="; 22 23 excludedPackages = [ 24 "dagger"
+2 -2
pkgs/by-name/op/openxr-loader/package.nix
··· 16 17 stdenv.mkDerivation rec { 18 pname = "openxr-loader"; 19 - version = "1.1.50"; 20 21 src = fetchFromGitHub { 22 owner = "KhronosGroup"; 23 repo = "OpenXR-SDK-Source"; 24 tag = "release-${version}"; 25 - hash = "sha256-/5zw9tj7F0cxhzyIRf8njoYB9moJFYLEjDeqe0OBr34="; 26 }; 27 28 nativeBuildInputs = [
··· 16 17 stdenv.mkDerivation rec { 18 pname = "openxr-loader"; 19 + version = "1.1.51"; 20 21 src = fetchFromGitHub { 22 owner = "KhronosGroup"; 23 repo = "OpenXR-SDK-Source"; 24 tag = "release-${version}"; 25 + hash = "sha256-NEArzegPZNL0zRbnUHrNbNhBtj0IJP+uha1ehzwB7wA="; 26 }; 27 28 nativeBuildInputs = [
+12
pkgs/by-name/po/poetry/package.nix
··· 11 { 12 poetry = self.callPackage ./unwrapped.nix { }; 13 14 # The versions of Poetry and poetry-core need to match exactly, 15 # and poetry-core in nixpkgs requires a staging cycle to be updated, 16 # so apply an override here.
··· 11 { 12 poetry = self.callPackage ./unwrapped.nix { }; 13 14 + # Poetry 2.1.4 officially requires virtualenv >=20.26.6, <20.33.0 15 + # otherwise will be incompatible with python312 16 + # see: https://github.com/python-poetry/poetry/issues/10490 17 + virtualenv = super.virtualenv.overridePythonAttrs (old: rec { 18 + version = "20.30.0"; 19 + src = fetchPypi { 20 + inherit (old) pname; 21 + inherit version; 22 + hash = "sha256-gAhjFivKpUUKbk1yEElzDn8trgdyDgkCsOQEC9b5rag="; 23 + }; 24 + }); 25 + 26 # The versions of Poetry and poetry-core need to match exactly, 27 # and poetry-core in nixpkgs requires a staging cycle to be updated, 28 # so apply an override here.
-1
pkgs/by-name/po/poetry/unwrapped.nix
··· 60 pythonRelaxDeps = [ 61 "dulwich" 62 "keyring" 63 - "virtualenv" 64 ]; 65 66 dependencies = [
··· 60 pythonRelaxDeps = [ 61 "dulwich" 62 "keyring" 63 ]; 64 65 dependencies = [
+4 -4
pkgs/by-name/ti/tigerbeetle/package.nix
··· 10 platform = 11 if stdenvNoCC.hostPlatform.isDarwin then "universal-macos" else stdenvNoCC.hostPlatform.system; 12 hash = builtins.getAttr platform { 13 - "universal-macos" = "sha256-Xwjmwpy9xOSXFlGegj6hXMJtIsYJFme2yhptiaZorGU="; 14 - "x86_64-linux" = "sha256-VQ9fQh65GIktHW6BWsnQmQnGwg971KkwY8lgvJgw0YY="; 15 - "aarch64-linux" = "sha256-nVGJxJlV+a5vpuCj1r3b1geggjwDammKKdp1Je7z4A8="; 16 }; 17 in 18 stdenvNoCC.mkDerivation (finalAttrs: { 19 pname = "tigerbeetle"; 20 - version = "0.16.55"; 21 22 src = fetchzip { 23 url = "https://github.com/tigerbeetle/tigerbeetle/releases/download/${finalAttrs.version}/tigerbeetle-${platform}.zip";
··· 10 platform = 11 if stdenvNoCC.hostPlatform.isDarwin then "universal-macos" else stdenvNoCC.hostPlatform.system; 12 hash = builtins.getAttr platform { 13 + "universal-macos" = "sha256-XVYnzs9BF35pdB9uKSoX/+DWa8drWls0rtrNO9IZJtE="; 14 + "x86_64-linux" = "sha256-rNlAikb/DrFYnE/OEgTPz3G82bQCnySeOp6dZAWxFn4="; 15 + "aarch64-linux" = "sha256-wNuy8hq9Zt2UP/4zI/lgkWHv3X/mIKhaKoN8b/WRS2U="; 16 }; 17 in 18 stdenvNoCC.mkDerivation (finalAttrs: { 19 pname = "tigerbeetle"; 20 + version = "0.16.57"; 21 22 src = fetchzip { 23 url = "https://github.com/tigerbeetle/tigerbeetle/releases/download/${finalAttrs.version}/tigerbeetle-${platform}.zip";
+13 -8
pkgs/development/compilers/llvm/common/libc/default.nix
··· 18 let 19 pname = "libc"; 20 21 - src' = runCommand "${pname}-src-${version}" { } ('' 22 - mkdir -p "$out" 23 - cp -r ${monorepoSrc}/cmake "$out" 24 - cp -r ${monorepoSrc}/runtimes "$out" 25 - cp -r ${monorepoSrc}/llvm "$out" 26 - cp -r ${monorepoSrc}/compiler-rt "$out" 27 - cp -r ${monorepoSrc}/${pname} "$out" 28 - ''); 29 in 30 stdenv.mkDerivation (finalAttrs: { 31 inherit pname version patches;
··· 18 let 19 pname = "libc"; 20 21 + src' = runCommand "${pname}-src-${version}" { } ( 22 + '' 23 + mkdir -p "$out" 24 + cp -r ${monorepoSrc}/cmake "$out" 25 + cp -r ${monorepoSrc}/runtimes "$out" 26 + cp -r ${monorepoSrc}/llvm "$out" 27 + cp -r ${monorepoSrc}/compiler-rt "$out" 28 + cp -r ${monorepoSrc}/${pname} "$out" 29 + '' 30 + + lib.optionalString (lib.versionAtLeast release_version "21") '' 31 + cp -r ${monorepoSrc}/third-party "$out" 32 + '' 33 + ); 34 in 35 stdenv.mkDerivation (finalAttrs: { 36 inherit pname version patches;
+1 -1
pkgs/development/compilers/llvm/default.nix
··· 31 "18.1.8".officialRelease.sha256 = "sha256-iiZKMRo/WxJaBXct9GdAcAT3cz9d9pnAcO1mmR6oPNE="; 32 "19.1.7".officialRelease.sha256 = "sha256-cZAB5vZjeTsXt9QHbP5xluWNQnAHByHtHnAhVDV0E6I="; 33 "20.1.8".officialRelease.sha256 = "sha256-ysyB/EYxi2qE9fD5x/F2zI4vjn8UDoo1Z9ukiIrjFGw="; 34 - "21.1.0-rc3".officialRelease.sha256 = "sha256-quZuqDIm8OrkDJqu7vJKUP8MF1xCuQNFwW9SnKMFoS8="; 35 "22.0.0-git".gitRelease = { 36 rev = "0b42e117c829c6e127ef4b1bd82807ba01853128"; 37 rev-version = "22.0.0-unstable-2025-08-31";
··· 31 "18.1.8".officialRelease.sha256 = "sha256-iiZKMRo/WxJaBXct9GdAcAT3cz9d9pnAcO1mmR6oPNE="; 32 "19.1.7".officialRelease.sha256 = "sha256-cZAB5vZjeTsXt9QHbP5xluWNQnAHByHtHnAhVDV0E6I="; 33 "20.1.8".officialRelease.sha256 = "sha256-ysyB/EYxi2qE9fD5x/F2zI4vjn8UDoo1Z9ukiIrjFGw="; 34 + "21.1.0".officialRelease.sha256 = "sha256-4DLEZuhREHMl2t0f1iqvXSRSE5VBMVxd94Tj4m8Yf9s="; 35 "22.0.0-git".gitRelease = { 36 rev = "0b42e117c829c6e127ef4b1bd82807ba01853128"; 37 rev-version = "22.0.0-unstable-2025-08-31";
+5
pkgs/development/python-modules/librosa/default.nix
··· 49 hash = "sha256-T58J/Gi3tHzelr4enbYJi1KmO46QxE5Zlhkc0+EgvRg="; 50 }; 51 52 build-system = [ setuptools ]; 53 54 dependencies = [
··· 49 hash = "sha256-T58J/Gi3tHzelr4enbYJi1KmO46QxE5Zlhkc0+EgvRg="; 50 }; 51 52 + patches = [ 53 + # <https://github.com/librosa/librosa/pull/1977> 54 + ./fix-with-numba-0.62.0.patch 55 + ]; 56 + 57 build-system = [ setuptools ]; 58 59 dependencies = [
+27
pkgs/development/python-modules/librosa/fix-with-numba-0.62.0.patch
···
··· 1 + From 902bcca8cfc84801cf93a6c3ca59da283072a79f Mon Sep 17 00:00:00 2001 2 + From: Emily <hello@emily.moe> 3 + Date: Wed, 27 Aug 2025 18:58:07 +0100 4 + Subject: [PATCH] Fix types in beat tracking code 5 + 6 + The development version of Numba 0.62.0 is unhappy about `range` 7 + being applied to floating point values here. 8 + --- 9 + librosa/beat.py | 2 +- 10 + 1 file changed, 1 insertion(+), 1 deletion(-) 11 + 12 + diff --git a/librosa/beat.py b/librosa/beat.py 13 + index 1a19005d..4ed9e945 100644 14 + --- a/librosa/beat.py 15 + +++ b/librosa/beat.py 16 + @@ -582,7 +582,7 @@ def __beat_track_dp(localscore, frames_per_beat, tightness, backlink, cumscore): 17 + # Search over all possible predecessors to find the best preceding beat 18 + # NOTE: to provide time-varying tempo estimates, we replace 19 + # frames_per_beat[0] by frames_per_beat[i] in this loop body. 20 + - for loc in range(i - np.round(frames_per_beat[tv * i] / 2), i - 2 * frames_per_beat[tv * i] - 1, - 1): 21 + + for loc in range(i - round(frames_per_beat[tv * i] / 2), int(i - 2 * frames_per_beat[tv * i] - 1), - 1): 22 + # Once we're searching past the start, break out 23 + if loc < 0: 24 + break 25 + -- 26 + 2.50.1 27 +
+20 -12
pkgs/development/python-modules/llvmlite/default.nix
··· 8 9 setuptools, 10 11 # tests 12 pytestCheckHook, 13 - llvm, 14 - libxml2, 15 16 withStaticLLVM ? true, 17 }: 18 19 buildPythonPackage rec { 20 pname = "llvmlite"; 21 - version = "0.44.0"; 22 pyproject = true; 23 24 disabled = isPyPy || pythonAtLeast "3.14"; ··· 27 owner = "numba"; 28 repo = "llvmlite"; 29 tag = "v${version}"; 30 - hash = "sha256-ZIA/JfK9ZP00Zn6SZuPus30Xw10hn3DArHCkzBZAUV0="; 31 }; 32 33 build-system = [ setuptools ]; 34 35 - buildInputs = [ llvm ] ++ lib.optionals withStaticLLVM [ libxml2.dev ]; 36 - 37 - postPatch = lib.optionalString withStaticLLVM '' 38 - substituteInPlace ffi/build.py --replace-fail "--system-libs --libs all" "--system-libs --libs --link-static all" 39 - ''; 40 41 - # Set directory containing llvm-config binary 42 - env.LLVM_CONFIG = "${llvm.dev}/bin/llvm-config"; 43 44 nativeCheckInputs = [ pytestCheckHook ]; 45 46 # https://github.com/NixOS/nixpkgs/issues/255262 47 preCheck = '' 48 cd $out 49 ''; 50 51 - __impureHostDeps = lib.optionals stdenv.hostPlatform.isDarwin [ "/usr/lib/libm.dylib" ]; 52 53 passthru = lib.optionalAttrs (!withStaticLLVM) { inherit llvm; }; 54
··· 8 9 setuptools, 10 11 + cmake, 12 + ninja, 13 + 14 + llvm_20, 15 + libxml2, 16 + 17 # tests 18 pytestCheckHook, 19 20 withStaticLLVM ? true, 21 }: 22 23 + let 24 + llvm = llvm_20; 25 + in 26 + 27 buildPythonPackage rec { 28 pname = "llvmlite"; 29 + version = "0.45.0rc1"; 30 pyproject = true; 31 32 disabled = isPyPy || pythonAtLeast "3.14"; ··· 35 owner = "numba"; 36 repo = "llvmlite"; 37 tag = "v${version}"; 38 + hash = "sha256-wMTNtUuslCjopyfF6FAtfJAR0zuWjL8N8G16UKiplN0="; 39 }; 40 41 build-system = [ setuptools ]; 42 43 + nativeBuildInputs = [ 44 + cmake 45 + ninja 46 + ]; 47 48 + buildInputs = [ llvm ] ++ lib.optionals withStaticLLVM [ libxml2.dev ]; 49 50 nativeCheckInputs = [ pytestCheckHook ]; 51 52 + dontUseCmakeConfigure = true; 53 + 54 # https://github.com/NixOS/nixpkgs/issues/255262 55 preCheck = '' 56 cd $out 57 ''; 58 59 + env.LLVMLITE_SHARED = !withStaticLLVM; 60 61 passthru = lib.optionalAttrs (!withStaticLLVM) { inherit llvm; }; 62
+16 -24
pkgs/development/python-modules/numba/default.nix
··· 33 cudatoolkit = cudaPackages.cuda_nvcc; 34 in 35 buildPythonPackage rec { 36 - version = "0.61.2"; 37 pname = "numba"; 38 pyproject = true; 39 ··· 51 postFetch = '' 52 sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/numba/_version.py 53 ''; 54 - hash = "sha256-Qa2B5pOWrLb/1V3PSyiwS1x9ueXwDKRhDMDecBCAN+8="; 55 }; 56 57 postPatch = '' ··· 59 --replace-fail \ 60 "dldir = [" \ 61 "dldir = [ '${addDriverRunpath.driverLink}/lib', " 62 - 63 - substituteInPlace setup.py \ 64 - --replace-fail 'max_numpy_run_version = "2.3"' 'max_numpy_run_version = "2.4"' 65 - substituteInPlace numba/__init__.py \ 66 - --replace-fail "numpy_version > (2, 2)" "numpy_version > (2, 3)" 67 ''; 68 69 - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-I${lib.getInclude stdenv.cc.libcxx}/include/c++/v1"; 70 - 71 build-system = [ 72 setuptools 73 numpy ··· 80 81 buildInputs = lib.optionals cudaSupport [ cudaPackages.cuda_cudart ]; 82 83 - pythonRelaxDeps = [ "numpy" ]; 84 85 dependencies = [ 86 numpy 87 llvmlite 88 ]; 89 90 - patches = [ 91 - (fetchpatch2 { 92 - url = "https://github.com/numba/numba/commit/e2c8984ba60295def17e363a926d6f75e7fa9f2d.patch"; 93 - includes = [ "numba/core/bytecode.py" ]; 94 - hash = "sha256-HIVbp3GSmnq6W7zrRIirIbhGjJsFN3PNyHSfAE8fdDw="; 95 - }) 96 - ] 97 - ++ lib.optionals cudaSupport [ 98 (replaceVars ./cuda_path.patch { 99 cuda_toolkit_path = cudatoolkit; 100 cuda_toolkit_lib_path = lib.getLib cudatoolkit; ··· 111 cd $out 112 ''; 113 114 - enabledTestPaths = lib.optionals (!doFullCheck) [ 115 - # These are the most basic tests. Running all tests is too expensive, and 116 - # some of them fail (also differently on different platforms), so it will 117 - # be too hard to maintain such a `disabledTests` list. 118 - "${python.sitePackages}/numba/tests/test_usecases.py" 119 - ]; 120 121 disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ 122 # captured stderr: Fatal Python error: Segmentation fault
··· 33 cudatoolkit = cudaPackages.cuda_nvcc; 34 in 35 buildPythonPackage rec { 36 + version = "0.62.0rc1"; 37 pname = "numba"; 38 pyproject = true; 39 ··· 51 postFetch = '' 52 sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/numba/_version.py 53 ''; 54 + hash = "sha256-YnozYetRsrCl5+UvK4y1QQykUqSMshi9vcv/K5A0dts="; 55 }; 56 57 postPatch = '' ··· 59 --replace-fail \ 60 "dldir = [" \ 61 "dldir = [ '${addDriverRunpath.driverLink}/lib', " 62 ''; 63 64 build-system = [ 65 setuptools 66 numpy ··· 73 74 buildInputs = lib.optionals cudaSupport [ cudaPackages.cuda_cudart ]; 75 76 + pythonRelaxDeps = [ 77 + "numpy" 78 + ]; 79 80 dependencies = [ 81 numpy 82 llvmlite 83 ]; 84 85 + patches = lib.optionals cudaSupport [ 86 (replaceVars ./cuda_path.patch { 87 cuda_toolkit_path = cudatoolkit; 88 cuda_toolkit_lib_path = lib.getLib cudatoolkit; ··· 99 cd $out 100 ''; 101 102 + enabledTestPaths = 103 + if doFullCheck then 104 + null 105 + else 106 + [ 107 + # These are the most basic tests. Running all tests is too expensive, and 108 + # some of them fail (also differently on different platforms), so it will 109 + # be too hard to maintain such a `disabledTests` list. 110 + "${python.sitePackages}/numba/tests/test_usecases.py" 111 + ]; 112 113 disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ 114 # captured stderr: Fatal Python error: Segmentation fault
+2 -2
pkgs/tools/package-management/nix/default.nix
··· 165 nix_2_30 = addTests "nix_2_30" self.nixComponents_2_30.nix-everything; 166 167 nixComponents_2_31 = nixDependencies.callPackage ./modular/packages.nix rec { 168 - version = "2.31.0"; 169 inherit (self.nix_2_30.meta) maintainers teams; 170 otherSplices = generateSplicesForNixComponents "nixComponents_2_31"; 171 src = fetchFromGitHub { 172 owner = "NixOS"; 173 repo = "nix"; 174 tag = version; 175 - hash = "sha256-5JYyijH2q/uQCDIZCCyQEBsZ0VPNP2SS1wgZ4+qeIWM="; 176 }; 177 }; 178
··· 165 nix_2_30 = addTests "nix_2_30" self.nixComponents_2_30.nix-everything; 166 167 nixComponents_2_31 = nixDependencies.callPackage ./modular/packages.nix rec { 168 + version = "2.31.1"; 169 inherit (self.nix_2_30.meta) maintainers teams; 170 otherSplices = generateSplicesForNixComponents "nixComponents_2_31"; 171 src = fetchFromGitHub { 172 owner = "NixOS"; 173 repo = "nix"; 174 tag = version; 175 + hash = "sha256-p7GXuu9OyQ1etTYl5egWIk2Ck7CdpXj80CqkhfE4H0c="; 176 }; 177 }; 178
+1 -2
pkgs/top-level/python-packages.nix
··· 8641 llmx = callPackage ../development/python-modules/llmx { }; 8642 8643 llvmlite = callPackage ../development/python-modules/llvmlite { 8644 - # llvmlite always requires a specific version of llvm. 8645 - llvm = pkgs.llvm_16; 8646 }; 8647 8648 lm-eval = callPackage ../development/python-modules/lm-eval { };
··· 8641 llmx = callPackage ../development/python-modules/llmx { }; 8642 8643 llvmlite = callPackage ../development/python-modules/llvmlite { 8644 + inherit (pkgs) cmake ninja; 8645 }; 8646 8647 lm-eval = callPackage ../development/python-modules/lm-eval { };