Merge staging-next into staging

This commit is contained in:
Vladimír Čunát
2026-07-15 06:35:08 +02:00
310 changed files with 1473 additions and 1391 deletions
+5 -16
View File
@@ -116,8 +116,6 @@
# test
callPackage,
# TODO: Clean up on `staging`
llvmPackages,
}:
assert (withGTK3 && !withNS && variant != "macport") -> withX || withPgtk;
@@ -254,11 +252,7 @@ stdenv.mkDerivation (finalAttrs: {
autoreconfHook
]
++ lib.optionals (withPgtk || withX && (withGTK3 || withXwidgets)) [ wrapGAppsHook3 ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
sigtool
# TODO: Clean up on `staging`
llvmPackages.lld
];
++ lib.optionals stdenv.hostPlatform.isDarwin [ sigtool ];
buildInputs = [
gnutls
@@ -424,15 +418,10 @@ stdenv.mkDerivation (finalAttrs: {
NATIVE_FULL_AOT = "1";
LIBRARY_PATH = lib.concatStringsSep ":" libGccJitLibraryPaths;
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# workaround for ld64 hardening issue
#
# TODO: Clean up on `staging`
NIX_CFLAGS_COMPILE =
"-fuse-ld=lld"
# Fixes intermittent segfaults when compiled with LLVM >= 7.0.
# See https://github.com/NixOS/nixpkgs/issues/127902
+ lib.optionalString (variant == "macport") " -isystem ${./macport-noescape-noop}";
// lib.optionalAttrs (variant == "macport") {
# Fixes intermittent segfaults when compiled with LLVM >= 7.0.
# See https://github.com/NixOS/nixpkgs/issues/127902
NIX_CFLAGS_COMPILE = "-isystem ${./macport-noescape-noop}";
};
enableParallelBuilding = true;
-13
View File
@@ -14,8 +14,6 @@
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/68f6d131750aa778807119e03eed70286a17b1cb/trunk/archlinux.vim";
sha256 = "18ifhv5q9prd175q3vxbqf6qyvkk6bc7d2lhqdk0q78i68kv9y0c";
},
# TODO: Clean up on `staging`
llvmPackages,
}:
let
@@ -39,10 +37,6 @@ stdenv.mkDerivation {
nativeBuildInputs = [
gettext
pkg-config
]
# TODO: Clean up on `staging`.
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs = [
ncurses
@@ -50,13 +44,6 @@ stdenv.mkDerivation {
gawk
];
# workaround for ld64 hardening issue
#
# TODO: Clean up on `staging`
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_COMPILE = "-fuse-ld=lld";
};
strictDeps = true;
configureFlags = [
+2 -10
View File
@@ -48,9 +48,6 @@
darwinSupport ? config.vim.darwin or false, # Enable Darwin support
ftNixSupport ? config.vim.ftNix or true, # Add nix indentation support from vim-nix (not needed for basic syntax highlighting)
sodiumSupport ? config.vim.sodium or true, # Enable sodium based encryption
# TODO: Clean up on `staging`
llvmPackages,
}:
let
@@ -172,9 +169,7 @@ stdenv.mkDerivation {
++ lib.optional nlsSupport gettext
++ lib.optional perlSupport perl
++ lib.optional (guiSupport == "gtk3") wrapGAppsHook3
++ lib.optional waylandSupport wayland-scanner
# TODO: Clean up on `staging`
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
++ lib.optional waylandSupport wayland-scanner;
buildInputs = [
ncurses
@@ -201,10 +196,7 @@ stdenv.mkDerivation {
++ lib.optional sodiumSupport libsodium;
# error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
# workaround for ld64 hardening issue
#
# TODO: Clean up on `staging`
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-fdeclspec -fuse-ld=lld";
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-fdeclspec";
preConfigure = lib.optionalString ftNixSupport ''
cp ${vimPlugins.vim-nix.src}/ftplugin/nix.vim runtime/ftplugin/nix.vim
+1 -6
View File
@@ -17,8 +17,6 @@
# This can be set to one of the `darwin.xcode_*` packages as well.
# If set, this should be a path to Xcode.app, e.g. `"/Applications/Xcode.app"`.
withXcodePath ? null,
# TODO: Clean up on `staging`
llvmPackages,
}:
# Try to match MacVim's documented script interface compatibility
@@ -50,8 +48,6 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
pkg-config
# TODO: Clean up on `staging`
llvmPackages.lld
];
buildInputs = [
# MacVim references up to MAC_OS_VERSION_14_0 in its source
@@ -192,8 +188,7 @@ stdenv.mkDerivation (finalAttrs: {
# macvim obj-c log macro triggers -Wformat-security (seems like a bug? it's a string literal!)
hardeningDisable = common.hardeningDisable ++ [ "format" ];
# os_log also enables -Werror,-Wformat by default
# TODO: Clean up on `staging`
env.NIX_CFLAGS_COMPILE = "-DOS_LOG_FORMAT_WARNINGS -fuse-ld=lld";
env.NIX_CFLAGS_COMPILE = "-DOS_LOG_FORMAT_WARNINGS";
# We rely on the user's Xcode install to build. It may be located in an arbitrary place, and
# it's not clear what system-level components it may require, so for now we'll just allow full
@@ -34,7 +34,6 @@
libjxl,
libicns,
apple-sdk_15,
llvmPackages,
nix-update-script,
}:
@@ -68,11 +67,6 @@ stdenv.mkDerivation (finalAttrs: {
# to build bundled libdispatch
clang
gobject-introspection
]
# Work around ld64's libc++ hardening issue causing Trace/BPT trap: 5
# TODO: Remove once nixpkgs#536365 reaches this branch.
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs = [
@@ -108,12 +102,6 @@ stdenv.mkDerivation (finalAttrs: {
dontWrapQtApps = true;
# Work around ld64's libc++ hardening issue causing Trace/BPT trap: 5
# TODO: Remove once nixpkgs#536365 reaches this branch.
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
cmakeFlags = [
# We're allowed to used the API ID of the Snap package:
(lib.cmakeFeature "TDESKTOP_API_ID" "611335")
+1 -10
View File
@@ -27,7 +27,6 @@
pkg-config,
bison,
which,
llvmPackages,
jdk,
blas,
lapack,
@@ -69,10 +68,7 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
tzdata
which
]
# TODO: Remove once #536365 reaches this branch
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
];
buildInputs = [
bzip2
gfortran
@@ -130,11 +126,6 @@ stdenv.mkDerivation (finalAttrs: {
dontDisableStatic = static;
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
preConfigure = ''
configureFlagsArray=(
--disable-lto
-6
View File
@@ -2,7 +2,6 @@
lib,
stdenv,
fetchFromGitHub,
llvmPackages,
testers,
nix-update-script,
}:
@@ -18,12 +17,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-Qw5c9dp7wpuOcQSLsg1pfJ+NbrEtme2o6nKD3Ba3A3M=";
};
# TODO: Remove when NixOS/nixpkgs#536365 reaches master.
nativeBuildInputs = [ llvmPackages.lld ];
env.NIX_CFLAGS_COMPILE = "-Wall -Wextra -Werror -mmacosx-version-min=10.9 -framework Foundation -framework IOBluetooth";
# TODO: Remove when NixOS/nixpkgs#536365 reaches master.
env.NIX_CFLAGS_LINK = "--ld-path=${lib.getExe' llvmPackages.lld "ld64.lld"}";
installPhase = ''
runHook preInstall
+22 -1
View File
@@ -4,6 +4,7 @@
acl,
e2fsprogs,
fetchFromGitHub,
fetchpatch,
libb2,
lz4,
openssh,
@@ -32,6 +33,26 @@ python.pkgs.buildPythonApplication (finalAttrs: {
hash = "sha256-pMZr9cVr84b948b5Iuevpy6AtMeYo/Ma8uFLuagAYy4=";
};
patches = [
(fetchpatch {
name = "msgspec-1.2.0-compat.patch";
url = "https://github.com/borgbackup/borg/commit/364438f58c86aebd157b55bd2202afaf5945e008.patch";
excludes = [ "docs/changes.rst" ];
hash = "sha256-YhZDD6i2cn7p00Dgmpqi8uGJzFZzixMZmHPcZroB1sE=";
})
(fetchpatch {
name = "msgspec-1.2.1-compat.patch";
url = "https://github.com/borgbackup/borg/commit/8abdd3b8bf065dceecd52d2b22d92b3c407a7c1d.patch";
excludes = [ "docs/changes.rst" ];
hash = "sha256-bvSRxEzNvejG6PQFkeNDuQB7Zd4/EYPEZkrgjpgQ9Ss=";
})
(fetchpatch {
name = "msgspec-1.2.1-unpacker-compat.patch";
url = "https://github.com/borgbackup/borg/commit/b09bbed3de095d6ac9d69a42a486ec18523046dc.patch";
hash = "sha256-F8CIqOcQOLdYn7srsev2op0pgkgt8zdkc5DQUH1c6xg=";
})
];
postPatch = ''
# sandbox does not support setuid/setgid/sticky bits
substituteInPlace src/borg/testsuite/archiver.py \
@@ -103,7 +124,7 @@ python.pkgs.buildPythonApplication (finalAttrs: {
py
pytest-benchmark
pytest-xdist
pytestCheckHook
pytest9_0CheckHook
versionCheckHook
];
-6
View File
@@ -5,7 +5,6 @@
apple-sdk,
darwin,
xcbuildHook,
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -32,8 +31,6 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
xcbuildHook
darwin.autoSignDarwinBinariesHook
# TODO: Remove once #536365 reaches this branch
llvmPackages.lld
];
buildInputs = [
@@ -45,9 +42,6 @@ stdenv.mkDerivation (finalAttrs: {
"-configuration Release"
];
# TODO: Remove once #536365 reaches this branch
env.NIX_CFLAGS_LINK = "-fuse-ld=lld";
installPhase = ''
runHook preInstall
+1 -8
View File
@@ -103,8 +103,7 @@ stdenv.mkDerivation rec {
pkg-config
wrapGAppsHook3
saxon # Use Saxon instead of libxslt to fix XSLT generate-id() consistency issues
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
];
buildInputs = [
SDL2
@@ -185,12 +184,6 @@ stdenv.mkDerivation rec {
"-DUSE_KWALLET=OFF"
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
# darktable changed its rpath handling in commit
# 83c70b876af6484506901e6b381304ae0d073d3c and as a result the
# binaries can't find libdarktable.so, so change LD_LIBRARY_PATH in
+5
View File
@@ -98,6 +98,11 @@ let
tag = version;
hash = "sha256-ZYEjT/yShfA4+zpbGOtaFOx1nSSOWPtMvskPhHv3c9U=";
};
postPatch = ''
substituteInPlace py_ext/setup.py \
--replace-fail "0.2.0" "${version}"
'';
}
);
};
@@ -1,16 +1,11 @@
{
lib,
stdenv,
python312,
python3Packages,
fetchFromGitHub,
}:
let
# more-itertools unsupported on 3.13
python3 = python312;
in
python3.pkgs.buildPythonApplication (finalAttrs: {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "dmarc-metrics-exporter";
version = "1.3.1";
@@ -25,15 +20,14 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
pythonRelaxDeps = true;
build-system = with python3.pkgs; [
build-system = with python3Packages; [
poetry-core
];
dependencies =
with python3.pkgs;
with python3Packages;
[
bite-parser
dataclasses-serialization
prometheus-client
pydantic
structlog
@@ -42,7 +36,7 @@ python3.pkgs.buildPythonApplication (finalAttrs: {
]
++ uvicorn.optional-dependencies.standard;
nativeCheckInputs = with python3.pkgs; [
nativeCheckInputs = with python3Packages; [
aiohttp
pytest-asyncio
pytestCheckHook
-12
View File
@@ -35,8 +35,6 @@
withShared ? true,
nix-update-script,
# TODO: Clean up on `staging`
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -70,10 +68,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals withDocs [
doxygen
graphviz
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs =
@@ -145,12 +139,6 @@ stdenv.mkDerivation (finalAttrs: {
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
(lib.cmakeBool "CMAKE_SKIP_BUILD_RPATH" true)
]
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
(lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
];
preBuild = lib.optionalString (withCairo && withShared && stdenv.hostPlatform.isDarwin) ''
-12
View File
@@ -46,8 +46,6 @@
withExamples ? (stdenv.buildPlatform == stdenv.hostPlatform),
nix-update-script,
# TODO: Clean up on `staging`
llvmPackages,
}:
# pango support depends on Xft
@@ -86,10 +84,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals withDocs [
doxygen
graphviz
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs =
@@ -175,12 +169,6 @@ stdenv.mkDerivation (finalAttrs: {
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
(lib.cmakeBool "CMAKE_SKIP_BUILD_RPATH" true)
]
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
(lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
];
postBuild = lib.optionalString withDocs ''
-8
View File
@@ -13,8 +13,6 @@
vulkan-headers,
vulkan-loader,
libx11,
# TODO: Clean up on `staging`.
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -43,10 +41,6 @@ stdenv.mkDerivation (finalAttrs: {
ninja
pkg-config
python3
]
# TODO: Clean up on `staging`.
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs = [
aemu
@@ -66,8 +60,6 @@ stdenv.mkDerivation (finalAttrs: {
"-framework QuartzCore"
"-needed-lvulkan"
];
# TODO: Clean up on `staging`.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
# dlopens libvulkan.
+1 -11
View File
@@ -20,9 +20,6 @@
libxkbcommon,
libdecor,
withMinecraftPatch ? false,
# TODO: Clean up on `staging`.
llvmPackages,
}:
let
version = "3.4";
@@ -61,11 +58,7 @@ stdenv.mkDerivation {
cmake
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
# TODO: Clean up on `staging`.
llvmPackages.lld
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ]
++ lib.optionals stdenv.hostPlatform.isLinux [ wayland-scanner ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
@@ -93,9 +86,6 @@ stdenv.mkDerivation {
cmakeFlags = [
# Static linking isn't supported
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
(lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
];
env = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isWindows) {
-13
View File
@@ -24,8 +24,6 @@
gi-docgen,
# use util-linuxMinimal to avoid circular dependency (util-linux, systemd, glib)
util-linuxMinimal ? null,
# TODO: Clean up on `staging`.
llvmPackages,
buildPackages,
# this is just for tests (not in the closure of any regular package)
@@ -209,10 +207,6 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals withDtrace [
systemtap' # for dtrace
]
# TODO: Clean up on `staging`.
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
propagatedBuildInputs = [
@@ -256,13 +250,6 @@ stdenv.mkDerivation (finalAttrs: {
"-DG_DISABLE_CAST_CHECKS"
];
DETERMINISTIC_BUILD = 1;
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64 hardening issue.
#
# TODO: Clean up on `staging`.
CC_LD = "lld";
OBJC_LD = "lld";
};
postPatch = ''
@@ -9,8 +9,6 @@
gtk ? gtk3,
gtk3,
gobject-introspection,
# TODO: Clean up on `staging`
llvmPackages,
}:
stdenv.mkDerivation rec {
@@ -30,8 +28,6 @@ stdenv.mkDerivation rec {
pkg-config
gtk-doc
gobject-introspection
# TODO: Clean up on `staging`
llvmPackages.lld
];
buildInputs = [ glib ];
propagatedBuildInputs = [ gtk ];
@@ -40,13 +36,6 @@ stdenv.mkDerivation rec {
gtkdocize
'';
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
meta = {
description = "Provides integration for GTK applications into the Mac desktop";
license = lib.licenses.lgpl21;
+13 -28
View File
@@ -27,8 +27,6 @@
gdktarget ? if stdenv.hostPlatform.isDarwin then "quartz" else "x11",
cupsSupport ? config.gtk2.cups or stdenv.hostPlatform.isLinux,
xineramaSupport ? stdenv.hostPlatform.isLinux,
# TODO: Clean up on `staging`
llvmPackages,
}:
let
@@ -58,19 +56,13 @@ stdenv.mkDerivation (finalAttrs: {
gtkCleanImmodulesCache
];
nativeBuildInputs =
finalAttrs.setupHooks
++ [
gdk-pixbuf
gettext
gobject-introspection
perl
pkg-config
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
nativeBuildInputs = finalAttrs.setupHooks ++ [
gdk-pixbuf
gettext
gobject-introspection
perl
pkg-config
];
patches = [
./patches/2.0-immodules.cache.patch
@@ -128,19 +120,12 @@ stdenv.mkDerivation (finalAttrs: {
"ac_cv_path_GDK_PIXBUF_CSOURCE=${buildPackages.gdk-pixbuf.dev}/bin/gdk-pixbuf-csource"
];
env =
lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-int"
"-Wno-error=incompatible-pointer-types"
];
}
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-int"
"-Wno-error=incompatible-pointer-types"
];
};
enableParallelBuilding = true;
+1 -17
View File
@@ -58,8 +58,6 @@
broadwaySupport ? true,
wayland-scanner,
testers,
# TODO: Clean up on `staging`
llvmPackages,
}:
let
@@ -144,10 +142,6 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals waylandSupport [
wayland-scanner
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs =
@@ -219,17 +213,7 @@ stdenv.mkDerivation (finalAttrs: {
# These are the defines that'd you'd get with --enable-debug=minimum (default).
# See: https://developer.gnome.org/gtk3/stable/gtk-building.html#extra-configuration-options
env = {
NIX_CFLAGS_COMPILE = "-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# workaround for ld64 hardening issue
#
# TODO: Clean up on `staging`
CC_LD = "lld";
OBJC_LD = "lld";
};
env.NIX_CFLAGS_COMPILE = "-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS";
postPatch = ''
# See https://github.com/NixOS/nixpkgs/issues/132259
-9
View File
@@ -60,7 +60,6 @@
compileSchemas ? stdenv.hostPlatform.emulatorAvailable buildPackages,
cups,
libexecinfo,
llvmPackages,
broadwaySupport ? true,
testers,
darwinMinVersionHook,
@@ -131,10 +130,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals vulkanSupport [
shaderc # for glslc
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# TODO: Remove when NixOS/nixpkgs#536365 reaches master.
llvmPackages.lld
]
++ finalAttrs.setupHooks;
buildInputs = [
@@ -226,10 +221,6 @@ stdenv.mkDerivation (finalAttrs: {
}
// lib.optionalAttrs stdenv.hostPlatform.isMusl {
NIX_LDFLAGS = "-lexecinfo";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove when NixOS/nixpkgs#536365 reaches master.
NIX_CFLAGS_LINK = "--ld-path=${lib.getExe' llvmPackages.lld "ld64.lld"}";
};
postPatch = ''
-11
View File
@@ -6,8 +6,6 @@
writableTmpDirAsHomeHook,
versionCheckHook,
nix-update-script,
llvmPackages,
stdenv,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -29,17 +27,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
nativeBuildInputs = [
installShellFiles
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# TODO: Remove once #536365 reaches this branch
llvmPackages.lld
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
postInstall = ''
installManPage $src/docs/iamb.{1,5}
install -D $src/docs/iamb.svg -t $out/share/icons/hicolor/scalable/apps
+2 -11
View File
@@ -23,7 +23,6 @@
nix-update-script,
autoPatchelfHook,
makeWrapper,
llvmPackages,
}:
let
@@ -62,9 +61,7 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
makeWrapper
]
++ lib.optional stdenv.hostPlatform.isLinux autoPatchelfHook
# TODO: Remove once #536365 reaches this branch
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ];
buildInputs = [
capstone
@@ -106,13 +103,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "CMAKE_INSTALL_NAME_DIR" "@executable_path/../Frameworks")
];
env = {
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
# Comment out fixup_bundle in PostprocessBundle.cmake as we are not building a standalone application
postPatch = ''
-8
View File
@@ -45,8 +45,6 @@
makeBinaryWrapper,
darwin,
cairo,
# TODO: Clean up on `staging`.
llvmPackages,
}:
with python3Packages;
@@ -119,8 +117,6 @@ buildPythonApplication rec {
imagemagick
libicns # For the png2icns tool.
darwin.autoSignDarwinBinariesHook
# TODO: Clean up on `staging`.
llvmPackages.lld
]
++ lib.optionals stdenv.hostPlatform.isLinux [
wayland-scanner
@@ -157,10 +153,6 @@ buildPythonApplication rec {
CGO_ENABLED = 0;
GOFLAGS = "-trimpath";
GOTOOLCHAIN = "local";
}
# TODO: Clean up on `staging`.
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
configurePhase = ''
+3
View File
@@ -138,6 +138,9 @@ stdenv.mkDerivation (finalAttrs: {
xar
];
# ld built with this fails to link glib's gio
hardeningDisable = [ "libcxxhardeningfast" ];
dontUseCmakeConfigure = true; # CMake is only needed because its used by Meson to find LLVM.
# Note for overrides: ld64 cannot be built as a debug build because of UB in its iteration implementations,
+1 -11
View File
@@ -11,7 +11,6 @@
apple-sdk_15,
withAdditionalGuestAgents ? false,
lima-additional-guestagents,
llvmPackages,
writableTmpDirAsHomeHook,
versionCheckHook,
testers,
@@ -36,16 +35,7 @@ buildGoModule (finalAttrs: {
# For checkPhase, and installPhase(required to build completion)
writableTmpDirAsHomeHook
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.sigtool
# TODO: Remove when NixOS/nixpkgs#536365 reaches master.
llvmPackages.lld
];
# TODO: Remove when NixOS/nixpkgs#536365 reaches master.
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=${lib.getExe' llvmPackages.lld "ld64.lld"}";
};
++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.sigtool ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_15 ];
+3 -21
View File
@@ -7,8 +7,6 @@
fetchurl,
fetchpatch,
xcbuild,
lld,
llvm,
python3,
ninja,
git,
@@ -184,13 +182,7 @@ stdenv.mkDerivation {
ln -sf ${lib.getExe gn} buildtools/mac/gn
chmod +x build/toolchain/apple/linker_driver.py
patchShebangs build/toolchain/apple/linker_driver.py
# When 'use_lld=true' is set, llvm-ar is used instead of ar.
# The build config expects llvm-ar to be inside the provided clang base path,
# but this is not the case in nixpkgs.
substituteInPlace build/toolchain/apple/toolchain.gni \
--replace-fail "/bin/cp -Rc" "cp -a" \
--replace-fail '${"$"}{prefix}llvm-ar' '${lib.getExe' llvm "llvm-ar"}'
substituteInPlace build/toolchain/apple/toolchain.gni --replace-fail "/bin/cp -Rc" "cp -a"
# nixpkgs calls the target "darwin" instead of "macos", and passing a different target
# results in warnings by the nixpkgs compiler wrapper
@@ -218,10 +210,7 @@ stdenv.mkDerivation {
cpio
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
xcbuild
lld
];
++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ];
buildInputs = [
nasm
@@ -290,8 +279,7 @@ stdenv.mkDerivation {
"rtc_enable_objc_symbol_export=true"
"rtc_include_dav1d_in_internal_decoder_factory=true"
"clang_use_chrome_plugins=false"
# ld64 traps on linking because of C++ hardening
"use_lld=true"
"use_lld=false"
''clang_base_path="${clang}"''
]);
@@ -309,12 +297,6 @@ stdenv.mkDerivation {
"desktop_capture_objc"
];
env = {
# ensure install_name_tool has enough space in binary headers
# to replace rpaths with very long nix store paths
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-headerpad_max_install_names";
};
postBuild =
lib.optionalString stdenv.hostPlatform.isLinux ''
objcopy --redefine-syms="${boringSslSymbols}" "libwebrtc.so"
-9
View File
@@ -2,7 +2,6 @@
lib,
buildGoModule,
fetchFromGitHub,
llvmPackages,
versionCheckHook,
nix-update-script,
}:
@@ -22,14 +21,6 @@ buildGoModule rec {
proxyVendor = true;
nativeBuildInputs = [ llvmPackages.lld ];
env = {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
ldflags = [
"-s"
"-w"
+1 -12
View File
@@ -17,8 +17,6 @@
# but thats not really a concern for nixpkgs, so use them by default.
# See: https://github.com/KhronosGroup/MoltenVK/blob/main/README.md#metal_private_api
enablePrivateAPIUsage ? true,
# TODO: Clean up on `staging`
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -37,11 +35,7 @@ stdenv.mkDerivation (finalAttrs: {
vulkan-headers
];
nativeBuildInputs = [
xcbuildHook
# TODO: Clean up on `staging`
llvmPackages.lld
];
nativeBuildInputs = [ xcbuildHook ];
outputs = [
"out"
@@ -120,11 +114,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional enablePrivateAPIUsage "-DMVK_USE_METAL_PRIVATE_API=1"
);
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
env.NIX_CFLAGS_LINK = "-fuse-ld=lld";
env.NIX_LDFLAGS = toString [
"-lglslang"
"-lSPIRV"
@@ -61,7 +61,6 @@
wayland-protocols,
wayland-scanner,
zimg,
llvmPackages,
# Boolean
alsaSupport ? stdenv.hostPlatform.isLinux,
@@ -164,8 +163,6 @@ stdenv.mkDerivation (finalAttrs: {
buildPackages.darwin.sigtool
swift
makeBinaryWrapper
# TODO: Remove once #536365 reaches this branch
llvmPackages.lld
]
++ lib.optionals waylandSupport [ wayland-scanner ];
@@ -236,9 +233,6 @@ stdenv.mkDerivation (finalAttrs: {
# ./osdep/mac/swift.h:270:9: fatal error: '.../app_bridge_objc-1.pch' file not found
env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin) {
NIX_SWIFTFLAGS_COMPILE = "-disable-bridging-pch";
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
postBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
+1 -1
View File
@@ -66,7 +66,7 @@ py.pkgs.buildPythonApplication rec {
social-auth-app-django
sorl-thumbnail
strawberry-graphql
strawberry-django
strawberry-graphql-django
svgwrite
tablib
+1 -1
View File
@@ -73,7 +73,7 @@ py.pkgs.buildPythonApplication rec {
social-auth-app-django
sorl-thumbnail
strawberry-graphql
strawberry-django
strawberry-graphql-django
svgwrite
tablib
+1 -12
View File
@@ -1,9 +1,7 @@
{
lib,
stdenv,
buildGoModule,
fetchFromCodeberg,
llvmPackages,
installShellFiles,
}:
@@ -20,19 +18,10 @@ buildGoModule (finalAttrs: {
vendorHash = null;
nativeBuildInputs = [
installShellFiles
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ installShellFiles ];
subPackages = [ "cmd/noti" ];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
ldflags = [
"-s"
"-w"
@@ -109,6 +109,7 @@ pythonPackages.buildPythonApplication (finalAttrs: {
];
pythonRelaxDeps = [
"bleach"
"celery"
"django-allauth"
"django-auditlog"
@@ -119,6 +120,7 @@ pythonPackages.buildPythonApplication (finalAttrs: {
"redis"
"scikit-learn"
"tika-client"
"tqdm"
# requested by maintainer
"imap-tools"
"ocrmypdf"
+2 -11
View File
@@ -12,7 +12,6 @@
pkg-config,
wrapGAppsHook3,
writableTmpDirAsHomeHook,
llvmPackages,
}:
buildGoModule (finalAttrs: {
@@ -50,9 +49,7 @@ buildGoModule (finalAttrs: {
pkg-config
wrapGAppsHook3
writableTmpDirAsHomeHook
]
# TODO: Remove once #536365 reaches this branch
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
];
# git ls-files doesn't work as source is not a git repo
checkFlags =
@@ -64,13 +61,7 @@ buildGoModule (finalAttrs: {
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
env = {
CGO_ENABLED = 1;
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env.CGO_ENABLED = 1;
postInstall = ''
mv $out/bin/picocrypt $out/bin/picocrypt-ng-gui
+2 -11
View File
@@ -11,7 +11,6 @@
gtk3,
pkg-config,
wrapGAppsHook3,
llvmPackages,
}:
buildGoModule (finalAttrs: {
@@ -47,17 +46,9 @@ buildGoModule (finalAttrs: {
copyDesktopItems
pkg-config
wrapGAppsHook3
]
# TODO: Remove once #536365 reaches this branch
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
];
env = {
CGO_ENABLED = 1;
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env.CGO_ENABLED = 1;
postInstall = ''
mv $out/bin/Picocrypt $out/bin/picocrypt-gui
-10
View File
@@ -17,7 +17,6 @@
wrapGAppsHook3,
zlib,
nixosTests,
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -36,10 +35,6 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
wrapGAppsHook3
qt6.wrapQtAppsHook
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# TODO: Remove once #536365 reaches this branch
llvmPackages.lld
];
buildInputs = [
@@ -65,11 +60,6 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals (!webuiSupport) [ "-DWEBUI=OFF" ];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
qtWrapperArgs = lib.optionals trackerSearch [ "--prefix PATH : ${lib.makeBinPath [ python3 ]}" ];
dontWrapGApps = true;
-10
View File
@@ -123,9 +123,6 @@
minimal ? toolsOnly || userOnly,
gitUpdater,
qemu-utils, # for tests attribute
# TODO: Clean up on `staging`.
llvmPackages,
}:
assert lib.assertMsg (
@@ -183,9 +180,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals hexagonSupport [ glib ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.sigtool
# TODO: Clean up on `staging`.
llvmPackages.lld
]
++ lib.optionals (!userOnly) [ dtc ];
@@ -431,10 +425,6 @@ stdenv.mkDerivation (finalAttrs: {
ln -s $out/bin/qemu-system-${stdenv.hostPlatform.qemuArch} $out/bin/qemu-kvm
'';
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
passthru = {
qemu-system-i386 = "bin/qemu-system-i386";
tests = lib.optionalAttrs (!toolsOnly) {
-9
View File
@@ -5,8 +5,6 @@
darwin,
actool,
ibtool,
# TODO: Clean up on `staging`
llvmPackages,
makeWrapper,
nix-update-script,
}:
@@ -151,8 +149,6 @@ stdenv.mkDerivation (finalAttrs: {
ibtool
darwin.autoSignDarwinBinariesHook
makeWrapper
# TODO: Clean up on `staging`
llvmPackages.lld
];
dontConfigure = true;
@@ -165,8 +161,6 @@ stdenv.mkDerivation (finalAttrs: {
commonSwiftFlags=(
-O -disable-bridging-pch
-Xlinker -platform_version -Xlinker macos -Xlinker 14.0 -Xlinker 26.0
# TODO: Clean up on `staging`
-use-ld=lld
)
nixLog "building Sparkle stub framework"
@@ -199,12 +193,9 @@ stdenv.mkDerivation (finalAttrs: {
) masShortcutSources}
nixLog "linking MASShortcut dylib"
# `-fuse-ld=lld`: fix for ld64 hardening issue
# TODO: Clean up on `staging`
clang -dynamiclib "''${masObjFiles[@]}" \
-framework AppKit -framework Carbon -framework Foundation \
-install_name "@rpath/MASShortcut.framework/MASShortcut" \
-fuse-ld=lld \
-o "$buildDir/libMASShortcut.dylib"
rectSwiftFiles=()
@@ -59,6 +59,8 @@ pythonPackages.buildPythonApplication (finalAttrs: {
u-msgpack-python
];
pythonRelaxDeps = [ "cbor2" ];
nativeCheckInputs = [ pythonPackages.pytestCheckHook ];
# nixpkgs-update: no auto update
+1 -9
View File
@@ -61,9 +61,6 @@
vulkanSupport ? true,
waylandSupport ? stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAndroid,
x11Support ? !stdenv.hostPlatform.isAndroid && !stdenv.hostPlatform.isWindows,
# TODO: Clean up on `staging`.
llvmPackages,
}:
assert lib.assertMsg (
@@ -130,8 +127,7 @@ stdenv.mkDerivation (finalAttrs: {
ninja
validatePkgConfig
]
++ lib.optional waylandSupport wayland-scanner
++ lib.optional stdenv.hostPlatform.isDarwin llvmPackages.lld;
++ lib.optional waylandSupport wayland-scanner;
buildInputs =
lib.optionals libusbSupport [
@@ -211,10 +207,6 @@ stdenv.mkDerivation (finalAttrs: {
&& !(stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isAndroid)
&& !(x11Support || waylandSupport)
))
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
(lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
];
doCheck = true;
+2 -14
View File
@@ -3,7 +3,6 @@
stdenv,
fetchFromGitHub,
rustPlatform,
llvmPackages,
installShellFiles,
writableTmpDirAsHomeHook,
gitMinimal,
@@ -23,24 +22,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
hash = "sha256-pStNE8SMMVavL3ld6RO+5QQRJPXpqlU3asccS2tUoMQ=";
};
nativeBuildInputs = [
installShellFiles
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
writableTmpDirAsHomeHook
];
env = {
TZDIR = "${tzdata}/share/zoneinfo";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64's libc++ hardening issue.
#
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env.TZDIR = "${tzdata}/share/zoneinfo";
postInstall = ''
presetdir=$out/share/starship/presets/
-6
View File
@@ -3,8 +3,6 @@
swiftPackages,
fetchFromGitHub,
leveldb,
# TODO: Clean up on `staging`.
llvmPackages,
perl,
actool,
makeWrapper,
@@ -90,8 +88,6 @@ stdenv.mkDerivation (finalAttrs: {
actool
makeWrapper
rcodesign
# TODO: Clean up on `staging`.
llvmPackages.lld
];
buildInputs = [ leveldb ];
@@ -130,8 +126,6 @@ stdenv.mkDerivation (finalAttrs: {
# The Swift compiler in nixpkgs uses SDK 14 headers (which compile fine), but without
# this flag the linker records SDK 14 and macOS withholds it (Liquid Glass)
-Xlinker -platform_version -Xlinker macos -Xlinker 14.0 -Xlinker 26.0
# TODO: Clean up on `staging`
-use-ld=lld
)
buildFramework() {
@@ -3,7 +3,6 @@
fetchFromGitHub,
ibtool,
lib,
llvmPackages,
makeBinaryWrapper,
stdenv,
xcbuildHook,
@@ -24,8 +23,6 @@ stdenv.mkDerivation (finalAttrs: {
ibtool
makeBinaryWrapper
xcbuildHook
# TODO: Clean up on `staging`
llvmPackages.lld
];
buildInputs = [
@@ -39,9 +36,6 @@ stdenv.mkDerivation (finalAttrs: {
"Release"
];
# TODO: Clean up on `staging`
env.NIX_CFLAGS_LINK = "-fuse-ld=lld";
installPhase = ''
runHook preInstall
+5 -10
View File
@@ -4,7 +4,6 @@
fetchFromGitHub,
rustPlatform,
installShellFiles,
llvmPackages,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -22,18 +21,14 @@ rustPlatform.buildRustPackage (finalAttrs: {
nativeBuildInputs = [
installShellFiles
]
# TODO: Remove once #536365 reaches this branch
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_COMPILE = toString [
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.hostPlatform.isDarwin [
"-framework"
"AppKit"
];
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
]
);
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd topgrade \
+7 -19
View File
@@ -23,9 +23,6 @@
withWebKit ? stdenv.hostPlatform.isDarwin,
webkitgtk_4_1,
libpng,
# TODO: Clean up on `staging`.
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -48,11 +45,7 @@ stdenv.mkDerivation (finalAttrs: {
./0002-support-webkitgtk-41.patch
];
nativeBuildInputs = [
pkg-config
]
# TODO: Clean up on `staging`.
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
gst_all_1.gst-plugins-base
@@ -96,17 +89,12 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-webviewwebkit"
];
env =
lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
SEARCH_LIB = toString [
"${libGLU.out}/lib"
"${libGL.out}/lib"
];
}
# TODO: Clean up on `staging`.
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
SEARCH_LIB = toString [
"${libGLU.out}/lib"
"${libGL.out}/lib"
];
};
preConfigure = ''
substituteInPlace configure --replace \
+7 -19
View File
@@ -29,9 +29,6 @@
withMesa ? !stdenv.hostPlatform.isDarwin,
withWebKit ? true,
webkitgtk_4_1,
# TODO: Clean up on `staging`.
llvmPackages,
}:
let
catch = fetchFromGitHub {
@@ -59,11 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-YaQrPJSlTpJKwjXLdRsGB04f7wKJCWfHjXWkB45qyEg=";
};
nativeBuildInputs = [
pkg-config
]
# TODO: Clean up on `staging`.
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
gst_all_1.gst-plugins-base
@@ -121,17 +114,12 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-webviewwebkit"
];
env =
lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
SEARCH_LIB = toString [
"${libGLU.out}/lib"
"${libGL.out}/lib"
];
}
# TODO: Clean up on `staging`.
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
SEARCH_LIB = toString [
"${libGLU.out}/lib"
"${libGL.out}/lib"
];
};
preConfigure = ''
cp -r ${catch}/* 3rdparty/catch/
+7 -19
View File
@@ -30,9 +30,6 @@
withEGL ? true,
withPrivateFonts ? false,
webkitgtk_4_1,
# TODO: Clean up on `staging`.
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -47,11 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-gB+mEk8rHpB4z1m8RWJSV+upKzLt7pZtlviS2g03EHY=";
};
nativeBuildInputs = [
pkg-config
]
# TODO: Clean up on `staging`.
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
gst_all_1.gst-plugins-base
@@ -110,17 +103,12 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-webviewwebkit"
];
env =
lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
SEARCH_LIB = toString [
"${libGLU.out}/lib"
"${libGL.out}/lib"
];
}
# TODO: Clean up on `staging`.
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) {
SEARCH_LIB = toString [
"${libGLU.out}/lib"
"${libGL.out}/lib"
];
};
postInstall = "
pushd $out/include
-5
View File
@@ -28,17 +28,12 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
installShellFiles
xxd
# TODO: Clean up on `staging`.
llvmPackages.lld
];
buildInputs = [
apple-sdk_15
];
# TODO: Clean up on `staging`.
env.NIX_CFLAGS_LINK = "-fuse-ld=lld";
# Upstream Makefile races clean-build against linking under parallel make.
enableParallelBuilding = false;
@@ -37,8 +37,6 @@
DarwinTools,
apple-sdk_14,
darwinMinVersionHook,
# TODO: Clean up on `staging`
lld,
}:
let
@@ -254,8 +252,6 @@ stdenv.mkDerivation {
DarwinTools # sw_vers
fixDarwinDylibNames
cctools.libtool
# TODO: Clean up on `staging`
lld
];
buildInputs = [
@@ -566,12 +562,6 @@ stdenv.mkDerivation {
# Fixed in: https://github.com/apple/swift/commit/84083afef1de5931904d5c815d53856cdb3fb232
cmakeFlags="
-GNinja
${
# Fix for ld64 hardening issue
#
# TODO: Clean up on staging
lib.optionalString stdenv.hostPlatform.isDarwin "-DCMAKE_LINKER_TYPE=LLD"
}
-DBOOTSTRAPPING_MODE=BOOTSTRAPPING${lib.optionalString stdenv.hostPlatform.isDarwin "-WITH-HOSTLIBS"}
-DSWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING=ON
-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=ON
+1 -2
View File
@@ -15,8 +15,7 @@ let
inherit stdenv;
swift-unwrapped = callPackage ./compiler {
# TODO: Clean up on `staging`
inherit (llvmPackages) stdenv lld;
inherit (llvmPackages) stdenv;
inherit (darwin) DarwinTools sigtool;
};
@@ -135,11 +135,6 @@ let
# so we don't have to account for that scenario.
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
];
# TODO: Clean up on `staging`.
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_LDFLAGS = "-headerpad_max_install_names";
};
}
);
@@ -5,10 +5,6 @@
useSwiftDriver ? true,
swift-driver,
clang,
# TODO: Clean up on `staging`.
llvmPackages,
writeShellScriptBin,
}:
stdenv.mkDerivation (
@@ -94,15 +90,6 @@ stdenv.mkDerivation (
cp "$input" "$out/nix-support/$(basename "$input")"
done
fi
''
# TODO: Clean up on `staging`.
+ lib.optionalString stdenv.targetPlatform.isDarwin ''
printf "NIX_SWIFTFLAGS_COMPILE+=' -use-ld=lld -tools-directory %s'\n" \
${writeShellScriptBin "ld" ''
exec ${lib.getExe' llvmPackages.lld "ld64.lld"} "$@"
''}/bin \
>> $out/nix-support/setup-hook
printf '%s\n' ${lib.getBin llvmPackages.lld} >> $out/nix-support/propagated-build-inputs
'';
passthru = {
+7 -17
View File
@@ -366,9 +366,6 @@
libnpp,
# Testing
testers,
# TODO: Clean up on `staging`.
llvmPackages,
}:
/*
@@ -837,9 +834,7 @@ stdenv.mkDerivation (
++ optionals stdenv.hostPlatform.isx86 [ nasm ]
# Texinfo version 7.1 introduced breaking changes, which older versions of ffmpeg do not handle.
++ optionals (lib.versionAtLeast version "6") [ texinfo ]
++ optionals withCudaNVCC [ cuda_nvcc ]
# TODO: Clean up on `staging`.
++ optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
++ optionals withCudaNVCC [ cuda_nvcc ];
buildInputs =
[ ]
@@ -983,17 +978,12 @@ stdenv.mkDerivation (
buildFlags = [ "all" ] ++ optional buildQtFaststart "tools/qt-faststart"; # Build qt-faststart executable
env =
lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=incompatible-pointer-types"
"-Wno-error=int-conversion"
];
}
# TODO: Clean up on `staging`.
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=incompatible-pointer-types"
"-Wno-error=int-conversion"
];
};
# tests linking broken with shaderc after https://github.com/NixOS/nixpkgs/pull/477464/changes/5a47b12dfcd1b909ba35778a866394430054319a
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform && !withShaderc;
@@ -46,8 +46,6 @@
hotdoc,
directoryListingUpdater,
apple-sdk_gstreamer,
# TODO: Clean up on `staging`
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -89,10 +87,6 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals enableWayland [
wayland-scanner
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs = [
@@ -165,14 +159,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional (!enableCdparanoia) "-Dcdparanoia=disabled"
++ lib.optional stdenv.hostPlatform.isDarwin "-Ddrm=disabled";
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
CC_LD = "lld";
OBJC_LD = "lld";
};
postPatch = ''
patchShebangs \
scripts/meson-pkg-config-file-fixup.py \
@@ -33,8 +33,6 @@
hotdoc,
directoryListingUpdater,
apple-sdk_gstreamer,
# TODO: Clean up on `staging`
llvmPackages,
}:
let
@@ -86,10 +84,6 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals enableDocumentation [
hotdoc
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs = [
@@ -123,14 +117,6 @@ stdenv.mkDerivation (finalAttrs: {
(lib.mesonEnable "libdw" (withLibunwind && hasElfutils))
];
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
CC_LD = "lld";
OBJC_LD = "lld";
};
postPatch = ''
patchShebangs \
gst/parse/get_flex_version.py \
@@ -66,8 +66,6 @@
gst-plugins-good,
directoryListingUpdater,
apple-sdk_gstreamer,
# TODO: Clean up on `staging`
llvmPackages,
}:
let
@@ -139,10 +137,6 @@ stdenv.mkDerivation (finalAttrs: {
)
++ lib.optionals enableWayland [
wayland-protocols
]
# TODO: Clean up on `staging`
++ lib.optionals stdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
buildInputs = [
@@ -271,13 +265,6 @@ stdenv.mkDerivation (finalAttrs: {
# linking error on Darwin
# https://github.com/NixOS/nixpkgs/pull/70690#issuecomment-553694896
"-lncurses";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
CC_LD = "lld";
OBJC_LD = "lld";
};
# fails 1 tests with "Unexpected critical/warning: g_object_set_is_valid_property: object class 'GstRtpStorage' has no property named ''"
-11
View File
@@ -91,9 +91,6 @@
bzip2,
callPackage,
# TODO: Clean up on `staging`.
llvmPackages,
}@inputs:
let
@@ -478,10 +475,6 @@ effectiveStdenv.mkDerivation {
)
++ optionals enableCuda [
cudaPackages.cuda_nvcc
]
# TODO: Clean up on `staging`.
++ optionals effectiveStdenv.hostPlatform.isDarwin [
llvmPackages.lld
];
env = {
@@ -572,10 +565,6 @@ effectiveStdenv.mkDerivation {
]
++ optionals (enabledModules != [ ]) [
(cmakeFeature "BUILD_LIST" (concatStringsSep "," enabledModules))
]
# TODO: Clean up on `staging`.
++ optionals effectiveStdenv.hostPlatform.isDarwin [
(cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
];
postBuild = optionalString enableDocs ''
@@ -20,8 +20,6 @@
which,
# darwin support
xcbuild,
# TODO: Clean up on `staging`
llvmPackages,
dbus,
fontconfig,
@@ -194,8 +192,6 @@ stdenv.mkDerivation (
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
xcbuild
# TODO: Clean up on `staging`
llvmPackages.lld
];
}
@@ -377,12 +373,6 @@ stdenv.mkDerivation (
# if dependency paths contain the string "pq", which can occur in the hash.
# To prevent these failures, we need to override PostgreSQL detection.
PSQL_LIBS = "-L${libpq}/lib -lpq";
}
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Fix for ld64 hardening issue
#
# TODO: Clean up on `staging`
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
prefixKey = "-prefix ";
@@ -89,9 +89,6 @@
# options
qttranslations ? null,
fetchpatch,
# TODO: Clean up on `staging`.
llvmPackages,
}:
let
@@ -200,11 +197,7 @@ stdenv.mkDerivation {
cmake
ninja
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
moveBuildTree
# TODO: Clean up on `staging`.
llvmPackages.lld
];
++ lib.optionals stdenv.hostPlatform.isDarwin [ moveBuildTree ];
propagatedNativeBuildInputs = [
lndir
@@ -319,8 +312,6 @@ stdenv.mkDerivation {
# When this variable is not set, cmake tries to execute xcodebuild
# to query the version.
"-DQT_INTERNAL_XCODE_VERSION=0.1"
# TODO: Clean up on `staging`.
(lib.cmakeFeature "CMAKE_LINKER_TYPE" "LLD")
]
++ lib.optionals isCrossBuild [
"-DQT_HOST_PATH=${pkgsBuildBuild.qt6.qtbase}"
@@ -2,7 +2,6 @@
qtModule,
lib,
stdenv,
llvmPackages,
qtbase,
qtmultimedia,
pkg-config,
@@ -13,10 +12,7 @@
qtModule {
pname = "qtspeech";
nativeBuildInputs = [
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
flite
alsa-lib
@@ -26,9 +22,4 @@ qtModule {
qtbase
qtmultimedia
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
}
@@ -63,6 +63,8 @@ buildPythonPackage rec {
"test_get_project"
"test_get_builds"
"test_get_build"
# something about aiohttp and url mocking, maybe yarl
"test_get_work_items"
];
disabledTestPaths = [
@@ -20,14 +20,14 @@
buildPythonPackage rec {
pname = "aiohappyeyeballs";
version = "2.7.0";
version = "2.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiohappyeyeballs";
tag = "v${version}";
hash = "sha256-BqwKo1zZ7CqkUZ9H05fbbHVj/z3m0xaERh5dGBDKFYI=";
hash = "sha256-smpdmmut4wYekVew13KZXluI71lSUdZriPejUumkLNU=";
};
outputs = [
@@ -53,6 +53,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# mocked url differs with empty query param value vs dropped query param
"test_download_backup"
];
pythonImportsCheck = [ "aiohasupervisor" ];
meta = {
@@ -7,6 +7,7 @@
mashumaro,
orjson,
poetry-core,
pyprojectVersionPatchHook,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
@@ -26,6 +27,8 @@ buildPythonPackage rec {
hash = "sha256-llhdLqVueATKCb4wyPYjnsdOpbbE2BnUU0PH0jwHPMU=";
};
nativeBuildInputs = [ pyprojectVersionPatchHook ];
build-system = [ poetry-core ];
dependencies = [
@@ -7,7 +7,7 @@
voluptuous,
}:
buildPythonPackage rec {
pname = "alphaess";
pname = "alphaessopenapi";
version = "0.0.19";
pyproject = true;
@@ -15,7 +15,7 @@ buildPythonPackage rec {
owner = "CharlesGillanders";
repo = "alphaess-openAPI";
tag = version;
sha256 = "sha256-wdwA1MIQrkZCT4zIf8WXyq0+F+peC/auVtjDJ8ZZyxE=";
hash = "sha256-wdwA1MIQrkZCT4zIf8WXyq0+F+peC/auVtjDJ8ZZyxE=";
};
build-system = [ setuptools ];
@@ -32,14 +32,14 @@
buildPythonPackage rec {
pname = "anyio";
version = "4.14.1";
version = "4.14.2";
pyproject = true;
src = fetchFromGitHub {
owner = "agronholm";
repo = "anyio";
tag = version;
hash = "sha256-LPNRNb1RuSVQqsI6aAAiYWC2c2CZAhFS67XW9OfbIiE=";
hash = "sha256-MEU0c8/NI1vlyNtBsg/hGLv6DR619ZqoZzNY1eJLEWM=";
};
build-system = [ setuptools-scm ];
@@ -28,6 +28,12 @@ buildPythonPackage rec {
url = "https://github.com/ionelmc/python-aspectlib/commit/ef2c12304f08723dc8e79d1c59bc32c946d758dc.patch";
hash = "sha256-gtPFtwDsGIMkHTyuoiLk+SAGgB2Wyx/Si9HIdoIsvI8=";
})
(fetchpatch {
name = "pluggy-compat.patch";
url = "https://github.com/ionelmc/python-aspectlib/commit/b85abdb0565d1598ce56bd49d49dc709d4e16081.patch";
hash = "sha256-hW9xF50RjlrKXyABc69dkiV7YUeee95MnF0J/xQDWd4=";
includes = [ "tests/conftest.py" ];
})
];
nativeBuildInputs = [ setuptools ];
@@ -7,19 +7,19 @@
buildPythonPackage (finalAttrs: {
pname = "ast-serialize";
version = "0.5.0";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mypyc";
repo = "ast_serialize";
tag = "v${finalAttrs.version}";
hash = "sha256-GmhbMraI16J6ePtn7lXAWaJ+9zDH1GdebKIAzm5w9ok=";
hash = "sha256-7MNtry/GDUpjuh/rMB+R4wAQpPAG/yLNGqH4tEyK7tw=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-h+BklNeoQaRVWczsE9sFXgvFrnHW5vjWOVaOvLghv0U=";
hash = "sha256-iw1qkQoagmS+8e9znEEo4EZocu+ECL4c+egBY2TOrk0=";
};
build-system = [
@@ -10,14 +10,14 @@
buildPythonPackage (finalAttrs: {
pname = "astroid";
version = "4.0.3"; # Check whether the version is compatible with pylint
version = "4.2.0"; # Check whether the version is compatible with pylint
pyproject = true;
src = fetchFromGitHub {
owner = "PyCQA";
repo = "astroid";
tag = "v${finalAttrs.version}";
hash = "sha256-5p1xY6EWviSgmrLVOx3w7RcG/Vpx+sUtVndoxXrIFTQ=";
hash = "sha256-PwKGAk9tiQzxWydEREg0l0cF4J56SNRwhGRCVjmRoCo=";
};
build-system = [ setuptools ];
@@ -42,6 +42,10 @@ buildPythonPackage (finalAttrs: {
hypothesis
];
pytestFlags = [
"-Wignore::pytest.PytestRemovedIn10Warning"
];
disabledTests = lib.optional (!stdenv.hostPlatform.isDarwin) "test_interpolate_bilinear_skycoord";
# tests must be run in the build directory
@@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "asttokens";
version = "3.0.1";
version = "3.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "gristlabs";
repo = "asttokens";
tag = "v${version}";
hash = "sha256-1qkkNpjX89TmGD0z0KA2y+UbiHuEOaXzZ6hs9nw7EeM=";
hash = "sha256-qdjfhcU1Of07hEY9HZ8qUofPoYBixE4RnIohYMQWsqU=";
};
build-system = [ setuptools-scm ];
@@ -31,6 +31,7 @@ buildPythonPackage rec {
pytestFlags = [
"-Wignore::trio.TrioDeprecationWarning"
"-Wignore::pytest.PytestRemovedIn10Warning"
];
disabledTests = [
@@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "azure-eventhub";
version = "39.0.0";
version = "5.15.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-sdk-for-python";
tag = "azure-mgmt-containerservice_${version}";
hash = "sha256-zufXc8LR4STHi/jjV0bcLsifcHIif2m+3Q/KZlsSkRw=";
tag = "azure-eventhub_${version}";
hash = "sha256-zpj1DUeFCXgVw44LcBCYtuFcQtA9BnrDKAxKSYzu4ts=";
};
sourceRoot = "${src.name}/sdk/eventhub/azure-eventhub";
@@ -35,7 +35,7 @@
buildPythonPackage rec {
pname = "beautifulsoup4";
version = "4.14.3";
version = "4.15.0";
pyproject = true;
outputs = [
@@ -45,18 +45,9 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
hash = "sha256-YpKxxRhtNWu6Zp759/BRdXCZVlrZraXdYwvZ3l+n+4Y=";
hash = "sha256-KI48p9VLBvKsGRlwvCdcGTnLRtRQslW/ZxiwSqN6tPc=";
};
patches = [
# Fix tests with python 3.13.10 / 3.14.1
(fetchpatch {
url = "https://git.launchpad.net/beautifulsoup/patch/?id=55f655ffb7ef03bdd1df0f013743831fe54e3c7a";
excludes = [ "CHANGELOG" ];
hash = "sha256-DJl1pey0NdJH+SyBH9+y6gwUvQCmou0D9xcRAEV8OBw=";
})
];
build-system = [ hatchling ];
nativeBuildInputs = [ sphinxHook ];
@@ -10,14 +10,14 @@
buildPythonPackage (finalAttrs: {
pname = "bleach";
version = "6.3.0";
version = "6.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mozilla";
repo = "bleach";
tag = "v${finalAttrs.version}";
hash = "sha256-a85gLy0Ix4cWvXY0s3m+ZD+ga7en6bYu1iAA22OaSwk=";
hash = "sha256-2HcJIxmH78TIE4q481OZPL5ZempMqka6OChEv+BFctY=";
};
pythonRelaxDeps = [
@@ -11,7 +11,7 @@
buildPythonPackage (finalAttrs: {
pname = "blobfile";
version = "3.1.0";
version = "3.2.0";
pyproject = true;
__structuredAttrs = true;
@@ -20,7 +20,7 @@ buildPythonPackage (finalAttrs: {
owner = "christopher-hesse";
repo = "blobfile";
tag = "v${finalAttrs.version}";
hash = "sha256-aTHEJ1P+v9IWXPg9LN+KG1TlEVJh0qTl8J41iWpoPWk=";
hash = "sha256-6WECMS05upC+M81EtOlEs1K3NKD/z073PqutA/OCMiE=";
};
build-system = [ setuptools ];
@@ -11,14 +11,14 @@
buildPythonPackage rec {
pname = "blockbuster";
version = "1.5.25";
version = "1.5.26";
pyproject = true;
src = fetchFromGitHub {
owner = "cbornet";
repo = "blockbuster";
tag = "v${version}";
hash = "sha256-1+Q1IdJXqLAy7kIcVU38TC3dtMeWAn7YOLyGrjCkxD0=";
hash = "sha256-2p1xKThna33nhT3rkp1kfZPVkzsJd42OPs3cHenizJs=";
};
build-system = [ hatchling ];
@@ -20,14 +20,14 @@
buildPythonPackage rec {
pname = "build";
version = "1.5.0";
version = "1.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pypa";
repo = "build";
tag = version;
hash = "sha256-Kxqqh9HfNC28CxFHzVkNVzqNM8MVkLgkaCU2jxpjceA=";
hash = "sha256-vm47wuSEKfU4CjonokylTyGe62jGS/5m2dhLKhY5TPc=";
};
build-system = [ flit-core ];
@@ -3,22 +3,26 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "cachetools";
version = "6.2.4";
version = "7.1.4";
pyproject = true;
src = fetchFromGitHub {
owner = "tkem";
repo = "cachetools";
tag = "v${version}";
hash = "sha256-LlDyrjiRYCD9btDl5NA0Seb3jk3hlpNhwu0jAQp9YZE=";
hash = "sha256-zgIUNzDVQMBjaaEitD3ACVd8ZXCeXu3MBTEapzH5sSY=";
};
build-system = [ setuptools ];
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
@@ -7,7 +7,7 @@
icalendar-searcher,
lxml,
manuel,
pytestCheckHook,
pytest9_0CheckHook,
python,
radicale,
recurring-ical-events,
@@ -59,7 +59,7 @@ buildPythonPackage rec {
proxy-py
pyfakefs
pytest-asyncio
pytestCheckHook
pytest9_0CheckHook
(toPythonModule (radicale.override { python3 = python; }))
tzlocal
vobject
@@ -3,12 +3,13 @@
fetchPypi,
buildPythonPackage,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "calmjs-types";
version = "1.0.1";
format = "setuptools";
pyproject = true;
src = fetchPypi {
pname = "calmjs.types";
@@ -17,11 +18,14 @@ buildPythonPackage rec {
extension = "zip";
};
build-system = [ setuptools ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "calmjs.types" ];
meta = {
broken = lib.versionAtLeast setuptools.version "82";
description = "Types for the calmjs framework";
homepage = "https://github.com/calmjs/calmjs.types";
license = lib.licenses.mit;
@@ -12,27 +12,34 @@
msgpack,
msgspec,
orjson,
pymongo,
pytest-xdist,
pytestCheckHook,
pythonAtLeast,
pyyaml,
tomli-w,
tomlkit,
typing-extensions,
ujson,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "cattrs";
version = "25.3.0";
version = "26.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-attrs";
repo = "cattrs";
tag = "v${version}";
hash = "sha256-6oQblSanvSZOMD5ossCP7fNjyxF54SRbU1cQrW1I5Ps=";
tag = "v${finalAttrs.version}";
hash = "sha256-i1C7TvtQhiEZPi4YELxPHkiz33nNw2rtgRTqs98PVlc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "-l --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname" ""
'';
build-system = [
hatchling
hatch-vcs
@@ -43,57 +50,58 @@ buildPythonPackage rec {
typing-extensions
];
optional-dependencies = {
ujson = [
ujson
];
orjson = [
orjson
];
msgpack = [
msgpack
];
pyyaml = [
pyyaml
];
tomlkit = [
tomlkit
];
cbor2 = [
cbor2
];
bson = [
pymongo
];
msgspec = [
msgspec
];
tomllib = [
tomli-w
];
};
nativeCheckInputs = [
cbor2
hypothesis
immutables
motor
msgpack
msgspec
orjson
pytest-xdist
pytestCheckHook
pyyaml
tomlkit
ujson
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "-l --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname" ""
substituteInPlace tests/test_preconf.py \
--replace-fail "from orjson import dumps as orjson_dumps" "" \
--replace-fail "from orjson import loads as orjson_loads" ""
'';
preCheck = ''
export HOME=$(mktemp -d);
'';
writableTmpDirAsHomeHook
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
disabledTestPaths = [
# Don't run benchmarking tests
"bench"
];
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" ];
meta = {
changelog = "https://github.com/python-attrs/cattrs/blob/${finalAttrs.src.tag}/HISTORY.md";
description = "Python custom class converters for attrs";
homepage = "https://github.com/python-attrs/cattrs";
changelog = "https://github.com/python-attrs/cattrs/blob/${src.tag}/HISTORY.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
})
@@ -1,28 +1,52 @@
{
lib,
buildPythonPackage,
fetchPypi,
cargo,
fetchFromGitHub,
hypothesis,
pytest-cov-stub,
pytestCheckHook,
setuptools-scm,
rustc,
rustPlatform,
setuptools,
setuptools-rust,
setuptools-scm,
withCExtensions ? true,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "cbor2";
version = "5.8.0";
version = "6.1.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sZw1/K6WiKwB73W61dsnMAwlN+tO4A7QfgXYRWoNSTE=";
src = fetchFromGitHub {
owner = "agronholm";
repo = "cbor2";
tag = finalAttrs.version;
hash = "sha256-DAhMoWZ820bfa7u+Mu+uqQ+ci+ibxQGwP70t4eOCHg8=";
};
cargoRoot = "rust";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs)
pname
version
src
cargoRoot
;
hash = "sha256-L9aYpPNGWf8h/NCjDwj5qper9sMSTCxPL91eIbb4hw0=";
};
nativeBuildInputs = [
cargo
rustc
rustPlatform.cargoSetupHook
];
build-system = [
setuptools
setuptools-scm
setuptools-rust
];
nativeCheckInputs = [
@@ -43,11 +67,11 @@ buildPythonPackage rec {
meta = {
description = "Python CBOR (de)serializer with extensive tag support";
changelog = "https://github.com/agronholm/cbor2/releases/tag/${version}";
changelog = "https://github.com/agronholm/cbor2/releases/tag/${finalAttrs.src.tag}";
homepage = "https://github.com/agronholm/cbor2";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "cbor2";
};
}
})
@@ -197,6 +197,9 @@ buildPythonPackage (finalAttrs: {
# Flaky: Unclosed temporary file handle under heavy load (as in nixpkgs-review)
"test_check_privileges_without_c_force_root_and_no_group_entry"
# click 8.4 error message flag quoting changes
"test_preload_options"
]
++ lib.optionals (lib.versionAtLeast django.version "6.0") [
"test_is_pickled"
@@ -9,14 +9,14 @@
buildPythonPackage (finalAttrs: {
pname = "certifi";
version = "2026.04.22";
version = "2026.06.17";
pyproject = true;
src = fetchFromGitHub {
owner = "certifi";
repo = "python-certifi";
tag = finalAttrs.version;
hash = "sha256-bGeOrYd7ZUG0VIbgRiYIBK3JDRC5wpST5IrFHyWO/cg=";
hash = "sha256-/Jg/tNYuZtL3YeCzPUwP0phLfkHiLxiWbPfby05XKw4=";
};
patches = [
@@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "cffi";
version = "2.0.0";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-cffi";
repo = "cffi";
tag = "v${version}";
hash = "sha256-7Mzz3KmmmE2xQru1GA4aY0DZqn6vxykWiExQvnA1bjM=";
hash = "sha256-17OgcPo1pYwsPV/2iHe7iXVusCp5zLTFGcHYUfX1g48=";
};
nativeBuildInputs = [ pkg-config ];
@@ -14,19 +14,19 @@
buildPythonPackage rec {
pname = "charset-normalizer";
version = "3.4.7";
version = "3.4.9";
pyproject = true;
src = fetchFromGitHub {
owner = "jawah";
repo = "charset_normalizer";
tag = version;
hash = "sha256-dOdJ4f98smCYdskp3BwtQG6aOyK+2a73+x580FKRWDk=";
hash = "sha256-YOskF90ach/qEwnMeYDEEO2H4DOoz/LZApXDRU9mvnM=";
};
postPatch = ''
substituteInPlace _mypyc_hook/backend.py \
--replace-fail "mypy>=1.4.1,<=1.20" "mypy"
--replace-fail "mypy>=1.4.1,<2.2" "mypy"
'';
build-system = [
@@ -30,6 +30,10 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pytestFlags = [
"-Wignore::pytest.PytestRemovedIn10Warning"
];
disabledTests = [
# for some reason the tests fail to execute cat, even though they run with less just fine,
# even adding coreutils to nativeCheckInputs explicitly does not change anything
@@ -17,6 +17,11 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-Y3weYo/pjz8gpeRNpZGnK0K/VNfUUnGQvzntX2SvdYU=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "setuptools_scm<10" setuptools_scm
'';
build-system = [ setuptools-scm ];
dependencies = [ click ];
@@ -70,6 +70,11 @@ buildPythonPackage (finalAttrs: {
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
pytestFlags = [
# Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
"-Wignore::starlette.exceptions.StarletteDeprecationWarning"
];
pythonImportsCheck = [ "cross_web" ];
preCheck = ''
@@ -16,6 +16,7 @@
# tests
pytest-asyncio,
pytest-dotenv,
pytestCheckHook,
}:
@@ -55,6 +56,7 @@ buildPythonPackage (finalAttrs: {
nativeCheckInputs = [
pytest-asyncio
pytest-dotenv
pytestCheckHook
]
++ finalAttrs.passthru.optional-dependencies.cli;
@@ -1,64 +0,0 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
more-properties,
typing-inspect,
toolz,
toposort,
bson,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dataclasses-serialization";
version = "1.3.1";
# upstream requires >= 3.6 but only 3.7 includes dataclasses
format = "setuptools";
src = fetchFromGitHub {
owner = "madman-bob";
repo = "python-dataclasses-serialization";
rev = version;
hash = "sha256-jLMR2D01KgzHHRP0zduMBJt8xgBmIquWLCjZYLo2/AA=";
};
postPatch = ''
mv pypi_upload/setup.py .
substituteInPlace setup.py \
--replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
# https://github.com/madman-bob/python-dataclasses-serialization/issues/16
sed -i '/(\(Dict\|List\)/d' tests/test_json.py tests/test_bson.py
'';
# dataclasses is included in Python 3.7
pythonRemoveDeps = [ "dataclasses" ];
propagatedBuildInputs = [
more-properties
typing-inspect
toolz
toposort
];
nativeCheckInputs = [
bson
pytestCheckHook
];
pythonImportsCheck = [
"dataclasses_serialization.bson"
"dataclasses_serialization.json"
"dataclasses_serialization.serializer_base"
];
meta = {
description = "Serialize/deserialize Python dataclasses to various other data formats";
homepage = "https://github.com/madman-bob/python-dataclasses-serialization";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
@@ -3,15 +3,21 @@
argcomplete,
black,
buildPythonPackage,
email-validator,
fetchFromGitHub,
genson,
graphql-core,
grpcio-tools,
hatch-vcs,
hatchling,
httpx,
hypothesis,
hypothesis-jsonschema,
inflect,
inline-snapshot,
isort,
jsonschema,
msgspec,
jinja2,
openapi-spec-validator,
packaging,
@@ -20,6 +26,8 @@
pydantic,
pysnooper,
pytest-mock,
pytest-timeout,
pytest-xdist,
pytestCheckHook,
pyyaml,
time-machine,
@@ -28,14 +36,14 @@
buildPythonPackage rec {
pname = "datamodel-code-generator";
version = "0.55.0";
version = "0.68.1";
pyproject = true;
src = fetchFromGitHub {
owner = "koxudaxi";
repo = "datamodel-code-generator";
tag = version;
hash = "sha256-zsLJv7gKhmnEIS/AUvnBzm+07QFQoMdiFo/PkfRyHek=";
hash = "sha256-fYnI7S4FJ927qZXyAsWQzxhLTrcpscYqJunmcSt/gkk=";
};
pythonRelaxDeps = [
@@ -65,6 +73,7 @@ buildPythonPackage rec {
debug = [ pysnooper ];
graphql = [ graphql-core ];
http = [ httpx ];
protobuf = [ grpcio-tools ];
ruff = [ ruff ];
validation = [
openapi-spec-validator
@@ -76,20 +85,31 @@ buildPythonPackage rec {
};
nativeCheckInputs = [
email-validator
inline-snapshot
hypothesis
hypothesis-jsonschema
jsonschema
msgspec
pytest-mock
pytest-timeout
pytest-xdist
pytestCheckHook
time-machine
]
++ optional-dependencies.all;
pythonImportsCheck = [ "datamodel_code_generator" ];
pytestFlags = [
"--maxfail=2"
];
disabledTests = [
# remote testing, name resolution failure.
"test_openapi_parser_parse_remote_ref"
];
pythonImportsCheck = [ "datamodel_code_generator" ];
meta = {
description = "Pydantic model and dataclasses.dataclass generator for easy conversion of JSON, OpenAPI, JSON Schema, and YAML data sources";
homepage = "https://github.com/koxudaxi/datamodel-code-generator";
@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "decorator";
version = "5.2.1";
version = "5.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "micheles";
repo = "decorator";
tag = version;
hash = "sha256-UBjZ8LdgJ6iLBjNTlA3up0qAVBqTSZMJt7oEhUo3ZEo=";
hash = "sha256-whGT0XDVdo0mhc2KP5unjdUSP3AFWKql1fKM1qlK/Zc=";
};
build-system = [ setuptools ];
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pyprojectVersionPatchHook,
# build-system
poetry-core,
@@ -27,6 +28,8 @@ buildPythonPackage rec {
hash = "sha256-c91xCrlNpCutZZYO6y0pOaqPCF4exbr7xVxfsf5LI0Q=";
};
nativeBuildInputs = [ pyprojectVersionPatchHook ];
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
@@ -23,14 +23,14 @@
buildPythonPackage rec {
pname = "docker";
version = "7.1.0";
version = "7.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "docker";
repo = "docker-py";
tag = version;
hash = "sha256-sk6TZLek+fRkKq7kG9g6cR9lvfPC8v8qUXKb7Tq4pLU=";
hash = "sha256-4LmmWAmwoFroV4Ez0r1X72jCpBt69upQMrsA4eP5K6o=";
};
build-system = [
@@ -13,12 +13,12 @@
let
self = buildPythonPackage rec {
pname = "docutils";
version = "0.22.4";
version = "0.23";
pyproject = true;
src = fetchurl {
url = "mirror://sourceforge/docutils/docutils-${version}.tar.gz";
hash = "sha256-TbU7H96avsu3TZEjDTKrYm2U9rrfxXXW25GUpJ3ymWg=";
hash = "sha256-dG9QYDIlESgKHlDrdoRu1r8jQphLKsBNxCyqGo14eZ4=";
};
build-system = [ flit-core ];
@@ -25,19 +25,19 @@
buildPythonPackage (finalAttrs: {
pname = "dulwich";
version = "1.2.6";
version = "1.2.10";
pyproject = true;
src = fetchFromGitHub {
owner = "jelmer";
repo = "dulwich";
tag = "dulwich-${finalAttrs.version}";
hash = "sha256-nj20g5OmlcqWDaKv3NoKWZS5/e4HOMCf7DHeS7xDzjQ=";
hash = "sha256-ogYR4xK4sYbh7zOozpiZ+bubA6/kDx1iFkbIAjYLkIs=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-wifh/beg3VVQpAXg/P/tq6qiUwCqXxhWPoRvX2HcFOc=";
hash = "sha256-Shu80kj4rir3JvrgXmO82/Z6ZROaACl43zQBzjlDFYc=";
};
nativeBuildInputs = [
@@ -8,12 +8,12 @@
buildPythonPackage rec {
pname = "editables";
version = "0.5";
version = "0.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-MJYn2bXErcDmaNjG+nusG6fIxdQVwtJ/YPCB+OgNHeI=";
hash = "sha256-EWODSQI4HEYTeHlRxZFIAP3xVa4IhIo3O46lAGeAl3w=";
};
build-system = [ flit-core ];

Some files were not shown because too many files have changed in this diff Show More