diff --git a/nixos/modules/services/x11/desktop-managers/lxqt.nix b/nixos/modules/services/x11/desktop-managers/lxqt.nix index 7651275c3ee2..1ccaa28f8642 100644 --- a/nixos/modules/services/x11/desktop-managers/lxqt.nix +++ b/nixos/modules/services/x11/desktop-managers/lxqt.nix @@ -9,8 +9,7 @@ with lib; let - xcfg = config.services.xserver; - cfg = xcfg.desktopManager.lxqt; + cfg = config.services.xserver.desktopManager.lxqt; in @@ -21,16 +20,27 @@ in options = { - services.xserver.desktopManager.lxqt.enable = mkOption { - type = types.bool; - default = false; - description = "Enable the LXQt desktop manager"; + services.xserver.desktopManager.lxqt.enable = mkEnableOption "the LXQt desktop manager"; + + services.xserver.desktopManager.lxqt.iconThemePackage = + lib.mkPackageOption pkgs [ "kdePackages" "breeze-icons" ] { } + // { + description = "The package that provides a default icon theme."; + }; + + services.xserver.desktopManager.lxqt.extraPackages = lib.mkOption { + type = with lib.types; listOf package; + default = [ ]; + defaultText = lib.literalExpression "[ ]"; + example = lib.literalExpression "with pkgs; [ xscreensaver ]"; + description = "Extra packages to be installed system wide."; }; environment.lxqt.excludePackages = mkOption { + type = with lib.types; listOf package; default = [ ]; - example = literalExpression "[ pkgs.lxqt.qterminal ]"; - type = types.listOf types.package; + defaultText = lib.literalExpression "[ ]"; + example = lib.literalExpression "with pkgs; [ lxqt.qterminal ]"; description = "Which LXQt packages to exclude from the default environment"; }; @@ -61,7 +71,9 @@ in environment.systemPackages = pkgs.lxqt.preRequisitePackages ++ pkgs.lxqt.corePackages - ++ (utils.removePackagesByName pkgs.lxqt.optionalPackages config.environment.lxqt.excludePackages); + ++ [ cfg.iconThemePackage ] + ++ (utils.removePackagesByName pkgs.lxqt.optionalPackages config.environment.lxqt.excludePackages) + ++ cfg.extraPackages; # Link some extra directories in /run/current-system/software/share environment.pathsToLink = [ "/share" ]; @@ -69,7 +81,7 @@ in programs.gnupg.agent.pinentryPackage = mkDefault pkgs.pinentry-qt; # virtual file systems support for PCManFM-QT - services.gvfs.enable = true; + services.gvfs.enable = mkDefault true; services.upower.enable = config.powerManagement.enable; 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 = { 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; + } + ); } ) 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; 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 = { 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; 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}"); }; diff --git a/pkgs/by-name/cl/cloudflare-warp/package.nix b/pkgs/by-name/cl/cloudflare-warp/package.nix index feb8e901b883..4e2644b37018 100644 --- a/pkgs/by-name/cl/cloudflare-warp/package.nix +++ b/pkgs/by-name/cl/cloudflare-warp/package.nix @@ -24,15 +24,15 @@ }: let - version = "2025.5.943"; + version = "2025.6.1335"; sources = { x86_64-linux = fetchurl { url = "https://pkg.cloudflareclient.com/pool/noble/main/c/cloudflare-warp/cloudflare-warp_${version}.0_amd64.deb"; - hash = "sha256-d4H3w+X3i3Hqqz8jbGx8eZ7ZuKrYJScbpFgeXKK71yI="; + hash = "sha256-zb+DrBKUOsNBaUE+2CNtocsDs3bcYpG0nHCnjcnH2Mo="; }; aarch64-linux = fetchurl { url = "https://pkg.cloudflareclient.com/pool/noble/main/c/cloudflare-warp/cloudflare-warp_${version}.0_arm64.deb"; - hash = "sha256-E6+vSUSVNEd4+fNYsWcflk1fZb4dzNcjG8Mep7ZHw84="; + hash = "sha256-5DuJKyyr8AUkvuSVrcJYmrc+HAG19wmvrWNN8jrm+wY="; }; }; in 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"; }; 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"; 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" 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 = [ 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 = [ 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"; 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; 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"; 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 + 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/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 diff --git a/pkgs/development/web/nodejs/gyp-patches-set-fallback-value-for-CLT-darwin.patch b/pkgs/development/web/nodejs/gyp-patches-set-fallback-value-for-CLT-darwin.patch new file mode 100644 index 000000000000..028214bc2fbf --- /dev/null +++ b/pkgs/development/web/nodejs/gyp-patches-set-fallback-value-for-CLT-darwin.patch @@ -0,0 +1,63 @@ +Sandboxed builds need a fallback value for the version of the Command Line Tools +being used. + +diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py +index 508f6ccac3e..44bcd988c4c 100644 +--- a/tools/gyp/pylib/gyp/xcode_emulation.py ++++ b/tools/gyp/pylib/gyp/xcode_emulation.py +@@ -1495,24 +1495,8 @@ def XcodeVersion(): + global XCODE_VERSION_CACHE + if XCODE_VERSION_CACHE: + return XCODE_VERSION_CACHE +- version = "" ++ version = "11.0.0.0.1.1567737322" + build = "" +- try: +- version_list = GetStdoutQuiet(["xcodebuild", "-version"]).splitlines() +- # In some circumstances xcodebuild exits 0 but doesn't return +- # the right results; for example, a user on 10.7 or 10.8 with +- # a bogus path set via xcode-select +- # In that case this may be a CLT-only install so fall back to +- # checking that version. +- if len(version_list) < 2: +- raise GypError("xcodebuild returned unexpected results") +- version = version_list[0].split()[-1] # Last word on first line +- build = version_list[-1].split()[-1] # Last word on last line +- except (GypError, OSError): +- # Xcode not installed so look for XCode Command Line Tools +- version = CLTVersion() # macOS Catalina returns 11.0.0.0.1.1567737322 +- if not version: +- raise GypError("No Xcode or CLT version detected!") + # Be careful to convert "4.2.3" to "0423" and "11.0.0" to "1100": + version = version.split(".")[:3] # Just major, minor, micro + version[0] = version[0].zfill(2) # Add a leading zero if major is one digit + + +--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py ++++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +@@ -1495,24 +1495,8 @@ def XcodeVersion(): + global XCODE_VERSION_CACHE + if XCODE_VERSION_CACHE: + return XCODE_VERSION_CACHE +- version = "" ++ version = "11.0.0.0.1.1567737322" + build = "" +- try: +- version_list = GetStdoutQuiet(["xcodebuild", "-version"]).splitlines() +- # In some circumstances xcodebuild exits 0 but doesn't return +- # the right results; for example, a user on 10.7 or 10.8 with +- # a bogus path set via xcode-select +- # In that case this may be a CLT-only install so fall back to +- # checking that version. +- if len(version_list) < 2: +- raise GypError("xcodebuild returned unexpected results") +- version = version_list[0].split()[-1] # Last word on first line +- build = version_list[-1].split()[-1] # Last word on last line +- except (GypError, OSError): +- # Xcode not installed so look for XCode Command Line Tools +- version = CLTVersion() # macOS Catalina returns 11.0.0.0.1.1567737322 +- if not version: +- raise GypError("No Xcode or CLT version detected!") + # Be careful to convert "4.2.3" to "0423" and "11.0.0" to "1100": + version = version.split(".")[:3] # Just major, minor, micro + version[0] = version[0].zfill(2) # Add a leading zero if major is one digit diff --git a/pkgs/development/web/nodejs/gyp-patches.nix b/pkgs/development/web/nodejs/gyp-patches.nix index 48b47d19f7dc..d3939887e0fd 100644 --- a/pkgs/development/web/nodejs/gyp-patches.nix +++ b/pkgs/development/web/nodejs/gyp-patches.nix @@ -47,3 +47,7 @@ lib.optionals patch_tools_catch_oserror ([ extraPrefix = "deps/npm/node_modules/node-gyp/gyp/"; }) ]) +# TODO: remove the Darwin conditionals from this file +++ lib.optionals stdenv.buildPlatform.isDarwin ([ + ./gyp-patches-set-fallback-value-for-CLT-darwin.patch +]) diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index 3b31adf22ef7..39e546b0651e 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="; }; }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4338b07685c2..91a969d2e98f 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 { };